mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
gnu: python-automat: Update to 24.8.1.
* gnu/packages/python-xyz.scm (python-automat): Update to 24.8.1. [arguments]: Enable tests; adjust 'remove-entrypoint. [native-inputs]: Add python-pytest; remove python-graphviz. [propagated-inputs]: Add python-graphviz and python-typing-extensions; remove python-six and python-attrs. Change-Id: Ic77e57da21590435ecfde8d9921ce6ec36576d67
This commit is contained in:
parent
7cda2a6631
commit
6cd83dd0bd
1 changed files with 16 additions and 19 deletions
|
@ -25405,34 +25405,31 @@ (define-public python-invoke
|
||||||
(define-public python-automat
|
(define-public python-automat
|
||||||
(package
|
(package
|
||||||
(name "python-automat")
|
(name "python-automat")
|
||||||
(version "22.10.0")
|
(version "24.8.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "Automat" version))
|
(uri (pypi-uri "Automat" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0kmh9fwb6rkh8r5bi5jyxysywpgpjnwdks1h3p0xq6ddxn2fnsz5"))))
|
"123d63k8wg9pfv9j7hr0kd1kw23m0rwdx7irsa55ncpncg7jfhmk"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
;; We disable the tests because they require python-twisted, while
|
|
||||||
;; 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
|
(arguments
|
||||||
`(#:tests? #f
|
(list
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
;; Remove script, because it depends on python-twisted.
|
(replace 'check
|
||||||
(add-after 'unpack 'remove-entrypoint
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
(lambda _
|
(with-directory-excursion #$output
|
||||||
(substitute* "setup.py"
|
(apply invoke "pytest" "-vv" test-flags))))
|
||||||
(("\"automat-visualize = automat._visualize:tool\"") "")))))))
|
;; Remove script, because it depends on python-twisted.
|
||||||
|
(add-after 'unpack 'remove-entrypoint
|
||||||
|
(lambda _
|
||||||
|
(substitute* "pyproject.toml"
|
||||||
|
(("automat-visualize = \"automat._visualize:tool\"") "")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-graphviz
|
(list python-pytest python-setuptools python-setuptools-scm python-wheel))
|
||||||
python-setuptools
|
|
||||||
python-setuptools-scm
|
|
||||||
python-wheel))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-six python-attrs))
|
(list python-graphviz python-typing-extensions))
|
||||||
(home-page "https://github.com/glyph/Automat")
|
(home-page "https://github.com/glyph/Automat")
|
||||||
(synopsis "Self-service finite-state machines")
|
(synopsis "Self-service finite-state machines")
|
||||||
(description "Automat is a library for concise, idiomatic Python
|
(description "Automat is a library for concise, idiomatic Python
|
||||||
|
|
Loading…
Reference in a new issue