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