1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, numba
6, numpy
7, scipy
8 # Test Inputs
9, pytestCheckHook
10, dask
11}:
12
13buildPythonPackage rec {
14 pname = "sparse";
15 version = "0.12.0";
16
17 disabled = !isPy3k;
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "2c95c3b8ee00211a5aa4ef5e46006d25bf35009a66e406b7ea9b25b327fb9516";
22 };
23
24 propagatedBuildInputs = [
25 numba
26 numpy
27 scipy
28 ];
29 checkInputs = [ pytestCheckHook dask ];
30
31 pythonImportsCheck = [ "sparse" ];
32
33 meta = with lib; {
34 description = "Sparse n-dimensional arrays computations";
35 homepage = "https://sparse.pydata.org/en/stable/";
36 changelog = "https://sparse.pydata.org/en/stable/changelog.html";
37 downloadPage = "https://github.com/pydata/sparse/releases/tag/${version}";
38 license = licenses.bsd3;
39 maintainers = [ maintainers.costrouc ];
40 };
41}