Merge pull request #198832 from fabaff/griffe-bump

python310Packages.griffe: 0.22.2 -> 0.23.0
This commit is contained in:
Fabian Affolter 2022-11-01 00:19:45 +01:00 committed by GitHub
commit ce794c0eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "griffe";
version = "0.22.2";
version = "0.23.0";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -20,9 +20,16 @@ buildPythonPackage rec {
owner = "mkdocstrings";
repo = pname;
rev = version;
hash = "sha256-mkYtfO+wZ4vIdpCzum9uwoKMv1Xn0few8ywbvrEwxj8=";
hash = "sha256-eoWOkAwAd3ab9+uUfAdrYhkheibfGYkuoNQX/3nS57w=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["version"]' 'version = "${version}"' \
--replace 'license = "ISC"' 'license = {file = "LICENSE"}' \
--replace 'version = {source = "scm"}' 'license-expression = "ISC"'
'';
nativeBuildInputs = [
pdm-pep517
];
@ -42,11 +49,6 @@ buildPythonPackage rec {
];
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'dynamic = ["version"]' 'version = "${version}"'
'';
pythonImportsCheck = [
"griffe"
];