0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00

Python310Packages.sparse: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-06-03 12:08:34 +02:00 committed by Jonathan Ringer
parent ea658301e1
commit 077cf7c76b
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -1,24 +1,24 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, dask
, fetchPypi , fetchPypi
, isPy3k
, numba , numba
, numpy , numpy
, scipy
# Test Inputs
, pytestCheckHook , pytestCheckHook
, dask , pythonOlder
, scipy
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "sparse"; pname = "sparse";
version = "0.13.0"; version = "0.13.0";
format = "setuptools";
disabled = !isPy3k; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "685dc994aa770ee1b23f2d5392819c8429f27958771f8dceb2c4fb80210d5915"; hash = "sha256-aF3JlKp3DuGyPy1TkoGchCnyeVh3H43OssT7gCENWRU=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -26,16 +26,22 @@ buildPythonPackage rec {
numpy numpy
scipy scipy
]; ];
checkInputs = [ pytestCheckHook dask ];
pythonImportsCheck = [ "sparse" ]; checkInputs = [
dask
pytestCheckHook
];
pythonImportsCheck = [
"sparse"
];
meta = with lib; { meta = with lib; {
description = "Sparse n-dimensional arrays computations"; description = "Sparse n-dimensional arrays computations";
homepage = "https://sparse.pydata.org/en/stable/"; homepage = "https://sparse.pydata.org/";
changelog = "https://sparse.pydata.org/en/stable/changelog.html"; changelog = "https://sparse.pydata.org/en/stable/changelog.html";
downloadPage = "https://github.com/pydata/sparse/releases/tag/${version}"; downloadPage = "https://github.com/pydata/sparse/releases/tag/${version}";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }