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