aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner2023-03-20 11:53:53 +0200
committerEfraim Flashner2023-03-20 11:53:53 +0200
commit4299f3fa622669532526f75e4f4c9014103a7956 (patch)
treebafd4166d49e90a9e1b562b4880a9d7478ae5da9
parenta8d322cecae7d53f0d62c38bc1912323c66fb09d (diff)
downloadguix-bioinformatics-4299f3fa622669532526f75e4f4c9014103a7956.tar.gz
Add python-sparqlslurper.
* gn/packages/python.scm (python-sparqlslurper): New variable.
-rw-r--r--gn/packages/python.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gn/packages/python.scm b/gn/packages/python.scm
index c3523e1..1cc664b 100644
--- a/gn/packages/python.scm
+++ b/gn/packages/python.scm
@@ -1152,6 +1152,38 @@ handles recursion and lists.")
(description "This package provides a SPARQL Slurper for rdflib.")
(license license:asl2.0)))
+(define-public python-sparqlslurper
+ (package
+ (name "python-sparqlslurper")
+ (version "0.5.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "sparqlslurper" version))
+ (sha256
+ (base32 "0ipma74dr5jvsxwaa9al147mn9vv3v5r9lb9hajm4qgwcjqfp0lj"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:tests? #f ; Tests try to use the internet.
+ #: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")))))))
+ (propagated-inputs
+ (list python-rdflib-shim
+ python-sparqlwrapper))
+ (native-inputs
+ (list python-pbr python-unittest2))
+ (home-page "http://github.com/hsolbrig/sparqlslurper")
+ (synopsis "SPARQL Slurper for rdflib")
+ (description "This package provides an implementation of a
+@code{rdflibGraph} that acts as a cache for a SPARQL endpoint. SPARQL Slurper
+translates the @code{Graph.triples()} function into the corresponding SPARQL
+query and resolves it against an endpoint.")
+ (license license:cc0)))
+
(define-public python38-ruaml.yaml-0.15.76 ;; no longer in use
(package
(inherit python-ruamel.yaml)