python310Packages.griffe: 0.22.2 -> 0.23.0

This commit is contained in:
Fabian Affolter 2022-10-31 20:12:02 +01:00
parent 15a051a5b6
commit 1508c10345

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"
];