nixpkgs/pkgs/development/python-modules/hdmedians/default.nix

36 lines
714 B
Nix
Raw Normal View History

{ lib
2018-10-11 02:21:09 +01:00
, buildPythonPackage
, fetchPypi
, nose
, cython
, numpy
}:
buildPythonPackage rec {
version = "0.14.2";
2018-10-11 02:21:09 +01:00
pname = "hdmedians";
src = fetchPypi {
inherit pname version;
sha256 = "b47aecb16771e1ba0736557255d80ae0240b09156bff434321de559b359ac2d6";
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
'';
meta = with lib; {
homepage = "https://github.com/daleroberts/hdmedians";
2018-10-11 02:21:09 +01:00
description = "High-dimensional medians";
license = licenses.gpl3;
maintainers = [ maintainers.costrouc ];
};
}