python312Packages.scikit-build-core: fix build with setuptools 75.8
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch2,
|
||||
pythonOlder,
|
||||
|
||||
# build-system
|
||||
@@ -40,6 +41,15 @@ buildPythonPackage rec {
|
||||
hash = "sha256-R6/Y9brIYBA1P3YeG8zGaoPcxWFUDqZlqbZpWu3MIIw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch2 {
|
||||
name = "setuptools-75_8-compatibility.patch";
|
||||
url = "https://github.com/scikit-build/scikit-build-core/commit/e4e92bc28651001e91999e9759c44fb67cd3d211.patch";
|
||||
includes = [ "tests/test_setuptools_pep517.py" ];
|
||||
hash = "sha256-nqng1FAY90Qm/yVRkALTsKchqNvsxutbBr51/Q4IKPA=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = lib.optionalString (pythonOlder "3.11") ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail '"error",' '"error", "ignore::UserWarning",'
|
||||
|
||||
Reference in New Issue
Block a user