mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 21:44:49 +00:00

Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
37 lines
718 B
Nix
37 lines
718 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, cython
|
|
, numpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.14.2";
|
|
format = "setuptools";
|
|
pname = "hdmedians";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b47aecb16771e1ba0736557255d80ae0240b09156bff434321de559b359ac2d6";
|
|
};
|
|
|
|
# nose was specified in setup.py as a build dependency...
|
|
buildInputs = [ cython nose ];
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
# cannot resolve path for packages in tests
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
nosetests
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/daleroberts/hdmedians";
|
|
description = "High-dimensional medians";
|
|
license = licenses.gpl3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|