gnu: python-pyrdfa3: Update to 3.6.2.
* gnu/packages/rdf.scm (python-pyrdfa3): Update to 3.6.2. [build-system]: Use pyproject-build-system. [arguments]: Remove custom build phases. [propagated-inputs]: Add python-requests. Change-Id: Ie8a1a369a569d29c8f43248d03f024e6cc19c004
This commit is contained in:
parent
7d10e49dfc
commit
73221c441f
1 changed files with 6 additions and 22 deletions
|
@ -36,6 +36,7 @@
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (guix build-system meson)
|
#:use-module (guix build-system meson)
|
||||||
#:use-module (guix build-system python)
|
#:use-module (guix build-system python)
|
||||||
|
#:use-module (guix build-system pyproject)
|
||||||
#:use-module (guix build-system waf)
|
#:use-module (guix build-system waf)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (gnu packages autotools)
|
#:use-module (gnu packages autotools)
|
||||||
|
@ -453,33 +454,16 @@ C++ library as well as various command-line tools to to work with HDT.")
|
||||||
(define-public python-pyrdfa3
|
(define-public python-pyrdfa3
|
||||||
(package
|
(package
|
||||||
(name "python-pyrdfa3")
|
(name "python-pyrdfa3")
|
||||||
(version "3.5.3")
|
(version "3.6.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "pyRdfa3" version))
|
(uri (pypi-uri "pyRdfa3" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1biif5lav3gswkhjzq882s4rgxzmvwsy5gb9dxdk9pw75fln6xhm"))))
|
(base32 "1hhlhgqkc3igzdpxllf41drrqxm5aswqhwvnjqb90q3zjnmiss3k"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments (list #:tests? #f)) ;no test suite
|
||||||
(list
|
(propagated-inputs (list python-html5lib python-rdflib python-requests))
|
||||||
#:tests? #f ;no test suite
|
|
||||||
#:phases
|
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(add-after 'unpack 'fix-python-3-issues
|
|
||||||
(lambda _
|
|
||||||
;; Delete files that appear to be versions for older Pythons;
|
|
||||||
;; they fail to byte compile (see:
|
|
||||||
;; https://github.com/RDFLib/pyrdfa3/issues/41).
|
|
||||||
(with-directory-excursion "pyRdfaExtras/serializers"
|
|
||||||
(for-each delete-file
|
|
||||||
(list "prettyXMLserializer_3.py"
|
|
||||||
"prettyXMLserializer_3_2.py")))
|
|
||||||
;; See https://github.com/RDFLib/pyrdfa3/issues/42.
|
|
||||||
(substitute* "pyRdfaExtras/__init__.py"
|
|
||||||
(("from StringIO import StringIO")
|
|
||||||
"from io import StringIO")))))))
|
|
||||||
(propagated-inputs (list python-html5lib python-rdflib))
|
|
||||||
(home-page "https://www.w3.org/2012/pyRdfa/")
|
(home-page "https://www.w3.org/2012/pyRdfa/")
|
||||||
(synopsis "RDFa Python distiller/parser library")
|
(synopsis "RDFa Python distiller/parser library")
|
||||||
(description "This library can extract RDFa 1.1 from (X)HTML, SVG, or XML.
|
(description "This library can extract RDFa 1.1 from (X)HTML, SVG, or XML.
|
||||||
|
|
Reference in a new issue