aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorEfraim Flashner2023-03-22 15:10:20 +0200
committerEfraim Flashner2023-03-22 15:11:54 +0200
commit01c7c3152c93de92b954465cd82e197c80a03450 (patch)
tree38caaf449827932cd0d5c7907d9e7e932def94ad /gn
parenta66e0cbedda4927d9546829e162d08d03bb667da (diff)
downloadguix-bioinformatics-01c7c3152c93de92b954465cd82e197c80a03450.tar.gz
python-rdflib-shim: Build with upstream python-rdflib-jsonld.
* gn/packages/python.scm (python-rdflib-shim)[source]: Add snippet to use any version of python-rdflib-jsonld. [propagated-inputs]: Replace python-rdflib-jsonld-0.6.1 with python-rdflib-jsonld. (python-rdflib-jsonld-0.6.1): Remove variable.
Diffstat (limited to 'gn')
-rw-r--r--gn/packages/python.scm33
1 files changed, 7 insertions, 26 deletions
diff --git a/gn/packages/python.scm b/gn/packages/python.scm
index 169fac7..2c7ca86 100644
--- a/gn/packages/python.scm
+++ b/gn/packages/python.scm
@@ -1822,7 +1822,12 @@ file format spec.")
(uri (pypi-uri "rdflib_shim" version))
(sha256
(base32
- "03gwsjcinbyyqrhs2jfhs6mr7j69dfn5djihd0mv9al654gd2mfr"))))
+ "03gwsjcinbyyqrhs2jfhs6mr7j69dfn5djihd0mv9al654gd2mfr"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (substitute* "requirements.txt"
+ (("rdflib-jsonld==0.6.1") "rdflib-jsonld"))))))
(build-system python-build-system)
(arguments
'(#:phases
@@ -1833,34 +1838,10 @@ file format spec.")
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "unittest" "discover" "-s" "tests")))))))
(propagated-inputs
- (list python-rdflib python-rdflib-jsonld-0.6.1))
+ (list python-rdflib python-rdflib-jsonld))
(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)))