2019-02-23 13:39:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-06-02 13:26:17 +01:00
|
|
|
, isPy3k
|
2021-04-15 23:02:41 +01:00
|
|
|
, numba
|
2019-02-23 13:39:39 +00:00
|
|
|
, numpy
|
|
|
|
, scipy
|
2021-04-15 23:02:41 +01:00
|
|
|
# Test Inputs
|
|
|
|
, pytestCheckHook
|
|
|
|
, dask
|
2019-02-23 13:39:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sparse";
|
2021-04-15 23:02:41 +01:00
|
|
|
version = "0.12.0";
|
2019-02-23 13:39:39 +00:00
|
|
|
|
2019-06-02 13:26:17 +01:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-02-23 13:39:39 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-15 23:02:41 +01:00
|
|
|
sha256 = "2c95c3b8ee00211a5aa4ef5e46006d25bf35009a66e406b7ea9b25b327fb9516";
|
2019-02-23 13:39:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-04-15 23:02:41 +01:00
|
|
|
numba
|
2019-02-23 13:39:39 +00:00
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
];
|
2021-04-15 23:02:41 +01:00
|
|
|
checkInputs = [ pytestCheckHook dask ];
|
2019-02-23 13:39:39 +00:00
|
|
|
|
2021-04-15 23:02:41 +01:00
|
|
|
pythonImportsCheck = [ "sparse" ];
|
2019-02-23 13:39:39 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Sparse n-dimensional arrays computations";
|
2021-04-15 23:02:41 +01:00
|
|
|
homepage = "https://sparse.pydata.org/en/stable/";
|
|
|
|
changelog = "https://sparse.pydata.org/en/stable/changelog.html";
|
|
|
|
downloadPage = "https://github.com/pydata/sparse/releases/tag/${version}";
|
2019-02-23 13:39:39 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|