2019-02-23 14:39:39 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-06-02 14:26:17 +02:00
|
|
|
, isPy3k
|
2019-02-23 14:39:39 +01:00
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, numba
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sparse";
|
2019-10-24 08:47:49 +02:00
|
|
|
version = "0.8.0";
|
2019-02-23 14:39:39 +01:00
|
|
|
|
2019-06-02 14:26:17 +02:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-02-23 14:39:39 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 08:47:49 +02:00
|
|
|
sha256 = "a3dc14ee5314caa2e64331b0b50c8f92e8999d7d275179a804a114e6cb1f8b81";
|
2019-02-23 14:39:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
numba
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest sparse
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Sparse n-dimensional arrays computations";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/pydata/sparse/";
|
2019-02-23 14:39:39 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|