2019-02-23 13:39:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-06-02 13:26:17 +01:00
|
|
|
, isPy3k
|
2020-07-03 20:44:07 +01:00
|
|
|
, dask
|
2019-02-23 13:39:39 +00:00
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, numba
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sparse";
|
2020-06-06 07:47:32 +01:00
|
|
|
version = "0.10.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;
|
2020-06-06 07:47:32 +01:00
|
|
|
sha256 = "ffbca00a53f938e4f04230f582b210440efb54d74d60af1d1ced3864f61677ac";
|
2019-02-23 13:39:39 +00:00
|
|
|
};
|
|
|
|
|
2020-07-03 20:44:07 +01:00
|
|
|
checkInputs = [ pytest dask ];
|
2019-02-23 13:39:39 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
numba
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest sparse
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Sparse n-dimensional arrays computations";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pydata/sparse/";
|
2019-02-23 13:39:39 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|