From ddc3140a998c002f9d20e12ccca1c65127d4626b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 19:37:54 +0100 Subject: [PATCH] gpgme: add python3.13 support --- pkgs/development/libraries/gpgme/default.nix | 2 ++ .../libraries/gpgme/python313-support.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/development/libraries/gpgme/python313-support.patch diff --git a/pkgs/development/libraries/gpgme/default.nix b/pkgs/development/libraries/gpgme/default.nix index 45df332bc0caf..d9b2f9cdb1821 100644 --- a/pkgs/development/libraries/gpgme/default.nix +++ b/pkgs/development/libraries/gpgme/default.nix @@ -43,6 +43,8 @@ stdenv.mkDerivation rec { patches = [ # Support Python 3.10-3.12, remove distutils, https://dev.gnupg.org/D545 ./python-310-312-remove-distutils.patch + # Support Python 3.13 + ./python313-support.patch # Fix a test after disallowing compressed signatures in gpg (PR #180336) ./test_t-verify_double-plaintext.patch # Don't use deprecated LFS64 APIs (removed in musl 1.2.4) diff --git a/pkgs/development/libraries/gpgme/python313-support.patch b/pkgs/development/libraries/gpgme/python313-support.patch new file mode 100644 index 0000000000000..0ddfca9a0ded8 --- /dev/null +++ b/pkgs/development/libraries/gpgme/python313-support.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index ae4c7da0..9a0401aa 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -591,7 +591,7 @@ if test "$found_py" = "1"; then + # Reset everything, so that we can look for another Python. + m4_foreach([mym4pythonver], + [[2.7],[3.4],[3.5],[3.6],[3.7],[3.8],[3.9],[3.10], +- [3.11],[3.12],[all]], ++ [3.11],[3.12],[3.13],[all]], + [unset PYTHON + unset PYTHON_VERSION + unset PYTHON_CPPFLAGS