summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm185
1 files changed, 88 insertions, 97 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 07c1ceb2db..b02ffd5f58 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -440,15 +440,21 @@ between a web browser and web server.")
(define-public python-flask-babel
(package
(name "python-flask-babel")
- (version "0.11.2")
+ (version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Flask-Babel" version))
(sha256
(base32
- "0ff9n165vhf1nhv6807ckhpp224jw7k7sd7jz5kfh3sbpl85gmy0"))))
+ "0gmb165vkwv5v7dxsxa2i3zhafns0fh938m2zdcrv4d8z5l099yn"))))
(build-system python-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (with-directory-excursion "tests"
+ (invoke "python" "tests.py")))))))
(propagated-inputs
`(("python-flask" ,python-flask)
("python-babel" ,python-babel)
@@ -986,14 +992,14 @@ dispatching systems can be built.")
(define-public python-zope-interface
(package
(name "python-zope-interface")
- (version "4.6.0")
+ (version "4.7.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.interface" version))
(sha256
(base32
- "1rgh2x3rcl9r0v0499kf78xy86rnmanajf4ywmqb943wpk50sg8v"))))
+ "0r9kvb1q3lxrdhxabliv9nwhjsdmn1n0vcjv93rlqkyb7yyh24gx"))))
(build-system python-build-system)
(native-inputs
`(("python-zope-event" ,python-zope-event)))
@@ -1011,14 +1017,14 @@ conforming to a given API or contract.")
(define-public python-zope-exceptions
(package
(name "python-zope-exceptions")
- (version "4.0.8")
+ (version "4.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.exceptions" version))
(sha256
(base32
- "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
+ "04bjskwas17yscl8bs3l44maxspw1gdji0zcmr499fs420y9r9az"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; circular dependency with zope.testrunner
@@ -1036,20 +1042,14 @@ that have uses outside of the Zope framework.")
(define-public python-zope-testing
(package
(name "python-zope-testing")
- (version "4.6.2")
+ (version "4.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.testing" version))
(sha256
(base32
- "0iiq54hjhkk2gpvzfjac70vyn4r0kw0ngvicshxbdwrkgf2gjq3g"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- ;; Remove pre-compiled .pyc files backup files from source.
- (for-each delete-file (find-files "." "(\\.pyc|~)$"))
- #t))))
+ "1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn"))))
(build-system python-build-system)
(home-page "https://pypi.org/project/zope.testing/")
(synopsis "Zope testing helpers")
@@ -1063,25 +1063,23 @@ forms, HTTP servers, regular expressions, and more.")
(define-public python-zope-testrunner
(package
(name "python-zope-testrunner")
- (version "4.4.9")
+ (version "5.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "zope.testrunner" version ".zip"))
+ (uri (pypi-uri "zope.testrunner" version))
(sha256
(base32
- "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
+ "0w3q66cy4crpj7c0hw0vvvvwf3g931rnvw7wwa20av7yqvv6ajim"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
(native-inputs
+ `(("python-zope-testing" ,python-zope-testing)))
+ (propagated-inputs
`(("python-six" ,python-six)
- ;("python-zope-interface" ,python-zope-interface)
("python-zope-exceptions" ,python-zope-exceptions)
- ("python-zope-testing" ,python-zope-testing)
- ("unzip" ,unzip)))
- (propagated-inputs
- `(("python-zope-interface" ,python-zope-interface)))
+ ("python-zope-interface" ,python-zope-interface)))
(home-page "https://pypi.org/project/zope.testrunner/")
(synopsis "Zope testrunner script")
(description "Zope.testrunner provides a script for running Python
@@ -1089,26 +1087,25 @@ tests.")
(license license:zpl2.1)))
(define-public python2-zope-testrunner
- (let ((base (package-with-python2 python-zope-testrunner)))
- (package
- (inherit base)
- (native-inputs
- (append (package-native-inputs base)
- `(("python2-subunit" ,python2-subunit)
- ("python2-mimeparse" ,python2-mimeparse)))))))
+ (package-with-python2 python-zope-testrunner))
(define-public python-zope-i18nmessageid
(package
(name "python-zope-i18nmessageid")
- (version "4.0.3")
+ (version "5.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.i18nmessageid" version))
(sha256
(base32
- "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
+ "0ndhn4w1qgwkfbwf9vm2bgq418z5g0wmfsgl0d9nz62cd0mi8d4m"))))
(build-system python-build-system)
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-zope-testrunner" ,python-zope-testrunner)))
+ (propagated-inputs
+ `(("python-six" ,python-six)))
(home-page "https://pypi.org/project/zope.i18nmessageid/")
(synopsis "Message identifiers for internationalization")
(description "Zope.i18nmessageid provides facilities for declaring
@@ -1121,25 +1118,24 @@ internationalized messages within program source text.")
(define-public python-zope-schema
(package
(name "python-zope-schema")
- (version "4.4.2")
+ (version "5.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.schema" version))
(sha256
(base32
- "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
+ "0q93j0x52a42khw12al90jw2bk0wly3jwghql3a25zpwwxvn24ya"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.event.
(propagated-inputs
`(("python-zope-event" ,python-zope-event)
- ("python-zope-exceptions" ,python-zope-exceptions)
("python-zope-interface" ,python-zope-interface)))
(native-inputs
- `(("python-zope-testing" ,python-zope-testing)
- ("python-coverage" ,python-coverage)
- ("python-nose" ,python-nose)))
+ `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
+ ("python-zope-testing" ,python-zope-testing)
+ ("python-zope-testrunner" ,python-zope-testrunner)))
(home-page "https://pypi.org/project/zope.schema/")
(synopsis "Zope data schemas")
(description "Zope.scheme provides extensions to zope.interface for
@@ -1152,18 +1148,22 @@ defining data schemas.")
(define-public python-zope-configuration
(package
(name "python-zope-configuration")
- (version "4.0.3")
+ (version "4.3.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "zope.configuration" version))
(sha256
(base32
- "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
+ "1qb88764fd7nkkmqv7fl9bxd1jirynkg5vbqkpqdiffnkxzp85kf"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
+ (native-inputs
+ `(("python-zope-testing" ,python-zope-testing)
+ ("python-zope-testrunner" ,python-zope-testrunner)))
(propagated-inputs
`(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
+ ("python-zope-interface" ,python-zope-interface)
("python-zope-schema" ,python-zope-schema)))
(home-page "https://pypi.org/project/zope.configuration/")
(synopsis "Zope Configuration Markup Language")
@@ -1177,17 +1177,19 @@ Markup Language.")
(define-public python-zope-proxy
(package
(name "python-zope-proxy")
- (version "4.1.6")
+ (version "4.3.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.proxy" version))
(sha256
(base32
- "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
+ "1g0rcfnbchpvqhm76aixqlz544dawrgmy8gw9zwmijhk6wfl9f26"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
+ (native-inputs
+ `(("python-zope-testrunner" ,python-zope-testrunner)))
(propagated-inputs
`(("python-zope-interface" ,python-zope-interface)))
(home-page "https://pypi.org/project/zope.proxy/")
@@ -1205,19 +1207,22 @@ brokering, etc.) for which the proxy is responsible.")
(define-public python-zope-location
(package
(name "python-zope-location")
- (version "4.0.3")
+ (version "4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.location" version))
(sha256
(base32
- "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
+ "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
+ (native-inputs
+ `(("python-zope-testrunner" ,python-zope-testrunner)))
(propagated-inputs
- `(("python-zope-proxy" ,python-zope-proxy)
+ `(("python-zope-interface" ,python-zope-interface)
+ ("python-zope-proxy" ,python-zope-proxy)
("python-zope-schema" ,python-zope-schema)))
(home-page "https://pypi.org/project/zope.location/")
(synopsis "Zope location library")
@@ -1231,26 +1236,26 @@ Zope3, which are are special objects that have a structural location.")
(define-public python-zope-security
(package
(name "python-zope-security")
- (version "4.0.3")
+ (version "5.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.security" version))
(sha256
(base32
- "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
+ "1npfrgnm202v48wavpwn3450dsn7az12lfww95vbhxyjl11f14yb"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
(propagated-inputs
- `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
+ `(("python-zope-component" ,python-zope-component)
+ ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
+ ("python-zope-interface" ,python-zope-interface)
+ ("python-zope-location" ,python-zope-location)
("python-zope-proxy" ,python-zope-proxy)
("python-zope-schema" ,python-zope-schema)))
(native-inputs
- `(("python-six" ,python-six)
- ("python-zope-component" ,python-zope-component)
- ("python-zope-configuration" ,python-zope-configuration)
- ("python-zope-location" ,python-zope-location)
+ `(("python-zope-configuration" ,python-zope-configuration)
("python-zope-testrunner" ,python-zope-testrunner)
("python-zope-testing" ,python-zope-testing)))
(home-page "https://pypi.org/project/zope.security/")
@@ -1260,13 +1265,7 @@ security policies on Python objects.")
(license license:zpl2.1)))
(define-public python2-zope-security
- (let ((zope-security (package-with-python2 python-zope-security)))
- (package (inherit zope-security)
- (propagated-inputs
- `(("python2-zope-testrunner" ,python2-zope-testrunner)
- ,@(alist-delete
- "python-zope-testrunner"
- (package-propagated-inputs zope-security)))))))
+ (package-with-python2 python-zope-security))
(define-public python-zope-component
(package
@@ -1728,20 +1727,22 @@ minimum of WSGI.")
(define-public python-flask
(package
(name "python-flask")
- (version "1.0.3")
+ (version "1.1.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "Flask" version))
(sha256
(base32
- "1wxnhjlxwwjhjxmghykjhllpahv5pkdc5hln4ab6nab43s26sz5d"))))
+ "0ljdjgyjn7vh8ic1n1dc2l1cl421i6pr3kx5sz2w5irhyfbg3y8k"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
- (invoke "python" "-m" "pytest"))))))
+ (setenv "PYTHONPATH" (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "-vv" "tests"))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs
@@ -1762,31 +1763,29 @@ presume or force a developer to use a particular tool or library.")
(define-public python-flask-wtf
(package
(name "python-flask-wtf")
- (version "0.13.1")
+ (version "0.14.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Flask-WTF" version))
(sha256
(base32
- "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990"))))
+ "086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
- (add-before 'check 'drop-failing-test
+ (replace 'check
(lambda _
- ;; FIXME: This file tries resolving an external server, which
- ;; fails. Try to patch out the offending section instead of
- ;; deleting the whole thing.
- (delete-file "tests/test_recaptcha.py")
- #t)))))
+ (setenv "PYTHONPATH" (string-append "./build/lib:"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "-vv"))))))
(propagated-inputs
`(("python-flask-babel" ,python-flask-babel)
("python-babel" ,python-babel)
("python-wtforms" ,python-wtforms)))
(native-inputs
- `(("python-nose" ,python-nose)))
+ `(("python-pytest" ,python-pytest)))
(home-page "https://github.com/lepture/flask-wtf")
(synopsis "Simple integration of Flask and WTForms")
(description "Flask-WTF integrates Flask and WTForms, including CSRF, file
@@ -2167,14 +2166,15 @@ pretty printer and a tree visitor.")
(define-public python-flask-restful
(package
(name "python-flask-restful")
- (version "0.3.7")
+ (version "0.3.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Flask-RESTful" version))
+ (patches (search-patches "python-flask-restful-werkzeug-compat.patch"))
(sha256
(base32
- "1a9cbwkr6krryyzq4sd3f415nkkc6dyfls5i3pgyibs94g0hw97q"))))
+ "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
(build-system python-build-system)
(propagated-inputs
`(("python-aniso8601" ,python-aniso8601)
@@ -2185,8 +2185,7 @@ pretty printer and a tree visitor.")
`(;; Optional dependency of Flask. Tests need it.
("python-blinker" ,python-blinker)
("python-mock" ,python-mock) ; For tests
- ("python-nose" ,python-nose) ; For tests
- ("python-sphinx" ,python-sphinx)))
+ ("python-nose" ,python-nose))) ;for tests
(home-page
"https://www.github.com/flask-restful/flask-restful/")
(synopsis
@@ -2303,15 +2302,16 @@ documentation builder.")
(define-public python-flask-restful-swagger
(package
(name "python-flask-restful-swagger")
- (version "0.19")
+ (version "0.20.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flask-restful-swagger" version))
(sha256
(base32
- "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v"))))
+ "1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq"))))
(build-system python-build-system)
+ (arguments '(#:tests? #f)) ;no tests
(propagated-inputs
`(("python-flask-restful" ,python-flask-restful)))
(home-page "https://github.com/rantav/flask-restful-swagger")
@@ -2392,7 +2392,7 @@ on the command line.")
(define-public python-flask-login
(package
(name "python-flask-login")
- (version "0.4.1")
+ (version "0.5.0")
(source
(origin
(method git-fetch)
@@ -2401,25 +2401,18 @@ on the command line.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1rj0qwyxapxnp84fi4lhmvh3d91fdiwz7hibw77x3d5i72knqaa9"))))
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'avoid-yanc
- ;; Work around '.nosetests-real: error: no such option: --with-yanc'.
- (lambda _
- (setenv "NOCOLOR" "set")
- #t)))))
+ (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
(build-system python-build-system)
(propagated-inputs
`(("python-flask" ,python-flask)))
(native-inputs
;; For tests.
`(("python-blinker" ,python-blinker)
+ ("python-coverage" ,python-coverage)
("python-mock" ,python-mock)
- ("python-nose" ,python-nose)
- ("python-pep8" ,python-pep8)
+ ("python-pycodestyle" ,python-pycodestyle)
("python-pyflakes" ,python-pyflakes)
+ ("python-pytest" ,python-pytest)
("python-semantic-version" ,python-semantic-version)
("python-werkzeug" ,python-werkzeug)))
(home-page "https://github.com/maxcountryman/flask-login")
@@ -2606,14 +2599,14 @@ itself.")
(define-public python-flask-migrate
(package
(name "python-flask-migrate")
- (version "2.0.3")
+ (version "2.5.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Flask-Migrate" version))
(sha256
(base32
- "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk"))))
+ "1vip9ww6l18dxffjsggm83k71zkvihxpnhaswpv8klh95s6517d6"))))
(build-system python-build-system)
(propagated-inputs
`(("python-flask" ,python-flask)
@@ -2628,9 +2621,6 @@ Alembic")
for Flask programs that are using @code{python-alembic}.")
(license license:expat)))
-(define-public python2-flask-migrate
- (package-with-python2 python-flask-migrate))
-
(define-public python-genshi
(package
(name "python-genshi")
@@ -2783,14 +2773,14 @@ List. Forked from and using the same API as the publicsuffix package.")
(define-public python-werkzeug
(package
(name "python-werkzeug")
- (version "0.14.1")
+ (version "1.0.0")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "werkzeug" version))
+ (uri (pypi-uri "Werkzeug" version))
(sha256
(base32
- "0z2m4snn1vc9518r2vzgdj1nc90kcgi60wijvd29yvcp85ypmzf3"))))
+ "15kh0z61klp62mrc1prka13xsshxn0rsp1j1s2964iw86yisi6qn"))))
(build-system python-build-system)
(arguments
'(#:phases
@@ -2803,7 +2793,8 @@ List. Forked from and using the same API as the publicsuffix package.")
(propagated-inputs
`(("python-requests" ,python-requests)))
(native-inputs
- `(("python-pytest" ,python-pytest)))
+ `(("python-pytest" ,python-pytest)
+ ("python-pytest-timeout" ,python-pytest-timeout)))
(home-page "https://www.palletsprojects.org/p/werkzeug/")
(synopsis "Utilities for WSGI applications")
(description "One of the most advanced WSGI utility modules. It includes a