gnu: python-graphviz: Update to 0.20.3.

* gnu/packages/graphviz.scm (python-graphviz): Update to 0.20.3.
[arguments]<phases>: Remove 'prepare-chec phase. Add
'patch-pytest-options phase. Use custom 'check phase.

Change-Id: I8ebd1277e9b53b3ad267f567c449e6efc01b0653
This commit is contained in:
Sharlatan Hellseher 2024-11-17 21:26:59 +00:00
parent fd75f17043
commit 92c4bedf07
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -138,21 +138,28 @@ (define-public graphviz-minimal
(define-public python-graphviz (define-public python-graphviz
(package (package
(name "python-graphviz") (name "python-graphviz")
(version "0.20.1") (version "0.20.3")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "graphviz" version ".zip")) (uri (pypi-uri "graphviz" version ".zip"))
(sha256 (sha256
(base32 (base32
"1y1b956r01kg7qarkkrivhn71q64k0gbq6bcybd4gfd3v95g2n4c")))) "0pcjnnhprs1hb4r9jr7r4qjxc7lzsjlka8d5gcp3kym9ws0vrmh9"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:phases #:phases
'(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-before 'check 'prepare-chec (add-after 'unpack 'pathch-pytest-options
;; Needed for fontconfig cache directories (lambda _
(lambda _ (setenv "HOME" (getcwd))))))) (substitute* "setup.cfg"
((".*doctest.*") "")
(("--cov.*") ""))))
(replace 'check
(lambda* (#:key tests? test-flags #:allow-other-keys)
(when tests?
(setenv "HOME" "/tmp")
(apply invoke "python" "run-tests.py" test-flags)))))))
(native-inputs (native-inputs
(list unzip (list unzip
;; For tests. ;; For tests.