summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-26 04:15:37 +0100
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:22:44 +0100
commit58b25cc90b83177ef81fac7afdd23ab4359162a9 (patch)
tree7ccea84838a3af1b879c963ea7488441fd1023af /gnu
parentdc540ecc371bf614da9b2de6108497f34c07a6fc (diff)
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> Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/pypy.scm38
-rw-r--r--gnu/packages/python-xyz.scm37
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")