From 293c68927fcb86f2f4f58defe64eb0fe5221b64c Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 26 Dec 2025 04:15:37 +0100 Subject: [PATCH] gnu: python2-pycparser: Move to (gnu packages pypy). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-xyz.scm (python2-pycparser): Move from here… * gnu/packages/pypy.scm (python2-pycparser): …to here. Change-Id: I368e7fc7c07dcba675c1f7524e7f68145252cf73 Signed-off-by: Sharlatan Hellseher --- gnu/packages/pypy.scm | 38 ++++++++++++++++++++++++++++++++++++- gnu/packages/python-xyz.scm | 37 ------------------------------------ 2 files changed, 37 insertions(+), 38 deletions(-) diff --git a/gnu/packages/pypy.scm b/gnu/packages/pypy.scm index 3f757b536c8..d1ae00aa79d 100644 --- a/gnu/packages/pypy.scm +++ b/gnu/packages/pypy.scm @@ -32,7 +32,6 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-build) - #:use-module (gnu packages python-xyz) #:use-module (gnu packages sqlite) #:use-module (gnu packages tcl) #:use-module (gnu packages tls) @@ -45,6 +44,43 @@ #:use-module (guix build-system pyproject) #:use-module (guix build-system python)) +(define-public python2-pycparser + (let ((base (package + (version "2.18") + (name "python-pycparser") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pycparser" version)) + (sha256 + (base32 + "09mjyw82ibqzl449g7swy8bfxnfpmas0815d2rkdjlcqw81wma4r")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (replace 'build + (lambda _ + (invoke "python" "setup.py" "build"))) + (replace 'install + (lambda _ + (invoke "python" "./setup.py" "install" + (string-append "--prefix=" #$output) + "--no-compile") + (invoke "python" "-m" "compileall" #$output)))))) + (home-page "https://github.com/eliben/pycparser") + (synopsis "C parser in Python") + (description + "Pycparser is a complete parser of the C language, written in +pure Python using the PLY parsing library. It parses C code into an AST and +can serve as a front-end for C compilers or analysis tools.") + (license license:bsd-3)))) + (package + (inherit (package-with-python2 base)) + (native-inputs (list python-setuptools))))) + (define-public python2-cffi (let ((base (package (name "python-cffi") diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e5f460186d3..65a68d64da4 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -41805,43 +41805,6 @@ you do not want to store entirely on disk or on memory.") (arguments `(#:configure-flags '("PYTHON_VERSION=2"))))) -(define-public python2-pycparser - (let ((base (package - (version "2.18") - (name "python-pycparser") - (source - (origin - (method url-fetch) - (uri (pypi-uri "pycparser" version)) - (sha256 - (base32 - "09mjyw82ibqzl449g7swy8bfxnfpmas0815d2rkdjlcqw81wma4r")))) - (build-system pyproject-build-system) - (arguments - (list - #:tests? #f - #:phases - #~(modify-phases %standard-phases - (replace 'build - (lambda _ - (invoke "python" "setup.py" "build"))) - (replace 'install - (lambda _ - (invoke "python" "./setup.py" "install" - (string-append "--prefix=" #$output) - "--no-compile") - (invoke "python" "-m" "compileall" #$output)))))) - (home-page "https://github.com/eliben/pycparser") - (synopsis "C parser in Python") - (description - "Pycparser is a complete parser of the C language, written in -pure Python using the PLY parsing library. It parses C code into an AST and -can serve as a front-end for C compilers or analysis tools.") - (license license:bsd-3)))) - (package - (inherit (package-with-python2 base)) - (native-inputs (list python-setuptools))))) - (define-public shrinkwrap (package (name "shrinkwrap")