depot/third_party/nixpkgs/pkgs/development/python-modules/sparse/default.nix
Default email 1693fb2285 Project import generated by Copybara.
GitOrigin-RevId: 420f89ceb267b461eed5d025b6c3c0e57703cc5c
2020-10-07 11:15:18 +02:00

40 lines
672 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, dask
, numpy
, scipy
, numba
, pytest
}:
buildPythonPackage rec {
pname = "sparse";
version = "0.11.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "bc5c35dbc81242237feb7a8e1f7d9c5e9dd9bb0910f6ec55f50dcc379082864f";
};
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 ];
};
}