python312Packages.sparse: fix build
and other minor changes
This commit is contained in:
parent
4e2ce36aab
commit
24d031bfa2
|
@ -6,22 +6,34 @@
|
||||||
, numpy
|
, numpy
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
|
, setuptools-scm
|
||||||
, scipy
|
, scipy
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sparse";
|
pname = "sparse";
|
||||||
version = "0.15.1";
|
version = "0.15.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-lzrcuIqNuOPYBHlTMx4m0/ZKVlf5tGprhZxHZjw+75k=";
|
hash = "sha256-lzrcuIqNuOPYBHlTMx4m0/ZKVlf5tGprhZxHZjw+75k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
postPatch = ''
|
||||||
|
substituteInPlace pytest.ini \
|
||||||
|
--replace-fail "--cov-report term-missing --cov-report html --cov-report=xml --cov-report=term --cov sparse --cov-config .coveragerc --junitxml=junit/test-results.xml" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
numba
|
numba
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
|
@ -36,6 +48,11 @@ buildPythonPackage rec {
|
||||||
"sparse"
|
"sparse"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"-W"
|
||||||
|
"ignore::pytest.PytestRemovedIn8Warning"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Sparse n-dimensional arrays computations";
|
description = "Sparse n-dimensional arrays computations";
|
||||||
homepage = "https://sparse.pydata.org/";
|
homepage = "https://sparse.pydata.org/";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user