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: Mon, 1 Feb 2021 11:56:34 -0500 (EST)

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

commit e97e6c05cd1d1aecb8f7bc251d8487ed056bcc81
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 0e9ee02..b565837 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]