guix_mirror_bot pushed a commit to branch next-master
in repository guix.

commit bdc4419841bdb4ef20937d710f02f08d8a5b4a6c
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Dec 26 04:15:37 2025 +0100

    gnu: python2-pycparser: Move to (gnu packages pypy).
    
    * 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 <[email protected]>
---
 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 3f757b536c..d1ae00aa79 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 dec8c37842..f61abc6773 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -41759,43 +41759,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")

Reply via email to