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 <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-12-26 04:15:37 +01:00 committed by Andreas Enge
parent 15ce7c480a
commit 293c68927f
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3
2 changed files with 37 additions and 38 deletions

View file

@ -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")

View file

@ -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")