aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/python.scm
diff options
context:
space:
mode:
authorEfraim Flashner2023-03-20 11:54:20 +0200
committerEfraim Flashner2023-03-20 11:54:20 +0200
commit884e12fe1620c7a892351c71e673047ae71ce217 (patch)
tree5f528e3bbdefac31f67ceee10d8bf139655ac04a /gn/packages/python.scm
parent4299f3fa622669532526f75e4f4c9014103a7956 (diff)
downloadguix-bioinformatics-884e12fe1620c7a892351c71e673047ae71ce217.tar.gz
python-shexjsg: Update to 0.8.2.
* gn/packages/python.scm (python-shexjsg): Update to 0.8.2. [arguments]: Remove custom 'patch-source phase. Update custom 'check phase. [propagated-inputs]: Remove python-antlr4-python3-runtime, python-certifi, python-chardet, python-idna, python-isodate, python-requests, python-urllib3. [native-inputs]: Add python-rdflib-shim, python-requests. Remove python-pyparsing, python-pyshexc, python-rdflib, python-rdflib-jsonld, python-six, custom test-suite git checkout.
Diffstat (limited to 'gn/packages/python.scm')
-rw-r--r--gn/packages/python.scm56
1 files changed, 12 insertions, 44 deletions
diff --git a/gn/packages/python.scm b/gn/packages/python.scm
index 1cc664b..6942b40 100644
--- a/gn/packages/python.scm
+++ b/gn/packages/python.scm
@@ -995,65 +995,33 @@ treats name/value pairs as first class attributes whenever possible.")
(define-public python-shexjsg
(package
(name "python-shexjsg")
- (version "0.6.5")
+ (version "0.8.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ShExJSG" version))
(sha256
- (base32
- "1nn69sl5j949qy21nl5gr56cxfhmml1vng08hayxqfj6vn3ay3gg"))))
+ (base32 "1dnhpk6n6vzadkv13y7r6y2mi1pzv4y19vmxh91k9ykpqngn4ypi"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'patch-source
- (lambda _
- (substitute* '("requirements.txt"
- "requirements-dev.txt")
- (("pyshexc.*") "") ; no loops
- (("==.*") "\n"))
- #t))
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(if tests?
(begin (add-installed-pythonpath inputs outputs)
- (substitute* '("tests/test_shexc.py"
- "tests/test_shexj.py")
- (("shexTestRepository =.*")
- (string-append "shexTestRepository = \""
- (assoc-ref inputs "test-suite")
- "/schemas\"\n")))
- (invoke "python" "-m" "unittest"))
- #t))))))
+ ;; Tries to download files from the internet.
+ (substitute* "tests/test_shexj.py"
+ (("skipIf\\(False") "skipIf(True"))
+ (invoke "python" "-m" "unittest"))))))))
(propagated-inputs
- `(("python-antlr4-python3-runtime" ,python-antlr4-python3-runtime)
- ("python-certifi" ,python-certifi)
- ("python-chardet" ,python-chardet)
- ("python-idna" ,python-idna)
- ("python-isodate" ,python-isodate)
- ("python-pyjsg" ,python-pyjsg)
- ("python-requests" ,python-requests)
- ("python-urllib3" ,python-urllib3)))
+ (list python-pyjsg))
(native-inputs
- `(("python-jsonasobj" ,python-jsonasobj)
- ("python-pbr" ,python-pbr)
- ("python-pyparsing" ,python-pyparsing)
- ("python-pyshexc" ,python-pyshexc)
- ("python-rdflib" ,python-rdflib)
- ("python-rdflib-jsonld" ,python-rdflib-jsonld)
- ("python-six" ,python-six)
- ("python-yadict-compare" ,python-yadict-compare)
- ("test-suite"
- ,(origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/shexSpec/shexTest")
- (commit "v2.0.2")))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1x788nyrwycfr55wbg0ay6mc8mi6wwsg81h614rx9pw6rvrsppps"))))))
+ (list python-jsonasobj
+ python-pbr
+ python-rdflib-shim
+ python-requests
+ python-yadict-compare))
(home-page "https://github.com/hsolbrig/ShExJSG")
(synopsis "Astract Syntax Tree for the ShEx 2.0 language")
(description "This package provides an astract syntax tree for the