Archived
1
0
Fork 0

gnu: python-rdflib: Update to 6.1.1.

* gnu/packages/rdf.scm (python-rdflib): Update to 6.1.1.
[arguments]: Remove #:tests.  Add #:phases.
[native-inputs]: Change from PYTHON-NOSE to PYTHON-PYTEST.
(python-rdflib-5): New variable.
(python2-rdflib): Inherit from PYTHON-RDFLIB-5.
* gnu/packages/python-xyz.scm (python-prov): Change from PYTHON-RDFLIB to
PYTHON-RDFLIB-5.
* gnu/packages/bioinformatics.scm (cwltool): Likewise.
This commit is contained in:
Marius Bakke 2022-01-18 17:10:28 +01:00
parent ce58adbb3b
commit 2a4c271e61
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA
3 changed files with 40 additions and 16 deletions

View file

@ -3018,7 +3018,7 @@ and record oriented data modeling and the Semantic Web.")
python-prov python-prov
python-pydot python-pydot
python-psutil python-psutil
python-rdflib python-rdflib-5
python-requests python-requests
python-ruamel.yaml python-ruamel.yaml
python-schema-salad python-schema-salad

View file

@ -19565,7 +19565,7 @@ multitouch applications.")
"1vi2fj31vygfcqrkimdmk52q2ldw08g9fn4v4zlgdfgcjlhqyhxn")))) "1vi2fj31vygfcqrkimdmk52q2ldw08g9fn4v4zlgdfgcjlhqyhxn"))))
(build-system python-build-system) (build-system python-build-system)
(propagated-inputs (propagated-inputs
(list python-dateutil python-lxml python-networkx python-rdflib)) (list python-dateutil python-lxml python-networkx python-rdflib-5))
(native-inputs (native-inputs
(list graphviz python-pydot)) (list graphviz python-pydot))
(home-page "https://github.com/trungdong/prov") (home-page "https://github.com/trungdong/prov")

View file

@ -7,6 +7,7 @@
;;; Copyright © 2020 Pjotr Prins <pjotr.guix@thebird.nl> ;;; Copyright © 2020 Pjotr Prins <pjotr.guix@thebird.nl>
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 pukkamustard <pukkamustard@posteo.net> ;;; Copyright © 2020 pukkamustard <pukkamustard@posteo.net>
;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -345,27 +346,33 @@ ideal (e.g. in LV2 implementations or embedded applications).")
(define-public python-rdflib (define-public python-rdflib
(package (package
(name "python-rdflib") (name "python-rdflib")
(version "4.2.2") (version "6.1.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "rdflib" version)) (uri (pypi-uri "rdflib" version))
(sha256 (sha256
(base32 (base32
"0398c714znnhaa2x7v51b269hk20iz073knq2mvmqp2ma92z27fs")))) "0m7pyq771vl4zf9xd3pxjbg7x6ac97b3djfbv9qq9fch56ps1gwd"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(;; FIXME: Three test failures. Should be fixed next release. '(#:phases
#:tests? #f)) (modify-phases %standard-phases
;; #:phases (add-after 'unpack 'adjust-tests
;; (modify-phases %standard-phases (lambda _
;; (replace 'check (for-each delete-file
;; (lambda _ '(;; This test needs a font that is not shipped.
;; ;; Run tests from the build directory so python3 only "test/test_so_69984830.py"
;; ;; sees the installed 2to3 version. ;; These tests need internet access.
;; (invoke "nosetests" "--where=./build/src")))))) "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/")))))))
(native-inputs (native-inputs
(list python-nose)) (list python-pytest))
(propagated-inputs (propagated-inputs
(list python-html5lib python-isodate python-pyparsing)) (list python-html5lib python-isodate python-pyparsing))
(home-page "https://github.com/RDFLib/rdflib") (home-page "https://github.com/RDFLib/rdflib")
@ -376,9 +383,26 @@ powerful language for representing information.")
(license (license:non-copyleft "file://LICENSE" (license (license:non-copyleft "file://LICENSE"
"See LICENSE in the distribution.")))) "See LICENSE in the distribution."))))
(define-public python2-rdflib (define-public python-rdflib-5
(package-with-python2 python-rdflib)) (package
(inherit python-rdflib)
(version "5.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rdflib" version))
(sha256
(base32
"0mdi7xh4zcr3ngqwlgqdqf0i5bxghwfddyxdng1zwpiqkpa9s53q"))))
;; XXX: Lazily disable tests because they require a lot of work
;; and this package is only transitional.
(arguments '(#:tests? #f))))
(define-public python2-rdflib
(package-with-python2 python-rdflib-5))
;; Note: This package is only needed for rdflib < 6.0; supersede when
;; the above are removed.
(define-public python-rdflib-jsonld (define-public python-rdflib-jsonld
(package (package
(name "python-rdflib-jsonld") (name "python-rdflib-jsonld")