guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

24/51: gnu: python2-importlib-resources: Drop 'wheel' dependency.


From: guix-commits
Subject: 24/51: gnu: python2-importlib-resources: Drop 'wheel' dependency.
Date: Fri, 24 Jan 2020 14:48:17 -0500 (EST)

mbakke pushed a commit to branch core-updates
in repository guix.

commit 5e7202bbdf407470bbb72cf0a74dea6961c2507a
Author: Marius Bakke <address@hidden>
AuthorDate: Wed Jan 15 23:23:00 2020 +0100

    gnu: python2-importlib-resources: Drop 'wheel' dependency.
    
    * gnu/packages/python-xyz.scm (python2-importlib-resources)[native-inputs]:
    Remove.
    [arguments]: Add #:phases.
---
 gnu/packages/python-xyz.scm | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d9b17fc..e44696e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4983,9 +4983,17 @@ older Python versions.")
                 "0y3hg12iby1qyaspnbisz4s4vxax7syikk3skznwqizqyv89y9yk"))))
     (build-system python-build-system)
     (arguments
-     `(#:python ,python-2))
-    (native-inputs
-     `(("python-wheel" ,python2-wheel)))
+     `(#:python ,python-2
+       #:phases (modify-phases %standard-phases
+                  ;; The build system tests for python-wheel, but it is
+                  ;; not required for Guix nor the test suite.  Just drop
+                  ;; it to make bootstrapping pytest easier.
+                  (add-after 'unpack 'drop-wheel-dependency
+                    (lambda _
+                      (substitute* "setup.cfg"
+                        (("^[[:blank:]]+wheel")
+                         ""))
+                      #t)))))
     (propagated-inputs
      `(("python-pathlib2" ,python2-pathlib2)
        ("python-typing" ,python2-typing)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]