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 Nils Gillmann <ng0@n0.is>
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>
25 ;;; Copyright © 2017 Mark Meyer <mark@ofosos.org>
26 ;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
27 ;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
28 ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
30 ;;; This file is part of GNU Guix.
32 ;;; GNU Guix is free software; you can redistribute it and/or modify it
33 ;;; under the terms of the GNU General Public License as published by
34 ;;; the Free Software Foundation; either version 3 of the License, or (at
35 ;;; your option) any later version.
37 ;;; GNU Guix is distributed in the hope that it will be useful, but
38 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
39 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 ;;; GNU General Public License for more details.
42 ;;; You should have received a copy of the GNU General Public License
43 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
45 (define-module (gnu packages python-web)
46 #:use-module (guix packages)
47 #:use-module (guix download)
48 #:use-module (guix build-system python)
49 #:use-module (guix utils)
50 #:use-module (gnu packages)
51 #:use-module (gnu packages check)
52 #:use-module (gnu packages compression)
53 #:use-module (gnu packages curl)
54 #:use-module (gnu packages databases)
55 #:use-module (gnu packages django)
56 #:use-module (gnu packages pkg-config)
57 #:use-module (gnu packages python)
58 #:use-module (gnu packages python-crypto)
59 #:use-module (gnu packages tls)
60 #:use-module (gnu packages time)
61 #:use-module (gnu packages xml)
62 #:use-module ((guix licenses) #:prefix license:)
63 #:use-module (srfi srfi-1))
65 (define-public python-aiohttp
67 (name "python-aiohttp")
72 (uri (pypi-uri "aiohttp" version))
75 "1b888lggmyf2d08rfayq9khszzc0pav1z70ssc0b4d9kkr4g1klz"))))
76 (build-system python-build-system)
78 `(#:tests? #f)) ;FIXME: 2 errors, 2084 passed
80 `(("python-async-generator" ,python-async-generator)
81 ("python-pytest" ,python-pytest)
82 ("python-pytest-capturelog" ,python-pytest-capturelog)
83 ("python-pytest-mock" ,python-pytest-mock)))
85 `(("python-aiodns" ,python-aiodns)
86 ("python-async-timeout" ,python-async-timeout)
87 ("python-attrs" ,python-attrs)
88 ("python-chardet" ,python-chardet)
89 ("python-idna-ssl" ,python-idna-ssl)
90 ("python-multidict" ,python-multidict)
91 ("python-yarl" ,python-yarl)))
92 (home-page "https://github.com/aio-libs/aiohttp/")
93 (synopsis "Async HTTP client/server framework (asyncio)")
94 (description "@code{aiohttp} is an asynchronous HTTP client/server
97 Its main features are:
99 @item Supports both client and server side of HTTP protocol.
100 @item Supports both client and server Web-Sockets out-of-the-box without the
102 @item Web-server has middlewares and pluggable routing.
104 (license license:asl2.0)))
106 (define-public python-aiodns
108 (name "python-aiodns")
113 (uri (pypi-uri "aiodns" version))
116 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
117 (build-system python-build-system)
119 `(("python-pycares" ,python-pycares)))
121 `(#:tests? #f)) ;tests require internet access
122 (home-page "http://github.com/saghul/aiodns")
123 (synopsis "Simple DNS resolver for asyncio")
124 (description "@code{aiodns} provides a simple way for doing
125 asynchronous DNS resolutions with a synchronous looking interface by
126 using @url{https://github.com/saghul/pycares,pycares}.")
127 (license license:expat)))
129 (define-public python-furl
136 (uri (pypi-uri "furl" version))
139 "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
140 (build-system python-build-system)
142 `(("python-six" ,python-six)
143 ("python-orderedmultidict" ,python-orderedmultidict)))
145 `(("python-pycodestyle" ,python-pycodestyle)))
146 (home-page "https://github.com/gruns/furl")
147 (synopsis "URL manipulation in Python")
148 (description "Furl provides an easy-to-use alternative to the
149 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
150 (license license:unlicense)))
152 (define-public python2-furl
153 (package-with-python2 python-furl))
155 (define-public python-httplib2
157 (name "python-httplib2")
162 (uri (pypi-uri "httplib2" version))
165 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
166 (build-system python-build-system)
167 (home-page "https://github.com/jcgregorio/httplib2")
168 (synopsis "Comprehensive HTTP client library")
170 "A comprehensive HTTP client library supporting many features left out of
171 other HTTP libraries.")
172 (license license:expat)))
174 (define-public python2-httplib2
175 (package-with-python2 python-httplib2))
177 (define-public python-sockjs-tornado
179 (name "python-sockjs-tornado")
184 (uri (pypi-uri "sockjs-tornado" version))
187 "0zhq8wnnhkfbvdnsggqrc3pp97pqpilsf7fh6ymvnf52r0rwyjsc"))))
188 (build-system python-build-system)
190 `(;; There are no tests, and running the test phase requires missing
194 `(("python-tornado" ,python-tornado)))
195 (home-page "https://github.com/mrjoes/sockjs-tornado/")
197 "SockJS Python server implementation on top of the Tornado framework")
199 "SockJS-tornado provides the server-side counterpart to a SockJS client
200 library, through the Tornado framework.
202 SockJS provides a low-latency, full-duplex, cross-domain communication channel
203 between a web browser and web server.")
204 (license license:expat)))
206 (define-public python2-sockjs-tornado
207 (package-with-python2 python-sockjs-tornado))
209 (define-public python-flask-babel
211 (name "python-flask-babel")
216 (uri (pypi-uri "Flask-Babel" version))
219 "0ff9n165vhf1nhv6807ckhpp224jw7k7sd7jz5kfh3sbpl85gmy0"))))
220 (build-system python-build-system)
222 `(("python-flask" ,python-flask)
223 ("python-babel" ,python-babel)
224 ("python-jinja2" ,python-jinja2)
225 ("python-pytz" ,python-pytz)))
226 (home-page "https://github.com/python-babel/flask-babel")
227 (synopsis "Add i18n/l10n support to Flask applications")
228 (description "This package implements internationalization and localization
229 support for Flask. This is based on the Python babel module as well as pytz -
230 both of which are installed automatically if you install this library.")
231 (license license:bsd-3)))
233 (define-public python2-flask-babel
234 (package-with-python2 python-flask-babel))
236 (define-public python-html5lib
238 (name "python-html5lib")
243 (uri (pypi-uri "html5lib" version))
246 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
247 (build-system python-build-system)
249 `(("python-six" ,python-six)
250 ("python-webencodings" ,python-webencodings)))
252 `(#:test-target "check"))
254 "https://github.com/html5lib/html5lib-python")
256 "Python HTML parser based on the WHATWG HTML specifcation")
258 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
259 and written in Python.")
260 (license license:expat)))
262 (define-public python2-html5lib
263 (package-with-python2 python-html5lib))
265 ;; Needed for python-bleach, a dependency of python-notebook
266 (define-public python-html5lib-0.9
268 (inherit python-html5lib)
273 (uri (pypi-uri "html5lib" version))
276 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
278 (define-public python2-html5lib-0.9
279 (package-with-python2 python-html5lib-0.9))
281 (define-public python-html5-parser
283 (name "python-html5-parser")
287 (uri (pypi-uri "html5-parser" version))
290 "01mx33sx4dhl4kj6wc48nj6jz7ry60rkhjv0s6k8h5xmjf5yy0x9"))))
291 (build-system python-build-system)
293 `(("pkg-config" ,pkg-config)))
295 `(("libxml2" ,libxml2)))
297 `(("python-lxml" ,python-lxml)
298 ("python-beautifulsoup4" ,python-beautifulsoup4)))
299 (home-page "https://html5-parser.readthedocs.io")
300 (synopsis "Fast C-based HTML5 parsing for Python")
301 (description "This package provides a fast implementation of the HTML5
302 parsing spec for Python. Parsing is done in C using a variant of the gumbo
303 parser. The gumbo parse tree is then transformed into an lxml tree, also in
304 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
305 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
306 ;; indicate ASL2.0, including the LICENSE file for the whole project.
307 (license (list license:asl2.0 license:gpl3))))
309 (define-public python2-html5-parser
310 (package-with-python2 python-html5-parser))
312 (define-public python-pycurl
314 (name "python-pycurl")
319 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
322 (base32 "1915kb04k1j4y6k1dx1sgnbddxrl9r1n4q928if2lkrdm73xy30g"))))
323 (build-system python-build-system)
325 ;; The tests attempt to access external web servers, so we cannot run
326 ;; them. Furthermore, they are skipped altogether when using Python 2.
329 `(("python-nose" ,python-nose)
330 ("python-bottle" ,python-bottle)))
334 (home-page "http://pycurl.io/")
335 (synopsis "Lightweight Python wrapper around libcurl")
336 (description "Pycurl is a lightweight wrapper around libcurl. It provides
337 high-speed transfers via libcurl and frequently outperforms alternatives.")
339 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
340 ;; under the terms of LGPLv2.1+ or Expat.
341 (license (list license:lgpl2.1+ license:expat))))
343 (define-public python2-pycurl
344 (package-with-python2 python-pycurl))
346 (define-public python-webencodings
348 (name "python-webencodings")
352 (uri (pypi-uri "webencodings" version))
355 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
356 (build-system python-build-system)
359 (modify-phases %standard-phases
362 (invoke "py.test" "-v" "webencodings/tests.py")
365 `(("python-pytest" ,python-pytest)))
366 (home-page "https://github.com/SimonSapin/python-webencodings")
367 (synopsis "Character encoding aliases for legacy web content")
369 "In order to be compatible with legacy web content when interpreting
370 something like @code{Content-Type: text/html; charset=latin1}, tools need
371 to use a particular set of aliases for encoding labels as well as some
372 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
373 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
374 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
375 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
376 defines all such details so that implementations do not have to
377 reverse-engineer each other.
379 This module implements the Encoding standard and has encoding labels and
380 BOM detection, but the actual implementation for encoders and decoders
382 (license license:bsd-3)))
384 (define-public python2-webencodings
385 (package-with-python2 python-webencodings))
387 (define-public python-openid
389 (name "python-openid")
394 (uri (pypi-uri "python3-openid" version))
397 "1x3nh3fycqfn43jp5j5pb4q4y2jxp4mdka4absaa3bc0078qd758"))))
398 (build-system python-build-system)
401 (modify-phases %standard-phases
404 (invoke "./admin/runtests")
406 (properties `((python2-variant . ,(delay python2-openid))))
408 `(("python-defusedxml" ,python-defusedxml)))
410 `(("python-psycopg2" ,python-psycopg2)
411 ("python-django" ,python-django)))
412 (home-page "https://github.com/necaris/python3-openid")
413 (synopsis "OpenID support for servers and consumers")
414 (description "This library provides OpenID authentication for Python, both
415 for clients and servers.")
416 (license license:asl2.0)))
418 (define-public python2-openid
420 (name "python2-openid")
425 (uri (pypi-uri "python-openid" version))
428 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
429 (build-system python-build-system)
431 ;; Python 3 support is in `python3-openid`, a separate package.
432 `(#:python ,python-2))
433 (home-page "https://github.com/openid/python-openid")
434 (synopsis "OpenID support for servers and consumers")
435 (description "This library provides OpenID authentication for Python, both
436 for clients and servers.")
437 (license license:asl2.0)))
439 (define-public python-cssutils
441 (name "python-cssutils")
446 (uri (pypi-uri "cssutils" version))
449 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
450 (build-system python-build-system)
452 `(("unzip" ,unzip))) ; for unpacking the source
454 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
455 (home-page "http://cthedot.de/cssutils/")
457 "CSS Cascading Style Sheets library for Python")
459 "Cssutils is a Python package for parsing and building CSS
460 Cascading Style Sheets. Currently it provides a DOM only and no rendering
462 (license license:lgpl3+)))
464 (define-public python2-cssutils
465 (package-with-python2 python-cssutils))
467 (define-public python-cssselect
469 (name "python-cssselect")
474 (uri (pypi-uri "cssselect" version))
477 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
478 (build-system python-build-system)
480 ;; tests fail with message
481 ;; AttributeError: 'module' object has no attribute 'tests'
484 "https://pythonhosted.org/cssselect/")
486 "CSS3 selector parser and translator to XPath 1.0")
488 "Cssselect ia a Python module that parses CSS3 Selectors and translates
489 them to XPath 1.0 expressions. Such expressions can be used in lxml or
490 another XPath engine to find the matching elements in an XML or HTML document.")
491 (license license:bsd-3)))
493 (define-public python2-cssselect
494 (package-with-python2 python-cssselect))
496 (define-public python-openid-cla
498 (name "python-openid-cla")
503 (uri (pypi-uri "python-openid-cla" version))
506 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
507 (build-system python-build-system)
508 (arguments '(#:tests? #f)) ; No tests.
509 (home-page "https://github.com/puiterwijk/python-openid-cla/")
510 (synopsis "Implementation of the OpenID CLA extension for python-openid")
511 (description "@code{openid-cla} is an implementation of the OpenID
512 contributor license agreement extension for python-openid.")
513 (license license:bsd-3)))
515 (define-public python2-openid-cla
516 (package-with-python2 python-openid-cla))
518 (define-public python-openid-teams
520 (name "python-openid-teams")
525 (uri (pypi-uri "python-openid-teams" version))
528 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
529 (build-system python-build-system)
530 (arguments '(#:tests? #f)) ; No tests.
531 (home-page "https://github.com/puiterwijk/python-openid-teams/")
532 (synopsis "Implementation of the OpenID teams extension for python-openid")
534 "@code{openid-teams} is an implementation of the OpenID
535 teams extension for python-openid.")
536 (license license:bsd-3)))
538 (define-public python2-openid-teams
539 (package-with-python2 python-openid-teams))
541 (define-public python-tornado
543 (name "python-tornado")
548 (uri (pypi-uri "tornado" version))
550 (base32 "1zbkgcdfq81k298awrm8p0xwbwwn2p3nbizdglzfbkskhai082fv"))))
551 (build-system python-build-system)
553 '(;; FIXME: Two tests error out with:
554 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
556 ;; (modify-phases %standard-phases
559 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
560 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
561 ;; (invoke- "python" "-m" "tornado.test")
565 `(("python-certifi" ,python-certifi)))
567 `(("python-backports-abc" ,python-backports-abc)))
568 (home-page "http://www.tornadoweb.org/")
569 (synopsis "Python web framework and asynchronous networking library")
571 "Tornado is a Python web framework and asynchronous networking library,
572 originally developed at FriendFeed. By using non-blocking network I/O,
573 Tornado can scale to tens of thousands of open connections, making it ideal
574 for long polling, WebSockets, and other applications that require a long-lived
575 connection to each user.")
576 (license license:asl2.0)
577 (properties `((python2-variant . ,(delay python2-tornado))))))
579 (define-public python2-tornado
580 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
581 (package (inherit tornado)
583 `(("python2-backport-ssl-match-hostname"
584 ,python2-backport-ssl-match-hostname)
585 ("python2-singledispatch" ,python2-singledispatch)
586 ,@(package-propagated-inputs tornado))))))
588 (define-public python-tornado-http-auth
590 (name "python-tornado-http-auth")
595 (uri (pypi-uri "tornado-http-auth" version))
598 "0znrgqd7k2s4ia474xizi6h3061zj4sn5n6cq76bkwl3wwshifn5"))))
599 (build-system python-build-system)
601 `(("python-tornado" ,python-tornado)))
603 "https://github.com/gvalkov/tornado-http-auth")
605 "Digest and basic authentication module for Tornado")
607 "Provides support for adding authentication to services using the Tornado
608 web framework, either via the basic or digest authentication schemes.")
609 (license license:asl2.0)))
611 (define-public python-terminado
613 (name "python-terminado")
618 (uri (pypi-uri "terminado" version))
621 "09h1kwi86g5mrk14s4pgbhshd602zry29lnpxamcqz864kva22rc"))))
622 (build-system python-build-system)
624 `(("python-tornado" ,python-tornado)
625 ("python-ptyprocess" ,python-ptyprocess)))
627 `(("python-nose" ,python-nose)))
630 (modify-phases %standard-phases
635 (home-page "https://github.com/takluyver/terminado")
636 (synopsis "Terminals served to term.js using Tornado websockets")
637 (description "This package provides a Tornado websocket backend for the
638 term.js Javascript terminal emulator library.")
639 (license license:bsd-2)
640 (properties `((python2-variant . ,(delay python2-terminado))))))
642 (define-public python2-terminado
643 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
644 (package (inherit terminado)
646 `(("python2-backport-ssl-match-hostname"
647 ,python2-backport-ssl-match-hostname)
648 ,@(package-propagated-inputs terminado))))))
650 (define-public python-wsgi-intercept
652 (name "python-wsgi-intercept")
657 "https://pypi.python.org/packages/"
658 "38/76/ebcbc24d0cb77db34520a3ca6ed1bd43ace17d182bbd8dd7d976f1c176fb/"
659 "wsgi_intercept-" version ".tar.gz"))
662 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
663 (build-system python-build-system)
665 `(("python-six" ,python-six)))
667 `(("python-pytest" ,python-pytest)
668 ("python-httplib2" ,python-httplib2)
669 ("python-requests" ,python-requests)
670 ("python-urllib3" ,python-urllib3)))
671 (synopsis "Puts a WSGI application in place of a real URI for testing")
672 (description "Wsgi_intercept installs a WSGI application in place of a real
673 URI for testing. Testing a WSGI application normally involves starting a
674 server at a local host and port, then pointing your test code to that address.
675 Instead, this library lets you intercept calls to any specific host/port
676 combination and redirect them into a WSGI application importable by your test
677 program. Thus, you can avoid spawning multiple processes or threads to test
679 (home-page "https://github.com/cdent/wsgi-intercept")
680 (license license:expat)))
682 (define-public python-webob
684 (name "python-webob")
689 (uri (pypi-uri "WebOb" version))
692 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
693 (build-system python-build-system)
695 `(("python-nose" ,python-nose)))
696 (home-page "https://webob.org/")
697 (synopsis "WSGI request and response object")
699 "WebOb provides wrappers around the WSGI request environment, and an
700 object to help create WSGI responses.")
701 (license license:expat)))
703 (define-public python2-webob
704 (package-with-python2 python-webob))
706 (define-public python-zope-event
708 (name "python-zope-event")
713 (uri (string-append "https://pypi.python.org/packages/source/z"
714 "/zope.event/zope.event-" version ".tar.gz"))
717 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
718 (build-system python-build-system)
719 (home-page "https://pypi.python.org/pypi/zope.event")
720 (synopsis "Event publishing system for Python")
721 (description "Zope.event provides an event publishing API, intended for
722 use by applications which are unaware of any subscribers to their events. It
723 is a simple event-dispatching system on which more sophisticated event
724 dispatching systems can be built.")
725 (license license:zpl2.1)))
727 (define-public python2-zope-event
728 (package-with-python2 python-zope-event))
730 (define-public python-zope-interface
732 (name "python-zope-interface")
737 (uri (string-append "https://pypi.python.org/packages/source/z"
738 "/zope.interface/zope.interface-" version ".tar.gz"))
741 "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if"))))
742 (build-system python-build-system)
744 `(("python-zope-event" ,python-zope-event)))
745 (home-page "https://github.com/zopefoundation/zope.interface")
746 (synopsis "Python implementation of the \"design by contract\"
748 (description "Zope.interface provides an implementation of \"object
749 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
750 conforming to a given API or contract.")
751 (license license:zpl2.1)))
753 (define-public python2-zope-interface
754 (package-with-python2 python-zope-interface))
756 (define-public python-zope-exceptions
758 (name "python-zope-exceptions")
763 (uri (string-append "https://pypi.python.org/packages/source/z"
764 "/zope.exceptions/zope.exceptions-"
768 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
769 (build-system python-build-system)
771 '(#:tests? #f)) ; circular dependency with zope.testrunner
773 `(("python-zope-interface" ,python-zope-interface)))
774 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
775 (synopsis "Zope exceptions")
776 (description "Zope.exceptions provides general-purpose exception types
777 that have uses outside of the Zope framework.")
778 (license license:zpl2.1)))
780 (define-public python2-zope-exceptions
781 (package-with-python2 python-zope-exceptions))
783 (define-public python-zope-testing
785 (name "python-zope-testing")
790 (uri (pypi-uri "zope.testing" version))
793 "0iiq54hjhkk2gpvzfjac70vyn4r0kw0ngvicshxbdwrkgf2gjq3g"))
794 (modules '((guix build utils)))
797 ;; Remove pre-compiled .pyc files backup files from source.
798 (for-each delete-file (find-files "." "(\\.pyc|~)$"))
800 (build-system python-build-system)
801 (home-page "https://pypi.python.org/pypi/zope.testing")
802 (synopsis "Zope testing helpers")
803 (description "Zope.testing provides a number of testing utilities for HTML
804 forms, HTTP servers, regular expressions, and more.")
805 (license license:zpl2.1)))
807 (define-public python2-zope-testing
808 (package-with-python2 python-zope-testing))
810 (define-public python-zope-testrunner
812 (name "python-zope-testrunner")
817 (uri (string-append "https://pypi.python.org/packages/source/z"
818 "/zope.testrunner/zope.testrunner-"
822 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
823 (build-system python-build-system)
825 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
827 `(("python-six" ,python-six)
828 ;("python-zope-interface" ,python-zope-interface)
829 ("python-zope-exceptions" ,python-zope-exceptions)
830 ("python-zope-testing" ,python-zope-testing)
833 `(("python-zope-interface" ,python-zope-interface)))
834 (home-page "https://pypi.python.org/pypi/zope.testrunner")
835 (synopsis "Zope testrunner script")
836 (description "Zope.testrunner provides a script for running Python
838 (license license:zpl2.1)))
840 (define-public python2-zope-testrunner
841 (let ((base (package-with-python2 python-zope-testrunner)))
845 (append (package-native-inputs base)
846 `(("python2-subunit" ,python2-subunit)
847 ("python2-mimeparse" ,python2-mimeparse)))))))
849 (define-public python-zope-i18nmessageid
851 (name "python-zope-i18nmessageid")
857 "https://pypi.python.org/packages/source/z"
858 "/zope.i18nmessageid/zope.i18nmessageid-"
862 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
863 (build-system python-build-system)
864 (home-page "https://pypi.python.org/pypi/zope.i18nmessageid")
865 (synopsis "Message identifiers for internationalization")
866 (description "Zope.i18nmessageid provides facilities for declaring
867 internationalized messages within program source text.")
868 (license license:zpl2.1)))
870 (define-public python2-zope-i18nmessageid
871 (package-with-python2 python-zope-i18nmessageid))
873 (define-public python-zope-schema
875 (name "python-zope-schema")
880 (uri (string-append "https://pypi.python.org/packages/source/z"
881 "/zope.schema/zope.schema-" version ".tar.gz"))
884 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
885 (build-system python-build-system)
887 '(#:tests? #f)) ; FIXME: Tests can't find zope.event.
889 `(("python-zope-event" ,python-zope-event)
890 ("python-zope-exceptions" ,python-zope-exceptions)
891 ("python-zope-interface" ,python-zope-interface)))
893 `(("python-zope-testing" ,python-zope-testing)
894 ("python-coverage" ,python-coverage)
895 ("python-nose" ,python-nose)))
896 (home-page "https://pypi.python.org/pypi/zope.schema")
897 (synopsis "Zope data schemas")
898 (description "Zope.scheme provides extensions to zope.interface for
899 defining data schemas.")
900 (license license:zpl2.1)))
902 (define-public python2-zope-schema
903 (package-with-python2 python-zope-schema))
905 (define-public python-zope-configuration
907 (name "python-zope-configuration")
911 (uri (string-append "https://pypi.python.org/packages/source/z"
912 "/zope.configuration/zope.configuration-"
916 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
917 (build-system python-build-system)
919 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
921 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
922 ("python-zope-schema" ,python-zope-schema)))
923 (home-page "https://pypi.python.org/pypi/zope.configuration")
924 (synopsis "Zope Configuration Markup Language")
925 (description "Zope.configuration implements ZCML, the Zope Configuration
927 (license license:zpl2.1)))
929 (define-public python2-zope-configuration
930 (package-with-python2 python-zope-configuration))
932 (define-public python-zope-proxy
934 (name "python-zope-proxy")
939 (uri (string-append "https://pypi.python.org/packages/source/z"
940 "/zope.proxy/zope.proxy-" version ".tar.gz"))
943 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
944 (build-system python-build-system)
946 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
948 `(("python-zope-interface" ,python-zope-interface)))
949 (home-page "https://pypi.python.org/pypi/zope.proxy")
950 (synopsis "Generic, transparent proxies")
951 (description "Zope.proxy provides generic, transparent proxies for Python.
952 Proxies are special objects which serve as mostly-transparent wrappers around
953 another object, intervening in the apparent behavior of the wrapped object
954 only when necessary to apply the policy (e.g., access checking, location
955 brokering, etc.) for which the proxy is responsible.")
956 (license license:zpl2.1)))
958 (define-public python2-zope-proxy
959 (package-with-python2 python-zope-proxy))
961 (define-public python-zope-location
963 (name "python-zope-location")
968 (uri (string-append "https://pypi.python.org/packages/source/z"
969 "/zope.location/zope.location-" version ".tar.gz"))
972 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
973 (build-system python-build-system)
975 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
977 `(("python-zope-proxy" ,python-zope-proxy)
978 ("python-zope-schema" ,python-zope-schema)))
979 (home-page "https://pypi.python.org/pypi/zope.location/")
980 (synopsis "Zope location library")
981 (description "Zope.location implements the concept of \"locations\" in
982 Zope3, which are are special objects that have a structural location.")
983 (license license:zpl2.1)))
985 (define-public python2-zope-location
986 (package-with-python2 python-zope-location))
988 (define-public python-zope-security
990 (name "python-zope-security")
995 (uri (string-append "https://pypi.python.org/packages/source/z"
996 "/zope.security/zope.security-" version ".tar.gz"))
999 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
1000 (build-system python-build-system)
1002 '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
1004 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1005 ("python-zope-proxy" ,python-zope-proxy)
1006 ("python-zope-schema" ,python-zope-schema)))
1008 `(("python-six" ,python-six)
1009 ("python-zope-component" ,python-zope-component)
1010 ("python-zope-configuration" ,python-zope-configuration)
1011 ("python-zope-location" ,python-zope-location)
1012 ("python-zope-testrunner" ,python-zope-testrunner)
1013 ("python-zope-testing" ,python-zope-testing)))
1014 (home-page "https://pypi.python.org/pypi/zope.security")
1015 (synopsis "Zope security framework")
1016 (description "Zope.security provides a generic mechanism to implement
1017 security policies on Python objects.")
1018 (license license:zpl2.1)))
1020 (define-public python2-zope-security
1021 (let ((zope-security (package-with-python2 python-zope-security)))
1022 (package (inherit zope-security)
1024 `(("python2-zope-testrunner" ,python2-zope-testrunner)
1026 "python-zope-testrunner"
1027 (package-propagated-inputs zope-security)))))))
1029 (define-public python-zope-component
1031 (name "python-zope-component")
1036 (uri (pypi-uri "zope.component" version))
1039 "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv"))))
1040 (build-system python-build-system)
1042 ;; Skip tests due to circular dependency with python-zope-security.
1045 `(("python-zope-testing" ,python-zope-testing)))
1047 `(("python-zope-event" ,python-zope-event)
1048 ("python-zope-interface" ,python-zope-interface)
1049 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1050 ("python-zope-configuration" ,python-zope-configuration)))
1051 (home-page "https://github.com/zopefoundation/zope.component")
1052 (synopsis "Zope Component Architecture")
1053 (description "Zope.component represents the core of the Zope Component
1054 Architecture. Together with the zope.interface package, it provides
1055 facilities for defining, registering and looking up components.")
1056 (license license:zpl2.1)))
1058 (define-public python2-zope-component
1059 (package-with-python2 python-zope-component))
1061 (define-public python-ndg-httpsclient
1063 (name "python-ndg-httpsclient")
1067 (uri (pypi-uri "ndg_httpsclient" version))
1070 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1071 (build-system python-build-system)
1073 '(;; The tests appear to require networking.
1076 `(("python-pyopenssl" ,python-pyopenssl)))
1077 (synopsis "HTTPS support for Python's httplib and urllib2")
1078 (description "This is a HTTPS client implementation for httplib and urllib2
1079 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1080 over the default provided with Python and, importantly, enables full
1081 verification of the SSL peer.")
1082 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1083 (license license:bsd-3)))
1085 ;; python2-openssl requires special care, so package-with-python2 is
1087 (define-public python2-ndg-httpsclient
1088 (package (inherit python-ndg-httpsclient)
1089 (name "python2-ndg-httpsclient")
1091 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1092 ((#:python _) python-2)))
1094 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1096 (define-public python-websocket-client
1098 (name "python-websocket-client")
1103 (uri (pypi-uri "websocket_client" version))
1106 "0h9glp1jll3z76ly3kg08aqgxqk0a68p4zi9yn50353bh5nj92v7"))))
1107 (build-system python-build-system)
1109 `(("python-six" ,python-six)))
1110 (home-page "https://github.com/liris/websocket-client")
1111 (synopsis "WebSocket client for Python")
1112 (description "The Websocket-client module provides the low level APIs for
1113 WebSocket usage in Python programs.")
1114 (license license:lgpl2.1+)))
1116 (define-public python2-websocket-client
1117 (package-with-python2 python-websocket-client))
1119 (define-public python-requests
1121 (name "python-requests")
1125 (uri (pypi-uri "requests" version))
1128 "1s0wg4any4dsv5l3hqjxqk2zgb7pdbqhy9rhc8kh3aigfq4ws8jp"))))
1129 ;; TODO: unbundle urllib3 and chardet.
1130 (build-system python-build-system)
1132 ;; FIXME: Some tests require network access.
1134 (home-page "http://python-requests.org/")
1135 (synopsis "Python HTTP library")
1137 "Requests is a Python HTTP client library. It aims to be easier to use
1138 than Python’s urllib2 library.")
1139 (license license:asl2.0)))
1141 ;; Some software requires an older version of Requests, notably Docker
1143 (define-public python-requests-2.7
1144 (package (inherit python-requests)
1148 (uri (pypi-uri "requests" version))
1151 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1153 (define-public python2-requests
1154 (package-with-python2 python-requests))
1156 (define-public python-requests-mock
1158 (name "python-requests-mock")
1163 (uri (pypi-uri "requests-mock" version))
1166 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1167 (build-system python-build-system)
1169 `(("python-requests" ,python-requests)
1170 ("python-six" ,python-six)))
1172 `(("python-pbr" ,python-pbr)
1173 ("python-discover" ,python-discover)
1174 ("python-docutils" ,python-docutils)
1175 ("python-fixtures" ,python-fixtures)
1176 ("python-mock" ,python-mock)
1177 ("python-sphinx" ,python-sphinx)
1178 ("python-testrepository" ,python-testrepository)
1179 ("python-testtools" ,python-testtools)))
1180 (home-page "https://requests-mock.readthedocs.org/")
1181 (synopsis "Mock out responses from the requests package")
1183 "This module provides a building block to stub out the HTTP requests
1184 portions of your testing code.")
1185 (properties `((python2-variant . ,(delay python2-requests-mock))))
1186 (license license:asl2.0)))
1188 (define-public python2-requests-mock
1189 (package (inherit (package-with-python2
1190 (strip-python2-variant python-requests-mock)))
1192 `(#:python ,python-2
1193 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1196 (define-public python-requests-toolbelt
1198 (name "python-requests-toolbelt")
1202 (uri (pypi-uri "requests-toolbelt" version))
1205 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1206 (build-system python-build-system)
1208 `(("python-betamax" ,python-betamax)
1209 ("python-mock" ,python-mock)
1210 ("python-pytest" ,python-pytest)))
1212 `(("python-requests" ,python-requests)))
1213 (synopsis "Extensions to python-requests")
1214 (description "This is a toolbelt of useful classes and functions to be used
1215 with python-requests.")
1216 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1217 (license license:asl2.0)))
1219 (define-public python2-requests-toolbelt
1220 (package-with-python2 python-requests-toolbelt))
1222 (define-public python-oauthlib
1224 (name "python-oauthlib")
1228 (uri (pypi-uri "oauthlib" version))
1231 "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
1232 (build-system python-build-system)
1234 `(("python-nose" ,python-nose)
1235 ("python-mock" ,python-mock)
1236 ("python-cryptography" ,python-cryptography)
1237 ("python-pyjwt" ,python-pyjwt)
1238 ("python-blinker" ,python-blinker)))
1239 (home-page "https://github.com/idan/oauthlib")
1240 (synopsis "OAuth implementation for Python")
1242 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1243 OAuth request-signing logic.")
1244 (license license:bsd-3)
1245 (properties `((python2-variant . ,(delay python2-oauthlib))))))
1247 (define-public python2-oauthlib
1248 (let ((base (package-with-python2 (strip-python2-variant python-oauthlib))))
1251 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1252 ,@(package-native-inputs base))))))
1254 (define-public python-rauth
1256 (name "python-rauth")
1261 (uri (pypi-uri "rauth" version))
1264 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1265 (build-system python-build-system)
1267 `(#:test-target "check"))
1269 `(("python-requests" ,python-requests)))
1270 (home-page "https://github.com/litl/rauth")
1271 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1273 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1274 provides service wrappers for convenient connection initialization and
1275 authenticated session objects providing things like keep-alive.")
1276 (license license:expat)
1277 (properties `((python2-variant . ,(delay python2-rauth))))))
1279 (define-public python2-rauth
1280 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1283 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1284 ,@(package-native-inputs base))))))
1286 (define-public python-urllib3
1288 (name "python-urllib3")
1293 (uri (pypi-uri "urllib3" version))
1296 "1wb8aqnq53vzh2amrv8kc66f3h6fx217y0q62y6n30a64p2yqmam"))))
1297 (build-system python-build-system)
1298 (arguments `(#:tests? #f))
1300 `(;; some packages for tests
1301 ("python-nose" ,python-nose)
1302 ("python-mock" ,python-mock)
1303 ("python-tornado" ,python-tornado)))
1305 `(;; These 5 inputs are used to build urrlib3[secure]
1306 ("python-certifi" ,python-certifi)
1307 ("python-cryptography" ,python-cryptography) ;
1308 ("python-idna" ,python-idna)
1309 ("python-ipaddress" ,python-ipaddress)
1310 ("python-pyopenssl" ,python-pyopenssl)))
1311 (home-page "https://urllib3.readthedocs.org/")
1312 (synopsis "HTTP library with thread-safe connection pooling")
1314 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1315 can reuse the same socket connection for multiple requests, it can POST files,
1316 supports url redirection and retries, and also gzip and deflate decoding.")
1317 (license license:expat)))
1319 (define-public python2-urllib3
1320 (package-with-python2 python-urllib3))
1322 (define-public awscli
1329 (uri (pypi-uri name version))
1332 "0sispclx263lybbk19zp1n9yhg8xxx4jddypzgi24vpjaqnsbwlc"))))
1333 (build-system python-build-system)
1335 `(("python-colorama" ,python-colorama)
1336 ("python-botocore" ,python-botocore)
1337 ("python-s3transfer" ,python-s3transfer)
1338 ("python-docutils" ,python-docutils)
1339 ("python-pyyaml" ,python-pyyaml)
1340 ("python-rsa" ,python-rsa)))
1342 ;; FIXME: The 'pypi' release does not contain tests.
1344 (home-page "https://aws.amazon.com/cli/")
1345 (synopsis "Command line client for AWS")
1346 (description "AWS CLI provides a unified command line interface to the
1347 Amazon Web Services (AWS) API.")
1348 (license license:asl2.0)))
1350 (define-public python-wsgiproxy2
1352 (name "python-wsgiproxy2")
1357 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
1360 "16532rjc94h3w74x52jfckf3yzsp8h6z34522jk4xgjy82hpnd7r"))))
1361 (build-system python-build-system)
1363 `(("python-webtest" ,python-webtest)))
1365 `(("python-requests" ,python-requests)
1366 ("python-six" ,python-six)
1367 ("python-urllib3" ,python-urllib3)
1368 ("python-webob" ,python-webob)))
1369 (home-page "https://github.com/gawel/WSGIProxy2/")
1370 (synopsis "WSGI Proxy with various http client backends")
1371 (description "WSGI turns HTTP requests into WSGI function calls.
1372 WSGIProxy turns WSGI function calls into HTTP requests.
1373 It also includes code to sign requests and pass private data,
1374 and to spawn subprocesses to handle requests.")
1375 (license license:expat)))
1377 (define-public python2-wsgiproxy2
1378 (package-with-python2 python-wsgiproxy2))
1380 (define-public python-pastedeploy
1382 (name "python-pastedeploy")
1387 (uri (pypi-uri "PasteDeploy" version))
1390 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
1391 (build-system python-build-system)
1393 `(("python-nose" ,python-nose)))
1394 (home-page "http://pythonpaste.org/deploy/")
1396 "Load, configure, and compose WSGI applications and servers")
1398 "This tool provides code to load WSGI applications and servers from URIs;
1399 these URIs can refer to Python Eggs for INI-style configuration files. Paste
1400 Script provides commands to serve applications based on this configuration
1402 (license license:expat)))
1404 (define-public python2-pastedeploy
1405 (package-with-python2 python-pastedeploy))
1407 (define-public python-webtest
1409 (name "python-webtest")
1414 (uri (pypi-uri "WebTest" version))
1417 "1mb7m4ndklv84mh0pdkhv73yrflcnra61yczj5g3bvwbqlygfsaw"))))
1418 (build-system python-build-system)
1420 `(;; Unfortunately we have to disable tests!
1421 ;; This release of WebTest is pinned to python-nose < 1.3,
1422 ;; but older versions of python-nose are plagued with the following
1423 ;; bug(s), which rears its ugly head during test execution:
1424 ;; https://github.com/nose-devs/nose/issues/759
1425 ;; https://github.com/nose-devs/nose/pull/811
1427 ;; Commented out code is no good, but in this case, once tests
1428 ;; are ready to be enabled again, we should put the following
1431 ;; `(("python-nose" ,python-nose) ; technially < 1.3,
1432 ;; ; but see above comment
1433 ;; ("python-coverage" ,python-coverage)
1434 ;; ("python-mock" ,python-mock)
1435 ;; ("python-pastedeploy" ,python-pastedeploy)
1436 ;; ("python-wsgiproxy2" ,python-wsgiproxy2)
1437 ;; ("python-pyquery" ,python-pyquery)))
1439 `(("python-waitress" ,python-waitress)
1440 ("python-webob" ,python-webob)
1441 ("python-six" ,python-six)
1442 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1443 (home-page "http://webtest.pythonpaste.org/")
1444 (synopsis "Helper to test WSGI applications")
1445 (description "Webtest allows you to test your Python web applications
1446 without starting an HTTP server. It supports anything that supports the
1448 (license license:expat)))
1450 (define-public python2-webtest
1451 (package-with-python2 python-webtest))
1453 (define-public python-flask
1455 (name "python-flask")
1459 (uri (pypi-uri "Flask" version))
1462 "03kbfll4sj3v5z7r31c7bhfpi11r1np076d4p1k2kg4yzcmkywdl"))))
1463 (build-system python-build-system)
1465 `(("python-itsdangerous" ,python-itsdangerous)
1466 ("python-jinja2" ,python-jinja2)
1467 ("python-click" ,python-click)
1468 ("python-werkzeug" ,python-werkzeug)))
1469 (home-page "https://github.com/mitsuhiko/flask/")
1470 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
1471 (description "Flask is a micro web framework based on the Werkzeug toolkit
1472 and Jinja2 template engine. It is called a micro framework because it does not
1473 presume or force a developer to use a particular tool or library.")
1474 (license license:bsd-3)))
1476 (define-public python2-flask
1477 (package-with-python2 python-flask))
1479 (define-public python-flask-wtf
1481 (name "python-flask-wtf")
1486 (uri (pypi-uri "Flask-WTF" version))
1489 "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990"))))
1490 (build-system python-build-system)
1493 (modify-phases %standard-phases
1494 (add-before 'check 'drop-failing-test
1496 ;; FIXME: This file tries resolving an external server, which
1497 ;; fails. Try to patch out the offending section instead of
1498 ;; deleting the whole thing.
1499 (delete-file "tests/test_recaptcha.py")
1502 `(("python-flask-babel" ,python-flask-babel)
1503 ("python-babel" ,python-babel)
1504 ("python-wtforms" ,python-wtforms)))
1506 `(("python-nose" ,python-nose)))
1507 (home-page "https://github.com/lepture/flask-wtf")
1508 (synopsis "Simple integration of Flask and WTForms")
1509 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
1510 upload, and reCAPTCHA.")
1511 (license license:bsd-3)))
1513 (define-public python2-flask-wtf
1514 (package-with-python2 python-flask-wtf))
1516 (define-public python-flask-multistatic
1518 (name "python-flask-multistatic")
1523 (uri (pypi-uri "flask-multistatic" version))
1526 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
1527 (build-system python-build-system)
1529 `(("python-flask" ,python-flask)))
1530 (home-page "https://pagure.io/flask-multistatic")
1531 (synopsis "Flask plugin to allow overriding static files")
1532 (description "@code{flask-multistatic} is a flask plugin that adds support
1533 for overriding static files.")
1534 (license license:gpl3+)))
1536 (define-public python2-flask-multistatic
1537 (package-with-python2 python-flask-multistatic))
1539 (define-public python-cookies
1541 (name "python-cookies")
1545 (uri (pypi-uri "cookies" version))
1548 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
1549 (build-system python-build-system)
1551 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
1554 `(("python-pytest" ,python2-pytest)))
1555 (synopsis "HTTP cookie parser and renderer")
1556 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
1558 (home-page "https://gitlab.com/sashahart/cookies")
1559 (license license:expat)))
1561 (define-public python2-cookies
1562 (package-with-python2 python-cookies))
1564 (define-public python-responses
1566 (name "python-responses")
1570 (uri (pypi-uri "responses" version))
1573 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
1574 (build-system python-build-system)
1576 `(;; Test suite is not distributed:
1577 ;; https://github.com/getsentry/responses/issues/38
1580 `(("python-mock" ,python-mock)))
1582 `(("python-requests" ,python-requests)
1583 ("python-cookies" ,python-cookies)
1584 ("python-six" ,python-six)))
1585 (home-page "https://github.com/getsentry/responses")
1586 (synopsis "Utility for mocking out the `requests` Python library")
1587 (description "A utility library for mocking out the `requests` Python
1589 (license license:asl2.0)))
1591 (define-public python2-responses
1592 (package-with-python2 python-responses))
1594 (define-public python-geventhttpclient
1596 (name "python-geventhttpclient")
1600 (uri (pypi-uri "geventhttpclient" version))
1603 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
1604 (modules '((guix build utils)))
1607 ;; Delete pre-compiled files.
1608 (for-each delete-file (find-files "src/geventhttpclient"
1611 (build-system python-build-system)
1614 (modify-phases %standard-phases
1615 (add-after 'unpack 'delete-network-tests
1617 (delete-file "src/geventhttpclient/tests/test_client.py")
1620 (add-after 'install 'check
1621 (lambda* (#:key inputs outputs #:allow-other-keys)
1622 (add-installed-pythonpath inputs outputs)
1623 (invoke "py.test" "src/geventhttpclient/tests" "-v")
1626 `(("python-pytest" ,python-pytest)))
1628 `(("python-certifi" ,python-certifi)
1629 ("python-gevent" ,python-gevent)
1630 ("python-six" ,python-six)))
1631 (home-page "https://github.com/gwik/geventhttpclient")
1632 (synopsis "HTTP client library for gevent")
1633 (description "@code{python-geventhttpclient} is a high performance,
1634 concurrent HTTP client library for python using @code{gevent}.")
1635 (license license:expat)))
1637 (define-public python2-geventhttpclient
1638 (package-with-python2 python-geventhttpclient))
1640 (define-public python-requests-oauthlib
1642 (name "python-requests-oauthlib")
1647 (uri (pypi-uri "requests-oauthlib" version))
1650 "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn"))))
1651 (build-system python-build-system)
1654 (modify-phases %standard-phases
1655 ;; removes tests that require network access
1656 (add-before 'check 'pre-check
1658 (delete-file "tests/test_core.py")
1661 `(("python-requests-mock" ,python-requests-mock)
1662 ("python-mock" ,python-mock)))
1664 `(("python-oauthlib" ,python-oauthlib)
1665 ("python-requests" ,python-requests)))
1667 "https://github.com/requests/requests-oauthlib")
1669 "OAuthlib authentication support for Requests")
1671 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
1672 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
1673 (license license:isc)))
1675 (define-public python2-requests-oauthlib
1676 (package-with-python2 python-requests-oauthlib))
1678 (define-public python-url
1684 (uri (pypi-uri "url" version))
1687 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
1688 (build-system python-build-system)
1690 `(("python-publicsuffix" ,python-publicsuffix)))
1692 `(("python-coverage" ,python-coverage)
1693 ("python-nose" ,python-nose)))
1695 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
1696 (home-page "https://github.com/seomoz/url-py")
1697 (synopsis "URL Parsing")
1698 (description "Library for parsing urls.")
1699 (license license:expat)
1700 (properties `((python2-variant . ,(delay python2-url))))))
1702 (define-public python2-url
1703 (let ((base (package-with-python2 (strip-python2-variant python-url))))
1704 (package (inherit base)
1706 `(("python2-publicsuffix" ,python2-publicsuffix))))))
1708 (define-public python-cachecontrol
1710 (name "python-cachecontrol")
1715 ;; Pypi does not have tests.
1717 "https://github.com/ionrock/cachecontrol/archive/v"
1719 (file-name (string-append name "-" version ".tar.gz"))
1722 "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw"))))
1723 (build-system python-build-system)
1726 (modify-phases %standard-phases
1729 ;; Drop test that requires internet access.
1730 (delete-file "tests/test_regressions.py")
1731 (setenv "PYTHONPATH"
1732 (string-append (getcwd) "/build/lib:"
1733 (getenv "PYTHONPATH")))
1734 (invoke "py.test" "-vv")
1737 `(("python-pytest" ,python-pytest)
1738 ("python-redis" ,python-redis)
1739 ("python-webtest" ,python-webtest)
1740 ("python-mock" ,python-mock)))
1742 `(("python-requests" ,python-requests)
1743 ("python-lockfile" ,python-lockfile)))
1744 (home-page "https://github.com/ionrock/cachecontrol")
1745 (synopsis "The httplib2 caching algorithms for use with requests")
1746 (description "CacheControl is a port of the caching algorithms in
1747 @code{httplib2} for use with @code{requests} session objects.")
1748 (license license:asl2.0)))
1750 (define-public python2-cachecontrol
1751 (package-with-python2 python-cachecontrol))
1753 (define-public python-betamax
1755 (name "python-betamax")
1760 (uri (pypi-uri "betamax" version))
1763 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
1764 (build-system python-build-system)
1766 '(;; Many tests fail because they require networking.
1769 `(("python-requests" ,python-requests)))
1770 (home-page "https://github.com/sigmavirus24/betamax")
1771 (synopsis "Record HTTP interactions with python-requests")
1772 (description "Betamax will record your test suite's HTTP interactions and
1773 replay them during future tests. It is designed to work with python-requests.")
1774 (license license:expat)))
1776 (define-public python2-betamax
1777 (package-with-python2 python-betamax))
1779 (define-public python-betamax-matchers
1781 (name "python-betamax-matchers")
1786 (uri (pypi-uri "betamax-matchers" version))
1789 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
1790 (build-system python-build-system)
1792 `(("python-betamax" ,python-betamax)
1793 ("python-requests-toolbelt" ,python-requests-toolbelt)))
1794 (home-page "https://github.com/sigmavirus24/betamax_matchers")
1795 (synopsis "VCR imitation for python-requests")
1796 (description "@code{betamax-matchers} provides a set of Matchers for
1798 (license license:asl2.0)))
1800 (define-public python2-betamax-matchers
1801 (package-with-python2 python-betamax-matchers))
1803 (define-public python-s3transfer
1805 (name "python-s3transfer")
1809 (uri (pypi-uri "s3transfer" version))
1812 "1harvyn1s8v54n1w5h7c0lg4bgjh68aylhg28s8n174q53h1ip4h"))))
1813 (build-system python-build-system)
1816 (modify-phases %standard-phases
1819 ;; 7 of the 'integration' tests require network access or login
1821 (invoke "nosetests" "--exclude=integration")
1824 `(("python-docutils" ,python-docutils)
1825 ("python-mock" ,python-mock)
1826 ("python-nose" ,python-nose)))
1828 `(("python-botocore" ,python-botocore)))
1829 (synopsis "Amazon S3 Transfer Manager")
1830 (description "S3transfer is a Python library for managing Amazon S3
1832 (home-page "https://github.com/boto/s3transfer")
1833 (license license:asl2.0)
1834 (properties `((python2-variant . ,(delay python2-s3transfer))))))
1836 (define-public python2-s3transfer
1837 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
1841 `(("python2-futures" ,python2-futures)
1842 ,@(package-native-inputs base))))))
1844 (define-public python-flask-restful
1846 (name "python-flask-restful")
1851 (uri (pypi-uri "Flask-RESTful" version))
1854 "0hjcmdb56b7z4bkw848lxfkyrpnkwzmqn2dgnlv12mwvjpzsxr6c"))))
1855 (build-system python-build-system)
1857 `(("python-aniso8601" ,python-aniso8601)
1858 ("python-flask" ,python-flask)
1859 ("python-pycrypto" ,python-pycrypto)
1860 ("python-pytz" ,python-pytz)))
1862 `(;; Optional dependency of Flask. Tests need it.
1863 ("python-blinker" ,python-blinker)
1864 ("python-mock" ,python-mock) ; For tests
1865 ("python-nose" ,python-nose) ; For tests
1866 ("python-sphinx" ,python-sphinx)))
1868 "https://www.github.com/flask-restful/flask-restful/")
1870 "Flask module for creating REST APIs")
1872 "This package contains a Flask module for creating REST APIs.")
1873 (license license:bsd-3)))
1875 (define-public python-flask-basicauth
1877 (name "python-flask-basicauth")
1882 (uri (pypi-uri "Flask-BasicAuth" version))
1885 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
1886 (build-system python-build-system)
1888 `(("python-flask" ,python-flask)))
1890 "https://github.com/jpvanhal/flask-basicauth")
1892 "HTTP basic access authentication for Flask")
1894 "This package provides HTTP basic access authentication for Flask.")
1895 (license license:bsd-3)))
1897 (define-public python-flask-sqlalchemy
1899 (name "python-flask-sqlalchemy")
1904 (uri (pypi-uri "Flask-SQLAlchemy" version))
1907 "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"))))
1908 (build-system python-build-system)
1910 `(("python-flask" ,python-flask)
1911 ("python-sqlalchemy" ,python-sqlalchemy)))
1913 "https://github.com/mitsuhiko/flask-sqlalchemy")
1915 "Module adding SQLAlchemy support to your Flask application")
1917 "This package adds SQLAlchemy support to your Flask application.")
1918 (license license:bsd-3)))
1920 (define-public python-flask-restplus
1922 (name "python-flask-restplus")
1927 (uri (pypi-uri "flask-restplus" version))
1930 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
1931 (build-system python-build-system)
1933 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
1935 ;; (modify-phases %standard-phases
1938 ;; (invoke "nosetests")
1941 `(("python-aniso8601" ,python-aniso8601)
1942 ("python-flask" ,python-flask)
1943 ("python-jsonschema" ,python-jsonschema)
1944 ("python-pytz" ,python-pytz)
1945 ("python-six" ,python-six)))
1947 `(("python-tzlocal" ,python-tzlocal)
1948 ("python-blinker" ,python-blinker)
1949 ("python-nose" ,python-nose)
1950 ("python-rednose" ,python-rednose)))
1951 (home-page "https://github.com/noirbizarre/flask-restplus")
1952 (synopsis "Framework for documented API development with Flask")
1953 (description "This package provides a framework for API development with
1954 the Flask web framework in Python. It is similar to package
1955 @code{python-flask-restful} but supports the @code{python-swagger}
1956 documentation builder.")
1957 (license license:expat)))
1959 (define-public python-flask-restful-swagger
1961 (name "python-flask-restful-swagger")
1966 (uri (pypi-uri "flask-restful-swagger" version))
1969 "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v"))))
1970 (build-system python-build-system)
1972 `(("python-flask-restful" ,python-flask-restful)))
1973 (home-page "https://github.com/rantav/flask-restful-swagger")
1974 (synopsis "Extract Swagger specs from Flask-Restful projects")
1975 (description "This package lets you extract Swagger API documentation
1976 specs from your Flask-Restful projects.")
1977 (license license:expat)))
1979 (define-public python2-flask-restful-swagger
1980 (package-with-python2 python-flask-restful-swagger))
1982 (define-public python-htmlmin
1984 (name "python-htmlmin")
1989 (uri (pypi-uri "htmlmin" version))
1992 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
1994 `(#:tests? #f)) ; no tests
1995 (build-system python-build-system)
1996 (home-page "https://htmlmin.readthedocs.org/en/latest/")
1997 (synopsis "HTML minifier")
1998 (description "@code{htmlmin} is an HTML minifier that just works.
1999 It comes with safe defaults and easily configurable options.")
2000 (license license:bsd-3)))
2002 (define-public python2-htmlmin
2003 (package-with-python2 python-htmlmin))
2005 (define-public python-flask-htmlmin
2007 (name "python-flask-htmlmin")
2012 (uri (pypi-uri "Flask-HTMLmin" version))
2015 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2017 `(("python-flask" ,python-flask)
2018 ("python-htmlmin" ,python-htmlmin)))
2019 (build-system python-build-system)
2020 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2021 (synopsis "HTML response minifier for Flask")
2023 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2024 (license license:bsd-3)))
2026 (define-public python2-flask-htmlmin
2027 (package-with-python2 python-flask-htmlmin))
2029 (define-public python-flask-login
2031 (name "python-flask-login")
2036 (uri (string-append "https://github.com/maxcountryman/flask-login/archive/"
2038 (file-name (string-append name "-" version ".tar.gz"))
2041 "1pdqp7a2gyb7k06xda004x0fi2w66s6kn2i0ndkqndmg12d83f9w"))))
2043 ;; Tests fail PEP8 compliance. See:
2044 ;; https://github.com/maxcountryman/flask-login/issues/340
2046 (build-system python-build-system)
2047 (home-page "https://github.com/maxcountryman/flask-login")
2048 (synopsis "User session management for Flask")
2050 "@code{Flask-Login} provides user session management for Flask. It
2051 handles the common tasks of logging in, logging out, and remembering your
2052 users' sessions over extended periods of time.")
2053 (license license:expat)))
2055 (define-public python2-flask-login
2056 (package-with-python2 python-flask-login))
2058 (define-public python-oauth2client
2060 (name "python-oauth2client")
2065 (uri (pypi-uri "oauth2client" version))
2068 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2069 (build-system python-build-system)
2073 `(("python-httplib2" ,python-httplib2)
2074 ("python-pyasn1" ,python-pyasn1)
2075 ("python-pyasn1-modules" ,python-pyasn1-modules)
2076 ("python-rsa" ,python-rsa)
2077 ("python-six" ,python-six)))
2078 (home-page "https://github.com/google/oauth2client/")
2079 (synopsis "OAuth 2.0 client library")
2080 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2081 library for Python")
2082 (license license:asl2.0)))
2084 (define-public python2-oauth2client
2085 (package-with-python2 python-oauth2client))
2087 (define-public python-flask-oidc
2089 (name "python-flask-oidc")
2094 (uri (pypi-uri "flask-oidc" version))
2097 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
2098 (build-system python-build-system)
2100 `(("python-flask" ,python-flask)
2101 ("python-itsdangerous" ,python-itsdangerous)
2102 ("python-oauth2client" ,python-oauth2client)
2103 ("python-six" ,python-six)))
2105 `(("python-nose" ,python-nose)
2106 ("python-mock" ,python-mock)))
2107 (home-page "https://github.com/puiterwijk/flask-oidc")
2108 (synopsis "OpenID Connect extension for Flask")
2109 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2111 (license license:bsd-2)))
2113 (define-public python-webassets
2115 (name "python-webassets")
2120 (uri (pypi-uri "webassets" version))
2123 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2124 (build-system python-build-system)
2126 `(("python-jinja2" ,python-jinja2)
2127 ("python-mock" ,python-mock)
2128 ("python-nose" ,python-nose)
2129 ("python-pytest" ,python-pytest)))
2130 (home-page "https://github.com/miracle2k/webassets")
2131 (synopsis "Media asset management")
2132 (description "Merges, minifies and compresses Javascript and CSS files,
2133 supporting a variety of different filters, including YUI, jsmin, jspacker or
2134 CSS tidy. Also supports URL rewriting in CSS files.")
2135 (license license:bsd-2)))
2137 (define-public python-cssmin
2139 (name "python-cssmin")
2144 (uri (pypi-uri "cssmin" version))
2147 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2148 (build-system python-build-system)
2149 (home-page "https://github.com/zacharyvoase/cssmin")
2150 (synopsis "Python port of the YUI CSS Compressor")
2151 (description "Python port of the YUI CSS Compressor.")
2152 (license (list license:expat license:bsd-3))))
2154 (define-public python2-cssmin
2155 (package-with-python2 python-cssmin))
2157 (define-public python-elasticsearch
2159 (name "python-elasticsearch")
2164 (uri (pypi-uri "elasticsearch" version))
2167 "1kjxl45yvvgfb5fmamx0kfsfg9pzphiqrwbkns3s28r1w7ya74cd"))))
2168 (build-system python-build-system)
2170 `(("python-mock" ,python-mock)
2171 ("python-nosexcover" ,python-nosexcover)
2172 ("python-pyaml" ,python-pyaml)
2173 ("python-requests" ,python-requests)))
2175 `(("urllib3" ,python-urllib3)))
2177 ;; tests require the test_elasticsearch module but it is not distributed.
2179 (home-page "https://github.com/elastic/elasticsearch-py")
2180 (synopsis "Low-level client for Elasticsearch")
2181 (description "Official low-level client for Elasticsearch. Its goal is to
2182 provide common ground for all Elasticsearch-related code in Python; because of
2183 this it tries to be opinion-free and very extendable.")
2184 (license license:expat)))
2186 (define-public python2-elasticsearch
2187 (package-with-python2 python-elasticsearch))
2189 (define-public python-flask-script
2191 (name "python-flask-script")
2196 (uri (pypi-uri "Flask-Script" version))
2199 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
2200 (build-system python-build-system)
2202 `(("python-flask" ,python-flask)
2203 ("python-argcomplete" ,python-argcomplete)
2204 ("python-werkzeug" ,python-werkzeug)))
2206 `(("python-pytest" ,python-pytest)))
2208 "https://github.com/smurfix/flask-script")
2209 (synopsis "Scripting support for Flask")
2210 (description "The Flask-Script extension provides support for writing
2211 external scripts in Flask. This includes running a development server,
2212 a customised Python shell, scripts to set up your database, cronjobs,
2213 and other command-line tasks that belong outside the web application
2215 (license license:bsd-3)))
2217 (define-public python2-flask-script
2218 (package-with-python2 python-flask-script))
2220 (define-public python-flask-migrate
2222 (name "python-flask-migrate")
2227 (uri (pypi-uri "Flask-Migrate" version))
2230 "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk"))))
2231 (build-system python-build-system)
2233 `(("python-flask" ,python-flask)
2234 ("python-alembic" ,python-alembic)
2235 ("python-sqlalchemy" ,python-sqlalchemy)
2236 ("python-flask-script" ,python-flask-script)
2237 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2238 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2239 (synopsis "SQLAlchemy database migrations for Flask programs using
2241 (description "This package contains SQLAlchemy database migration tools
2242 for Flask programs that are using @code{python-alembic}.")
2243 (license license:expat)))
2245 (define-public python2-flask-migrate
2246 (package-with-python2 python-flask-migrate))
2248 (define-public python-genshi
2250 (name "python-genshi")
2256 "https://ftp.edgewall.org/pub/genshi/Genshi-"
2260 ;; The first 4 patches are in the master branch upstream.
2261 ;; See this as a reference https://genshi.edgewall.org/ticket/582
2262 ;; The last 2 are NOT in any branch.
2263 ;; They were sent as attachments to a ticket opened at
2264 ;; https://genshi.edgewall.org/ticket/602#no1
2265 "python-genshi-stripping-of-unsafe-script-tags.patch"
2266 "python-genshi-disable-speedups-on-python-3.3.patch"
2267 "python-genshi-isstring-helper.patch"
2268 "python-genshi-add-support-for-python-3.4-AST.patch"
2269 "python-genshi-fix-tests-on-python-3.5.patch"
2270 "python-genshi-buildable-on-python-2.7.patch"))
2273 "0lkkbp6fbwzv0zda5iqc21rr7rdldkwh3hfabfjl9i4bwq14858x"))))
2274 (build-system python-build-system)
2275 (home-page "https://genshi.edgewall.org/")
2276 (synopsis "Toolkit for generation of output for the web")
2277 (description "Genshi is a Python library that provides an integrated set
2278 of components for parsing, generating, and processing HTML, XML or other
2279 textual content for output generation on the web.")
2280 (license license:bsd-3)))
2282 ;; The linter here claims that patch file names should start with the package
2283 ;; name. But, in this case the patches are inherited from python-genshi with
2284 ;; the "python-genshi-" prefix instead of "python2-genshi-".
2285 (define-public python2-genshi
2286 (package-with-python2 python-genshi))
2288 (define-public python-flask-principal
2290 (name "python-flask-principal")
2295 (uri (pypi-uri "Flask-Principal" version))
2298 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
2299 (build-system python-build-system)
2301 `(("python-blinker" ,python-blinker)))
2303 `(("python-flask" ,python-flask)
2304 ("python-nose" ,python-nose)))
2305 (home-page "http://packages.python.org/Flask-Principal/")
2306 (synopsis "Identity management for Flask")
2307 (description "@code{flask_principal} is a identity management library for
2308 Flask. It supports managing both authentication and authorization data in a
2309 thread-local variable.")
2310 (license license:expat)))
2312 (define-public python2-flask-principal
2313 (package-with-python2 python-flask-principal))
2315 (define-public python-flask-httpauth
2317 (name "python-flask-httpauth")
2322 (uri (pypi-uri "Flask-HTTPAuth" version))
2325 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
2326 (build-system python-build-system)
2328 `(("python-flask" ,python-flask)))
2329 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
2330 (synopsis "Basic and Digest HTTP authentication for Flask routes")
2331 (description "@code{flask_httpauth} provides Basic and Digest HTTP
2332 authentication for Flask routes.")
2333 (license license:expat)))
2335 (define-public python2-flask-httpauth
2336 (package-with-python2 python-flask-httpauth))
2338 (define-public python-uritemplate
2340 (name "python-uritemplate")
2345 (uri (pypi-uri "uritemplate" version))
2348 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
2349 (build-system python-build-system)
2350 (home-page "https://uritemplate.readthedocs.org")
2351 (synopsis "Library to deal with URI Templates")
2352 (description "@code{uritemplate} provides Python library to deal with URI
2354 (license license:bsd-2)))
2356 (define-public python2-uritemplate
2357 (package-with-python2 python-uritemplate))
2359 (define-public python-publicsuffix
2361 (name "python-publicsuffix")
2365 (uri (pypi-uri "publicsuffix" version))
2368 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
2369 (build-system python-build-system)
2371 `(#:tests? #f)) ; tests use the internet
2372 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
2373 (synopsis "Get suffix for a domain name")
2374 (description "Get a public suffix for a domain name using the Public Suffix
2376 (license license:expat)))
2378 (define-public python2-publicsuffix
2379 (package-with-python2 python-publicsuffix))
2381 (define-public python-publicsuffix2
2383 (name "python-publicsuffix2")
2384 (version "2.20160818")
2388 (uri (pypi-uri "publicsuffix2" version ".tar.bz2"))
2391 "1bb55yka9vkn7i6y1kjzxa516kh6v4gsrxa90w5wdz5p5n968r68"))))
2392 (build-system python-build-system)
2394 '(#:tests? #f)) ; The test suite requires network access.
2395 (home-page "https://github.com/pombredanne/python-publicsuffix2")
2396 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
2397 (description "Get a public suffix for a domain name using the Public Suffix
2398 List. Forked from and using the same API as the publicsuffix package.")
2399 (license (list license:expat license:mpl2.0))))
2401 (define-public python2-publicsuffix2
2402 (package-with-python2 python-publicsuffix2))
2404 (define-public python-werkzeug
2406 (name "python-werkzeug")
2411 (uri (pypi-uri "Werkzeug" version))
2414 "1h5wycw8yj7q0grqsjnsqflmrlsdagvl2j4dsgdncci6mjc7fpa5"))))
2415 (build-system python-build-system)
2417 `(("python-pytest" ,python-pytest)))
2418 (home-page "http://werkzeug.pocoo.org/")
2419 (synopsis "Utilities for WSGI applications")
2420 (description "One of the most advanced WSGI utility modules. It includes a
2421 powerful debugger, full-featured request and response objects, HTTP utilities to
2422 handle entity tags, cache control headers, HTTP dates, cookie handling, file
2423 uploads, a powerful URL routing system and a bunch of community-contributed
2425 (license license:x11)))
2427 (define-public python2-werkzeug
2428 (package-with-python2 python-werkzeug))
2430 (define-public python-bottle
2432 (name "python-bottle")
2437 (uri (pypi-uri "bottle" version))
2440 "0m9k2a7yxvggc4kw8fsvj381vgsvfcdshg5nzy6vwrxiw2p53drr"))))
2441 (build-system python-build-system)
2442 (home-page "http://bottlepy.org/")
2443 (synopsis "WSGI framework for small web-applications.")
2444 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
2445 (license license:expat)))
2447 (define-public python2-bottle
2448 (package-with-python2 python-bottle))
2450 (define-public python-wtforms
2452 (name "python-wtforms")
2457 (uri (pypi-uri "WTForms" version ".zip"))
2460 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
2461 (build-system python-build-system)
2464 (modify-phases %standard-phases
2465 (add-after 'unpack 'remove-django-test
2466 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
2470 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
2471 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
2474 `(("unzip" ,unzip)))
2475 (home-page "http://wtforms.simplecodes.com/")
2477 "Form validation and rendering library for Python web development")
2479 "WTForms is a flexible forms validation and rendering library
2480 for Python web development. It is very similar to the web form API
2481 available in Django, but is a standalone package.")
2482 (license license:bsd-3)))
2484 (define-public python2-wtforms
2485 (package-with-python2 python-wtforms))
2487 (define-public python-paste
2489 (name "python-paste")
2494 (uri (pypi-uri "Paste" version))
2497 "062jk0nlxf6lb2wwj6zc20rlvrwsnikpkh90y0dn8cjch93s6ii3"))
2498 (patches (search-patches "python-paste-remove-website-test.patch"
2499 "python-paste-remove-timing-test.patch"))))
2500 (build-system python-build-system)
2502 `(("python-nose" ,python-nose)))
2504 `(("python-six" ,python-six)))
2505 (home-page "http://pythonpaste.org")
2507 "Python web development tools, focusing on WSGI")
2509 "Paste provides a variety of web development tools and middleware which
2510 can be nested together to build web applications. Paste's design closely
2511 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
2512 (license license:expat)))
2514 (define-public python2-paste
2515 (package-with-python2 python-paste))
2517 (define-public python-pastescript
2519 (name "python-pastescript")
2524 (uri (pypi-uri "PasteScript" version))
2527 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
2528 (build-system python-build-system)
2530 `(("python-nose" ,python-nose)))
2532 `(("python-paste" ,python-paste)
2533 ("python-pastedeploy" ,python-pastedeploy)))
2534 (home-page "http://pythonpaste.org/script/")
2536 '(;; Unfortunately, this requires the latest unittest2,
2537 ;; but that requires traceback2 which requires linecache2 which requires
2538 ;; unittest2. So we're skipping tests for now.
2539 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
2540 ;; so in theory we could get around this situation somehow.)
2543 "Pluggable command line tool for serving web applications and more")
2545 "PasteScript is a plugin-friendly command line tool which provides a
2546 variety of features, from launching web applications to bootstrapping project
2548 (license license:expat)))
2550 (define-public python2-pastescript
2551 (package-with-python2 python-pastescript))
2553 (define-public python2-urlgrabber
2555 (name "python2-urlgrabber")
2560 (uri (pypi-uri "urlgrabber" version))
2562 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
2563 (build-system python-build-system)
2564 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
2565 (home-page "http://urlgrabber.baseurl.org")
2566 (synopsis "High-level cross protocol url-grabber")
2567 (description "@code{urlgrabber} is Python2 library that unifies access to
2568 files available on web, FTP or locally. It supports HTTP, FTP and file://
2569 protocols, it supports features like HTTP keep-alive, reget, throttling and
2571 (license license:lgpl2.1+)))
2573 (define-public python-pycares
2575 (name "python-pycares")
2580 (uri (pypi-uri "pycares" version))
2583 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
2584 (build-system python-build-system)
2586 `(#:tests? #f)) ;tests require internet access
2587 (home-page "http://github.com/saghul/pycares")
2588 (synopsis "Python interface for @code{c-ares}")
2589 (description "@code{pycares} is a Python module which provides an
2590 interface to @code{c-ares}, a C library that performs DNS requests and
2591 name resolutions asynchronously.")
2592 (license license:expat)))
2594 (define-public python-yarl
2596 (name "python-yarl")
2601 (uri (pypi-uri "yarl" version))
2604 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
2605 (build-system python-build-system)
2607 `(("python-pytest" ,python-pytest)
2608 ("python-pytest-runner" ,python-pytest-runner)))
2610 `(("python-idna" ,python-idna)
2611 ("python-multidict" ,python-multidict)))
2612 (home-page "https://github.com/aio-libs/yarl/")
2613 (synopsis "Yet another URL library")
2614 (description "@code{yarl} module provides handy @code{URL} class
2615 for URL parsing and changing.")
2616 (license license:asl2.0)))
2618 (define-public python-google-api-client
2620 (name "python-google-api-client")
2625 (uri (pypi-uri "google-api-python-client" version))
2628 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
2629 (build-system python-build-system)
2631 '(#:tests? #f)) ; tests require internet access
2633 `(("python-httplib2" ,python-httplib2)
2634 ("python-six" ,python-six)
2635 ("python-oauth2client" ,python-oauth2client)
2636 ("python-uritemplate" ,python-uritemplate)))
2637 (home-page "https://github.com/google/google-api-python-client")
2638 (synopsis "Core Python library for accessing Google APIs")
2639 (description "Python client library for Google's discovery based APIs")
2640 (license license:asl2.0)))
2642 (define-public python2-google-api-client
2643 (package-with-python2 python-google-api-client))