python311Packages.scikit-build-core: 0.5.1 -> 0.7.0

This commit is contained in:
Ben Darwin 2023-12-30 13:07:09 -05:00
parent 9fafaa3066
commit 67e82c9648

View file

@ -16,24 +16,24 @@
, pytestCheckHook
, setuptools
, tomli
, virtualenv
, wheel
}:
buildPythonPackage rec {
pname = "scikit-build-core";
version = "0.5.1";
format = "pyproject";
version = "0.7.0";
pyproject = true;
src = fetchPypi {
pname = "scikit_build_core";
inherit version;
hash = "sha256-xtrVpRJ7Kr+qI8uR0jrCEFn9d83fcSKzP9B3kQJNz78=";
hash = "sha256-hffyRpxWjGzjWrL6Uv4tJqBODeUH06JMGrtyg3Vlf9M=";
};
postPatch = ''
postPatch = lib.optionalString (pythonOlder "3.11") ''
substituteInPlace pyproject.toml \
--replace 'minversion = "7.2"' "" \
--replace '"error",' '"error", "ignore::DeprecationWarning", "ignore::UserWarning",'
--replace '"error",' '"error", "ignore::UserWarning",'
'';
nativeBuildInputs = [
@ -65,6 +65,7 @@ buildPythonPackage rec {
pytest-subprocess
pytestCheckHook
setuptools
virtualenv
wheel
] ++ passthru.optional-dependencies.pyproject;
@ -76,6 +77,8 @@ buildPythonPackage rec {
"tests/test_pyproject_pep660.py"
"tests/test_setuptools_pep517.py"
"tests/test_setuptools_pep518.py"
# store permissions issue in Nix:
"tests/test_editable.py"
];
pythonImportsCheck = [