Merge pull request #330328 from natsukium/devito/pypa

python312Packages.devito: switch to pypa builder
This commit is contained in:
OTABI Tomoya 2024-07-28 00:01:47 +09:00 committed by GitHub
commit d1e3b3a145
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,7 @@
stdenv,
anytree,
buildPythonPackage,
setuptools,
cached-property,
cgen,
click,
@ -26,7 +27,7 @@
buildPythonPackage rec {
pname = "devito";
version = "4.8.11";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
@ -37,15 +38,18 @@ buildPythonPackage rec {
hash = "sha256-c8/b2dRwfH4naSVRaRon6/mBDva7RSDmi/TJUJp26g0=";
};
pythonRemoveDeps = [
"codecov"
"flake8"
"pytest-runner"
"pytest-cov"
];
# packaging.metadata.InvalidMetadata: 'python_version_3.8_' is invalid for 'provides-extra'
postPatch = ''
substituteInPlace requirements-testing.txt \
--replace-fail 'pooch; python_version >= "3.8"' "pooch"
'';
pythonRemoveDeps = [ "pip" ];
pythonRelaxDeps = true;
build-system = [ setuptools ];
dependencies = [
anytree
cached-property