1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-21 16:45:58 +02:00

gnu: python-prov: Update to 2.0.1.

* gnu/packages/python-xyz.scm (python-prov): Update to 2.0.1.
[build-system]: Use pyproject-build-system.
[arguments]: Remove 'fix-rdflib-6-compatibility phase; add custom 'check
phase.
[native-inputs]: Add python-setuptools and python-wheel.

Change-Id: Ia5e0ed1ee6e9476f317b345234018f2391cc3e98
This commit is contained in:
Ricardo Wurmus
2024-12-27 22:19:40 +01:00
parent 6a445656d0
commit d0b948ac2f
+15 -11
View File
@@ -26369,29 +26369,33 @@ in pure Python.")
(define-public python-prov
(package
(name "python-prov")
(version "2.0.0")
(version "2.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "prov" version))
(sha256
(base32
"1vi2fj31vygfcqrkimdmk52q2ldw08g9fn4v4zlgdfgcjlhqyhxn"))))
(build-system python-build-system)
"0zv1lllrm8ck0vnb5ym7s3cvyykg7pbvdcrrpmr5r9fi0la8q8qf"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-rdflib-6-compatibility
(lambda _
;; See https://github.com/trungdong/prov/issues/151
(substitute* "src/prov/tests/test_rdf.py"
(("\\.serialize\\(format=\"nt\"\\)")
".serialize(format=\"nt\", encoding=\"utf-8\")")))))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "setup.py" "test")))))))
(propagated-inputs
(list python-dateutil python-lxml python-networkx python-rdflib-6))
(list python-dateutil
python-lxml
python-networkx
python-rdflib-6))
(native-inputs
(list graphviz python-pydot))
(list graphviz
python-pydot
python-setuptools
python-wheel))
(home-page "https://github.com/trungdong/prov")
(synopsis
"W3C Provenance Data Model supporting PROV-JSON, PROV-XML and PROV-O (RDF)")