guix-commits
[Top][All Lists]
Advanced

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

32/103: gnu: python-urwidtrees: Remove dependency on mock.


From: guix-commits
Subject: 32/103: gnu: python-urwidtrees: Remove dependency on mock.
Date: Wed, 5 Jan 2022 09:44:31 -0500 (EST)

lbraun pushed a commit to branch wip-python-pep517
in repository guix.

commit c75b342e0517b488b4e2cb04c95c7447f0d7be5c
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Wed Dec 29 09:45:58 2021 +0100

    gnu: python-urwidtrees: Remove dependency on mock.
    
    Not used during runtime.
    
    * gnu/packages/python-xyz.scm (python-urwidtrees)[arguments]: Add new
    phase 'remove-mock-runtime-dependency.
---
 gnu/packages/python-xyz.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 942d8db51a..9fd5968a67 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8768,7 +8768,14 @@ distance between two or more sequences by many 
algorithms.")
            "1y1vysx7jg0vbrarlsykhf7nmr8fc6k1fva1q3i98xq2m30s6r68"))))
     (build-system python-build-system)
     (arguments
-     '(#:tests? #f)) ; no tests
+     '(#:tests? #f ; no tests
+       #:phases
+       (modify-phases %standard-phases
+         ;; mock is a false runtime dependency and can be removed.
+         (add-after 'unpack 'remove-mock-runtime-dependency
+           (lambda _
+             (substitute* "setup.py"
+               (("'mock',?") "")))))))
     (propagated-inputs (list python-urwid))
     (home-page "https://github.com/pazz/urwidtrees";)
     (synopsis "Tree widgets for urwid")



reply via email to

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