summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-10-04 22:47:16 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-10-05 21:37:27 +0900
commit91e70b9c01c556ce37afec09bfe4c17d2cb8f892 (patch)
treebb6e01d59c82de0bbcf2d3cffcab5a76ab1c2916
parent4dccdcdd5ede900ddd9b45cef133440b7228fa70 (diff)
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 <dannym@scratchpost.org> Change-Id: I39e5b631d5fe751665a2e3a595327140de9ba2e9
-rw-r--r--gnu/packages/python-xyz.scm20
1 files changed, 19 insertions, 1 deletions
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