python312Packages.twine: fix build with pkginfo>=1.11

This commit is contained in:
natsukium 2024-10-01 16:23:08 +09:00 committed by Martin Weinelt
parent 2267d87290
commit a157d02d69

View File

@ -1,6 +1,7 @@
{
lib,
buildPythonPackage,
fetchpatch2,
fetchPypi,
pythonOlder,
importlib-metadata,
@ -30,8 +31,25 @@ buildPythonPackage rec {
hash = "sha256-mqCCUTnAKzQ02RNUXHuEeiHINeEVl/UlWELUV9ojIts=";
};
patches = [
# pkginfo>=1.11 compatibility patches
# https://github.com/pypa/twine/pull/1123
(fetchpatch2 {
name = "pkginfo-1_11-compatibility-test.patch";
url = "https://github.com/pypa/twine/commit/a3206073b87a8e939cf699777882ebfaced689a0.patch";
hash = "sha256-gLN7gJsVng/LFfsrAHjJlqFZTu0wSdeBfnUN+UnLSFk=";
})
(fetchpatch2 {
name = "pkginfo-1_11-compatibility-source.patch";
url = "https://github.com/pypa/twine/commit/03e3795659b44f263f527b0467680b238c8fbacc.patch";
hash = "sha256-Ne9+G8hMVbklKtcZLiBw29Skz5VO5x2F7yu/KozKgN8=";
})
];
nativeBuildInputs = [ setuptools-scm ];
pythonRelaxDeps = [ "pkginfo" ];
propagatedBuildInputs = [
importlib-metadata
keyring