mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
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:
parent
fd75f17043
commit
92c4bedf07
1 changed files with 13 additions and 6 deletions
|
@ -138,21 +138,28 @@ (define-public graphviz-minimal
|
|||
(define-public python-graphviz
|
||||
(package
|
||||
(name "python-graphviz")
|
||||
(version "0.20.1")
|
||||
(version "0.20.3")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "graphviz" version ".zip"))
|
||||
(sha256
|
||||
(base32
|
||||
"1y1b956r01kg7qarkkrivhn71q64k0gbq6bcybd4gfd3v95g2n4c"))))
|
||||
"0pcjnnhprs1hb4r9jr7r4qjxc7lzsjlka8d5gcp3kym9ws0vrmh9"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
'(modify-phases %standard-phases
|
||||
(add-before 'check 'prepare-chec
|
||||
;; Needed for fontconfig cache directories
|
||||
(lambda _ (setenv "HOME" (getcwd)))))))
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'pathch-pytest-options
|
||||
(lambda _
|
||||
(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
|
||||
(list unzip
|
||||
;; For tests.
|
||||
|
|
Loading…
Reference in a new issue