mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
python312Packages.twine: fix build with pkginfo>=1.11
This commit is contained in:
parent
2267d87290
commit
a157d02d69
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user