guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 7806383af2c610e39a25a1b8bb342903806f806d
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Sat Oct 4 23:08:21 2025 +0200
gnu: python-prov: Update to 2.1.1.
* gnu/packages/python-xyz.scm (python-prov): Update to 2.1.1.
[source] <origin>: Switch to git-fetch.
[arguments] <#:phases>: Remove 'check phase, add 'disable-tests phase.
<#:test-backend>: Use unittest.
<#:test-flags>: Move flags from old 'check phase here.
[propagated-inputs]: Remove python-rdflib-6; add python-pydot, graphviz,
and python-rdflib.
[native-inputs]: Remove graphviz, python-pydot, and python-wheel.
Change-Id: I1dedb6b6f4394cdf14cdd496aa74e3390e48727d
Co-authored-by: Ghislain Vaillant <[email protected]>
Modified-by: Sharlatan Hellseher <[email protected]>
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 45 +++++++++++++++++++++++++++------------------
1 file changed, 27 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3c73f344c8..5585a24291 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27114,33 +27114,42 @@ in pure Python.")
(define-public python-prov
(package
(name "python-prov")
- (version "2.0.1")
+ (version "2.1.1")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "prov" version))
- (sha256
- (base32
- "0zv1lllrm8ck0vnb5ym7s3cvyykg7pbvdcrrpmr5r9fi0la8q8qf"))))
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/trungdong/prov")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "14y58x4gqc4lyhgy6iamzxamwj02sqf2bkma6p5ddiqsnilc4wx7"))))
(build-system pyproject-build-system)
(arguments
(list
+ #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "-s" "src")
#:phases
#~(modify-phases %standard-phases
- (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))
+ (add-before 'check 'disable-tests
+ (lambda _
+ ;; prov.model.ProvException: The provided identifier
+ ;; "http://www.example.org/bundle" is not valid
+ (substitute* "src/prov/tests/qnames.py"
+ (("test_namespace_inheritance")
+ "disabled_test_namespace_inheritance")
+ (("test_default_namespace_inheritance")
+ "disabled_test_default_namespace_inheritance")))))))
(native-inputs
+ (list python-setuptools))
+ (propagated-inputs
(list graphviz
+ python-dateutil
+ python-networkx
python-pydot
- python-setuptools
- python-wheel))
+ ;; optional dependencies, also needed for tests
+ python-lxml
+ python-rdflib))
(home-page "https://github.com/trungdong/prov")
(synopsis
"W3C Provenance Data Model supporting PROV-JSON, PROV-XML and PROV-O
(RDF)")