python311Packages.sparse: fix build

This commit is contained in:
Martin Weinelt 2024-03-27 15:45:25 +01:00
parent f76b616495
commit bfdfb5476a
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
1 changed files with 15 additions and 4 deletions

View File

@ -4,15 +4,17 @@
, fetchPypi
, numba
, numpy
, pytestCheckHook
, pytest7CheckHook
, pythonOlder
, setuptools
, setuptools-scm
, scipy
}:
buildPythonPackage rec {
pname = "sparse";
version = "0.15.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6";
@ -21,7 +23,16 @@ buildPythonPackage rec {
hash = "sha256-lzrcuIqNuOPYBHlTMx4m0/ZKVlf5tGprhZxHZjw+75k=";
};
propagatedBuildInputs = [
postPatch = ''
sed -i "/addopts =/d" pytest.ini
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [
numba
numpy
scipy
@ -29,7 +40,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
dask
pytestCheckHook
pytest7CheckHook
];
pythonImportsCheck = [