1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-06-08 14:58:54 +02:00

gnu: python-rdflib-6: Update to 6.3.2.

* gnu/packages/rdf.scm (python-rdflib-6): Update to 6.3.2.
[build-system]: Use pyproject-build-system.
[arguments]: Use #:test-flags instead of a custom build phase; update list of
disabled tests.
[native-inputs]: Add python-poetry-core and python-pytest-cov.

Change-Id: I0dd4ecebdf3ef04562c3a3efb37614bf5eec16f5
This commit is contained in:
Ricardo Wurmus
2024-12-27 14:49:18 +01:00
parent 37e8eeaafb
commit 8fe30f2ac7
+19 -19
View File
@@ -364,33 +364,33 @@ powerful language for representing information.")
(define-public python-rdflib-6
(package
(name "python-rdflib")
(version "6.1.1")
(version "6.3.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rdflib" version))
(sha256
(base32
"0m7pyq771vl4zf9xd3pxjbg7x6ac97b3djfbv9qq9fch56ps1gwd"))))
(build-system python-build-system)
"1q122padnlmwm4slzpc90hz5bf2nj1d0rk3yxancmx04ywgmkbvj"))))
(build-system pyproject-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'adjust-tests
(lambda _
(for-each delete-file
'(;; This test needs a font that is not shipped.
"test/test_so_69984830.py"
;; These tests need internet access.
"test/jsonld/test_onedotone.py"
"test/test_sparql_service.py"
"test/test_graph.py"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "test/")))))))
(list
#:test-flags
;; This test needs a font that is not shipped.
'(list "--ignore=test/test_so_69984830.py"
;; These tests need internet access.
"--ignore=rdflib/extras/infixowl.py"
"--ignore=test/test_examples.py"
"--ignore=test/test_sparql/test_service.py"
"--ignore-glob=test/test_extras/test_infixowl/*.py"
"--ignore=test/jsonld/test_onedotone.py"
;; These tests use pip install
"--ignore=test/test_misc/test_plugins.py"
;; Unknown causes
"--ignore=rdflib/__init__.py"
"--ignore=test/test_misc/test_parse_file_guess_format.py")))
(native-inputs
(list python-pytest))
(list python-poetry-core python-pytest python-pytest-cov))
(propagated-inputs
(list python-html5lib python-isodate python-pyparsing))
(home-page "https://github.com/RDFLib/rdflib")