mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
36 lines
680 B
Nix
36 lines
680 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, cython
|
|
, numpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.13";
|
|
pname = "hdmedians";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "230f80e064d905c49a1941af1b7e806e2f22b3c9a90ad5c21fd17d72636ea277";
|
|
};
|
|
|
|
buildInputs = [ cython ];
|
|
checkInputs = [ nose ];
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
# cannot resolve path for packages in tests
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
nosetests
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://github.com/daleroberts/hdmedians;
|
|
description = "High-dimensional medians";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|