From a8d322cecae7d53f0d62c38bc1912323c66fb09d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 20 Mar 2023 11:53:10 +0200 Subject: Add python-rdflib-shim. * gn/packages/python.scm (python-rdflib-shim): New variable. (python-rdflib-jsonld-0.6.1): New variable. --- gn/packages/python.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'gn/packages/python.scm') diff --git a/gn/packages/python.scm b/gn/packages/python.scm index a2f8157..c3523e1 100644 --- a/gn/packages/python.scm +++ b/gn/packages/python.scm @@ -1692,3 +1692,54 @@ file format spec.") (license:fsf-free (string-append "https://web.archive.org/web/20190211105114/" "http://www.repoze.org/LICENSE.txt"))))) +(define-public python-rdflib-shim + (package + (name "python-rdflib-shim") + (version "1.0.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "rdflib_shim" version)) + (sha256 + (base32 + "03gwsjcinbyyqrhs2jfhs6mr7j69dfn5djihd0mv9al654gd2mfr")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "unittest" "discover" "-s" "tests"))))))) + (propagated-inputs + (list python-rdflib python-rdflib-jsonld-0.6.1)) + (native-inputs + (list python-pbr)) + (home-page "http://hsolbrig.github.io/rdflib-shim") + (synopsis "Shim for rdflib 5 and 6 incompatibilities") + (description "Shim for rdflib 5 and 6 incompatibilities") + (license license:cc0))) + +;; Don't inherit from python-rdflib-jsonld, that package is scheduled to be removed. +(define python-rdflib-jsonld-0.6.1 + (package + (name "python-rdflib-jsonld") + (version "0.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rdflib-jsonld" version)) + (sha256 + (base32 "1q50h89zppdwnzk425cg6rsz5kdwhk3baclflx6hvy095qma99gd")))) + (build-system python-build-system) + (arguments + (list #:tests? #f)) + (native-inputs + (list python-nose)) + (propagated-inputs + (list python-rdflib)) + (home-page "https://github.com/RDFLib/rdflib-jsonld") + (synopsis "rdflib extension adding JSON-LD parser and serializer") + (description "This package provides an rdflib extension adding JSON-LD +parser and serializer.") + (license license:bsd-3))) -- cgit v1.2.3