gnu: python-cssselect: Update to 1.1.0.
* gnu/packages/python-web.scm (python-cssselect): Update to 1.1.0. [source]: Change to GIT-FETCH. [arguments]: Remove #:tests?. Add #:phases. [native-inputs]: Add PYTHON-LXML and PYTHON-PYTEST. [home-page]: Update to current.
This commit is contained in:
parent
b470122f67
commit
59e646ab4e
1 changed files with 21 additions and 16 deletions
|
@ -796,25 +796,30 @@ ebooks, due to cssutils not receiving updates as of 1.0.2.")
|
||||||
(define-public python-cssselect
|
(define-public python-cssselect
|
||||||
(package
|
(package
|
||||||
(name "python-cssselect")
|
(name "python-cssselect")
|
||||||
(version "0.9.2")
|
(version "1.1.0")
|
||||||
(source
|
(source (origin
|
||||||
(origin
|
;; The PyPI release does not contain tests.
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "cssselect" version))
|
(uri (git-reference
|
||||||
(sha256
|
(url "https://github.com/scrapy/cssselect")
|
||||||
(base32
|
(commit (string-append "v" version))))
|
||||||
"1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0xslrnhbrmgakp4xg6k26qffay3kqffp3a2z2sk27c65rwxa79kc"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; tests fail with message
|
`(#:phases (modify-phases %standard-phases
|
||||||
;; AttributeError: 'module' object has no attribute 'tests'
|
(replace 'check
|
||||||
`(#:tests? #f))
|
(lambda _
|
||||||
(home-page
|
(invoke "pytest" "-vv"))))))
|
||||||
"https://pythonhosted.org/cssselect/")
|
(native-inputs
|
||||||
(synopsis
|
`(("python-lxml" ,python-lxml)
|
||||||
"CSS3 selector parser and translator to XPath 1.0")
|
("python-pytest" ,python-pytest)))
|
||||||
|
(home-page "https://github.com/scrapy/cssselect")
|
||||||
|
(synopsis "CSS3 selector parser and translator to XPath 1.0")
|
||||||
(description
|
(description
|
||||||
"Cssselect ia a Python module that parses CSS3 Selectors and translates
|
"Cssselect ia a Python module that parses CSS3 Selectors and translates
|
||||||
them to XPath 1.0 expressions. Such expressions can be used in lxml or
|
them to XPath 1.0 expressions. Such expressions can be used in lxml or
|
||||||
another XPath engine to find the matching elements in an XML or HTML document.")
|
another XPath engine to find the matching elements in an XML or HTML document.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
Reference in a new issue