diff options
author | Efraim Flashner | 2023-03-20 11:53:10 +0200 |
---|---|---|
committer | Efraim Flashner | 2023-03-20 11:53:10 +0200 |
commit | a8d322cecae7d53f0d62c38bc1912323c66fb09d (patch) | |
tree | bb8f6fa48756e01e30d9f2444a9afc20fc226fdb /gn/packages | |
parent | b179e31d8081683d4bb55cbc926684bbed9cb53c (diff) | |
download | guix-bioinformatics-a8d322cecae7d53f0d62c38bc1912323c66fb09d.tar.gz |
Add python-rdflib-shim.
* gn/packages/python.scm (python-rdflib-shim): New variable.
(python-rdflib-jsonld-0.6.1): New variable.
Diffstat (limited to 'gn/packages')
-rw-r--r-- | gn/packages/python.scm | 51 |
1 files changed, 51 insertions, 0 deletions
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))) |