gnu: python-pydot: Update to 4.0.1.

* gnu/packages/graphviz.scm (python-pydot): Update to 4.0.1.
  [build-system]: Use pyproject.
  [arguments] <phases>: Use default 'check.
  [propagated-inputs]: Remove python-pyparsing-2.4.7; add
  python-pyparsing.
  [native-inputs]: Add python-parameterized, python-pytest,
  python-pytest-xdist, and python-setuptools.

Change-Id: I5f192b2b83ea38ad09921131629f85e2e3207d66
This commit is contained in:
Sharlatan Hellseher 2025-08-08 13:39:08 +01:00
parent 716e4f3a99
commit 3a25a22bb5
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -395,32 +395,24 @@ can be used either as a standalone application, or as a Python library.")
(define-public python-pydot
(package
(name "python-pydot")
(version "1.4.2")
(version "4.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "pydot" version))
(sha256
(base32
"0z80zwldf7ffkwrpm28hixsiqp3053j7g281xd6phmnbkfiq3014"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
;; Taken from .travis.yaml
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(with-directory-excursion "test"
(invoke "python" "pydot_unittest.py"))))))))
"1maa6rvnbs1cyfc801ia1qpai6a0irgrwsp2y25y0csa3il8y562"))))
(build-system pyproject-build-system)
(native-inputs
;; For tests.
(list graphviz python-chardet))
(list graphviz
python-chardet
python-parameterized
python-pytest
python-pytest-xdist
python-setuptools))
(propagated-inputs
;; XXX: Two test failures with 3.0+:
;; https://github.com/pydot/pydot/issues/277
(list python-pyparsing-2.4.7))
(list python-pyparsing))
(home-page "https://github.com/pydot/pydot")
(synopsis "Python interface to Graphviz's DOT language")
(description