gnu: python-wtforms: Update to 2.3.3 and adjust arguments+inputs.

* gnu/packages/python-web.scm (python-wtforms)[version]: Update to 2.3.3.
[phases](remove-django-test): Remove phase.
(check): Replace with custom phase.
[native-inputs]: Remove unzip. Add python-coverage, python-dateutil,
python-pep8 and python-sqlalchemy.
[propagated-inputs]: Add python-babel, python-email-validaor and
python-markupsafe.

Co-authored-by: jgart <jgart@dismail.de>
This commit is contained in:
Raghav Gururajan 2021-09-11 19:24:53 -04:00
parent 87ec1ae95c
commit 73f68c1a45
No known key found for this signature in database
GPG Key ID: 5F5816647F8BE551

View File

@ -4150,28 +4150,33 @@ addon modules.")
(define-public python-wtforms (define-public python-wtforms
(package (package
(name "python-wtforms") (name "python-wtforms")
(version "2.1") (version "2.3.3")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "WTForms" version ".zip")) (uri (pypi-uri "WTForms" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz")))) "17427m7p9nn9byzva697dkykykwcp2br3bxvi8vciywlmkh5s6c1"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'remove-django-test (replace 'check
;; Don't fail the tests when the inputs for the optional tests cannot be found. (lambda* (#:key inputs outputs tests? #:allow-other-keys)
(lambda _ (when tests?
(substitute* (add-installed-pythonpath inputs outputs)
"tests/runtests.py" (invoke "python" "setup.py" "compile_catalog")
(("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "") (invoke "coverage" "run" "tests/runtests.py" "--with-pep8")))))))
(("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
#t)))))
(native-inputs (native-inputs
`(("unzip" ,unzip))) `(("python-coverage" ,python-coverage)
("python-dateutil" ,python-dateutil)
("python-pep8" ,python-pep8)
("python-sqlalchemy" ,python-sqlalchemy)))
(propagated-inputs
`(("python-babel" ,python-babel)
("python-email-validator" ,python-email-validator)
("python-markupsafe" ,python-markupsafe)))
(home-page "http://wtforms.simplecodes.com/") (home-page "http://wtforms.simplecodes.com/")
(synopsis (synopsis
"Form validation and rendering library for Python web development") "Form validation and rendering library for Python web development")