lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit db4b04619ce5d8c33c64c021a9bc14ebe9632ef9
Author: Lars-Dominik Braun <[email protected]>
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 821b25ebd3..b7f2d8f84e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9205,7 +9205,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))
(native-inputs (list python-mock))
(home-page "https://github.com/pazz/urwidtrees")