gnu: python-bleach: Update to 3.1.0.
* gnu/packages/check.scm (python-pytest-runner-2, python2-pytest-runner-2): New public variables. * gnu/packages/python-xyz.scm (python-bleach): Update to 3.1.0. [propagated-inputs]: Remove PYTHON-HTML5LIB-0.9. Add PYTHON-WEBENCODINGS. [native-inputs]: Remove PYTHON-NOSE. Add PYTHON-PYTEST and PYTHON-PYTEST-RUNNER-2.
This commit is contained in:
parent
ef42bc3e56
commit
ff0efc8f6c
|
@ -816,6 +816,22 @@ (define-public python-pytest-runner
|
|||
(define-public python2-pytest-runner
|
||||
(package-with-python2 python-pytest-runner))
|
||||
|
||||
;; python-bleach 3.1.0 requires this ancient version of pytest-runner.
|
||||
;; Remove once no longer needed.
|
||||
(define-public python-pytest-runner-2
|
||||
(package/inherit
|
||||
python-pytest-runner
|
||||
(version "2.12.2")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "pytest-runner" version))
|
||||
(sha256
|
||||
(base32
|
||||
"11ivjj9hfphkv4yfb2g74av4yy86y8gcbf7gbif0p1hcdfnxg3w6"))))))
|
||||
|
||||
(define-public python2-pytest-runner-2
|
||||
(package-with-python2 python-pytest-runner-2))
|
||||
|
||||
(define-public python-pytest-mock
|
||||
(package
|
||||
(name "python-pytest-mock")
|
||||
|
|
|
@ -7742,20 +7742,21 @@ (define-public python2-nbformat
|
|||
(define-public python-bleach
|
||||
(package
|
||||
(name "python-bleach")
|
||||
(version "1.4.3")
|
||||
(version "3.1.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "bleach" version))
|
||||
(sha256
|
||||
(base32
|
||||
"0jvg3jxrvnx7xmm9gj262v60ib452xlnwlb0navyp7jsvcd0d4qj"))))
|
||||
"1yhrgrhkln8bd6gn3imj69g1h4xqah9gaz9q26crqr6gmmvpzprz"))))
|
||||
(build-system python-build-system)
|
||||
(propagated-inputs
|
||||
`(("python-html5lib" ,python-html5lib-0.9)
|
||||
`(("python-webencodings" ,python-webencodings)
|
||||
("python-six" ,python-six)))
|
||||
(native-inputs
|
||||
`(("python-nose" ,python-nose)))
|
||||
`(("python-pytest" ,python-pytest)
|
||||
("python-pytest-runner" ,python-pytest-runner-2)))
|
||||
(home-page "https://github.com/jsocol/bleach")
|
||||
(synopsis "Whitelist-based HTML-sanitizing tool")
|
||||
(description "Bleach is an easy whitelist-based HTML-sanitizing tool.")
|
||||
|
|
Loading…
Reference in a new issue