1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-13 10:30:43 +02:00

gnu: python-honcho: Update to 2.0.0.

* gnu/packages/python-xyz.scm (python-honcho): Update to 2.0.0.
[build-system]: Use pyproject-build-system.
[arguments]: Delete the custom 'check' phase. Skip tests in
'#:test-flags' instead.
[native-inputs]: Remove python-tox, which. Add python-jinja2,
python-setuptools, python-wheel.
[propagated-inputs]: Remove python-jinja2. Add python-colorama.

Change-Id: I3d39e0324f2ed852b3e79ce4c41a80816ad758fb
This commit is contained in:
Vinicius Monego 2025-06-25 21:28:34 -03:00
parent e02d418f5c
commit c241a5e50b
No known key found for this signature in database
GPG key ID: 637B0B138065B68A

View file

@ -13293,7 +13293,7 @@ cluster without needing to write any wrapper code yourself.")
(define-public python-honcho (define-public python-honcho
(package (package
(name "python-honcho") (name "python-honcho")
(version "1.1.0") (version "2.0.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -13302,27 +13302,22 @@ cluster without needing to write any wrapper code yourself.")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1y0r8dw4pqcq7r4n58ixjdg1iy60lp0gxsd7d2jmhals16ij71rj")))) (base32 "0hdp4cr6imxrlyg9x9xj5r6qdmgi63ffvmqjrr1kjs3qapan6s4l"))))
(build-system python-build-system) (build-system pyproject-build-system)
(native-inputs
(list python-pytest python-mock python-tox which)) ;for tests
(propagated-inputs
(list python-jinja2))
(arguments (arguments
`(#:phases ;; Tests below fail with the error
(modify-phases %standard-phases ;; ValueError: The 'honcho.export.xxx' package was not installed
(delete 'check) ;; in a way that PackageLoader understands.
(add-after 'install 'check ;; Probably safe because it's testing for different init systems.
(lambda* (#:key outputs inputs #:allow-other-keys) (list #:test-flags #~(list "--ignore" "tests/integration/test_export.py"
;; fix honcho path in testsuite "--ignore" "tests/test_export_runit.py"
(substitute* "tests/conftest.py" "--ignore" "tests/test_export_supervisord.py"
(("'honcho'") (string-append "'" (assoc-ref outputs "out") "--ignore" "tests/test_export_systemd.py"
"/bin/honcho" "'"))) "--ignore" "tests/test_export_upstart.py")))
;; It's easier to run tests after install. (native-inputs
;; Make installed package available for running the tests (list python-jinja2 python-mock python-pytest python-setuptools python-wheel))
(add-installed-pythonpath inputs outputs) (propagated-inputs
;; Skip failing test_export (list python-colorama))
(invoke "py.test" "-v" "-k" "not test_export"))))))
(home-page "https://github.com/nickstenning/honcho") (home-page "https://github.com/nickstenning/honcho")
(synopsis "Manage Procfile-based applications") (synopsis "Manage Procfile-based applications")
(description (description