blob: 9b02a1c222f4646a1e9ff634df8a543390849e53 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{ lib
, buildPythonPackage
, dask
, fetchpatch
, fetchPypi
, numba
, numpy
, pytestCheckHook
, pythonOlder
, scipy
}:
buildPythonPackage rec {
pname = "sparse";
version = "0.14.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-X1gno39s1vZzClQfmUyVxgo64jKeAfS6Ic7VM5rqAJg=";
};
patches = [
# https://github.com/pydata/sparse/issues/594
(fetchpatch {
name = "fix-test.patch";
url = "https://github.com/pydata/sparse/commit/a55651d630efaea6fd2758d083c6d02333b0eebe.patch";
hash = "sha256-Vrx7MDlKtA8fOuFZenEkvgA70Hzm+p/4SPZuCvwtLuo=";
})
];
propagatedBuildInputs = [
numba
numpy
scipy
];
nativeCheckInputs = [
dask
pytestCheckHook
];
pythonImportsCheck = [
"sparse"
];
meta = with lib; {
description = "Sparse n-dimensional arrays computations";
homepage = "https://sparse.pydata.org/";
changelog = "https://sparse.pydata.org/en/stable/changelog.html";
downloadPage = "https://github.com/pydata/sparse/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}
|