gnu: python-werkzeug: Reintroduce 1.0.1.

* gnu/packages/python-web.scm (python-werkzeug-1.0): New variable.
* gnu/packages/patches/python-werkzeug-tests.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
This commit is contained in:
Ludovic Courtès 2021-11-21 22:24:21 +01:00
parent b1fd953114
commit 248199863c
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
3 changed files with 84 additions and 0 deletions

View file

@ -4088,6 +4088,31 @@ uploads, a powerful URL routing system and a bunch of community-contributed
addon modules.")
(license license:x11)))
(define-public python-werkzeug-1.0
(package
(inherit python-werkzeug)
(version "1.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "Werkzeug" version))
(sha256
(base32
"0z74sa1xw5h20yin9faj0vvdbq713cgbj84klc72jr9nmpjv303c"))
(patches (search-patches "python-werkzeug-tests.patch"))))
(arguments
'(#:phases
(modify-phases %standard-phases
(delete 'check)
(add-after 'install 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "python" "-m" "pytest"))))))
(propagated-inputs
`(("python-requests" ,python-requests)))
(native-inputs
`(("python-pytest" ,python-pytest)
("python-pytest-timeout" ,python-pytest-timeout)))))
(define-public python-bottle
(package
(name "python-bottle")