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

36 lines
722 B
Nix
Raw Normal View History

2018-10-11 02:21:09 +01:00
{ stdenv
, buildPythonPackage
, fetchPypi
, nose
, cython
, numpy
}:
buildPythonPackage rec {
version = "0.13";
pname = "hdmedians";
src = fetchPypi {
inherit pname version;
sha256 = "230f80e064d905c49a1941af1b7e806e2f22b3c9a90ad5c21fd17d72636ea277";
};
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 stdenv.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 ];
};
}