3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/sparse/default.nix

41 lines
672 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
2020-07-03 20:44:07 +01:00
, dask
, numpy
, scipy
, numba
, pytest
}:
buildPythonPackage rec {
pname = "sparse";
2020-06-06 07:47:32 +01:00
version = "0.10.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:32 +01:00
sha256 = "ffbca00a53f938e4f04230f582b210440efb54d74d60af1d1ced3864f61677ac";
};
2020-07-03 20:44:07 +01:00
checkInputs = [ pytest dask ];
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 ];
};
}