guix-commits
[Top][All Lists]
Advanced

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

17/131: gnu: python-automat: Remove broken console script.


From: guix-commits
Subject: 17/131: gnu: python-automat: Remove broken console script.
Date: Fri, 29 Jan 2021 09:21:46 -0500 (EST)

apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.

commit f3571b0c852c66d40abffb45caa38c36a72508af
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Thu Jan 7 14:15:12 2021 +0100

    gnu: python-automat: Remove broken console script.
    
    * gnu/packages/python-xyz.scm (python-automat) [arguments]: Patch
    setup.py.
---
 gnu/packages/python-xyz.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e5003d5..9fb76db 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15073,7 +15073,15 @@ instead of servers and network commands.")
     ;; python-twisted depends on python-automat.  Twisted is optional, but the
     ;; tests fail if it is not available.  Also see
     ;; <https://github.com/glyph/automat/issues/71>.
-    (arguments '(#:tests? #f))
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         ;; Remove script, because it depends on python-twisted.
+         (add-after 'unpack 'remove-entrypoint
+           (lambda _
+             (substitute* "setup.py"
+               (("\"automat-visualize = automat._visualize:tool\"") "")))))))
     (native-inputs
      `(("python-m2r" ,python-m2r)
        ("python-setuptools-scm" ,python-setuptools-scm)



reply via email to

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