1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
3 ;;; Copyright © 2015, 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
5 ;;; Copyright © 2016, 2017 Danny Milosavljevic <dannym+a@scratchpost.org>
6 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
7 ;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
8 ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
10 ;;; Copyright © 2016, 2017 Julien Lepiller <julien@lepiller.eu>
11 ;;; Copyright © 2016, 2017 ng0 <ng0@infotropique.org>
12 ;;; Copyright © 2014, 2017 Eric Bavier <bavier@member.fsf.org>
13 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
14 ;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com>
15 ;;; Copyright © 2015, 2016, 2017 Leo Famulari <leo@famulari.name>
16 ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
17 ;;; Copyright © 2016, 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
18 ;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
19 ;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
20 ;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com>
21 ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
22 ;;; Copyright © 2016 David Craven <david@craven.ch>
23 ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
24 ;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
26 ;;; This file is part of GNU Guix.
28 ;;; GNU Guix is free software; you can redistribute it and/or modify it
29 ;;; under the terms of the GNU General Public License as published by
30 ;;; the Free Software Foundation; either version 3 of the License, or (at
31 ;;; your option) any later version.
33 ;;; GNU Guix is distributed in the hope that it will be useful, but
34 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
35 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 ;;; GNU General Public License for more details.
38 ;;; You should have received a copy of the GNU General Public License
39 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
41 (define-module (gnu packages python-web)
42 #:use-module (guix packages)
43 #:use-module (guix download)
44 #:use-module (guix build-system python)
45 #:use-module (gnu packages)
46 #:use-module (gnu packages check)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages databases)
49 #:use-module (gnu packages django)
50 #:use-module (gnu packages pkg-config)
51 #:use-module (gnu packages python)
52 #:use-module (gnu packages python-crypto)
53 #:use-module (gnu packages time)
54 #:use-module (gnu packages xml)
55 #:use-module ((guix licenses) #:prefix license:)
56 #:use-module (srfi srfi-1))
58 (define-public python-furl
65 (uri (pypi-uri "furl" version))
68 "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
69 (build-system python-build-system)
71 `(("python-six" ,python-six)
72 ("python-orderedmultidict" ,python-orderedmultidict)))
74 `(("python-pycodestyle" ,python-pycodestyle)))
75 (home-page "https://github.com/gruns/furl")
76 (synopsis "URL manipulation in Python")
77 (description "Furl provides an easy-to-use alternative to the
78 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
79 (license license:unlicense)))
81 (define-public python2-furl
82 (package-with-python2 python-furl))
84 (define-public python-httplib2
86 (name "python-httplib2")
91 (uri (pypi-uri "httplib2" version))
94 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
95 (build-system python-build-system)
96 (home-page "https://github.com/jcgregorio/httplib2")
97 (synopsis "Comprehensive HTTP client library")
99 "A comprehensive HTTP client library supporting many features left out of
100 other HTTP libraries.")
101 (license license:expat)))
103 (define-public python2-httplib2
104 (package-with-python2 python-httplib2))
106 (define-public python-sockjs-tornado
108 (name "python-sockjs-tornado")
113 (uri (pypi-uri "sockjs-tornado" version))
116 "16cff40nniqsyvda1pb2j3b4zwmrw7y2g1vqq78lp20xpmhnwwkd"))))
117 (build-system python-build-system)
119 `(;; There are no tests, and running the test phase requires missing
123 `(("python-tornado" ,python-tornado)))
124 (home-page "https://github.com/mrjoes/sockjs-tornado/")
126 "SockJS python server implementation on top of Tornado framework")
128 "SockJS-tornado provides the server side counterpart to a SockJS client
129 library, through the Tornado framework.
131 SockJS provides a low latency, full duplex, cross-domain communication channel
132 between a web browser and web server.")
133 (license license:expat)))
135 (define-public python2-sockjs-tornado
136 (package-with-python2 python-sockjs-tornado))
138 (define-public python-flask-babel
140 (name "python-flask-babel")
145 (uri (pypi-uri "Flask-Babel" version))
148 "0ff9n165vhf1nhv6807ckhpp224jw7k7sd7jz5kfh3sbpl85gmy0"))))
149 (build-system python-build-system)
151 `(("python-flask" ,python-flask)
152 ("python-babel" ,python-babel)
153 ("python-jinja2" ,python-jinja2)
154 ("python-pytz" ,python-pytz)))
155 (home-page "https://github.com/python-babel/flask-babel")
156 (synopsis "Add i18n/l10n support to Flask applications")
157 (description "This package implements internationalization and localization
158 support for Flask. This is based on the Python babel module as well as pytz -
159 both of which are installed automatically if you install this library.")
160 (license license:bsd-3)))
162 (define-public python2-flask-babel
163 (package-with-python2 python-flask-babel))
165 (define-public python-html5lib
167 (name "python-html5lib")
172 (uri (pypi-uri "html5lib" version))
175 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
176 (build-system python-build-system)
178 `(("python-six" ,python-six)
179 ("python-webencodings" ,python-webencodings)))
181 `(#:test-target "check"))
183 "https://github.com/html5lib/html5lib-python")
185 "Python HTML parser based on the WHATWG HTML specifcation")
187 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
188 and written in Python.")
189 (license license:expat)))
191 (define-public python2-html5lib
192 (package-with-python2 python-html5lib))
194 ;; Needed for python-bleach, a dependency of python-notebook
195 (define-public python-html5lib-0.9
197 (inherit python-html5lib)
202 (uri (pypi-uri "html5lib" version))
205 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
207 (define-public python2-html5lib-0.9
208 (package-with-python2 python-html5lib-0.9))
210 (define-public python-html5-parser
212 (name "python-html5-parser")
216 (uri (pypi-uri "html5-parser" version))
219 "1d8sxhl41ffh7qlk7wlsy17xw6slzx5v1yna9s72wx5qrpaa3wxr"))))
220 (build-system python-build-system)
222 `(("pkg-config" ,pkg-config)))
224 `(("libxml2" ,libxml2)))
226 `(("python-lxml" ,python-lxml)
227 ("python-beautifulsoup4" ,python-beautifulsoup4)))
228 (home-page "https://html5-parser.readthedocs.io")
229 (synopsis "Fast C-based HTML5 parsing for Python")
230 (description "This package provides a fast implementation of the HTML5
231 parsing spec for Python. Parsing is done in C using a variant of the gumbo
232 parser. The gumbo parse tree is then transformed into an lxml tree, also in
233 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
234 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
235 ;; indicate ASL2.0, including the LICENSE file for the whole project.
236 (license (list license:asl2.0 license:gpl3))))
238 (define-public python2-html5-parser
239 (package-with-python2 python-html5-parser))
241 (define-public python-webencodings
243 (name "python-webencodings")
247 (uri (pypi-uri "webencodings" version))
250 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
251 (build-system python-build-system)
254 (modify-phases %standard-phases
257 (zero? (system* "py.test" "-v" "webencodings/tests.py")))))))
259 `(("python-pytest" ,python-pytest)))
260 (home-page "https://github.com/SimonSapin/python-webencodings")
261 (synopsis "Character encoding aliases for legacy web content")
263 "In order to be compatible with legacy web content when interpreting
264 something like @code{Content-Type: text/html; charset=latin1}, tools need
265 to use a particular set of aliases for encoding labels as well as some
266 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
267 the web are actually aliases for @code{windows-1252}, and an @code{UTF-8}
268 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
269 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
270 defines all such details so that implementations do not have to
271 reverse-engineer each other.
273 This module implements the Encoding standard and has encoding labels and
274 BOM detection, but the actual implementation for encoders and decoders
276 (license license:bsd-3)))
278 (define-public python2-webencodings
279 (package-with-python2 python-webencodings))
281 (define-public python-openid
283 (name "python-openid")
288 (uri (pypi-uri "python3-openid" version))
291 "1x3nh3fycqfn43jp5j5pb4q4y2jxp4mdka4absaa3bc0078qd758"))))
292 (build-system python-build-system)
295 (modify-phases %standard-phases
298 (zero? (system* "./admin/runtests")))))))
299 (properties `((python2-variant . ,(delay python2-openid))))
301 `(("python-defusedxml" ,python-defusedxml)))
303 `(("python-psycopg2" ,python-psycopg2)
304 ("python-django" ,python-django)))
305 (home-page "https://github.com/necaris/python3-openid")
306 (synopsis "OpenID support for servers and consumers")
307 (description "This library provides OpenID authentication for Python, both
308 for clients and servers.")
309 (license license:asl2.0)))
311 (define-public python2-openid
313 (name "python2-openid")
318 (uri (pypi-uri "python-openid" version))
321 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
322 (build-system python-build-system)
324 ;; Python 3 support is in `python3-openid`, a separate package.
325 `(#:python ,python-2))
326 (home-page "https://github.com/openid/python-openid")
327 (synopsis "OpenID support for servers and consumers")
328 (description "This library provides OpenID authentication for Python, both
329 for clients and servers.")
330 (license license:asl2.0)))
332 (define-public python-cssutils
334 (name "python-cssutils")
339 (uri (pypi-uri "cssutils" version))
342 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
343 (build-system python-build-system)
345 `(("unzip" ,unzip))) ; for unpacking the source
347 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
348 (home-page "http://cthedot.de/cssutils/")
350 "CSS Cascading Style Sheets library for Python")
352 "Cssutils is a Python package for parsing and building CSS
353 Cascading Style Sheets. Currently it provides a DOM only and no rendering
355 (license license:lgpl3+)))
357 (define-public python2-cssutils
358 (package-with-python2 python-cssutils))
360 (define-public python-cssselect
362 (name "python-cssselect")
367 (uri (pypi-uri "cssselect" version))
370 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
371 (build-system python-build-system)
373 ;; tests fail with message
374 ;; AttributeError: 'module' object has no attribute 'tests'
377 "https://pythonhosted.org/cssselect/")
379 "CSS3 selector parser and translator to XPath 1.0")
381 "Cssselect ia a Python module that parses CSS3 Selectors and translates
382 them to XPath 1.0 expressions. Such expressions can be used in lxml or
383 another XPath engine to find the matching elements in an XML or HTML document.")
384 (license license:bsd-3)))
386 (define-public python2-cssselect
387 (package-with-python2 python-cssselect))
389 (define-public python-openid-cla
391 (name "python-openid-cla")
396 (uri (pypi-uri "python-openid-cla" version))
399 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
400 (build-system python-build-system)
401 (arguments '(#:tests? #f)) ; No tests.
402 (home-page "https://github.com/puiterwijk/python-openid-cla/")
403 (synopsis "Implementation of the OpenID CLA extension for python-openid")
404 (description "@code{openid-cla} is an implementation of the OpenID
405 contributor license agreement extension for python-openid.")
406 (license license:bsd-3)))
408 (define-public python2-openid-cla
409 (package-with-python2 python-openid-cla))
411 (define-public python-openid-teams
413 (name "python-openid-teams")
418 (uri (pypi-uri "python-openid-teams" version))
421 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
422 (build-system python-build-system)
423 (arguments '(#:tests? #f)) ; No tests.
424 (home-page "https://github.com/puiterwijk/python-openid-teams/")
425 (synopsis "Implementation of the OpenID teams extension for python-openid")
427 "@code{openid-teams} is an implementation of the OpenID
428 teams extension for python-openid.")
429 (license license:bsd-3)))
431 (define-public python2-openid-teams
432 (package-with-python2 python-openid-teams))
434 (define-public python-tornado
436 (name "python-tornado")
441 (uri (pypi-uri "tornado" version))
443 (base32 "1zbkgcdfq81k298awrm8p0xwbwwn2p3nbizdglzfbkskhai082fv"))))
444 (build-system python-build-system)
446 '(;; FIXME: Two tests error out with:
447 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
449 ;; (modify-phases %standard-phases
452 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
453 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
454 ;; (zero? (system* "python" "-m" "tornado.test")))))
457 `(("python-certifi" ,python-certifi)))
459 `(("python-backports-abc" ,python-backports-abc)))
460 (home-page "http://www.tornadoweb.org/")
461 (synopsis "Python web framework and asynchronous networking library")
463 "Tornado is a Python web framework and asynchronous networking library,
464 originally developed at FriendFeed. By using non-blocking network I/O,
465 Tornado can scale to tens of thousands of open connections, making it ideal
466 for long polling, WebSockets, and other applications that require a long-lived
467 connection to each user.")
468 (license license:asl2.0)
469 (properties `((python2-variant . ,(delay python2-tornado))))))
471 (define-public python2-tornado
472 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
473 (package (inherit tornado)
475 `(("python2-backport-ssl-match-hostname"
476 ,python2-backport-ssl-match-hostname)
477 ("python2-singledispatch" ,python2-singledispatch)
478 ,@(package-propagated-inputs tornado))))))
480 (define-public python-tornado-http-auth
482 (name "python-tornado-http-auth")
487 (uri (pypi-uri "tornado-http-auth" version))
490 "0znrgqd7k2s4ia474xizi6h3061zj4sn5n6cq76bkwl3wwshifn5"))))
491 (build-system python-build-system)
493 `(("python-tornado" ,python-tornado)))
495 "https://github.com/gvalkov/tornado-http-auth")
497 "Digest and basic authentication module for Tornado")
499 "Provides support for adding authentication to services using the Tornado
500 web framework, either via the basic or digest authentication schemes.")
501 (license license:asl2.0)))
503 (define-public python-terminado
505 (name "python-terminado")
510 (uri (pypi-uri "terminado" version))
513 "09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc"))))
514 (build-system python-build-system)
516 `(("python-tornado" ,python-tornado)
517 ("python-ptyprocess" ,python-ptyprocess)))
519 `(("python-nose" ,python-nose)))
522 (modify-phases %standard-phases
525 (zero? (system* "nosetests")))))))
526 (home-page "https://github.com/takluyver/terminado")
527 (synopsis "Terminals served to term.js using Tornado websockets")
528 (description "This package provides a Tornado websocket backend for the
529 term.js Javascript terminal emulator library.")
530 (license license:bsd-2)
531 (properties `((python2-variant . ,(delay python2-terminado))))))
533 (define-public python2-terminado
534 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
535 (package (inherit terminado)
537 `(("python2-backport-ssl-match-hostname"
538 ,python2-backport-ssl-match-hostname)
539 ,@(package-propagated-inputs terminado))))))
541 (define-public python-wsgi-intercept
543 (name "python-wsgi-intercept")
548 "https://pypi.python.org/packages/"
549 "38/76/ebcbc24d0cb77db34520a3ca6ed1bd43ace17d182bbd8dd7d976f1c176fb/"
550 "wsgi_intercept-" version ".tar.gz"))
553 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
554 (build-system python-build-system)
556 `(("python-six" ,python-six)))
558 `(("python-pytest" ,python-pytest)
559 ("python-httplib2" ,python-httplib2)
560 ("python-requests" ,python-requests)
561 ("python-urllib3" ,python-urllib3)))
562 (synopsis "Puts a WSGI application in place of a real URI for testing")
563 (description "Wsgi_intercept installs a WSGI application in place of a real
564 URI for testing. Testing a WSGI application normally involves starting a
565 server at a local host and port, then pointing your test code to that address.
566 Instead, this library lets you intercept calls to any specific host/port
567 combination and redirect them into a WSGI application importable by your test
568 program. Thus, you can avoid spawning multiple processes or threads to test
570 (home-page "https://github.com/cdent/wsgi-intercept")
571 (license license:expat)))
573 (define-public python-webob
575 (name "python-webob")
580 (uri (pypi-uri "WebOb" version))
583 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
584 (build-system python-build-system)
586 `(("python-nose" ,python-nose)))
587 (home-page "https://webob.org/")
588 (synopsis "WSGI request and response object")
590 "WebOb provides wrappers around the WSGI request environment, and an
591 object to help create WSGI responses.")
592 (license license:expat)))
594 (define-public python2-webob
595 (package-with-python2 python-webob))
597 (define-public python-zope-event
599 (name "python-zope-event")
604 (uri (string-append "https://pypi.python.org/packages/source/z"
605 "/zope.event/zope.event-" version ".tar.gz"))
608 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
609 (build-system python-build-system)
610 (home-page "https://pypi.python.org/pypi/zope.event")
611 (synopsis "Event publishing system for Python")
612 (description "Zope.event provides an event publishing API, intended for
613 use by applications which are unaware of any subscribers to their events. It
614 is a simple event-dispatching system on which more sophisticated event
615 dispatching systems can be built.")
616 (license license:zpl2.1)))
618 (define-public python2-zope-event
619 (package-with-python2 python-zope-event))
621 (define-public python-zope-interface
623 (name "python-zope-interface")
628 (uri (string-append "https://pypi.python.org/packages/source/z"
629 "/zope.interface/zope.interface-" version ".tar.gz"))
632 "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if"))))
633 (build-system python-build-system)
635 `(("python-zope-event" ,python-zope-event)))
636 (home-page "https://github.com/zopefoundation/zope.interface")
637 (synopsis "Python implementation of the \"design by contract\"
639 (description "Zope.interface provides an implementation of \"object
640 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
641 conforming to a given API or contract.")
642 (license license:zpl2.1)))
644 (define-public python2-zope-interface
645 (package-with-python2 python-zope-interface))
647 (define-public python-zope-exceptions
649 (name "python-zope-exceptions")
654 (uri (string-append "https://pypi.python.org/packages/source/z"
655 "/zope.exceptions/zope.exceptions-"
659 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
660 (build-system python-build-system)
662 '(#:tests? #f)) ; circular dependency with zope.testrunner
664 `(("python-zope-interface" ,python-zope-interface)))
665 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
666 (synopsis "Zope exceptions")
667 (description "Zope.exceptions provides general-purpose exception types
668 that have uses outside of the Zope framework.")
669 (license license:zpl2.1)))
671 (define-public python2-zope-exceptions
672 (package-with-python2 python-zope-exceptions))
674 (define-public python-zope-testing
676 (name "python-zope-testing")
681 (uri (pypi-uri "zope.testing" version))
684 "1vvxhjmzl7vw2i1akfj1xbggwn36270ym7f2ic9xwbaswfw1ap56"))
685 (modules '((guix build utils)))
688 ;; Remove pre-compiled .pyc files backup files from source.
689 (for-each delete-file (find-files "." "(\\.pyc|~)$"))
691 (build-system python-build-system)
693 `(("python-zope-exceptions" ,python-zope-exceptions)))
695 `(("python-zope-interface" ,python-zope-interface)))
696 (home-page "https://pypi.python.org/pypi/zope.testing")
697 (synopsis "Zope testing helpers")
698 (description "Zope.testing provides a number of testing utilities for HTML
699 forms, HTTP servers, regular expressions, and more.")
700 (license license:zpl2.1)))
702 (define-public python2-zope-testing
703 (package-with-python2 python-zope-testing))
705 (define-public python-zope-testrunner
707 (name "python-zope-testrunner")
712 (uri (string-append "https://pypi.python.org/packages/source/z"
713 "/zope.testrunner/zope.testrunner-"
717 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
718 (build-system python-build-system)
720 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
722 `(("python-six" ,python-six)
723 ;("python-zope-interface" ,python-zope-interface)
724 ("python-zope-exceptions" ,python-zope-exceptions)
725 ("python-zope-testing" ,python-zope-testing)
728 `(("python-zope-interface" ,python-zope-interface)))
729 (home-page "https://pypi.python.org/pypi/zope.testrunner")
730 (synopsis "Zope testrunner script")
731 (description "Zope.testrunner provides a script for running Python
733 (license license:zpl2.1)))
735 (define-public python2-zope-testrunner
736 (let ((base (package-with-python2 python-zope-testrunner)))
740 (append (package-native-inputs base)
741 `(("python2-subunit" ,python2-subunit)
742 ("python2-mimeparse" ,python2-mimeparse)))))))
744 (define-public python-zope-i18nmessageid
746 (name "python-zope-i18nmessageid")
752 "https://pypi.python.org/packages/source/z"
753 "/zope.i18nmessageid/zope.i18nmessageid-"
757 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
758 (build-system python-build-system)
759 (home-page "https://pypi.python.org/pypi/zope.i18nmessageid")
760 (synopsis "Message identifiers for internationalization")
761 (description "Zope.i18nmessageid provides facilities for declaring
762 internationalized messages within program source text.")
763 (license license:zpl2.1)))
765 (define-public python2-zope-i18nmessageid
766 (package-with-python2 python-zope-i18nmessageid))
768 (define-public python-zope-schema
770 (name "python-zope-schema")
775 (uri (string-append "https://pypi.python.org/packages/source/z"
776 "/zope.schema/zope.schema-" version ".tar.gz"))
779 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
780 (build-system python-build-system)
782 '(#:tests? #f)) ; FIXME: Tests can't find zope.event.
784 `(("python-zope-event" ,python-zope-event)
785 ("python-zope-exceptions", python-zope-exceptions)
786 ("python-zope-interface" ,python-zope-interface)))
788 `(("python-zope-testing" ,python-zope-testing)
789 ("python-coverage" ,python-coverage)
790 ("python-nose" ,python-nose)))
791 (home-page "https://pypi.python.org/pypi/zope.schema")
792 (synopsis "Zope data schemas")
793 (description "Zope.scheme provides extensions to zope.interface for
794 defining data schemas.")
795 (license license:zpl2.1)))
797 (define-public python2-zope-schema
798 (package-with-python2 python-zope-schema))
800 (define-public python-zope-configuration
802 (name "python-zope-configuration")
806 (uri (string-append "https://pypi.python.org/packages/source/z"
807 "/zope.configuration/zope.configuration-"
811 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
812 (build-system python-build-system)
814 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
816 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
817 ("python-zope-schema" ,python-zope-schema)))
818 (home-page "https://pypi.python.org/pypi/zope.configuration")
819 (synopsis "Zope Configuration Markup Language")
820 (description "Zope.configuration implements ZCML, the Zope Configuration
822 (license license:zpl2.1)))
824 (define-public python2-zope-configuration
825 (package-with-python2 python-zope-configuration))
827 (define-public python-zope-proxy
829 (name "python-zope-proxy")
834 (uri (string-append "https://pypi.python.org/packages/source/z"
835 "/zope.proxy/zope.proxy-" version ".tar.gz"))
838 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
839 (build-system python-build-system)
841 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
843 `(("python-zope-interface" ,python-zope-interface)))
844 (home-page "https://pypi.python.org/pypi/zope.proxy")
845 (synopsis "Generic, transparent proxies")
846 (description "Zope.proxy provides generic, transparent proxies for Python.
847 Proxies are special objects which serve as mostly-transparent wrappers around
848 another object, intervening in the apparent behavior of the wrapped object
849 only when necessary to apply the policy (e.g., access checking, location
850 brokering, etc.) for which the proxy is responsible.")
851 (license license:zpl2.1)))
853 (define-public python2-zope-proxy
854 (package-with-python2 python-zope-proxy))
856 (define-public python-zope-location
858 (name "python-zope-location")
863 (uri (string-append "https://pypi.python.org/packages/source/z"
864 "/zope.location/zope.location-" version ".tar.gz"))
867 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
868 (build-system python-build-system)
870 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
872 `(("python-zope-proxy" ,python-zope-proxy)
873 ("python-zope-schema" ,python-zope-schema)))
874 (home-page "https://pypi.python.org/pypi/zope.location/")
875 (synopsis "Zope location library")
876 (description "Zope.location implements the concept of \"locations\" in
877 Zope3, which are are special objects that have a structural location.")
878 (license license:zpl2.1)))
880 (define-public python2-zope-location
881 (package-with-python2 python-zope-location))
883 (define-public python-zope-security
885 (name "python-zope-security")
890 (uri (string-append "https://pypi.python.org/packages/source/z"
891 "/zope.security/zope.security-" version ".tar.gz"))
894 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
895 (build-system python-build-system)
897 '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
899 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
900 ("python-zope-proxy" ,python-zope-proxy)
901 ("python-zope-schema" ,python-zope-schema)))
903 `(("python-six" ,python-six)
904 ("python-zope-component" ,python-zope-component)
905 ("python-zope-configuration" ,python-zope-configuration)
906 ("python-zope-location" ,python-zope-location)
907 ("python-zope-testrunner" ,python-zope-testrunner)
908 ("python-zope-testing" ,python-zope-testing)))
909 (home-page "https://pypi.python.org/pypi/zope.security")
910 (synopsis "Zope security framework")
911 (description "Zope.security provides a generic mechanism to implement
912 security policies on Python objects.")
913 (license license:zpl2.1)))
915 (define-public python2-zope-security
916 (let ((zope-security (package-with-python2 python-zope-security)))
917 (package (inherit zope-security)
919 `(("python2-zope-testrunner" ,python2-zope-testrunner)
921 "python-zope-testrunner"
922 (package-propagated-inputs zope-security)))))))
924 (define-public python-zope-component
926 (name "python-zope-component")
931 (uri (pypi-uri "zope.component" version))
934 "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv"))))
935 (build-system python-build-system)
937 ;; Skip tests due to circular dependency with python-zope-security.
940 `(("python-zope-testing" ,python-zope-testing)))
942 `(("python-zope-event" ,python-zope-event)
943 ("python-zope-interface" ,python-zope-interface)
944 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
945 ("python-zope-configuration" ,python-zope-configuration)))
946 (home-page "https://github.com/zopefoundation/zope.component")
947 (synopsis "Zope Component Architecture")
948 (description "Zope.component represents the core of the Zope Component
949 Architecture. Together with the zope.interface package, it provides
950 facilities for defining, registering and looking up components.")
951 (license license:zpl2.1)))
953 (define-public python2-zope-component
954 (package-with-python2 python-zope-component))
956 (define-public python-ndg-httpsclient
958 (name "python-ndg-httpsclient")
962 (uri (pypi-uri "ndg_httpsclient" version))
965 "0sl5ak1r1xil9ms0a9fh9fm6ncml65kgnjpjfic9dhnaimwx997v"))))
966 (build-system python-build-system)
968 '(;; The tests appear to require networking.
971 `(("python-pyopenssl" ,python-pyopenssl)))
972 (synopsis "HTTPS support for Python's httplib and urllib2")
973 (description "This is a HTTPS client implementation for httplib and urllib2
974 based on PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
975 over the default provided with Python and importantly enables full verification
977 (home-page "https://github.com/cedadev/ndg_httpsclient/")
978 (license license:bsd-3)))
980 ;; python2-openssl requires special care, so package-with-python2 is
982 (define-public python2-ndg-httpsclient
983 (package (inherit python-ndg-httpsclient)
984 (name "python2-ndg-httpsclient")
985 (arguments `(#:python ,python-2))
987 `(("python2-pyopenssl" ,python2-pyopenssl)))))
989 (define-public python-websocket-client
991 (name "python-websocket-client")
996 (uri (pypi-uri "websocket_client" version))
999 "0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7"))))
1000 (build-system python-build-system)
1002 `(("python-six" ,python-six)))
1003 (home-page "https://github.com/liris/websocket-client")
1004 (synopsis "WebSocket client for Python")
1005 (description "The Websocket-client module provides the low level APIs for
1006 WebSocket usage in Python programs.")
1007 (license license:lgpl2.1+)))
1009 (define-public python2-websocket-client
1010 (package-with-python2 python-websocket-client))
1012 (define-public python-requests
1014 (name "python-requests")
1018 (uri (pypi-uri "requests" version))
1021 "1s0wg4any4dsv5l3hqjxqk2zgb7pdbqhy9rhc8kh3aigfq4ws8jp"))))
1022 ;; TODO: unbundle urllib3 and chardet.
1023 (build-system python-build-system)
1025 ;; FIXME: Some tests require network access.
1027 (home-page "http://python-requests.org/")
1028 (synopsis "Python HTTP library")
1030 "Requests is a Python HTTP client library. It aims to be easier to use
1031 than Python’s urllib2 library.")
1032 (license license:asl2.0)))
1034 ;; Some software requires an older version of Requests, notably Docker
1036 (define-public python-requests-2.7
1037 (package (inherit python-requests)
1041 (uri (pypi-uri "requests" version))
1044 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1046 (define-public python2-requests
1047 (package-with-python2 python-requests))
1049 (define-public python-requests-mock
1051 (name "python-requests-mock")
1056 (uri (pypi-uri "requests-mock" version))
1059 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1060 (build-system python-build-system)
1062 `(("python-requests" ,python-requests)
1063 ("python-six" ,python-six)))
1065 `(("python-pbr" ,python-pbr)
1066 ("python-discover" ,python-discover)
1067 ("python-docutils" ,python-docutils)
1068 ("python-fixtures" ,python-fixtures)
1069 ("python-mock" ,python-mock)
1070 ("python-sphinx" ,python-sphinx)
1071 ("python-testrepository" ,python-testrepository)
1072 ("python-testtools" ,python-testtools)))
1073 (home-page "https://requests-mock.readthedocs.org/")
1074 (synopsis "Mock out responses from the requests package")
1076 "This module provides a building block to stub out the HTTP requests
1077 portions of your testing code.")
1078 (properties `((python2-variant . ,(delay python2-requests-mock))))
1079 (license license:asl2.0)))
1081 (define-public python2-requests-mock
1082 (package (inherit (package-with-python2
1083 (strip-python2-variant python-requests-mock)))
1085 `(#:python ,python-2
1086 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1089 (define-public python-requests-toolbelt
1091 (name "python-requests-toolbelt")
1095 (uri (pypi-uri "requests-toolbelt" version))
1098 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1099 (build-system python-build-system)
1101 `(("python-betamax" ,python-betamax)
1102 ("python-mock" ,python-mock)
1103 ("python-pytest" ,python-pytest)))
1105 `(("python-requests" ,python-requests)))
1106 (synopsis "Extensions to python-requests")
1107 (description "This is a toolbelt of useful classes and functions to be used
1108 with python-requests.")
1109 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1110 (license license:asl2.0)))
1112 (define-public python2-requests-toolbelt
1113 (package-with-python2 python-requests-toolbelt))
1115 (define-public python-oauthlib
1117 (name "python-oauthlib")
1121 (uri (pypi-uri "oauthlib" version))
1124 "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
1125 (build-system python-build-system)
1127 `(("python-nose" ,python-nose)
1128 ("python-mock" ,python-mock)
1129 ("python-cryptography" ,python-cryptography)
1130 ("python-pyjwt" ,python-pyjwt)
1131 ("python-blinker" ,python-blinker)))
1132 (home-page "https://github.com/idan/oauthlib")
1133 (synopsis "OAuth implementation for Python")
1135 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1136 OAuth request-signing logic.")
1137 (license license:bsd-3)
1138 (properties `((python2-variant . ,(delay python2-oauthlib))))))
1140 (define-public python2-oauthlib
1141 (let ((base (package-with-python2 (strip-python2-variant python-oauthlib))))
1144 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1145 ,@(package-native-inputs base))))))
1147 (define-public python-rauth
1149 (name "python-rauth")
1154 (uri (pypi-uri "rauth" version))
1157 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1158 (build-system python-build-system)
1160 `(#:test-target "check"))
1162 `(("python-requests" ,python-requests)))
1163 (home-page "https://github.com/litl/rauth")
1164 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1166 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1167 provides service wrappers for convenient connection initialization and
1168 authenticated session objects providing things like keep-alive.")
1169 (license license:expat)
1170 (properties `((python2-variant . ,(delay python2-rauth))))))
1172 (define-public python2-rauth
1173 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1176 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1177 ,@(package-native-inputs base))))))
1179 (define-public python-urllib3
1181 (name "python-urllib3")
1186 (uri (pypi-uri "urllib3" version))
1189 "1wb8aqnq53vzh2amrv8kc66f3h6fx217y0q62y6n30a64p2yqmam"))))
1190 (build-system python-build-system)
1191 (arguments `(#:tests? #f))
1193 `(;; some packages for tests
1194 ("python-nose" ,python-nose)
1195 ("python-mock" ,python-mock)
1196 ("python-tornado" ,python-tornado)))
1198 `(;; These 5 inputs are used to build urrlib3[secure]
1199 ("python-certifi" ,python-certifi)
1200 ("python-cryptography" ,python-cryptography) ;
1201 ("python-idna" ,python-idna)
1202 ("python-ipaddress" ,python-ipaddress)
1203 ("python-pyopenssl" ,python-pyopenssl)))
1204 (home-page "https://urllib3.readthedocs.org/")
1205 (synopsis "HTTP library with thread-safe connection pooling")
1207 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1208 can reuse the same socket connection for multiple requests, it can POST files,
1209 supports url redirection and retries, and also gzip and deflate decoding.")
1210 (license license:expat)))
1212 (define-public python2-urllib3
1213 (package-with-python2 python-urllib3))
1215 (define-public awscli
1222 (uri (pypi-uri name version))
1225 "0sispclx263lybbk19zp1n9yhg8xxx4jddypzgi24vpjaqnsbwlc"))))
1226 (build-system python-build-system)
1228 `(("python-colorama" ,python-colorama)
1229 ("python-botocore" ,python-botocore)
1230 ("python-s3transfer" ,python-s3transfer)
1231 ("python-docutils" ,python-docutils)
1232 ("python-pyyaml" ,python-pyyaml)
1233 ("python-rsa" ,python-rsa)))
1235 ;; FIXME: The 'pypi' release does not contain tests.
1237 (home-page "https://aws.amazon.com/cli/")
1238 (synopsis "Command line client for AWS")
1239 (description "AWS CLI provides a unified command line interface to the
1240 Amazon Web Services (AWS) API.")
1241 (license license:asl2.0)))
1243 (define-public python-wsgiproxy2
1245 (name "python-wsgiproxy2")
1250 (uri (pypi-uri "WSGIProxy2" version ".zip"))
1253 "13kf9bdxrc95y9vriaz0viry3ah11nz4rlrykcfvb8nlqpx3dcm4"))))
1254 (build-system python-build-system)
1256 '(;; Wsgiproxy2's test suite requires Restkit, which does not yet fully
1257 ;; support Python 3:
1258 ;; https://github.com/benoitc/restkit/issues/140
1262 ("python-nose" ,python-nose)
1263 ("python-coverage" ,python-coverage)))
1265 `(("python-six" ,python-six)
1266 ("python-webob" ,python-webob)))
1268 "https://github.com/gawel/WSGIProxy2/")
1269 (synopsis "WSGI Proxy with various http client backends")
1270 (description "WSGI turns HTTP requests into WSGI function calls.
1271 WSGIProxy turns WSGI function calls into HTTP requests.
1272 It also includes code to sign requests and pass private data,
1273 and to spawn subprocesses to handle requests.")
1274 (license license:expat)))
1276 (define-public python2-wsgiproxy2
1277 (package-with-python2 python-wsgiproxy2))
1279 (define-public python-pastedeploy
1281 (name "python-pastedeploy")
1286 (uri (pypi-uri "PasteDeploy" version))
1289 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
1290 (build-system python-build-system)
1292 `(("python-nose" ,python-nose)))
1293 (home-page "http://pythonpaste.org/deploy/")
1295 "Load, configure, and compose WSGI applications and servers")
1297 "This tool provides code to load WSGI applications and servers from URIs;
1298 these URIs can refer to Python Eggs for INI-style configuration files. Paste
1299 Script provides commands to serve applications based on this configuration
1301 (license license:expat)))
1303 (define-public python2-pastedeploy
1304 (package-with-python2 python-pastedeploy))
1306 (define-public python-webtest
1308 (name "python-webtest")
1313 (uri (pypi-uri "WebTest" version))
1316 "0bcj1ica5lnmj5zbvk46x28kgphcsgh7sfnwjmn0cr94mhawrg6v"))))
1317 (build-system python-build-system)
1319 `(;; Unfortunately we have to disable tests!
1320 ;; This release of WebTest is pinned to python-nose < 1.3,
1321 ;; but older versions of python-nose are plagued with the following
1322 ;; bug(s), which rears its ugly head during test execution:
1323 ;; https://github.com/nose-devs/nose/issues/759
1324 ;; https://github.com/nose-devs/nose/pull/811
1326 ;; Commented out code is no good, but in this case, once tests
1327 ;; are ready to be enabled again, we should put the following
1330 ;; `(("python-nose" ,python-nose) ; technially < 1.3,
1331 ;; ; but see above comment
1332 ;; ("python-coverage" ,python-coverage)
1333 ;; ("python-mock" ,python-mock)
1334 ;; ("python-pastedeploy" ,python-pastedeploy)
1335 ;; ("python-wsgiproxy2" ,python-wsgiproxy2)
1336 ;; ("python-pyquery" ,python-pyquery)))
1338 `(("python-waitress" ,python-waitress)
1339 ("python-webob" ,python-webob)
1340 ("python-six" ,python-six)
1341 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1342 (home-page "http://webtest.pythonpaste.org/")
1343 (synopsis "Helper to test WSGI applications")
1344 (description "Webtest allows you to test your Python web applications
1345 without starting an HTTP server. It supports anything that supports the
1347 (license license:expat)))
1349 (define-public python2-webtest
1350 (package-with-python2 python-webtest))
1352 (define-public python-flask
1354 (name "python-flask")
1358 (uri (pypi-uri "Flask" version))
1361 "03kbfll4sj3v5z7r31c7bhfpi11r1np076d4p1k2kg4yzcmkywdl"))))
1362 (build-system python-build-system)
1364 `(("python-itsdangerous" ,python-itsdangerous)
1365 ("python-jinja2" ,python-jinja2)
1366 ("python-click" ,python-click)
1367 ("python-werkzeug" ,python-werkzeug)))
1368 (home-page "https://github.com/mitsuhiko/flask/")
1369 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
1370 (description "Flask is a micro web framework based on the Werkzeug toolkit
1371 and Jinja2 template engine. It is called a micro framework because it does not
1372 presume or force a developer to use a particular tool or library.")
1373 (license license:bsd-3)))
1375 (define-public python2-flask
1376 (package-with-python2 python-flask))
1378 (define-public python-flask-wtf
1380 (name "python-flask-wtf")
1385 (uri (pypi-uri "Flask-WTF" version))
1388 "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990"))))
1389 (build-system python-build-system)
1392 (modify-phases %standard-phases
1393 (add-before 'check 'drop-failing-test
1395 ;; FIXME: This file tries resolving an external server, which
1396 ;; fails. Try to patch out the offending section instead of
1397 ;; deleting the whole thing.
1398 (delete-file "tests/test_recaptcha.py")
1401 `(("python-flask-babel" ,python-flask-babel)
1402 ("python-babel" ,python-babel)
1403 ("python-wtforms" ,python-wtforms)))
1405 `(("python-nose" ,python-nose)))
1406 (home-page "https://github.com/lepture/flask-wtf")
1407 (synopsis "Simple integration of Flask and WTForms")
1408 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
1409 upload, and reCAPTCHA.")
1410 (license license:bsd-3)))
1412 (define-public python2-flask-wtf
1413 (package-with-python2 python-flask-wtf))
1415 (define-public python-flask-multistatic
1417 (name "python-flask-multistatic")
1422 (uri (pypi-uri "flask-multistatic" version))
1425 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
1426 (build-system python-build-system)
1428 `(("python-flask" ,python-flask)))
1429 (home-page "https://pagure.io/flask-multistatic")
1430 (synopsis "Flask plugin to allow overriding static files")
1431 (description "@code{flask-multistatic} is a flask plugin that adds support
1432 for overriding static files.")
1433 (license license:gpl3+)))
1435 (define-public python2-flask-multistatic
1436 (package-with-python2 python-flask-multistatic))
1438 (define-public python-cookies
1440 (name "python-cookies")
1444 (uri (pypi-uri "cookies" version))
1447 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
1448 (build-system python-build-system)
1450 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
1453 `(("python-pytest" ,python2-pytest)))
1454 (synopsis "HTTP cookie parser and renderer")
1455 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
1457 (home-page "https://gitlab.com/sashahart/cookies")
1458 (license license:expat)))
1460 (define-public python2-cookies
1461 (package-with-python2 python-cookies))
1463 (define-public python-responses
1465 (name "python-responses")
1469 (uri (pypi-uri "responses" version))
1472 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
1473 (build-system python-build-system)
1475 `(;; Test suite is not distributed:
1476 ;; https://github.com/getsentry/responses/issues/38
1479 `(("python-mock" ,python-mock)))
1481 `(("python-requests" ,python-requests)
1482 ("python-cookies" ,python-cookies)
1483 ("python-six" ,python-six)))
1484 (home-page "https://github.com/getsentry/responses")
1485 (synopsis "Utility for mocking out the `requests` Python library")
1486 (description "A utility library for mocking out the `requests` Python
1488 (license license:asl2.0)))
1490 (define-public python2-responses
1491 (package-with-python2 python-responses))
1493 (define-public python-geventhttpclient
1495 (name "python-geventhttpclient")
1499 (uri (pypi-uri "geventhttpclient" version))
1502 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
1503 (modules '((guix build utils)))
1506 ;; Delete pre-compiled files.
1507 (for-each delete-file (find-files "src/geventhttpclient"
1510 (build-system python-build-system)
1513 (modify-phases %standard-phases
1514 (add-after 'unpack 'delete-network-tests
1516 (delete-file "src/geventhttpclient/tests/test_client.py")
1519 (add-after 'install 'check
1520 (lambda* (#:key inputs outputs #:allow-other-keys)
1521 (add-installed-pythonpath inputs outputs)
1522 (zero? (system* "py.test" "src/geventhttpclient/tests" "-v")))))))
1524 `(("python-pytest" ,python-pytest)))
1526 `(("python-certifi" ,python-certifi)
1527 ("python-gevent" ,python-gevent)
1528 ("python-six" ,python-six)))
1529 (home-page "https://github.com/gwik/geventhttpclient")
1530 (synopsis "HTTP client library for gevent")
1531 (description "@code{python-geventhttpclient} is a high performance,
1532 concurrent HTTP client library for python using @code{gevent}.")
1533 (license license:expat)))
1535 (define-public python2-geventhttpclient
1536 (package-with-python2 python-geventhttpclient))
1538 (define-public python-requests-oauthlib
1540 (name "python-requests-oauthlib")
1545 (uri (pypi-uri "requests-oauthlib" version))
1548 "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn"))))
1549 (build-system python-build-system)
1552 (modify-phases %standard-phases
1553 ;; removes tests that require network access
1554 (add-before 'check 'pre-check
1556 (delete-file "tests/test_core.py")
1559 `(("python-requests-mock" ,python-requests-mock)
1560 ("python-mock" ,python-mock)))
1562 `(("python-oauthlib" ,python-oauthlib)
1563 ("python-requests" ,python-requests)))
1565 "https://github.com/requests/requests-oauthlib")
1567 "OAuthlib authentication support for Requests")
1569 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
1570 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
1571 (license license:isc)))
1573 (define-public python2-requests-oauthlib
1574 (package-with-python2 python-requests-oauthlib))
1576 (define-public python-url
1582 (uri (pypi-uri "url" version))
1585 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
1586 (build-system python-build-system)
1588 `(("python-publicsuffix" ,python-publicsuffix)))
1590 `(("python-coverage" ,python-coverage)
1591 ("python-nose" ,python-nose)))
1593 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
1594 (home-page "https://github.com/seomoz/url-py")
1595 (synopsis "URL Parsing")
1596 (description "Library for parsing urls.")
1597 (license license:expat)
1598 (properties `((python2-variant . ,(delay python2-url))))))
1600 (define-public python2-url
1601 (let ((base (package-with-python2 (strip-python2-variant python-url))))
1602 (package (inherit base)
1604 `(("python2-publicsuffix" ,python2-publicsuffix))))))
1606 (define-public python-cachecontrol
1608 (name "python-cachecontrol")
1613 ;; Pypi does not have tests.
1615 "https://github.com/ionrock/cachecontrol/archive/v"
1617 (file-name (string-append name "-" version ".tar.gz"))
1620 "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw"))))
1621 (build-system python-build-system)
1624 (modify-phases %standard-phases
1627 ;; Drop test that requires internet access.
1628 (delete-file "tests/test_regressions.py")
1629 (setenv "PYTHONPATH"
1630 (string-append (getcwd) "/build/lib:"
1631 (getenv "PYTHONPATH")))
1632 (zero? (system* "py.test" "-vv")))))))
1634 `(("python-pytest" ,python-pytest)
1635 ("python-redis" ,python-redis)
1636 ("python-webtest" ,python-webtest)
1637 ("python-mock" ,python-mock)))
1639 `(("python-requests" ,python-requests)
1640 ("python-lockfile" ,python-lockfile)))
1641 (home-page "https://github.com/ionrock/cachecontrol")
1642 (synopsis "The httplib2 caching algorithms for use with requests")
1643 (description "CacheControl is a port of the caching algorithms in
1644 @code{httplib2} for use with @code{requests} session objects.")
1645 (license license:asl2.0)))
1647 (define-public python2-cachecontrol
1648 (package-with-python2 python-cachecontrol))
1650 (define-public python-betamax
1652 (name "python-betamax")
1657 (uri (pypi-uri "betamax" version))
1660 "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42"))))
1661 (build-system python-build-system)
1663 '(;; Many tests fail because they require networking.
1666 `(("python-requests" ,python-requests)))
1667 (home-page "https://github.com/sigmavirus24/betamax")
1668 (synopsis "Record HTTP interactions with python-requests")
1669 (description "Betamax will record your test suite's HTTP interactions and
1670 replay them during future tests. It is designed to work with python-requests.")
1671 (license license:expat)))
1673 (define-public python2-betamax
1674 (package-with-python2 python-betamax))
1676 (define-public python-betamax-matchers
1678 (name "python-betamax-matchers")
1683 (uri (pypi-uri "betamax-matchers" version))
1686 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
1687 (build-system python-build-system)
1689 `(("python-betamax" ,python-betamax)
1690 ("python-requests-toolbelt" ,python-requests-toolbelt)))
1691 (home-page "https://github.com/sigmavirus24/betamax_matchers")
1692 (synopsis "VCR imitation for python-requests")
1693 (description "@code{betamax-matchers} provides a set of Matchers for
1695 (license license:asl2.0)))
1697 (define-public python2-betamax-matchers
1698 (package-with-python2 python-betamax-matchers))
1700 (define-public python-s3transfer
1702 (name "python-s3transfer")
1706 (uri (pypi-uri "s3transfer" version))
1709 "0yfrfnf404cxzn3iswibqjxklsl0b1lwgqiml6pwiqj79a7zbwbn"))))
1710 (build-system python-build-system)
1713 (modify-phases %standard-phases
1716 ;; 7 of the 'integration' tests require network access or login
1718 (zero? (system* "nosetests" "--exclude=integration")))))))
1720 `(("python-docutils" ,python-docutils)
1721 ("python-mock" ,python-mock)
1722 ("python-nose" ,python-nose)))
1724 `(("python-botocore" ,python-botocore)))
1725 (synopsis "Amazon S3 Transfer Manager")
1726 (description "S3transfer is a Python library for managing Amazon S3
1728 (home-page "https://github.com/boto/s3transfer")
1729 (license license:asl2.0)
1730 (properties `((python2-variant . ,(delay python2-s3transfer))))))
1732 (define-public python2-s3transfer
1733 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
1737 `(("python2-futures" ,python2-futures)
1738 ,@(package-native-inputs base))))))
1740 (define-public python-flask-restful
1742 (name "python-flask-restful")
1747 (uri (pypi-uri "Flask-RESTful" version))
1750 "0hjcmdb56b7z4bkw848lxfkyrpnkwzmqn2dgnlv12mwvjpzsxr6c"))))
1751 (build-system python-build-system)
1753 `(("python-aniso8601" ,python-aniso8601)
1754 ("python-flask" ,python-flask)
1755 ("python-pycrypto" ,python-pycrypto)
1756 ("python-pytz" ,python-pytz)))
1758 `(;; Optional dependency of Flask. Tests need it.
1759 ("python-blinker" ,python-blinker)
1760 ("python-mock" ,python-mock) ; For tests
1761 ("python-nose" ,python-nose) ; For tests
1762 ("python-sphinx" ,python-sphinx)))
1764 "https://www.github.com/flask-restful/flask-restful/")
1766 "Flask module for creating REST APIs")
1768 "This package contains a Flask module for creating REST APIs.")
1769 (license license:bsd-3)))
1771 (define-public python-flask-basicauth
1773 (name "python-flask-basicauth")
1778 (uri (pypi-uri "Flask-BasicAuth" version))
1781 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
1782 (build-system python-build-system)
1784 `(("python-flask" ,python-flask)))
1786 "https://github.com/jpvanhal/flask-basicauth")
1788 "HTTP basic access authentication for Flask")
1790 "This package provides HTTP basic access authentication for Flask.")
1791 (license license:bsd-3)))
1793 (define-public python-flask-sqlalchemy
1795 (name "python-flask-sqlalchemy")
1800 (uri (pypi-uri "Flask-SQLAlchemy" version))
1803 "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"))))
1804 (build-system python-build-system)
1806 `(("python-flask" ,python-flask)
1807 ("python-sqlalchemy" ,python-sqlalchemy)))
1809 "https://github.com/mitsuhiko/flask-sqlalchemy")
1811 "Module adding SQLAlchemy support to your Flask application")
1813 "This package adds SQLAlchemy support to your Flask application.")
1814 (license license:bsd-3)))
1816 (define-public python-flask-restplus
1818 (name "python-flask-restplus")
1823 (uri (pypi-uri "flask-restplus" version))
1826 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
1827 (build-system python-build-system)
1829 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
1831 ;; (modify-phases %standard-phases
1834 ;; (zero? (system* "nosetests")))))))
1836 `(("python-aniso8601" ,python-aniso8601)
1837 ("python-flask" ,python-flask)
1838 ("python-jsonschema" ,python-jsonschema)
1839 ("python-pytz" ,python-pytz)
1840 ("python-six" ,python-six)))
1842 `(("python-tzlocal" ,python-tzlocal)
1843 ("python-blinker" ,python-blinker)
1844 ("python-nose" ,python-nose)
1845 ("python-rednose" ,python-rednose)))
1846 (home-page "https://github.com/noirbizarre/flask-restplus")
1847 (synopsis "Framework for documented API development with Flask")
1848 (description "This package provides a framework for API development with
1849 the Flask web framework in Python. It is similar to package
1850 @code{python-flask-restful} but supports the @code{python-swagger}
1851 documentation builder.")
1852 (license license:expat)))
1854 (define-public python-flask-restful-swagger
1856 (name "python-flask-restful-swagger")
1861 (uri (pypi-uri "flask-restful-swagger" version))
1864 "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v"))))
1865 (build-system python-build-system)
1867 `(("python-flask-restful" ,python-flask-restful)))
1868 (home-page "https://github.com/rantav/flask-restful-swagger")
1869 (synopsis "Extract Swagger specs from Flask-Restful projects")
1870 (description "This package lets you extract Swagger API documentation
1871 specs from your Flask-Restful projects.")
1872 (license license:expat)))
1874 (define-public python2-flask-restful-swagger
1875 (package-with-python2 python-flask-restful-swagger))
1877 (define-public python-htmlmin
1879 (name "python-htmlmin")
1884 (uri (pypi-uri "htmlmin" version))
1887 "0qxa93j3p1ak32qh8d9kshqv8v3z0hkc13dwbhp5cn7sn3xmsp6a"))))
1889 `(#:tests? #f)) ;htmlmin has no tests
1890 (build-system python-build-system)
1891 (home-page "https://htmlmin.readthedocs.org/en/latest/")
1892 (synopsis "HTML minifier")
1893 (description "@code{htmlmin} is an HTML minifier that just works.
1894 It comes with safe defaults and easily configurable options.")
1895 (license license:bsd-3)))
1897 (define-public python2-htmlmin
1898 (package-with-python2 python-htmlmin))
1900 (define-public python-flask-htmlmin
1902 (name "python-flask-htmlmin")
1907 (uri (pypi-uri "Flask-HTMLmin" version))
1910 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
1912 `(("python-flask" ,python-flask)
1913 ("python-htmlmin" ,python-htmlmin)))
1914 (build-system python-build-system)
1915 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
1916 (synopsis "HTML response minifier for Flask")
1918 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
1919 (license license:bsd-3)))
1921 (define-public python2-flask-htmlmin
1922 (package-with-python2 python-flask-htmlmin))
1924 (define-public python-flask-login
1926 (name "python-flask-login")
1931 (uri (string-append "https://github.com/maxcountryman/flask-login/archive/"
1933 (file-name (string-append name "-" version ".tar.gz"))
1936 "1pdqp7a2gyb7k06xda004x0fi2w66s6kn2i0ndkqndmg12d83f9w"))))
1938 ;; Tests fail PEP8 compliance. See:
1939 ;; https://github.com/maxcountryman/flask-login/issues/340
1941 (build-system python-build-system)
1942 (home-page "https://github.com/maxcountryman/flask-login")
1943 (synopsis "User session management for Flask")
1945 "@code{Flask-Login} provides user session management for Flask. It
1946 handles the common tasks of logging in, logging out, and remembering your
1947 users' sessions over extended periods of time.")
1948 (license license:expat)))
1950 (define-public python2-flask-login
1951 (package-with-python2 python-flask-login))
1953 (define-public python-oauth2client
1955 (name "python-oauth2client")
1960 (uri (pypi-uri "oauth2client" version))
1963 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
1964 (build-system python-build-system)
1968 `(("python-httplib2" ,python-httplib2)
1969 ("python-pyasn1" ,python-pyasn1)
1970 ("python-pyasn1-modules" ,python-pyasn1-modules)
1971 ("python-rsa" ,python-rsa)
1972 ("python-six" ,python-six)))
1973 (home-page "https://github.com/google/oauth2client/")
1974 (synopsis "OAuth 2.0 client library")
1975 (description "@code{python-oauth2client} provides an OAuth 2.0 client
1976 library for Python")
1977 (license license:asl2.0)))
1979 (define-public python-flask-oidc
1981 (name "python-flask-oidc")
1986 (uri (pypi-uri "flask-oidc" version))
1989 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
1990 (build-system python-build-system)
1992 `(("python-flask" ,python-flask)
1993 ("python-itsdangerous" ,python-itsdangerous)
1994 ("python-oauth2client" ,python-oauth2client)
1995 ("python-six" ,python-six)))
1997 `(("python-nose" ,python-nose)
1998 ("python-mock" ,python-mock)))
1999 (home-page "https://github.com/puiterwijk/flask-oidc")
2000 (synopsis "OpenID Connect extension for Flask")
2001 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2003 (license license:bsd-2)))
2005 (define-public python-webassets
2007 (name "python-webassets")
2012 (uri (pypi-uri "webassets" version))
2015 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2016 (build-system python-build-system)
2018 `(("python-jinja2" ,python-jinja2)
2019 ("python-mock" ,python-mock)
2020 ("python-nose" ,python-nose)
2021 ("python-pytest" ,python-pytest)))
2022 (home-page "https://github.com/miracle2k/webassets")
2023 (synopsis "Media asset management")
2024 (description "Merges, minifies and compresses Javascript and CSS files,
2025 supporting a variety of different filters, including YUI, jsmin, jspacker or
2026 CSS tidy. Also supports URL rewriting in CSS files.")
2027 (license license:bsd-2)))
2029 (define-public python-cssmin
2031 (name "python-cssmin")
2036 (uri (pypi-uri "cssmin" version))
2039 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2040 (build-system python-build-system)
2041 (home-page "https://github.com/zacharyvoase/cssmin")
2042 (synopsis "Python port of the YUI CSS Compressor")
2043 (description "Python port of the YUI CSS Compressor.")
2044 (license (list license:expat license:bsd-3))))
2046 (define-public python2-cssmin
2047 (package-with-python2 python-cssmin))
2049 (define-public python-elasticsearch
2051 (name "python-elasticsearch")
2056 (uri (pypi-uri "elasticsearch" version))
2059 "1kjxl45yvvgfb5fmamx0kfsfg9pzphiqrwbkns3s28r1w7ya74cd"))))
2060 (build-system python-build-system)
2062 `(("python-mock" ,python-mock)
2063 ("python-nosexcover" ,python-nosexcover)
2064 ("python-pyaml" ,python-pyaml)
2065 ("python-requests" ,python-requests)))
2067 `(("urllib3" ,python-urllib3)))
2069 ;; tests require the test_elasticsearch module but it is not distributed.
2071 (home-page "https://github.com/elastic/elasticsearch-py")
2072 (synopsis "Low-level client for Elasticsearch")
2073 (description "Official low-level client for Elasticsearch. Its goal is to
2074 provide common ground for all Elasticsearch-related code in Python; because of
2075 this it tries to be opinion-free and very extendable.")
2076 (license license:expat)))
2078 (define-public python2-elasticsearch
2079 (package-with-python2 python-elasticsearch))
2081 (define-public python-flask-script
2083 (name "python-flask-script")
2088 (uri (pypi-uri "Flask-Script" version))
2091 "0zqh2yq8zk7m9b4xw1ryqmrljkdigfb3hk5155a3b5hkfnn6xxyf"))))
2092 (build-system python-build-system)
2094 `(("python-flask" ,python-flask)
2095 ("python-argcomplete" ,python-argcomplete)
2096 ("python-werkzeug" ,python-werkzeug)))
2098 `(("python-pytest" ,python-pytest)))
2100 "https://github.com/smurfix/flask-script")
2101 (synopsis "Scripting support for Flask")
2102 (description "The Flask-Script extension provides support for writing
2103 external scripts in Flask. This includes running a development server,
2104 a customised Python shell, scripts to set up your database, cronjobs,
2105 and other command-line tasks that belong outside the web application
2107 (license license:bsd-3)))
2109 (define-public python2-flask-script
2110 (package-with-python2 python-flask-script))
2112 (define-public python-flask-migrate
2114 (name "python-flask-migrate")
2119 (uri (pypi-uri "Flask-Migrate" version))
2122 "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk"))))
2123 (build-system python-build-system)
2125 `(("python-flask" ,python-flask)
2126 ("python-alembic" ,python-alembic)
2127 ("python-sqlalchemy" ,python-sqlalchemy)
2128 ("python-flask-script" ,python-flask-script)
2129 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2130 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2131 (synopsis "SQLAlchemy database migrations for Flask programs using
2133 (description "This package contains SQLAlchemy database migration tools
2134 for Flask programs that are using @code{python-alembic}.")
2135 (license license:expat)))
2137 (define-public python2-flask-migrate
2138 (package-with-python2 python-flask-migrate))
2140 (define-public python-genshi
2142 (name "python-genshi")
2148 "https://ftp.edgewall.org/pub/genshi/Genshi-"
2152 ;; The first 4 patches are in the master branch upstream.
2153 ;; See this as a reference https://genshi.edgewall.org/ticket/582
2154 ;; The last 2 are NOT in any branch.
2155 ;; They were sent as attachments to a ticket opened at
2156 ;; https://genshi.edgewall.org/ticket/602#no1
2157 "python-genshi-stripping-of-unsafe-script-tags.patch"
2158 "python-genshi-disable-speedups-on-python-3.3.patch"
2159 "python-genshi-isstring-helper.patch"
2160 "python-genshi-add-support-for-python-3.4-AST.patch"
2161 "python-genshi-fix-tests-on-python-3.5.patch"
2162 "python-genshi-buildable-on-python-2.7.patch"))
2165 "0lkkbp6fbwzv0zda5iqc21rr7rdldkwh3hfabfjl9i4bwq14858x"))))
2166 (build-system python-build-system)
2167 (home-page "https://genshi.edgewall.org/")
2168 (synopsis "Toolkit for generation of output for the web")
2169 (description "Genshi is a Python library that provides an integrated set
2170 of components for parsing, generating, and processing HTML, XML or other
2171 textual content for output generation on the web.")
2172 (license license:bsd-3)))
2174 ;; The linter here claims that patch file names should start with the package
2175 ;; name. But, in this case the patches are inherited from python-genshi with
2176 ;; the "python-genshi-" prefix instead of "python2-genshi-".
2177 (define-public python2-genshi
2178 (package-with-python2 python-genshi))
2180 (define-public python-flask-principal
2182 (name "python-flask-principal")
2187 (uri (pypi-uri "Flask-Principal" version))
2190 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
2191 (build-system python-build-system)
2193 `(("python-blinker" ,python-blinker)))
2195 `(("python-flask" ,python-flask)
2196 ("python-nose" ,python-nose)))
2197 (home-page "http://packages.python.org/Flask-Principal/")
2198 (synopsis "Identity management for Flask")
2199 (description "@code{flask_principal} is a identity management library for
2200 Flask. It supports managing both authentication and authorization data in a
2201 thread-local variable.")
2202 (license license:expat)))
2204 (define-public python2-flask-principal
2205 (package-with-python2 python-flask-principal))
2207 (define-public python-flask-httpauth
2209 (name "python-flask-httpauth")
2214 (uri (pypi-uri "Flask-HTTPAuth" version))
2217 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
2218 (build-system python-build-system)
2220 `(("python-flask" ,python-flask)))
2221 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
2222 (synopsis "Basic and Digest HTTP authentication for Flask routes")
2223 (description "@code{flask_httpauth} provides Basic and Digest HTTP
2224 authentication for Flask routes.")
2225 (license license:expat)))
2227 (define-public python2-flask-httpauth
2228 (package-with-python2 python-flask-httpauth))
2230 (define-public python-uritemplate
2232 (name "python-uritemplate")
2237 (uri (pypi-uri "uritemplate" version))
2240 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
2241 (build-system python-build-system)
2242 (home-page "https://uritemplate.readthedocs.org")
2243 (synopsis "Library to deal with URI Templates")
2244 (description "@code{uritemplate} provides Python library to deal with URI
2246 (license license:bsd-2)))
2248 (define-public python2-uritemplate
2249 (package-with-python2 python-uritemplate))
2251 (define-public python-publicsuffix
2253 (name "python-publicsuffix")
2257 (uri (pypi-uri "publicsuffix" version))
2260 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
2261 (build-system python-build-system)
2263 `(#:tests? #f)) ; tests use the internet
2264 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
2265 (synopsis "Get suffix for a domain name")
2266 (description "Get a public suffix for a domain name using the Public Suffix
2268 (license license:expat)))
2270 (define-public python2-publicsuffix
2271 (package-with-python2 python-publicsuffix))
2273 (define-public python-publicsuffix2
2275 (name "python-publicsuffix2")
2276 (version "2.20160818")
2280 (uri (pypi-uri "publicsuffix2" version ".tar.bz2"))
2283 "1bb55yka9vkn7i6y1kjzxa516kh6v4gsrxa90w5wdz5p5n968r68"))))
2284 (build-system python-build-system)
2286 '(#:tests? #f)) ; The test suite requires network access.
2287 (home-page "https://github.com/pombredanne/python-publicsuffix2")
2288 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
2289 (description "Get a public suffix for a domain name using the Public Suffix
2290 List. Forked from and using the same API as the publicsuffix package.")
2291 (license (list license:expat license:mpl2.0))))
2293 (define-public python2-publicsuffix2
2294 (package-with-python2 python-publicsuffix2))
2296 (define-public python-werkzeug
2298 (name "python-werkzeug")
2303 (uri (pypi-uri "Werkzeug" version))
2306 "1h5wycw8yj7q0grqsjnsqflmrlsdagvl2j4dsgdncci6mjc7fpa5"))))
2307 (build-system python-build-system)
2309 `(("python-pytest" ,python-pytest)))
2310 (home-page "http://werkzeug.pocoo.org/")
2311 (synopsis "Utilities for WSGI applications")
2312 (description "One of the most advanced WSGI utility modules. It includes a
2313 powerful debugger, full-featured request and response objects, HTTP utilities to
2314 handle entity tags, cache control headers, HTTP dates, cookie handling, file
2315 uploads, a powerful URL routing system and a bunch of community-contributed
2317 (license license:x11)))
2319 (define-public python2-werkzeug
2320 (package-with-python2 python-werkzeug))
2322 (define-public python-bottle
2324 (name "python-bottle")
2329 (uri (pypi-uri "bottle" version))
2332 "0m9k2a7yxvggc4kw8fsvj381vgsvfcdshg5nzy6vwrxiw2p53drr"))))
2333 (build-system python-build-system)
2334 (home-page "http://bottlepy.org/")
2335 (synopsis "WSGI framework for small web-applications.")
2336 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
2337 (license license:expat)))
2339 (define-public python2-bottle
2340 (package-with-python2 python-bottle))
2342 (define-public python-wtforms
2344 (name "python-wtforms")
2349 (uri (pypi-uri "WTForms" version ".zip"))
2352 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
2353 (build-system python-build-system)
2356 (modify-phases %standard-phases
2357 (add-after 'unpack 'remove-django-test
2358 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
2362 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
2363 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
2366 `(("unzip" ,unzip)))
2367 (home-page "http://wtforms.simplecodes.com/")
2369 "Form validation and rendering library for Python web development")
2371 "WTForms is a flexible forms validation and rendering library
2372 for Python web development. It is very similar to the web form API
2373 available in Django, but is a standalone package.")
2374 (license license:bsd-3)))
2376 (define-public python2-wtforms
2377 (package-with-python2 python-wtforms))
2379 (define-public python-paste
2381 (name "python-paste")
2386 (uri (pypi-uri "Paste" version))
2389 "062jk0nlxf6lb2wwj6zc20rlvrwsnikpkh90y0dn8cjch93s6ii3"))
2390 (patches (search-patches "python-paste-remove-website-test.patch"
2391 "python-paste-remove-timing-test.patch"))))
2392 (build-system python-build-system)
2394 `(("python-nose" ,python-nose)))
2396 `(("python-six" ,python-six)))
2397 (home-page "http://pythonpaste.org")
2399 "Python web development tools, focusing on WSGI")
2401 "Paste provides a variety of web development tools and middleware which
2402 can be nested together to build web applications. Paste's design closely
2403 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
2404 (license license:expat)))
2406 (define-public python2-paste
2407 (package-with-python2 python-paste))
2409 (define-public python-pastescript
2411 (name "python-pastescript")
2416 (uri (pypi-uri "PasteScript" version))
2419 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
2420 (build-system python-build-system)
2422 `(("python-nose" ,python-nose)))
2424 `(("python-paste" ,python-paste)
2425 ("python-pastedeploy" ,python-pastedeploy)))
2426 (home-page "http://pythonpaste.org/script/")
2428 '(;; Unfortunately, this requires the latest unittest2,
2429 ;; but that requires traceback2 which requires linecache2 which requires
2430 ;; unittest2. So we're skipping tests for now.
2431 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
2432 ;; so in theory we could get around this situation somehow.)
2435 "Pluggable command line tool for serving web applications and more")
2437 "PasteScript is a plugin-friendly command line tool which provides a
2438 variety of features, from launching web applications to bootstrapping project
2440 (license license:expat)))
2442 (define-public python2-pastescript
2443 (package-with-python2 python-pastescript))