guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 91e70b9c01c556ce37afec09bfe4c17d2cb8f892
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Sat Oct 4 22:47:16 2025 +0900
gnu: python2-pycparser: Truly build a python2 package.
* gnu/packages/python-xyz.scm (python2-pycparser): Build from a base package
adjusted for compatibility with Python 2 and package-with-python2.
Reviewed-by: Danny Milosavljevic <[email protected]>
Change-Id: I39e5b631d5fe751665a2e3a595327140de9ba2e9
---
gnu/packages/python-xyz.scm | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 121bd70bd3..bf3b6fe47f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13627,7 +13627,25 @@ a front-end for C compilers or analysis tools.")
(license license:bsd-3)))
(define-public python2-pycparser
- (package-with-python2 python-pycparser))
+ (let ((base (package
+ (inherit python-pycparser)
+ (version "2.18")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pycparser" version))
+ (sha256
+ (base32
+ "09mjyw82ibqzl449g7swy8bfxnfpmas0815d2rkdjlcqw81wma4r"))))
+ ;; FIXME: package-with-python2 needs to be updated to accept
+ ;; pyproject-build-system packages.
+ (build-system python-build-system)
+ (arguments
+ (cons* #:tests? #f
+ (strip-keyword-arguments
+ '(#:test-backend)
+ (package-arguments python-pycparser)))))))
+ (package-with-python2 base)))
(define-public python-pywavelets
(package