2019-02-23 13:39:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-06-02 12:26:17 +00:00
|
|
|
, isPy3k
|
2019-02-23 13:39:39 +00:00
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, numba
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sparse";
|
2019-04-02 20:22:23 +00:00
|
|
|
version = "0.7.0";
|
2019-02-23 13:39:39 +00:00
|
|
|
|
2019-06-02 12:26:17 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-02-23 13:39:39 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-02 20:22:23 +00:00
|
|
|
sha256 = "0ija4pl8wg36ldsdv5jmqr5i75qi17vijcwwf2jdn1k15kqg35j4";
|
2019-02-23 13:39:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
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 ];
|
2019-10-07 15:20:23 +00:00
|
|
|
broken = true;
|
2019-02-23 13:39:39 +00:00
|
|
|
};
|
|
|
|
}
|