2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-10-11 02:21:09 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, cython
|
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-10-15 18:54:13 +01:00
|
|
|
version = "0.14.1";
|
2018-10-11 02:21:09 +01:00
|
|
|
pname = "hdmedians";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-15 18:54:13 +01:00
|
|
|
sha256 = "ccefaae26302afd843c941b3b662f1119d5a36dec118077310f811a7a1ed8871";
|
2018-10-11 02:21:09 +01:00
|
|
|
};
|
|
|
|
|
2018-10-14 15:05:50 +01:00
|
|
|
# nose was specified in setup.py as a build dependency...
|
|
|
|
buildInputs = [ cython nose ];
|
2018-10-11 02:21:09 +01:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
# cannot resolve path for packages in tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/daleroberts/hdmedians";
|
2018-10-11 02:21:09 +01:00
|
|
|
description = "High-dimensional medians";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|