Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, dask
6, numpy
7, scipy
8, numba
9, pytest
10}:
11
12buildPythonPackage rec {
13 pname = "sparse";
14 version = "0.10.0";
15
16 disabled = !isPy3k;
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "ffbca00a53f938e4f04230f582b210440efb54d74d60af1d1ced3864f61677ac";
21 };
22
23 checkInputs = [ pytest dask ];
24 propagatedBuildInputs = [
25 numpy
26 scipy
27 numba
28 ];
29
30 checkPhase = ''
31 pytest sparse
32 '';
33
34 meta = with lib; {
35 description = "Sparse n-dimensional arrays computations";
36 homepage = "https://github.com/pydata/sparse/";
37 license = licenses.bsd3;
38 maintainers = [ maintainers.costrouc ];
39 };
40}