1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
3 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 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, 2018, 2019 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, 2019 Leo Famulari <leo@famulari.name>
16 ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
17 ;;; Copyright © 2016, 2017, 2018, 2019 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>
29 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vagrant Cascadian <vagrant@debian.org>
32 ;;; This file is part of GNU Guix.
34 ;;; GNU Guix is free software; you can redistribute it and/or modify it
35 ;;; under the terms of the GNU General Public License as published by
36 ;;; the Free Software Foundation; either version 3 of the License, or (at
37 ;;; your option) any later version.
39 ;;; GNU Guix is distributed in the hope that it will be useful, but
40 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
41 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42 ;;; GNU General Public License for more details.
44 ;;; You should have received a copy of the GNU General Public License
45 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
47 (define-module (gnu packages python-web)
48 #:use-module (guix packages)
49 #:use-module (guix download)
50 #:use-module (guix git-download)
51 #:use-module (guix build-system python)
52 #:use-module (guix utils)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages check)
55 #:use-module (gnu packages compression)
56 #:use-module (gnu packages curl)
57 #:use-module (gnu packages databases)
58 #:use-module (gnu packages django)
59 #:use-module (gnu packages libffi)
60 #:use-module (gnu packages pkg-config)
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages python-crypto)
63 #:use-module (gnu packages python-xyz)
64 #:use-module (gnu packages tls)
65 #:use-module (gnu packages time)
66 #:use-module (gnu packages web)
67 #:use-module (gnu packages xml)
68 #:use-module ((guix licenses) #:prefix license:)
69 #:use-module (srfi srfi-1))
71 (define-public python-aiohttp
73 (name "python-aiohttp")
78 (uri (pypi-uri "aiohttp" version))
81 "1ykm6kdjkrg556j0zd7dx2l1rsrbh0d9g27ivr6dmaahz9pyrbsi"))))
82 (build-system python-build-system)
84 `(#:tests? #f)) ;missing pytest-timeout
86 `(("python-aiodns" ,python-aiodns)
87 ("python-async-timeout" ,python-async-timeout)
88 ("python-attrs" ,python-attrs)
89 ("python-chardet" ,python-chardet)
90 ("python-idna-ssl" ,python-idna-ssl)
91 ("python-multidict" ,python-multidict)
92 ("python-yarl" ,python-yarl)))
93 (home-page "https://github.com/aio-libs/aiohttp/")
94 (synopsis "Async HTTP client/server framework (asyncio)")
95 (description "@code{aiohttp} is an asynchronous HTTP client/server
98 Its main features are:
100 @item Supports both client and server side of HTTP protocol.
101 @item Supports both client and server Web-Sockets out-of-the-box without the
103 @item Web-server has middlewares and pluggable routing.
105 (license license:asl2.0)))
107 (define-public python-aiohttp-socks
109 (name "python-aiohttp-socks")
114 (uri (pypi-uri "aiohttp_socks" version))
117 "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
118 (build-system python-build-system)
120 `(("python-aiohttp" ,python-aiohttp)))
121 (home-page "https://github.com/romis2012/aiohttp-socks")
122 (synopsis "SOCKS proxy connector for aiohttp")
123 (description "This package provides a SOCKS proxy connector for
124 aiohttp. It supports SOCKS4(a) and SOCKS5.")
125 (license license:asl2.0)))
127 (define-public python-aiodns
129 (name "python-aiodns")
134 (uri (pypi-uri "aiodns" version))
137 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
138 (build-system python-build-system)
140 `(("python-pycares" ,python-pycares)))
142 `(#:tests? #f)) ;tests require internet access
143 (home-page "http://github.com/saghul/aiodns")
144 (synopsis "Simple DNS resolver for asyncio")
145 (description "@code{aiodns} provides a simple way for doing
146 asynchronous DNS resolutions with a synchronous looking interface by
147 using @url{https://github.com/saghul/pycares,pycares}.")
148 (license license:expat)))
150 (define-public python-aiorpcx
152 (name "python-aiorpcx")
157 (uri (pypi-uri "aiorpcX" version))
160 "1p88k15jh0d2a18pnnbfcamsqi2bxvmmhpizmdlxfdxf8vy5ggyj"))))
161 (build-system python-build-system)
163 `(("python-attrs" ,python-attrs)))
164 (home-page "https://github.com/kyuupichan/aiorpcX")
165 (synopsis "Generic asyncio RPC implementation")
167 "aiorpcX is a generic asyncio library implementation of RPC suitable for
168 an application that is a client, server or both.
170 The package includes a module with full coverage of JSON RPC versions 1.0 and
171 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
172 comes with a SOCKS proxy client.")
173 (license (list license:expat license:bsd-2))))
175 (define-public python-falcon
177 (name "python-falcon")
182 (uri (pypi-uri "falcon" version))
185 "1i0vmqsk24z4biirqhpvas9h28wy7nmpy3jvnb6rz2imq04zd09r"))))
186 (build-system python-build-system)
189 (modify-phases %standard-phases
192 (invoke "pytest"))))))
194 `(("python-mimeparse" ,python-mimeparse)
195 ("python-six" ,python-six)))
197 `(("python-cython" ,python-cython) ;for faster binaries
198 ("python-pytest" ,python-pytest)
199 ("python-pyyaml" ,python-pyyaml)
200 ("python-requests" ,python-requests)
201 ("python-testtools" ,python-testtools)
202 ("python-jsonschema" ,python-jsonschema)
203 ("python-msgpack" ,python-msgpack)))
204 (home-page "https://falconframework.org")
206 "Web framework for building APIs and application backends")
208 "Falcon is a web API framework for building microservices, application
209 backends and higher-level frameworks. Among its features are:
211 @item Optimized and extensible code base
212 @item Routing via URI templates and REST-inspired resource
214 @item Access to headers and bodies through request and response
216 @item Request processing via middleware components and hooks
217 @item Idiomatic HTTP error responses
218 @item Straightforward exception handling
219 @item Unit testing support through WSGI helpers and mocks
220 @item Compatible with both CPython and PyPy
221 @item Cython support for better performance when used with CPython
223 (license license:asl2.0)))
225 (define-public python2-falcon
226 (package-with-python2 python-falcon))
228 (define-public python-falcon-cors
230 (name "python-falcon-cors")
235 (uri (pypi-uri "falcon-cors" version))
238 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
239 (build-system python-build-system)
241 `(("python-falcon" ,python-falcon)))
243 "https://github.com/lwcolton/falcon-cors")
244 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
245 (description "This middleware provides @dfn{cross-origin resource
246 sharing} (CORS) support for Falcon. It allows applying a specially crafted
247 CORS object to the incoming requests, enabling the ability to serve resources
248 over a different origin than that of the web application.")
249 (license license:asl2.0)))
251 (define-public python2-falcon-cors
252 (package-with-python2 python-falcon-cors))
254 (define-public python-furl
261 (uri (pypi-uri "furl" version))
264 "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
265 (build-system python-build-system)
267 `(("python-six" ,python-six)
268 ("python-orderedmultidict" ,python-orderedmultidict)))
270 `(("python-pycodestyle" ,python-pycodestyle)))
271 (home-page "https://github.com/gruns/furl")
272 (synopsis "URL manipulation in Python")
273 (description "Furl provides an easy-to-use alternative to the
274 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
275 (license license:unlicense)))
277 (define-public python2-furl
278 (package-with-python2 python-furl))
280 (define-public python-httplib2
282 (name "python-httplib2")
287 (uri (pypi-uri "httplib2" version))
290 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
291 (build-system python-build-system)
292 (home-page "https://github.com/jcgregorio/httplib2")
293 (synopsis "Comprehensive HTTP client library")
295 "A comprehensive HTTP client library supporting many features left out of
296 other HTTP libraries.")
297 (license license:expat)))
299 (define-public python2-httplib2
300 (package-with-python2 python-httplib2))
302 (define-public python-mechanicalsoup
304 (name "python-mechanicalsoup")
309 (uri (pypi-uri "MechanicalSoup" version))
311 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
312 (build-system python-build-system)
314 ;; TODO: Enable tests when python-flake8@3.5 hits master.
317 `(("python-beautifulsoup4" ,python-beautifulsoup4)
318 ("python-lxml" ,python-lxml)
319 ("python-requests" ,python-requests)
320 ("python-six" ,python-six)))
323 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
324 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
325 ;; ("python-pytest-mock" ,python-pytest-mock)
326 ;; ("python-pytest-runner" ,python-pytest-runner)
327 ;; ("python-requests-mock" ,python-requests-mock)))
328 (home-page "https://mechanicalsoup.readthedocs.io/")
329 (synopsis "Python library for automating website interaction")
331 "MechanicalSoup is a Python library for automating interaction with
332 websites. It automatically stores and sends cookies, follows redirects, and can
333 follow links and submit forms. It doesn’t do JavaScript.")
334 (license license:expat)))
336 (define-public python2-mechanicalsoup
337 (package-with-python2 python-mechanicalsoup))
339 (define-public python-sockjs-tornado
341 (name "python-sockjs-tornado")
346 (uri (pypi-uri "sockjs-tornado" version))
349 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
350 (build-system python-build-system)
352 `(;; There are no tests, and running the test phase requires missing
356 `(("python-tornado" ,python-tornado)))
357 (home-page "https://github.com/mrjoes/sockjs-tornado/")
359 "SockJS Python server implementation on top of the Tornado framework")
361 "SockJS-tornado provides the server-side counterpart to a SockJS client
362 library, through the Tornado framework.
364 SockJS provides a low-latency, full-duplex, cross-domain communication channel
365 between a web browser and web server.")
366 (license license:expat)))
368 (define-public python2-sockjs-tornado
369 (package-with-python2 python-sockjs-tornado))
371 (define-public python-flask-babel
373 (name "python-flask-babel")
378 (uri (pypi-uri "Flask-Babel" version))
381 "0ff9n165vhf1nhv6807ckhpp224jw7k7sd7jz5kfh3sbpl85gmy0"))))
382 (build-system python-build-system)
384 `(("python-flask" ,python-flask)
385 ("python-babel" ,python-babel)
386 ("python-jinja2" ,python-jinja2)
387 ("python-pytz" ,python-pytz)))
388 (home-page "https://github.com/python-babel/flask-babel")
389 (synopsis "Add i18n/l10n support to Flask applications")
390 (description "This package implements internationalization and localization
391 support for Flask. This is based on the Python babel module as well as pytz -
392 both of which are installed automatically if you install this library.")
393 (license license:bsd-3)))
395 (define-public python2-flask-babel
396 (package-with-python2 python-flask-babel))
398 (define-public python-html5lib
400 (name "python-html5lib")
405 (uri (pypi-uri "html5lib" version))
408 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
409 (build-system python-build-system)
411 `(("python-six" ,python-six)
412 ("python-webencodings" ,python-webencodings)))
414 `(#:test-target "check"))
416 "https://github.com/html5lib/html5lib-python")
418 "Python HTML parser based on the WHATWG HTML specifcation")
420 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
421 and written in Python.")
422 (license license:expat)))
424 (define-public python2-html5lib
425 (package-with-python2 python-html5lib))
427 ;; Needed for python-bleach, a dependency of python-notebook
428 (define-public python-html5lib-0.9
430 (inherit python-html5lib)
435 (uri (pypi-uri "html5lib" version))
438 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
440 (define-public python2-html5lib-0.9
441 (package-with-python2 python-html5lib-0.9))
443 (define-public python-html5-parser
445 (name "python-html5-parser")
449 (uri (pypi-uri "html5-parser" version))
452 "01mx33sx4dhl4kj6wc48nj6jz7ry60rkhjv0s6k8h5xmjf5yy0x9"))))
453 (build-system python-build-system)
455 `(("pkg-config" ,pkg-config)))
457 `(("libxml2" ,libxml2)))
459 `(("python-lxml" ,python-lxml)
460 ("python-beautifulsoup4" ,python-beautifulsoup4)))
461 (home-page "https://html5-parser.readthedocs.io")
462 (synopsis "Fast C-based HTML5 parsing for Python")
463 (description "This package provides a fast implementation of the HTML5
464 parsing spec for Python. Parsing is done in C using a variant of the gumbo
465 parser. The gumbo parse tree is then transformed into an lxml tree, also in
466 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
467 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
468 ;; indicate ASL2.0, including the LICENSE file for the whole project.
469 (license (list license:asl2.0 license:gpl3))))
471 (define-public python2-html5-parser
472 (package-with-python2 python-html5-parser))
474 (define-public python-pycurl
476 (name "python-pycurl")
481 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
484 (base32 "1915kb04k1j4y6k1dx1sgnbddxrl9r1n4q928if2lkrdm73xy30g"))))
485 (build-system python-build-system)
487 ;; The tests attempt to access external web servers, so we cannot run
488 ;; them. Furthermore, they are skipped altogether when using Python 2.
490 #:phases (modify-phases %standard-phases
491 (add-before 'build 'configure-tls-backend
493 ;; XXX: PycURL fails to automatically determine which TLS
494 ;; backend to use when cURL is built with --disable-static.
495 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
496 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
499 `(("python-nose" ,python-nose)
500 ("python-bottle" ,python-bottle)))
504 (home-page "http://pycurl.io/")
505 (synopsis "Lightweight Python wrapper around libcurl")
506 (description "Pycurl is a lightweight wrapper around libcurl. It provides
507 high-speed transfers via libcurl and frequently outperforms alternatives.")
509 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
510 ;; under the terms of LGPLv2.1+ or Expat.
511 (license (list license:lgpl2.1+ license:expat))))
513 (define-public python2-pycurl
514 (package-with-python2 python-pycurl))
516 (define-public python-webencodings
518 (name "python-webencodings")
522 (uri (pypi-uri "webencodings" version))
525 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
526 (build-system python-build-system)
529 (modify-phases %standard-phases
532 (invoke "py.test" "-v" "webencodings/tests.py")
535 `(("python-pytest" ,python-pytest)))
536 (home-page "https://github.com/SimonSapin/python-webencodings")
537 (synopsis "Character encoding aliases for legacy web content")
539 "In order to be compatible with legacy web content when interpreting
540 something like @code{Content-Type: text/html; charset=latin1}, tools need
541 to use a particular set of aliases for encoding labels as well as some
542 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
543 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
544 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
545 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
546 defines all such details so that implementations do not have to
547 reverse-engineer each other.
549 This module implements the Encoding standard and has encoding labels and
550 BOM detection, but the actual implementation for encoders and decoders
552 (license license:bsd-3)))
554 (define-public python2-webencodings
555 (package-with-python2 python-webencodings))
557 (define-public python-openid
559 (name "python-openid")
564 (uri (pypi-uri "python3-openid" version))
567 "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
568 (build-system python-build-system)
571 (modify-phases %standard-phases
574 (invoke "coverage" "run" "-m"
575 "unittest" "openid.test.test_suite"))))))
576 (properties `((python2-variant . ,(delay python2-openid))))
578 `(("python-defusedxml" ,python-defusedxml)))
580 `(("python-coverage" ,python-coverage)
581 ("python-psycopg2" ,python-psycopg2)
582 ("python-django" ,python-django)))
583 (home-page "https://github.com/necaris/python3-openid")
584 (synopsis "OpenID support for servers and consumers")
585 (description "This library provides OpenID authentication for Python, both
586 for clients and servers.")
587 (license license:asl2.0)))
589 (define-public python2-openid
591 (name "python2-openid")
596 (uri (pypi-uri "python-openid" version))
599 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
600 (build-system python-build-system)
602 ;; Python 3 support is in `python3-openid`, a separate package.
604 ;; Tests aren't initialized correctly.
606 (home-page "https://github.com/openid/python-openid")
607 (synopsis "OpenID support for servers and consumers")
608 (description "This library provides OpenID authentication for Python, both
609 for clients and servers.")
610 (license license:asl2.0)))
612 (define-public python-cssutils
614 (name "python-cssutils")
619 (uri (pypi-uri "cssutils" version))
622 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
623 (build-system python-build-system)
625 `(("unzip" ,unzip))) ; for unpacking the source
627 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
628 (home-page "http://cthedot.de/cssutils/")
630 "CSS Cascading Style Sheets library for Python")
632 "Cssutils is a Python package for parsing and building CSS
633 Cascading Style Sheets. Currently it provides a DOM only and no rendering
635 (license license:lgpl3+)))
637 (define-public python2-cssutils
638 (package-with-python2 python-cssutils))
640 (define-public python-cssselect
642 (name "python-cssselect")
647 (uri (pypi-uri "cssselect" version))
650 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
651 (build-system python-build-system)
653 ;; tests fail with message
654 ;; AttributeError: 'module' object has no attribute 'tests'
657 "https://pythonhosted.org/cssselect/")
659 "CSS3 selector parser and translator to XPath 1.0")
661 "Cssselect ia a Python module that parses CSS3 Selectors and translates
662 them to XPath 1.0 expressions. Such expressions can be used in lxml or
663 another XPath engine to find the matching elements in an XML or HTML document.")
664 (license license:bsd-3)))
666 (define-public python2-cssselect
667 (package-with-python2 python-cssselect))
669 (define-public python-openid-cla
671 (name "python-openid-cla")
676 (uri (pypi-uri "python-openid-cla" version))
679 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
680 (build-system python-build-system)
681 (arguments '(#:tests? #f)) ; No tests.
682 (home-page "https://github.com/puiterwijk/python-openid-cla/")
683 (synopsis "Implementation of the OpenID CLA extension for python-openid")
684 (description "@code{openid-cla} is an implementation of the OpenID
685 contributor license agreement extension for python-openid.")
686 (license license:bsd-3)))
688 (define-public python2-openid-cla
689 (package-with-python2 python-openid-cla))
691 (define-public python-openid-teams
693 (name "python-openid-teams")
698 (uri (pypi-uri "python-openid-teams" version))
701 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
702 (build-system python-build-system)
703 (arguments '(#:tests? #f)) ; No tests.
704 (home-page "https://github.com/puiterwijk/python-openid-teams/")
705 (synopsis "Implementation of the OpenID teams extension for python-openid")
707 "@code{openid-teams} is an implementation of the OpenID
708 teams extension for python-openid.")
709 (license license:bsd-3)))
711 (define-public python2-openid-teams
712 (package-with-python2 python-openid-teams))
714 (define-public python-tornado
716 (name "python-tornado")
721 (uri (pypi-uri "tornado" version))
724 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
725 (build-system python-build-system)
727 '(;; FIXME: Two tests error out with:
728 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
730 ;; (modify-phases %standard-phases
733 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
734 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
735 ;; (invoke "python" "-m" "tornado.test.runtests")
739 `(("python-certifi" ,python-certifi)))
740 (home-page "https://www.tornadoweb.org/")
741 (synopsis "Python web framework and asynchronous networking library")
743 "Tornado is a Python web framework and asynchronous networking library,
744 originally developed at FriendFeed. By using non-blocking network I/O,
745 Tornado can scale to tens of thousands of open connections, making it ideal
746 for long polling, WebSockets, and other applications that require a long-lived
747 connection to each user.")
748 (license license:asl2.0)
749 (properties `((python2-variant . ,(delay python2-tornado))))))
751 (define-public python2-tornado
752 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
753 (package (inherit tornado)
755 `(("python2-backport-ssl-match-hostname"
756 ,python2-backport-ssl-match-hostname)
757 ("python2-backports-abc" ,python2-backports-abc)
758 ("python2-singledispatch" ,python2-singledispatch)
759 ,@(package-propagated-inputs tornado))))))
761 (define-public python-tornado-http-auth
763 (name "python-tornado-http-auth")
768 (uri (pypi-uri "tornado-http-auth" version))
771 "0znrgqd7k2s4ia474xizi6h3061zj4sn5n6cq76bkwl3wwshifn5"))))
772 (build-system python-build-system)
774 `(("python-tornado" ,python-tornado)))
776 "https://github.com/gvalkov/tornado-http-auth")
778 "Digest and basic authentication module for Tornado")
780 "Provides support for adding authentication to services using the Tornado
781 web framework, either via the basic or digest authentication schemes.")
782 (license license:asl2.0)))
784 (define-public python-terminado
786 (name "python-terminado")
791 (uri (pypi-uri "terminado" version))
794 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
795 (build-system python-build-system)
797 `(("python-tornado" ,python-tornado)
798 ("python-ptyprocess" ,python-ptyprocess)))
800 `(("python-nose" ,python-nose)))
803 (modify-phases %standard-phases
805 (lambda _ (invoke "nosetests") #t)))))
806 (home-page "https://github.com/takluyver/terminado")
807 (synopsis "Terminals served to term.js using Tornado websockets")
808 (description "This package provides a Tornado websocket backend for the
809 term.js Javascript terminal emulator library.")
810 (license license:bsd-2)
811 (properties `((python2-variant . ,(delay python2-terminado))))))
813 (define-public python2-terminado
814 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
815 (package (inherit terminado)
817 `(("python2-backport-ssl-match-hostname"
818 ,python2-backport-ssl-match-hostname)
819 ,@(package-propagated-inputs terminado))))))
821 (define-public python-wsgi-intercept
823 (name "python-wsgi-intercept")
827 (uri (pypi-uri "wsgi_intercept" version))
830 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
831 (build-system python-build-system)
833 `(("python-six" ,python-six)))
835 `(("python-pytest" ,python-pytest)
836 ("python-httplib2" ,python-httplib2)
837 ("python-requests" ,python-requests)
838 ("python-urllib3" ,python-urllib3)))
839 (synopsis "Puts a WSGI application in place of a real URI for testing")
840 (description "Wsgi_intercept installs a WSGI application in place of a real
841 URI for testing. Testing a WSGI application normally involves starting a
842 server at a local host and port, then pointing your test code to that address.
843 Instead, this library lets you intercept calls to any specific host/port
844 combination and redirect them into a WSGI application importable by your test
845 program. Thus, you can avoid spawning multiple processes or threads to test
847 (home-page "https://github.com/cdent/wsgi-intercept")
848 (license license:expat)))
850 (define-public python-webob
852 (name "python-webob")
857 (uri (pypi-uri "WebOb" version))
860 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
861 (build-system python-build-system)
863 `(("python-nose" ,python-nose)))
864 (home-page "https://webob.org/")
865 (synopsis "WSGI request and response object")
867 "WebOb provides wrappers around the WSGI request environment, and an
868 object to help create WSGI responses.")
869 (license license:expat)))
871 (define-public python2-webob
872 (package-with-python2 python-webob))
874 (define-public python-zope-event
876 (name "python-zope-event")
881 (uri (pypi-uri "zope.event" version))
884 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
885 (build-system python-build-system)
886 (home-page "https://pypi.python.org/pypi/zope.event")
887 (synopsis "Event publishing system for Python")
888 (description "Zope.event provides an event publishing API, intended for
889 use by applications which are unaware of any subscribers to their events. It
890 is a simple event-dispatching system on which more sophisticated event
891 dispatching systems can be built.")
892 (license license:zpl2.1)))
894 (define-public python2-zope-event
895 (package-with-python2 python-zope-event))
897 (define-public python-zope-interface
899 (name "python-zope-interface")
904 (uri (pypi-uri "zope.interface" version))
907 "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if"))))
908 (build-system python-build-system)
910 `(("python-zope-event" ,python-zope-event)))
911 (home-page "https://github.com/zopefoundation/zope.interface")
912 (synopsis "Python implementation of the \"design by contract\"
914 (description "Zope.interface provides an implementation of \"object
915 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
916 conforming to a given API or contract.")
917 (license license:zpl2.1)))
919 (define-public python2-zope-interface
920 (package-with-python2 python-zope-interface))
922 (define-public python-zope-exceptions
924 (name "python-zope-exceptions")
929 (uri (pypi-uri "zope.exceptions" version))
932 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
933 (build-system python-build-system)
935 '(#:tests? #f)) ; circular dependency with zope.testrunner
937 `(("python-zope-interface" ,python-zope-interface)))
938 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
939 (synopsis "Zope exceptions")
940 (description "Zope.exceptions provides general-purpose exception types
941 that have uses outside of the Zope framework.")
942 (license license:zpl2.1)))
944 (define-public python2-zope-exceptions
945 (package-with-python2 python-zope-exceptions))
947 (define-public python-zope-testing
949 (name "python-zope-testing")
954 (uri (pypi-uri "zope.testing" version))
957 "0iiq54hjhkk2gpvzfjac70vyn4r0kw0ngvicshxbdwrkgf2gjq3g"))
958 (modules '((guix build utils)))
961 ;; Remove pre-compiled .pyc files backup files from source.
962 (for-each delete-file (find-files "." "(\\.pyc|~)$"))
964 (build-system python-build-system)
965 (home-page "https://pypi.python.org/pypi/zope.testing")
966 (synopsis "Zope testing helpers")
967 (description "Zope.testing provides a number of testing utilities for HTML
968 forms, HTTP servers, regular expressions, and more.")
969 (license license:zpl2.1)))
971 (define-public python2-zope-testing
972 (package-with-python2 python-zope-testing))
974 (define-public python-zope-testrunner
976 (name "python-zope-testrunner")
981 (uri (pypi-uri "zope.testrunner" version ".zip"))
984 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
985 (build-system python-build-system)
987 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
989 `(("python-six" ,python-six)
990 ;("python-zope-interface" ,python-zope-interface)
991 ("python-zope-exceptions" ,python-zope-exceptions)
992 ("python-zope-testing" ,python-zope-testing)
995 `(("python-zope-interface" ,python-zope-interface)))
996 (home-page "https://pypi.python.org/pypi/zope.testrunner")
997 (synopsis "Zope testrunner script")
998 (description "Zope.testrunner provides a script for running Python
1000 (license license:zpl2.1)))
1002 (define-public python2-zope-testrunner
1003 (let ((base (package-with-python2 python-zope-testrunner)))
1007 (append (package-native-inputs base)
1008 `(("python2-subunit" ,python2-subunit)
1009 ("python2-mimeparse" ,python2-mimeparse)))))))
1011 (define-public python-zope-i18nmessageid
1013 (name "python-zope-i18nmessageid")
1018 (uri (pypi-uri "zope.i18nmessageid" version))
1021 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
1022 (build-system python-build-system)
1023 (home-page "https://pypi.python.org/pypi/zope.i18nmessageid")
1024 (synopsis "Message identifiers for internationalization")
1025 (description "Zope.i18nmessageid provides facilities for declaring
1026 internationalized messages within program source text.")
1027 (license license:zpl2.1)))
1029 (define-public python2-zope-i18nmessageid
1030 (package-with-python2 python-zope-i18nmessageid))
1032 (define-public python-zope-schema
1034 (name "python-zope-schema")
1039 (uri (pypi-uri "zope.schema" version))
1042 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
1043 (build-system python-build-system)
1045 '(#:tests? #f)) ; FIXME: Tests can't find zope.event.
1047 `(("python-zope-event" ,python-zope-event)
1048 ("python-zope-exceptions" ,python-zope-exceptions)
1049 ("python-zope-interface" ,python-zope-interface)))
1051 `(("python-zope-testing" ,python-zope-testing)
1052 ("python-coverage" ,python-coverage)
1053 ("python-nose" ,python-nose)))
1054 (home-page "https://pypi.python.org/pypi/zope.schema")
1055 (synopsis "Zope data schemas")
1056 (description "Zope.scheme provides extensions to zope.interface for
1057 defining data schemas.")
1058 (license license:zpl2.1)))
1060 (define-public python2-zope-schema
1061 (package-with-python2 python-zope-schema))
1063 (define-public python-zope-configuration
1065 (name "python-zope-configuration")
1069 (uri (pypi-uri "zope.configuration" version))
1072 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
1073 (build-system python-build-system)
1075 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1077 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1078 ("python-zope-schema" ,python-zope-schema)))
1079 (home-page "https://pypi.python.org/pypi/zope.configuration")
1080 (synopsis "Zope Configuration Markup Language")
1081 (description "Zope.configuration implements ZCML, the Zope Configuration
1083 (license license:zpl2.1)))
1085 (define-public python2-zope-configuration
1086 (package-with-python2 python-zope-configuration))
1088 (define-public python-zope-proxy
1090 (name "python-zope-proxy")
1095 (uri (pypi-uri "zope.proxy" version))
1098 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
1099 (build-system python-build-system)
1101 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1103 `(("python-zope-interface" ,python-zope-interface)))
1104 (home-page "https://pypi.python.org/pypi/zope.proxy")
1105 (synopsis "Generic, transparent proxies")
1106 (description "Zope.proxy provides generic, transparent proxies for Python.
1107 Proxies are special objects which serve as mostly-transparent wrappers around
1108 another object, intervening in the apparent behavior of the wrapped object
1109 only when necessary to apply the policy (e.g., access checking, location
1110 brokering, etc.) for which the proxy is responsible.")
1111 (license license:zpl2.1)))
1113 (define-public python2-zope-proxy
1114 (package-with-python2 python-zope-proxy))
1116 (define-public python-zope-location
1118 (name "python-zope-location")
1123 (uri (pypi-uri "zope.location" version))
1126 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
1127 (build-system python-build-system)
1129 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1131 `(("python-zope-proxy" ,python-zope-proxy)
1132 ("python-zope-schema" ,python-zope-schema)))
1133 (home-page "https://pypi.python.org/pypi/zope.location/")
1134 (synopsis "Zope location library")
1135 (description "Zope.location implements the concept of \"locations\" in
1136 Zope3, which are are special objects that have a structural location.")
1137 (license license:zpl2.1)))
1139 (define-public python2-zope-location
1140 (package-with-python2 python-zope-location))
1142 (define-public python-zope-security
1144 (name "python-zope-security")
1149 (uri (pypi-uri "zope.security" version))
1152 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
1153 (build-system python-build-system)
1155 '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
1157 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1158 ("python-zope-proxy" ,python-zope-proxy)
1159 ("python-zope-schema" ,python-zope-schema)))
1161 `(("python-six" ,python-six)
1162 ("python-zope-component" ,python-zope-component)
1163 ("python-zope-configuration" ,python-zope-configuration)
1164 ("python-zope-location" ,python-zope-location)
1165 ("python-zope-testrunner" ,python-zope-testrunner)
1166 ("python-zope-testing" ,python-zope-testing)))
1167 (home-page "https://pypi.python.org/pypi/zope.security")
1168 (synopsis "Zope security framework")
1169 (description "Zope.security provides a generic mechanism to implement
1170 security policies on Python objects.")
1171 (license license:zpl2.1)))
1173 (define-public python2-zope-security
1174 (let ((zope-security (package-with-python2 python-zope-security)))
1175 (package (inherit zope-security)
1177 `(("python2-zope-testrunner" ,python2-zope-testrunner)
1179 "python-zope-testrunner"
1180 (package-propagated-inputs zope-security)))))))
1182 (define-public python-zope-component
1184 (name "python-zope-component")
1189 (uri (pypi-uri "zope.component" version))
1192 "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv"))))
1193 (build-system python-build-system)
1195 ;; Skip tests due to circular dependency with python-zope-security.
1198 `(("python-zope-testing" ,python-zope-testing)))
1200 `(("python-zope-event" ,python-zope-event)
1201 ("python-zope-interface" ,python-zope-interface)
1202 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1203 ("python-zope-configuration" ,python-zope-configuration)))
1204 (home-page "https://github.com/zopefoundation/zope.component")
1205 (synopsis "Zope Component Architecture")
1206 (description "Zope.component represents the core of the Zope Component
1207 Architecture. Together with the zope.interface package, it provides
1208 facilities for defining, registering and looking up components.")
1209 (license license:zpl2.1)))
1211 (define-public python2-zope-component
1212 (package-with-python2 python-zope-component))
1214 (define-public python-ndg-httpsclient
1216 (name "python-ndg-httpsclient")
1220 (uri (pypi-uri "ndg_httpsclient" version))
1223 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1224 (build-system python-build-system)
1226 '(;; The tests appear to require networking.
1229 `(("python-pyopenssl" ,python-pyopenssl)))
1230 (synopsis "HTTPS support for Python's httplib and urllib2")
1231 (description "This is a HTTPS client implementation for httplib and urllib2
1232 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1233 over the default provided with Python and, importantly, enables full
1234 verification of the SSL peer.")
1235 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1236 (license license:bsd-3)))
1238 ;; python2-openssl requires special care, so package-with-python2 is
1240 (define-public python2-ndg-httpsclient
1241 (package (inherit python-ndg-httpsclient)
1242 (name "python2-ndg-httpsclient")
1244 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1245 ((#:python _) python-2)))
1247 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1249 (define-public python-websocket-client
1251 (name "python-websocket-client")
1256 (uri (pypi-uri "websocket_client" version))
1259 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
1260 (build-system python-build-system)
1262 `(("python-six" ,python-six)))
1263 (home-page "https://github.com/liris/websocket-client")
1264 (synopsis "WebSocket client for Python")
1265 (description "The Websocket-client module provides the low level APIs for
1266 WebSocket usage in Python programs.")
1267 (properties `((python2-variant . ,(delay python2-websocket-client))))
1268 (license license:lgpl2.1+)))
1270 (define-public python2-websocket-client
1271 (let ((base (package-with-python2
1272 (strip-python2-variant python-websocket-client))))
1276 `(("python2-backport-ssl-match-hostname"
1277 ,python2-backport-ssl-match-hostname)
1278 ,@(package-native-inputs base))))))
1280 (define-public python-requests
1282 (name "python-requests")
1286 (uri (pypi-uri "requests" version))
1289 "1s0wg4any4dsv5l3hqjxqk2zgb7pdbqhy9rhc8kh3aigfq4ws8jp"))))
1290 ;; TODO: unbundle urllib3 and chardet.
1291 (build-system python-build-system)
1293 ;; FIXME: Some tests require network access.
1295 (home-page "http://python-requests.org/")
1296 (synopsis "Python HTTP library")
1298 "Requests is a Python HTTP client library. It aims to be easier to use
1299 than Python’s urllib2 library.")
1300 (license license:asl2.0)))
1302 ;; Some software requires an older version of Requests, notably Docker
1304 (define-public python-requests-2.7
1305 (package (inherit python-requests)
1309 (uri (pypi-uri "requests" version))
1312 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1314 (define-public python2-requests
1315 (package-with-python2 python-requests))
1317 (define-public python-requests-mock
1319 (name "python-requests-mock")
1324 (uri (pypi-uri "requests-mock" version))
1327 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1328 (build-system python-build-system)
1330 `(("python-requests" ,python-requests)
1331 ("python-six" ,python-six)))
1333 `(("python-pbr" ,python-pbr)
1334 ("python-discover" ,python-discover)
1335 ("python-docutils" ,python-docutils)
1336 ("python-fixtures" ,python-fixtures)
1337 ("python-mock" ,python-mock)
1338 ("python-sphinx" ,python-sphinx)
1339 ("python-testrepository" ,python-testrepository)
1340 ("python-testtools" ,python-testtools)))
1341 (home-page "https://requests-mock.readthedocs.org/")
1342 (synopsis "Mock out responses from the requests package")
1344 "This module provides a building block to stub out the HTTP requests
1345 portions of your testing code.")
1346 (properties `((python2-variant . ,(delay python2-requests-mock))))
1347 (license license:asl2.0)))
1349 (define-public python2-requests-mock
1350 (package (inherit (package-with-python2
1351 (strip-python2-variant python-requests-mock)))
1353 `(#:python ,python-2
1354 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1357 (define-public python-requests-toolbelt
1359 (name "python-requests-toolbelt")
1363 (uri (pypi-uri "requests-toolbelt" version))
1366 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1367 (build-system python-build-system)
1369 `(("python-betamax" ,python-betamax)
1370 ("python-mock" ,python-mock)
1371 ("python-pytest" ,python-pytest)))
1373 `(("python-requests" ,python-requests)))
1374 (synopsis "Extensions to python-requests")
1375 (description "This is a toolbelt of useful classes and functions to be used
1376 with python-requests.")
1377 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1378 (license license:asl2.0)))
1380 (define-public python2-requests-toolbelt
1381 (package-with-python2 python-requests-toolbelt))
1383 (define-public python-oauthlib
1385 (name "python-oauthlib")
1389 (uri (pypi-uri "oauthlib" version))
1392 "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
1393 (build-system python-build-system)
1395 `(("python-nose" ,python-nose)
1396 ("python-mock" ,python-mock)
1397 ("python-cryptography" ,python-cryptography)
1398 ("python-pyjwt" ,python-pyjwt)
1399 ("python-blinker" ,python-blinker)))
1400 (home-page "https://github.com/idan/oauthlib")
1401 (synopsis "OAuth implementation for Python")
1403 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1404 OAuth request-signing logic.")
1405 (license license:bsd-3)
1406 (properties `((python2-variant . ,(delay python2-oauthlib))))))
1408 (define-public python2-oauthlib
1409 (let ((base (package-with-python2 (strip-python2-variant python-oauthlib))))
1412 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1413 ,@(package-native-inputs base))))))
1415 (define-public python-rauth
1417 (name "python-rauth")
1422 (uri (pypi-uri "rauth" version))
1425 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1426 (build-system python-build-system)
1428 `(#:test-target "check"))
1430 `(("python-requests" ,python-requests)))
1431 (home-page "https://github.com/litl/rauth")
1432 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1434 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1435 provides service wrappers for convenient connection initialization and
1436 authenticated session objects providing things like keep-alive.")
1437 (license license:expat)
1438 (properties `((python2-variant . ,(delay python2-rauth))))))
1440 (define-public python2-rauth
1441 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1444 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1445 ,@(package-native-inputs base))))))
1447 (define-public python-urllib3
1449 (name "python-urllib3")
1454 (uri (pypi-uri "urllib3" version))
1457 "08lwd9f3hqznyf32vnzwvp87pchx062nkbgyrf67rwlkgj0jk5fy"))))
1458 (build-system python-build-system)
1459 (arguments `(#:tests? #f))
1461 `(;; some packages for tests
1462 ("python-mock" ,python-mock)
1463 ("python-pytest" ,python-pytest)
1464 ("python-tornado" ,python-tornado)))
1466 `(;; These 5 inputs are used to build urrlib3[secure]
1467 ("python-certifi" ,python-certifi)
1468 ("python-cryptography" ,python-cryptography)
1469 ("python-idna" ,python-idna)
1470 ("python-ipaddress" ,python-ipaddress)
1471 ("python-pyopenssl" ,python-pyopenssl)
1472 ("python-pysocks" ,python-pysocks)))
1473 (home-page "https://urllib3.readthedocs.io/")
1474 (synopsis "HTTP library with thread-safe connection pooling")
1476 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1477 can reuse the same socket connection for multiple requests, it can POST files,
1478 supports url redirection and retries, and also gzip and deflate decoding.")
1479 (license license:expat)))
1481 (define-public python2-urllib3
1482 (package-with-python2 python-urllib3))
1484 (define-public awscli
1491 (uri (pypi-uri name version))
1494 "0sispclx263lybbk19zp1n9yhg8xxx4jddypzgi24vpjaqnsbwlc"))))
1495 (build-system python-build-system)
1497 `(("python-colorama" ,python-colorama)
1498 ("python-botocore" ,python-botocore)
1499 ("python-s3transfer" ,python-s3transfer)
1500 ("python-docutils" ,python-docutils)
1501 ("python-pyyaml" ,python-pyyaml)
1502 ("python-rsa" ,python-rsa)))
1504 ;; FIXME: The 'pypi' release does not contain tests.
1506 (home-page "https://aws.amazon.com/cli/")
1507 (synopsis "Command line client for AWS")
1508 (description "AWS CLI provides a unified command line interface to the
1509 Amazon Web Services (AWS) API.")
1510 (license license:asl2.0)))
1512 (define-public python-wsgiproxy2
1514 (name "python-wsgiproxy2")
1519 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
1522 "19d9dva282vfjs784i0zkxp078lxfz4h3f621z30ij9wbf5rba6a"))))
1523 (build-system python-build-system)
1525 `(("python-webtest" ,python-webtest)))
1527 `(("python-requests" ,python-requests)
1528 ("python-six" ,python-six)
1529 ("python-urllib3" ,python-urllib3)
1530 ("python-webob" ,python-webob)))
1531 (home-page "https://github.com/gawel/WSGIProxy2/")
1532 (synopsis "WSGI Proxy with various http client backends")
1533 (description "WSGI turns HTTP requests into WSGI function calls.
1534 WSGIProxy turns WSGI function calls into HTTP requests.
1535 It also includes code to sign requests and pass private data,
1536 and to spawn subprocesses to handle requests.")
1537 (license license:expat)))
1539 (define-public python2-wsgiproxy2
1540 (package-with-python2 python-wsgiproxy2))
1542 (define-public python-pastedeploy
1544 (name "python-pastedeploy")
1549 (uri (pypi-uri "PasteDeploy" version))
1552 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
1553 (build-system python-build-system)
1555 `(("python-nose" ,python-nose)))
1556 (home-page "http://pythonpaste.org/deploy/")
1558 "Load, configure, and compose WSGI applications and servers")
1560 "This tool provides code to load WSGI applications and servers from URIs;
1561 these URIs can refer to Python Eggs for INI-style configuration files. Paste
1562 Script provides commands to serve applications based on this configuration
1564 (license license:expat)))
1566 (define-public python2-pastedeploy
1567 (package-with-python2 python-pastedeploy))
1569 (define-public python-webtest
1571 (name "python-webtest")
1576 (uri (pypi-uri "WebTest" version))
1579 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
1580 (build-system python-build-system)
1582 ;; Tests require python-pyquery, which creates a circular dependency.
1585 `(("python-waitress" ,python-waitress)
1586 ("python-webob" ,python-webob)
1587 ("python-six" ,python-six)
1588 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1589 (home-page "http://webtest.pythonpaste.org/")
1590 (synopsis "Helper to test WSGI applications")
1591 (description "Webtest allows you to test your Python web applications
1592 without starting an HTTP server. It supports anything that supports the
1594 (license license:expat)))
1596 (define-public python2-webtest
1597 (package-with-python2 python-webtest))
1599 (define-public python-flask
1601 (name "python-flask")
1605 (uri (pypi-uri "flask" version))
1608 "0j6f4a9rpfh25k1gp7azqhnni4mb4fgy50jammgjgddw1l3w0w92"))))
1609 (build-system python-build-system)
1612 (modify-phases %standard-phases
1615 (invoke "python" "-m" "pytest"))))))
1617 `(("python-pytest" ,python-pytest)))
1619 `(("python-itsdangerous" ,python-itsdangerous)
1620 ("python-jinja2" ,python-jinja2)
1621 ("python-click" ,python-click)
1622 ("python-werkzeug" ,python-werkzeug)))
1623 (home-page "https://www.palletsprojects.com/p/flask/")
1624 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
1625 (description "Flask is a micro web framework based on the Werkzeug toolkit
1626 and Jinja2 template engine. It is called a micro framework because it does not
1627 presume or force a developer to use a particular tool or library.")
1628 (license license:bsd-3)))
1630 (define-public python2-flask
1631 (package-with-python2 python-flask))
1633 (define-public python-flask-wtf
1635 (name "python-flask-wtf")
1640 (uri (pypi-uri "Flask-WTF" version))
1643 "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990"))))
1644 (build-system python-build-system)
1647 (modify-phases %standard-phases
1648 (add-before 'check 'drop-failing-test
1650 ;; FIXME: This file tries resolving an external server, which
1651 ;; fails. Try to patch out the offending section instead of
1652 ;; deleting the whole thing.
1653 (delete-file "tests/test_recaptcha.py")
1656 `(("python-flask-babel" ,python-flask-babel)
1657 ("python-babel" ,python-babel)
1658 ("python-wtforms" ,python-wtforms)))
1660 `(("python-nose" ,python-nose)))
1661 (home-page "https://github.com/lepture/flask-wtf")
1662 (synopsis "Simple integration of Flask and WTForms")
1663 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
1664 upload, and reCAPTCHA.")
1665 (license license:bsd-3)))
1667 (define-public python2-flask-wtf
1668 (package-with-python2 python-flask-wtf))
1670 (define-public python-flask-multistatic
1672 (name "python-flask-multistatic")
1677 (uri (pypi-uri "flask-multistatic" version))
1680 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
1681 (build-system python-build-system)
1683 `(("python-flask" ,python-flask)))
1684 (home-page "https://pagure.io/flask-multistatic")
1685 (synopsis "Flask plugin to allow overriding static files")
1686 (description "@code{flask-multistatic} is a flask plugin that adds support
1687 for overriding static files.")
1688 (license license:gpl3+)))
1690 (define-public python2-flask-multistatic
1691 (package-with-python2 python-flask-multistatic))
1693 (define-public python-cookies
1695 (name "python-cookies")
1699 (uri (pypi-uri "cookies" version))
1702 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
1703 (build-system python-build-system)
1705 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
1708 `(("python-pytest" ,python2-pytest)))
1709 (synopsis "HTTP cookie parser and renderer")
1710 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
1712 (home-page "https://gitlab.com/sashahart/cookies")
1713 (license license:expat)))
1715 (define-public python2-cookies
1716 (package-with-python2 python-cookies))
1718 (define-public python-responses
1720 (name "python-responses")
1724 (uri (pypi-uri "responses" version))
1727 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
1728 (build-system python-build-system)
1730 `(;; Test suite is not distributed:
1731 ;; https://github.com/getsentry/responses/issues/38
1734 `(("python-mock" ,python-mock)))
1736 `(("python-requests" ,python-requests)
1737 ("python-cookies" ,python-cookies)
1738 ("python-six" ,python-six)))
1739 (home-page "https://github.com/getsentry/responses")
1740 (synopsis "Utility for mocking out the `requests` Python library")
1741 (description "A utility library for mocking out the `requests` Python
1743 (license license:asl2.0)))
1745 (define-public python2-responses
1746 (package-with-python2 python-responses))
1748 (define-public python-grequests
1750 (name "python-grequests")
1755 (uri (pypi-uri "grequests" version))
1758 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
1759 (build-system python-build-system)
1761 `(("python-gevent" ,python-gevent)
1762 ("python-requests" ,python-requests)))
1764 `(("python-nose" ,python-nose)))
1765 (home-page "https://github.com/kennethreitz/grequests")
1766 (synopsis "Python library for asynchronous HTTP requests")
1767 (description "GRequests is a Python library that allows you to use
1768 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
1769 (license license:bsd-2)))
1771 (define-public python-geventhttpclient
1773 (name "python-geventhttpclient")
1777 (uri (pypi-uri "geventhttpclient" version))
1780 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
1781 (modules '((guix build utils)))
1784 ;; Delete pre-compiled files.
1785 (for-each delete-file (find-files "src/geventhttpclient"
1788 (build-system python-build-system)
1791 (modify-phases %standard-phases
1792 (add-after 'unpack 'delete-network-tests
1794 (delete-file "src/geventhttpclient/tests/test_client.py")
1797 (add-after 'install 'check
1798 (lambda* (#:key inputs outputs #:allow-other-keys)
1799 (add-installed-pythonpath inputs outputs)
1800 (invoke "py.test" "src/geventhttpclient/tests" "-v"
1801 ;; Append the test modules to sys.path to avoid
1802 ;; namespace conflict which breaks SSL tests.
1803 "--import-mode=append")
1806 `(("python-pytest" ,python-pytest)))
1808 `(("python-certifi" ,python-certifi)
1809 ("python-gevent" ,python-gevent)
1810 ("python-six" ,python-six)))
1811 (home-page "https://github.com/gwik/geventhttpclient")
1812 (synopsis "HTTP client library for gevent")
1813 (description "@code{python-geventhttpclient} is a high performance,
1814 concurrent HTTP client library for python using @code{gevent}.")
1815 (license license:expat)))
1817 (define-public python2-geventhttpclient
1818 (package-with-python2 python-geventhttpclient))
1820 (define-public python-requests-oauthlib
1822 (name "python-requests-oauthlib")
1827 (uri (pypi-uri "requests-oauthlib" version))
1830 "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn"))))
1831 (build-system python-build-system)
1834 (modify-phases %standard-phases
1835 ;; removes tests that require network access
1836 (add-before 'check 'pre-check
1838 (delete-file "tests/test_core.py")
1841 `(("python-requests-mock" ,python-requests-mock)
1842 ("python-mock" ,python-mock)))
1844 `(("python-oauthlib" ,python-oauthlib)
1845 ("python-requests" ,python-requests)))
1847 "https://github.com/requests/requests-oauthlib")
1849 "OAuthlib authentication support for Requests")
1851 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
1852 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
1853 (license license:isc)))
1855 (define-public python2-requests-oauthlib
1856 (package-with-python2 python-requests-oauthlib))
1858 (define-public python-url
1864 (uri (pypi-uri "url" version))
1867 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
1868 (build-system python-build-system)
1870 `(("python-publicsuffix" ,python-publicsuffix)))
1872 `(("python-coverage" ,python-coverage)
1873 ("python-nose" ,python-nose)))
1875 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
1876 (home-page "https://github.com/seomoz/url-py")
1877 (synopsis "URL Parsing")
1878 (description "Library for parsing urls.")
1879 (license license:expat)
1880 (properties `((python2-variant . ,(delay python2-url))))))
1882 (define-public python2-url
1883 (let ((base (package-with-python2 (strip-python2-variant python-url))))
1884 (package (inherit base)
1886 `(("python2-publicsuffix" ,python2-publicsuffix))))))
1888 (define-public python-cachecontrol
1890 (name "python-cachecontrol")
1895 ;; Pypi does not have tests.
1897 "https://github.com/ionrock/cachecontrol/archive/v"
1899 (file-name (string-append name "-" version ".tar.gz"))
1902 "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw"))))
1903 (build-system python-build-system)
1906 (modify-phases %standard-phases
1909 ;; Drop test that requires internet access.
1910 (delete-file "tests/test_regressions.py")
1911 (setenv "PYTHONPATH"
1912 (string-append (getcwd) "/build/lib:"
1913 (getenv "PYTHONPATH")))
1914 (invoke "py.test" "-vv")
1917 `(("python-pytest" ,python-pytest)
1918 ("python-redis" ,python-redis)
1919 ("python-webtest" ,python-webtest)
1920 ("python-mock" ,python-mock)))
1922 `(("python-requests" ,python-requests)
1923 ("python-lockfile" ,python-lockfile)))
1924 (home-page "https://github.com/ionrock/cachecontrol")
1925 (synopsis "The httplib2 caching algorithms for use with requests")
1926 (description "CacheControl is a port of the caching algorithms in
1927 @code{httplib2} for use with @code{requests} session objects.")
1928 (license license:asl2.0)))
1930 (define-public python2-cachecontrol
1931 (package-with-python2 python-cachecontrol))
1933 (define-public python-betamax
1935 (name "python-betamax")
1940 (uri (pypi-uri "betamax" version))
1943 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
1944 (build-system python-build-system)
1946 '(;; Many tests fail because they require networking.
1949 `(("python-requests" ,python-requests)))
1950 (home-page "https://github.com/sigmavirus24/betamax")
1951 (synopsis "Record HTTP interactions with python-requests")
1952 (description "Betamax will record your test suite's HTTP interactions and
1953 replay them during future tests. It is designed to work with python-requests.")
1954 (license license:expat)))
1956 (define-public python2-betamax
1957 (package-with-python2 python-betamax))
1959 (define-public python-betamax-matchers
1961 (name "python-betamax-matchers")
1966 (uri (pypi-uri "betamax-matchers" version))
1969 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
1970 (build-system python-build-system)
1972 `(("python-betamax" ,python-betamax)
1973 ("python-requests-toolbelt" ,python-requests-toolbelt)))
1974 (home-page "https://github.com/sigmavirus24/betamax_matchers")
1975 (synopsis "VCR imitation for python-requests")
1976 (description "@code{betamax-matchers} provides a set of Matchers for
1978 (license license:asl2.0)))
1980 (define-public python2-betamax-matchers
1981 (package-with-python2 python-betamax-matchers))
1983 (define-public python-s3transfer
1985 (name "python-s3transfer")
1989 (uri (pypi-uri "s3transfer" version))
1992 "1harvyn1s8v54n1w5h7c0lg4bgjh68aylhg28s8n174q53h1ip4h"))))
1993 (build-system python-build-system)
1996 (modify-phases %standard-phases
1999 ;; 7 of the 'integration' tests require network access or login
2001 (invoke "nosetests" "--exclude=integration")
2004 `(("python-docutils" ,python-docutils)
2005 ("python-mock" ,python-mock)
2006 ("python-nose" ,python-nose)))
2008 `(("python-botocore" ,python-botocore)))
2009 (synopsis "Amazon S3 Transfer Manager")
2010 (description "S3transfer is a Python library for managing Amazon S3
2012 (home-page "https://github.com/boto/s3transfer")
2013 (license license:asl2.0)
2014 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2016 (define-public python2-s3transfer
2017 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2021 `(("python2-futures" ,python2-futures)
2022 ,@(package-native-inputs base))))))
2024 (define-public python-slimit
2026 (name "python-slimit")
2031 (uri (pypi-uri "slimit" version ".zip"))
2034 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2035 (build-system python-build-system)
2037 `(("unzip" ,unzip)))
2039 `(("python-ply" ,python-ply)))
2040 (home-page "https://slimit.readthedocs.io/")
2041 (synopsis "JavaScript minifier, parser and lexer written in Python")
2043 "SlimIt is a JavaScript minifier written in Python. It compiles
2044 JavaScript into more compact code so that it downloads and runs faster.
2045 SlimIt also provides a library that includes a JavaScript parser, lexer,
2046 pretty printer and a tree visitor.")
2047 (license license:expat)))
2049 (define-public python-flask-restful
2051 (name "python-flask-restful")
2056 (uri (pypi-uri "Flask-RESTful" version))
2059 "1a9cbwkr6krryyzq4sd3f415nkkc6dyfls5i3pgyibs94g0hw97q"))))
2060 (build-system python-build-system)
2062 `(("python-aniso8601" ,python-aniso8601)
2063 ("python-flask" ,python-flask)
2064 ("python-pycrypto" ,python-pycrypto)
2065 ("python-pytz" ,python-pytz)))
2067 `(;; Optional dependency of Flask. Tests need it.
2068 ("python-blinker" ,python-blinker)
2069 ("python-mock" ,python-mock) ; For tests
2070 ("python-nose" ,python-nose) ; For tests
2071 ("python-sphinx" ,python-sphinx)))
2073 "https://www.github.com/flask-restful/flask-restful/")
2075 "Flask module for creating REST APIs")
2077 "This package contains a Flask module for creating REST APIs.")
2078 (license license:bsd-3)))
2080 (define-public python-flask-basicauth
2082 (name "python-flask-basicauth")
2087 (uri (pypi-uri "Flask-BasicAuth" version))
2090 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2091 (build-system python-build-system)
2093 `(("python-flask" ,python-flask)))
2095 "https://github.com/jpvanhal/flask-basicauth")
2097 "HTTP basic access authentication for Flask")
2099 "This package provides HTTP basic access authentication for Flask.")
2100 (license license:bsd-3)))
2102 (define-public python-flask-sqlalchemy
2104 (name "python-flask-sqlalchemy")
2109 (uri (pypi-uri "Flask-SQLAlchemy" version))
2112 "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"))))
2113 (build-system python-build-system)
2115 `(("python-flask" ,python-flask)
2116 ("python-sqlalchemy" ,python-sqlalchemy)))
2118 "https://github.com/mitsuhiko/flask-sqlalchemy")
2120 "Module adding SQLAlchemy support to your Flask application")
2122 "This package adds SQLAlchemy support to your Flask application.")
2123 (license license:bsd-3)))
2125 (define-public python-flask-restplus
2127 (name "python-flask-restplus")
2132 (uri (pypi-uri "flask-restplus" version))
2135 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2136 (build-system python-build-system)
2138 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2140 ;; (modify-phases %standard-phases
2143 ;; (invoke "nosetests")
2146 `(("python-aniso8601" ,python-aniso8601)
2147 ("python-flask" ,python-flask)
2148 ("python-jsonschema" ,python-jsonschema)
2149 ("python-pytz" ,python-pytz)
2150 ("python-six" ,python-six)))
2152 `(("python-tzlocal" ,python-tzlocal)
2153 ("python-blinker" ,python-blinker)
2154 ("python-nose" ,python-nose)
2155 ("python-rednose" ,python-rednose)))
2156 (home-page "https://github.com/noirbizarre/flask-restplus")
2157 (synopsis "Framework for documented API development with Flask")
2158 (description "This package provides a framework for API development with
2159 the Flask web framework in Python. It is similar to package
2160 @code{python-flask-restful} but supports the @code{python-swagger}
2161 documentation builder.")
2162 (license license:expat)))
2164 (define-public python-flask-restful-swagger
2166 (name "python-flask-restful-swagger")
2171 (uri (pypi-uri "flask-restful-swagger" version))
2174 "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v"))))
2175 (build-system python-build-system)
2177 `(("python-flask-restful" ,python-flask-restful)))
2178 (home-page "https://github.com/rantav/flask-restful-swagger")
2179 (synopsis "Extract Swagger specs from Flask-Restful projects")
2180 (description "This package lets you extract Swagger API documentation
2181 specs from your Flask-Restful projects.")
2182 (license license:expat)))
2184 (define-public python2-flask-restful-swagger
2185 (package-with-python2 python-flask-restful-swagger))
2187 (define-public python-htmlmin
2189 (name "python-htmlmin")
2194 (uri (pypi-uri "htmlmin" version))
2197 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2199 `(#:tests? #f)) ; no tests
2200 (build-system python-build-system)
2201 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2202 (synopsis "HTML minifier")
2203 (description "@code{htmlmin} is an HTML minifier that just works.
2204 It comes with safe defaults and easily configurable options.")
2205 (license license:bsd-3)))
2207 (define-public python2-htmlmin
2208 (package-with-python2 python-htmlmin))
2210 (define-public python-flask-htmlmin
2212 (name "python-flask-htmlmin")
2217 (uri (pypi-uri "Flask-HTMLmin" version))
2220 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2222 `(("python-flask" ,python-flask)
2223 ("python-htmlmin" ,python-htmlmin)))
2224 (build-system python-build-system)
2225 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2226 (synopsis "HTML response minifier for Flask")
2228 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2229 (license license:bsd-3)))
2231 (define-public python2-flask-htmlmin
2232 (package-with-python2 python-flask-htmlmin))
2234 (define-public python-jsmin
2236 (name "python-jsmin")
2241 (uri (pypi-uri "jsmin" version))
2244 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2245 (build-system python-build-system)
2246 (home-page "https://github.com/tikitu/jsmin/")
2247 (synopsis "Python JavaScript minifier")
2249 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2250 on the command line.")
2251 (license license:expat)))
2253 (define-public python-flask-login
2255 (name "python-flask-login")
2261 (url "https://github.com/maxcountryman/flask-login.git")
2263 (file-name (git-file-name name version))
2265 (base32 "1rj0qwyxapxnp84fi4lhmvh3d91fdiwz7hibw77x3d5i72knqaa9"))))
2268 (modify-phases %standard-phases
2269 (add-before 'check 'avoid-yanc
2270 ;; Work around '.nosetests-real: error: no such option: --with-yanc'.
2272 (setenv "NOCOLOR" "set")
2274 (build-system python-build-system)
2276 `(("python-flask" ,python-flask)))
2279 `(("python-blinker" ,python-blinker)
2280 ("python-mock" ,python-mock)
2281 ("python-nose" ,python-nose)
2282 ("python-pep8" ,python-pep8)
2283 ("python-pyflakes" ,python-pyflakes)
2284 ("python-semantic-version" ,python-semantic-version)
2285 ("python-werkzeug" ,python-werkzeug)))
2286 (home-page "https://github.com/maxcountryman/flask-login")
2287 (synopsis "User session management for Flask")
2289 "@code{Flask-Login} provides user session management for Flask. It
2290 handles the common tasks of logging in, logging out, and remembering your
2291 users' sessions over extended periods of time.")
2292 (license license:expat)))
2294 (define-public python2-flask-login
2295 (package-with-python2 python-flask-login))
2297 (define-public python-oauth2client
2299 (name "python-oauth2client")
2304 (uri (pypi-uri "oauth2client" version))
2307 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2308 (build-system python-build-system)
2312 `(("python-httplib2" ,python-httplib2)
2313 ("python-pyasn1" ,python-pyasn1)
2314 ("python-pyasn1-modules" ,python-pyasn1-modules)
2315 ("python-rsa" ,python-rsa)
2316 ("python-six" ,python-six)))
2317 (home-page "https://github.com/google/oauth2client/")
2318 (synopsis "OAuth 2.0 client library")
2319 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2320 library for Python")
2321 (license license:asl2.0)))
2323 (define-public python2-oauth2client
2324 (package-with-python2 python-oauth2client))
2326 (define-public python-flask-oidc
2328 (name "python-flask-oidc")
2333 (uri (pypi-uri "flask-oidc" version))
2336 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
2337 (build-system python-build-system)
2339 `(("python-flask" ,python-flask)
2340 ("python-itsdangerous" ,python-itsdangerous)
2341 ("python-oauth2client" ,python-oauth2client)
2342 ("python-six" ,python-six)))
2344 `(("python-nose" ,python-nose)
2345 ("python-mock" ,python-mock)))
2346 (home-page "https://github.com/puiterwijk/flask-oidc")
2347 (synopsis "OpenID Connect extension for Flask")
2348 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2350 (license license:bsd-2)))
2352 (define-public python-webassets
2354 (name "python-webassets")
2359 (uri (pypi-uri "webassets" version))
2362 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2363 (build-system python-build-system)
2365 `(("python-jinja2" ,python-jinja2)
2366 ("python-mock" ,python-mock)
2367 ("python-nose" ,python-nose)
2368 ("python-pytest" ,python-pytest)))
2369 (home-page "https://github.com/miracle2k/webassets")
2370 (synopsis "Media asset management")
2371 (description "Merges, minifies and compresses Javascript and CSS files,
2372 supporting a variety of different filters, including YUI, jsmin, jspacker or
2373 CSS tidy. Also supports URL rewriting in CSS files.")
2374 (license license:bsd-2)))
2376 (define-public python-cssmin
2378 (name "python-cssmin")
2383 (uri (pypi-uri "cssmin" version))
2386 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2387 (build-system python-build-system)
2388 (home-page "https://github.com/zacharyvoase/cssmin")
2389 (synopsis "Python port of the YUI CSS Compressor")
2390 (description "Python port of the YUI CSS Compressor.")
2391 (license (list license:expat license:bsd-3))))
2393 (define-public python2-cssmin
2394 (package-with-python2 python-cssmin))
2396 (define-public python-elasticsearch
2398 (name "python-elasticsearch")
2403 (uri (pypi-uri "elasticsearch" version))
2406 "1kjxl45yvvgfb5fmamx0kfsfg9pzphiqrwbkns3s28r1w7ya74cd"))))
2407 (build-system python-build-system)
2409 `(("python-mock" ,python-mock)
2410 ("python-nosexcover" ,python-nosexcover)
2411 ("python-pyaml" ,python-pyaml)
2412 ("python-requests" ,python-requests)))
2414 `(("urllib3" ,python-urllib3)))
2416 ;; tests require the test_elasticsearch module but it is not distributed.
2418 (home-page "https://github.com/elastic/elasticsearch-py")
2419 (synopsis "Low-level client for Elasticsearch")
2420 (description "Official low-level client for Elasticsearch. Its goal is to
2421 provide common ground for all Elasticsearch-related code in Python; because of
2422 this it tries to be opinion-free and very extendable.")
2423 (license license:expat)))
2425 (define-public python2-elasticsearch
2426 (package-with-python2 python-elasticsearch))
2428 (define-public python-flask-script
2430 (name "python-flask-script")
2435 (uri (pypi-uri "Flask-Script" version))
2438 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
2439 (build-system python-build-system)
2441 `(("python-flask" ,python-flask)
2442 ("python-argcomplete" ,python-argcomplete)
2443 ("python-werkzeug" ,python-werkzeug)))
2445 `(("python-pytest" ,python-pytest)))
2447 "https://github.com/smurfix/flask-script")
2448 (synopsis "Scripting support for Flask")
2449 (description "The Flask-Script extension provides support for writing
2450 external scripts in Flask. This includes running a development server,
2451 a customised Python shell, scripts to set up your database, cronjobs,
2452 and other command-line tasks that belong outside the web application
2454 (license license:bsd-3)))
2456 (define-public python2-flask-script
2457 (package-with-python2 python-flask-script))
2459 (define-public python-flask-migrate
2461 (name "python-flask-migrate")
2466 (uri (pypi-uri "Flask-Migrate" version))
2469 "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk"))))
2470 (build-system python-build-system)
2472 `(("python-flask" ,python-flask)
2473 ("python-alembic" ,python-alembic)
2474 ("python-sqlalchemy" ,python-sqlalchemy)
2475 ("python-flask-script" ,python-flask-script)
2476 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2477 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2478 (synopsis "SQLAlchemy database migrations for Flask programs using
2480 (description "This package contains SQLAlchemy database migration tools
2481 for Flask programs that are using @code{python-alembic}.")
2482 (license license:expat)))
2484 (define-public python2-flask-migrate
2485 (package-with-python2 python-flask-migrate))
2487 (define-public python-genshi
2489 (name "python-genshi")
2495 (url "https://github.com/edgewall/genshi.git")
2497 (file-name (git-file-name name version))
2499 (base32 "01fx8fnpay5w048ppyjivg2dgfpp5rybn07y3pfsgj2knram3nhl"))))
2500 (build-system python-build-system)
2501 (home-page "https://genshi.edgewall.org/")
2502 (synopsis "Toolkit for generation of output for the web")
2503 (description "Genshi is a Python library that provides an integrated set
2504 of components for parsing, generating, and processing HTML, XML or other
2505 textual content for output generation on the web.")
2506 (license license:bsd-3)))
2508 (define-public python2-genshi
2509 (package-with-python2 python-genshi))
2511 (define-public python-flask-principal
2513 (name "python-flask-principal")
2518 (uri (pypi-uri "Flask-Principal" version))
2521 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
2522 (build-system python-build-system)
2524 `(("python-blinker" ,python-blinker)))
2526 `(("python-flask" ,python-flask)
2527 ("python-nose" ,python-nose)))
2528 (home-page "http://packages.python.org/Flask-Principal/")
2529 (synopsis "Identity management for Flask")
2530 (description "@code{flask_principal} is a identity management library for
2531 Flask. It supports managing both authentication and authorization data in a
2532 thread-local variable.")
2533 (license license:expat)))
2535 (define-public python2-flask-principal
2536 (package-with-python2 python-flask-principal))
2538 (define-public python-flask-httpauth
2540 (name "python-flask-httpauth")
2545 (uri (pypi-uri "Flask-HTTPAuth" version))
2548 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
2549 (build-system python-build-system)
2551 `(("python-flask" ,python-flask)))
2552 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
2553 (synopsis "Basic and Digest HTTP authentication for Flask routes")
2554 (description "@code{flask_httpauth} provides Basic and Digest HTTP
2555 authentication for Flask routes.")
2556 (license license:expat)))
2558 (define-public python2-flask-httpauth
2559 (package-with-python2 python-flask-httpauth))
2561 (define-public python-uritemplate
2563 (name "python-uritemplate")
2568 (uri (pypi-uri "uritemplate" version))
2571 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
2572 (build-system python-build-system)
2573 (home-page "https://uritemplate.readthedocs.org")
2574 (synopsis "Library to deal with URI Templates")
2575 (description "@code{uritemplate} provides Python library to deal with URI
2577 (license license:bsd-2)))
2579 (define-public python2-uritemplate
2580 (package-with-python2 python-uritemplate))
2582 (define-public python-publicsuffix
2584 (name "python-publicsuffix")
2588 (uri (pypi-uri "publicsuffix" version))
2591 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
2592 (build-system python-build-system)
2594 `(#:tests? #f)) ; tests use the internet
2595 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
2596 (synopsis "Get suffix for a domain name")
2597 (description "Get a public suffix for a domain name using the Public Suffix
2599 (license license:expat)))
2601 (define-public python2-publicsuffix
2602 (package-with-python2 python-publicsuffix))
2604 (define-public python-publicsuffix2
2606 (name "python-publicsuffix2")
2607 (version "2.20160818")
2611 (uri (pypi-uri "publicsuffix2" version ".tar.bz2"))
2614 "1bb55yka9vkn7i6y1kjzxa516kh6v4gsrxa90w5wdz5p5n968r68"))))
2615 (build-system python-build-system)
2617 '(#:tests? #f)) ; The test suite requires network access.
2618 (home-page "https://github.com/pombredanne/python-publicsuffix2")
2619 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
2620 (description "Get a public suffix for a domain name using the Public Suffix
2621 List. Forked from and using the same API as the publicsuffix package.")
2622 (license (list license:expat license:mpl2.0))))
2624 (define-public python2-publicsuffix2
2625 (package-with-python2 python-publicsuffix2))
2627 (define-public python-werkzeug
2629 (name "python-werkzeug")
2634 (uri (pypi-uri "werkzeug" version))
2637 "0z2m4snn1vc9518r2vzgdj1nc90kcgi60wijvd29yvcp85ypmzf3"))))
2638 (build-system python-build-system)
2641 (modify-phases %standard-phases
2643 (add-after 'install 'check
2644 (lambda* (#:key inputs outputs #:allow-other-keys)
2645 (add-installed-pythonpath inputs outputs)
2646 (invoke "python" "-m" "pytest"))))))
2648 `(("python-requests" ,python-requests)))
2650 `(("python-pytest" ,python-pytest)))
2651 (home-page "https://www.palletsprojects.org/p/werkzeug/")
2652 (synopsis "Utilities for WSGI applications")
2653 (description "One of the most advanced WSGI utility modules. It includes a
2654 powerful debugger, full-featured request and response objects, HTTP utilities to
2655 handle entity tags, cache control headers, HTTP dates, cookie handling, file
2656 uploads, a powerful URL routing system and a bunch of community-contributed
2658 (license license:x11)))
2660 (define-public python2-werkzeug
2661 (package-with-python2 python-werkzeug))
2663 (define-public python-bottle
2665 (name "python-bottle")
2670 (uri (pypi-uri "bottle" version))
2673 "0m9k2a7yxvggc4kw8fsvj381vgsvfcdshg5nzy6vwrxiw2p53drr"))))
2674 (build-system python-build-system)
2675 (home-page "http://bottlepy.org/")
2676 (synopsis "WSGI framework for small web-applications.")
2677 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
2678 (license license:expat)))
2680 (define-public python2-bottle
2681 (package-with-python2 python-bottle))
2683 (define-public python-wtforms
2685 (name "python-wtforms")
2690 (uri (pypi-uri "WTForms" version ".zip"))
2693 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
2694 (build-system python-build-system)
2697 (modify-phases %standard-phases
2698 (add-after 'unpack 'remove-django-test
2699 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
2703 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
2704 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
2707 `(("unzip" ,unzip)))
2708 (home-page "http://wtforms.simplecodes.com/")
2710 "Form validation and rendering library for Python web development")
2712 "WTForms is a flexible forms validation and rendering library
2713 for Python web development. It is very similar to the web form API
2714 available in Django, but is a standalone package.")
2715 (license license:bsd-3)))
2717 (define-public python2-wtforms
2718 (package-with-python2 python-wtforms))
2720 (define-public python-paste
2722 (name "python-paste")
2727 (uri (pypi-uri "Paste" version))
2730 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
2731 (patches (search-patches "python-paste-remove-timing-test.patch"))
2732 (modules '((guix build utils)))
2735 ;; This test calls out to the internet.
2736 (delete-file "tests/test_proxy.py") #t))))
2737 (build-system python-build-system)
2739 `(("python-pytest" ,python-pytest)
2740 ("python-pytest-runner" ,python-pytest-runner)
2741 ("python-nose" ,python-nose)))
2743 `(("python-six" ,python-six)))
2744 (home-page "http://pythonpaste.org")
2746 "Python web development tools, focusing on WSGI")
2748 "Paste provides a variety of web development tools and middleware which
2749 can be nested together to build web applications. Paste's design closely
2750 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
2751 (license license:expat)))
2753 (define-public python2-paste
2754 (package-with-python2 python-paste))
2756 (define-public python-pastescript
2758 (name "python-pastescript")
2763 (uri (pypi-uri "PasteScript" version))
2766 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
2767 (build-system python-build-system)
2769 `(("python-nose" ,python-nose)))
2771 `(("python-paste" ,python-paste)
2772 ("python-pastedeploy" ,python-pastedeploy)))
2773 (home-page "http://pythonpaste.org/script/")
2775 '(;; Unfortunately, this requires the latest unittest2,
2776 ;; but that requires traceback2 which requires linecache2 which requires
2777 ;; unittest2. So we're skipping tests for now.
2778 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
2779 ;; so in theory we could get around this situation somehow.)
2782 "Pluggable command line tool for serving web applications and more")
2784 "PasteScript is a plugin-friendly command line tool which provides a
2785 variety of features, from launching web applications to bootstrapping project
2787 (license license:expat)))
2789 (define-public python2-pastescript
2790 (package-with-python2 python-pastescript))
2792 (define-public python2-urlgrabber
2794 (name "python2-urlgrabber")
2799 (uri (pypi-uri "urlgrabber" version))
2801 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
2802 (build-system python-build-system)
2803 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
2804 (home-page "http://urlgrabber.baseurl.org")
2805 (synopsis "High-level cross protocol url-grabber")
2806 (description "@code{urlgrabber} is Python2 library that unifies access to
2807 files available on web, FTP or locally. It supports HTTP, FTP and file://
2808 protocols, it supports features like HTTP keep-alive, reget, throttling and
2810 (license license:lgpl2.1+)))
2812 (define-public python-pycares
2814 (name "python-pycares")
2819 (uri (pypi-uri "pycares" version))
2822 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
2823 (build-system python-build-system)
2825 `(#:tests? #f)) ;tests require internet access
2826 (home-page "http://github.com/saghul/pycares")
2827 (synopsis "Python interface for @code{c-ares}")
2828 (description "@code{pycares} is a Python module which provides an
2829 interface to @code{c-ares}, a C library that performs DNS requests and
2830 name resolutions asynchronously.")
2831 (license license:expat)))
2833 (define-public python-yarl
2835 (name "python-yarl")
2840 (uri (pypi-uri "yarl" version))
2843 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
2844 (build-system python-build-system)
2846 `(("python-pytest" ,python-pytest)
2847 ("python-pytest-runner" ,python-pytest-runner)))
2849 `(("python-idna" ,python-idna)
2850 ("python-multidict" ,python-multidict)))
2851 (home-page "https://github.com/aio-libs/yarl/")
2852 (synopsis "Yet another URL library")
2853 (description "@code{yarl} module provides handy @code{URL} class
2854 for URL parsing and changing.")
2855 (license license:asl2.0)))
2857 (define-public python-google-api-client
2859 (name "python-google-api-client")
2864 (uri (pypi-uri "google-api-python-client" version))
2867 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
2868 (build-system python-build-system)
2870 '(#:tests? #f)) ; tests require internet access
2872 `(("python-httplib2" ,python-httplib2)
2873 ("python-six" ,python-six)
2874 ("python-oauth2client" ,python-oauth2client)
2875 ("python-uritemplate" ,python-uritemplate)))
2876 (home-page "https://github.com/google/google-api-python-client")
2877 (synopsis "Core Python library for accessing Google APIs")
2878 (description "Python client library for Google's discovery based APIs")
2879 (license license:asl2.0)))
2881 (define-public python2-google-api-client
2882 (package-with-python2 python-google-api-client))
2884 (define-public python-hawkauthlib
2886 (name "python-hawkauthlib")
2891 (uri (pypi-uri "hawkauthlib" version))
2894 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
2895 (build-system python-build-system)
2897 `(("python-requests" ,python-requests)
2898 ("python-webob" ,python-webob)))
2899 (home-page "https://github.com/mozilla-services/hawkauthlib")
2900 (synopsis "Hawk Access Authentication protocol")
2902 "This is a low-level Python library for implementing Hawk Access Authentication,
2903 a simple HTTP request-signing scheme.")
2904 (license license:mpl2.0)))
2906 (define-public python-pybrowserid
2908 (name "python-pybrowserid")
2913 (uri (pypi-uri "PyBrowserID" version))
2916 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
2917 (build-system python-build-system)
2919 `(("python-requests" ,python-requests)))
2921 `(("python-mock" ,python-mock)))
2922 (home-page "https://github.com/mozilla/PyBrowserID")
2923 (synopsis "Python library for the BrowserID protocol")
2925 "This is a Python client library for the BrowserID protocol that
2926 underlies Mozilla Persona.")
2927 (license license:mpl2.0)))
2929 (define-public python-pyfxa
2931 (name "python-pyfxa")
2936 (uri (pypi-uri "PyFxA" version))
2939 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
2940 (build-system python-build-system)
2941 (arguments '(#:tests? #f)) ; 17 tests require network access
2943 `(("python-cryptography" ,python-cryptography)
2944 ("python-hawkauthlib" ,python-hawkauthlib)
2945 ("python-pybrowserid" ,python-pybrowserid)
2946 ("python-requests" ,python-requests)
2947 ("python-six" ,python-six)))
2949 `(("python-grequests" ,python-grequests)
2950 ("python-mock" ,python-mock)
2951 ("python-responses" ,python-responses)
2952 ("python-unittest2" ,python-unittest2)))
2953 (home-page "https://github.com/mozilla/PyFxA")
2954 (synopsis "Firefox Accounts client library for Python")
2956 "This is a Python library for interacting with the Firefox Accounts
2958 (license license:mpl2.0)))
2960 (define-public python-hyperlink
2962 (name "python-hyperlink")
2967 (uri (pypi-uri "hyperlink" version))
2970 "01m3y19arfqljksngy8grc966zdb4larysralb8cajzi8kvly6zh"))))
2971 (build-system python-build-system)
2973 `(("python-idna" ,python-idna)))
2974 (home-page "https://github.com/python-hyper/hyperlink")
2975 (synopsis "Python module to create immutable URLs according to spec")
2976 (description "This package provides a Python module to create immutable, and
2977 correct URLs for Python according to RFCs 3986 and 3987.")
2978 (license license:expat)))
2980 (define-public python-treq
2982 (name "python-treq")
2987 (uri (pypi-uri "treq" version))
2990 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
2991 (build-system python-build-system)
2993 `(("python-attrs" ,python-attrs)
2994 ("python-idna" ,python-idna)
2995 ("python-incremental" ,python-incremental)
2996 ("python-requests" ,python-requests)
2997 ("python-service-identity" ,python-service-identity)
2998 ("python-twisted" ,python-twisted)))
2999 (home-page "https://github.com/twisted/treq")
3000 (synopsis "Requests-like API built on top of twisted.web's Agent")
3001 (description "This package provides an HTTP library inspired by
3002 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3003 high level API for making HTTP requests when using Twisted.")
3004 (license license:expat)))
3006 (define-public python-autobahn
3008 (name "python-autobahn")
3013 (uri (pypi-uri "autobahn" version))
3016 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3017 (build-system python-build-system)
3019 ;; The tests fail to run:
3020 ;; https://github.com/crossbario/autobahn-python/issues/1117
3023 `(("python-cffi" ,python-cffi)
3024 ("python-twisted" ,python-twisted)
3025 ("python-txaio" ,python-txaio)))
3026 (home-page "https://crossbar.io/autobahn/")
3027 (synopsis "Web Application Messaging Protocol implementation")
3028 (description "This package provides an implementation of the @dfn{Web Application
3029 Messaging Protocol} (WAMP). WAMP connects components in distributed
3030 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3031 Calls (rRPC). It is ideal for distributed, multi-client and server applications
3032 such as IoT applications or multi-user database-driven business applications.")
3033 (license license:expat)))
3035 (define-public python-ws4py
3037 (name "python-ws4py")
3042 (uri (pypi-uri "ws4py" version))
3045 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3046 (build-system python-build-system)
3049 (modify-phases %standard-phases
3050 (add-after 'unpack 'python3.7-compatibility
3052 (substitute* '("ws4py/server/tulipserver.py"
3053 "ws4py/async_websocket.py")
3055 "asyncio.ensure_future"))
3057 ;; We don't have a package for cherrypy.
3058 (add-after 'unpack 'remove-cherrypy-support
3060 (delete-file "ws4py/server/cherrypyserver.py")
3063 `(("python-gevent" ,python-gevent)
3064 ("python-tornado" ,python-tornado)))
3065 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3066 (synopsis "WebSocket client and server library")
3068 "This package provides a WebSocket client and server library for
3070 (license license:bsd-3)))
3072 ;; kaldi-gstreamer-server does not yet work with python-ws4py > 0.3.2
3073 (define-public python2-ws4py-for-kaldi-gstreamer-server
3074 (package (inherit python-ws4py)
3075 (name "python2-ws4py")
3080 (uri (pypi-uri "ws4py" version))
3083 "12ys3dv98awhrxd570vla3hqgzq3avjhq4yafhghhq3a942y1928"))))
3084 (build-system python-build-system)
3086 `(#:python ,python-2
3088 (modify-phases %standard-phases
3089 ;; We don't have a package for cherrypy.
3090 (add-after 'unpack 'remove-cherrypy-support
3092 (delete-file "ws4py/server/cherrypyserver.py")
3095 `(("python-gevent" ,python2-gevent)
3096 ("python-tornado" ,python2-tornado)))))