~ruther/guix-local

91e70b9c01c556ce37afec09bfe4c17d2cb8f892 — Maxim Cournoyer 4 months ago 4dccdcd
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
1 files changed, 19 insertions(+), 1 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +19 -1
@@ 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