gnu: python-automat: Remove broken console script.

* gnu/packages/python-xyz.scm (python-automat) [arguments]: Patch
setup.py.
This commit is contained in:
Lars-Dominik Braun 2021-01-07 14:15:12 +01:00 committed by Maxim Cournoyer
parent 0868479d08
commit e97e6c05cd
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -15073,7 +15073,15 @@ (define-public python-automat
;; 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)