nixpkgs/pkgs/development/python-modules/sparse/default.nix
2019-06-02 13:26:17 +01:00

40 lines
645 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, numpy
, scipy
, numba
, pytest
}:
buildPythonPackage rec {
pname = "sparse";
version = "0.7.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0ija4pl8wg36ldsdv5jmqr5i75qi17vijcwwf2jdn1k15kqg35j4";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [
numpy
scipy
numba
];
checkPhase = ''
pytest sparse
'';
meta = with lib; {
description = "Sparse n-dimensional arrays computations";
homepage = https://github.com/pydata/sparse/;
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}