Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 35 lines 722 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, nose 5, cython 6, numpy 7}: 8 9buildPythonPackage rec { 10 version = "0.13"; 11 pname = "hdmedians"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "230f80e064d905c49a1941af1b7e806e2f22b3c9a90ad5c21fd17d72636ea277"; 16 }; 17 18 # nose was specified in setup.py as a build dependency... 19 buildInputs = [ cython nose ]; 20 propagatedBuildInputs = [ numpy ]; 21 22 # cannot resolve path for packages in tests 23 doCheck = false; 24 25 checkPhase = '' 26 nosetests 27 ''; 28 29 meta = with stdenv.lib; { 30 homepage = "https://github.com/daleroberts/hdmedians"; 31 description = "High-dimensional medians"; 32 license = licenses.gpl3; 33 maintainers = [ maintainers.costrouc ]; 34 }; 35}