summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSughosha <sughosha@disroot.org>2026-05-12 08:12:49 +0530
committerAndreas Enge <andreas@enge.fr>2026-06-23 14:11:19 +0200
commite882580d7e94dace979cb97d04f720f864f434ca (patch)
tree6c828ebb813188e82f69f4e5806ed797f4727073
parentb5ff0df0e9d930a2d1ecb1bee41c9d4f27ee1fd3 (diff)
gnu: python-gpg: Update to 2.0.0.
* gnu/packages/gnupg.scm (python-gpg): Update to 2.0.0. [source]<patches>: Remove the patch. [arguments]<#:phases>: Remove 'set-environment phase. Add 'patch-setup.py phase. [inputs]: Remove gpgme; add gpgme-2 and libgpg-error. * gnu/packages/patches/python-gpg-setup-72.patch: Remove file. * gnu/local.mk: Deregister it. Fixes: guix/guix#2807 Merges guix/guix!8544 Change-Id: Ie926eed78500880420238272d42beb32333e5de7 Signed-off-by: Cayetano Santos <csantosb@inventati.org>
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/gnupg.scm18
-rw-r--r--gnu/packages/patches/python-gpg-setup-72.patch22
3 files changed, 12 insertions, 29 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 3cf3da283c0..46a05ff6209 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2124,7 +2124,6 @@ dist_patch_DATA = \
2124 %D%/packages/patches/python-clarabel-blas.patch \ 2124 %D%/packages/patches/python-clarabel-blas.patch \
2125 %D%/packages/patches/python-daemon-relax-lockfile.patch \ 2125 %D%/packages/patches/python-daemon-relax-lockfile.patch \
2126 %D%/packages/patches/python-docrepr-fix-tests.patch \ 2126 %D%/packages/patches/python-docrepr-fix-tests.patch \
2127 %D%/packages/patches/python-gpg-setup-72.patch \
2128 %D%/packages/patches/python-hdmedians-replace-nose.patch \ 2127 %D%/packages/patches/python-hdmedians-replace-nose.patch \
2129 %D%/packages/patches/python-holodeck-cython-3-compat.patch \ 2128 %D%/packages/patches/python-holodeck-cython-3-compat.patch \
2130 %D%/packages/patches/python-jinja2-fragments-modify-conftest-py.patch \ 2129 %D%/packages/patches/python-jinja2-fragments-modify-conftest-py.patch \
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index a08238ee427..10289c7dee6 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -634,21 +634,20 @@ interface (FFI) of Guile.")
634(define-public python-gpg 634(define-public python-gpg
635 (package 635 (package
636 (name "python-gpg") 636 (name "python-gpg")
637 (version "1.10.0") 637 (version "2.0.0")
638 (source (origin 638 (source (origin
639 (method url-fetch) 639 (method url-fetch)
640 (uri (pypi-uri "gpg" version)) 640 (uri (pypi-uri "gpg" version))
641 (patches (search-patches "python-gpg-setup-72.patch"))
642 (sha256 641 (sha256
643 (base32 642 (base32
644 "1ji3ynhp36m1ccx7bmaq75dhij9frpn19v9mpi4aajn8csl194il")))) 643 "0f2l0iyc8gp49i604c5wpliaa1dsyj0i0p9xc9zfj4z7fwaavdsf"))))
645 (build-system pyproject-build-system) 644 (build-system pyproject-build-system)
646 (arguments 645 (arguments
647 (list 646 (list
648 #:tests? #f ; No test suite. 647 #:tests? #f ; No test suite.
649 #:phases 648 #:phases
650 #~(modify-phases %standard-phases 649 #~(modify-phases %standard-phases
651 (add-before 'build 'set-environment 650 (add-before 'build 'patch-setup.py
652 (lambda _ 651 (lambda _
653 ;; GPGME is built with large file support, so we need to set 652 ;; GPGME is built with large file support, so we need to set
654 ;; _FILE_OFFSET_BITS to 64 in all users of the GPGME library. 653 ;; _FILE_OFFSET_BITS to 64 in all users of the GPGME library.
@@ -658,9 +657,16 @@ interface (FFI) of Guile.")
658 "extra_macros = { \"_FILE_OFFSET_BITS\": 64 }"))) 657 "extra_macros = { \"_FILE_OFFSET_BITS\": 64 }")))
659 #~()) 658 #~())
660 (substitute* "setup.py" 659 (substitute* "setup.py"
661 (("cc") (which "gcc")))))))) 660 (("cc") (which "gcc"))
661 (("\\/usr\\/lib\\/x86_64-linux-gnu( -lgpg-error)" _ keep)
662 (string-append #$(this-package-input "libgpg-error") "/lib"
663 keep))
664 (("\\/usr\\/lib\\/x86_64-linux-gnu( -lgpgme)" _ keep)
665 (string-append #$(this-package-input "gpgme") "/lib" keep))
666 (("\\/usr\\/local(', 'include', 'gpgme\\.h')" _ keep)
667 (string-append #$(this-package-input "gpgme") keep))))))))
662 (inputs 668 (inputs
663 (list gpgme)) 669 (list gpgme-2 libgpg-error))
664 (native-inputs 670 (native-inputs
665 (list swig-4.0 python-setuptools)) 671 (list swig-4.0 python-setuptools))
666 (home-page (package-home-page gpgme)) 672 (home-page (package-home-page gpgme))
diff --git a/gnu/packages/patches/python-gpg-setup-72.patch b/gnu/packages/patches/python-gpg-setup-72.patch
deleted file mode 100644
index af1699bc355..00000000000
--- a/gnu/packages/patches/python-gpg-setup-72.patch
+++ /dev/null
@@ -1,22 +0,0 @@
1Inspired by
2https://github.com/gentoo/gentoo/commit/2ad1ddf9b8b0e0b1f91fc3dd9412ad2f9c1346c3
3see also
4https://dev.gnupg.org/rMecd0c86d62351d267bdc9566286c532a394c711b
5Gemeinsame Unterverzeichnisse: gpg-1.10.0.alt/examples und gpg-1.10.0/examples.
6Gemeinsame Unterverzeichnisse: gpg-1.10.0.alt/gpg und gpg-1.10.0/gpg.
7diff -u gpg-1.10.0.alt/setup.py gpg-1.10.0/setup.py
8--- gpg-1.10.0.alt/setup.py 2025-12-13 21:18:02.595203761 +0100
9+++ gpg-1.10.0/setup.py 2025-12-13 21:19:42.624197460 +0100
10@@ -220,9 +220,9 @@
11 def run(self):
12 self._generate()
13
14- swig_sources.extend((self._in_build_base('gpgme.i'), self._in_build_base('helpers.c')))
15- swig_opts.extend(['-I' + self.build_base,
16- '-outdir', os.path.join(self.build_lib, 'gpg')])
17+ swige.sources.extend((self._in_build_base('gpgme.i'), self._in_build_base('helpers.c')))
18+ swige.swig_opts.extend(['-I' + self.build_base,
19+ '-outdir', os.path.join(self.build_lib, 'gpg')])
20 include_dirs.insert(0, self.build_base)
21
22 self.run_command('build_ext')