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 ng0 <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>
31 ;;; Copyright © 2019 Brendan Tildesley <mail@brendan.scot>
32 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
34 ;;; This file is part of GNU Guix.
36 ;;; GNU Guix is free software; you can redistribute it and/or modify it
37 ;;; under the terms of the GNU General Public License as published by
38 ;;; the Free Software Foundation; either version 3 of the License, or (at
39 ;;; your option) any later version.
41 ;;; GNU Guix is distributed in the hope that it will be useful, but
42 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
43 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44 ;;; GNU General Public License for more details.
46 ;;; You should have received a copy of the GNU General Public License
47 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
49 (define-module (gnu packages python-web)
50 #:use-module (guix packages)
51 #:use-module (guix download)
52 #:use-module (guix git-download)
53 #:use-module (guix build-system python)
54 #:use-module (guix utils)
55 #:use-module (gnu packages)
56 #:use-module (gnu packages check)
57 #:use-module (gnu packages compression)
58 #:use-module (gnu packages curl)
59 #:use-module (gnu packages databases)
60 #:use-module (gnu packages django)
61 #:use-module (gnu packages groff)
62 #:use-module (gnu packages libffi)
63 #:use-module (gnu packages pkg-config)
64 #:use-module (gnu packages python)
65 #:use-module (gnu packages python-crypto)
66 #:use-module (gnu packages python-xyz)
67 #:use-module (gnu packages sphinx)
68 #:use-module (gnu packages tls)
69 #:use-module (gnu packages time)
70 #:use-module (gnu packages web)
71 #:use-module (gnu packages xml)
72 #:use-module ((guix licenses) #:prefix license:)
73 #:use-module (srfi srfi-1))
75 (define-public python-aiohttp
77 (name "python-aiohttp")
82 (uri (pypi-uri "aiohttp" version))
85 "1ykm6kdjkrg556j0zd7dx2l1rsrbh0d9g27ivr6dmaahz9pyrbsi"))))
86 (build-system python-build-system)
88 `(#:tests? #f)) ;missing pytest-timeout
90 `(("python-aiodns" ,python-aiodns)
91 ("python-async-timeout" ,python-async-timeout)
92 ("python-attrs" ,python-attrs)
93 ("python-chardet" ,python-chardet)
94 ("python-idna-ssl" ,python-idna-ssl)
95 ("python-multidict" ,python-multidict)
96 ("python-yarl" ,python-yarl)))
97 (home-page "https://github.com/aio-libs/aiohttp/")
98 (synopsis "Async HTTP client/server framework (asyncio)")
99 (description "@code{aiohttp} is an asynchronous HTTP client/server
102 Its main features are:
104 @item Supports both client and server side of HTTP protocol.
105 @item Supports both client and server Web-Sockets out-of-the-box without the
107 @item Web-server has middlewares and pluggable routing.
109 (license license:asl2.0)))
111 (define-public python-aiohttp-socks
113 (name "python-aiohttp-socks")
118 (uri (pypi-uri "aiohttp_socks" version))
121 "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
122 (build-system python-build-system)
124 `(("python-aiohttp" ,python-aiohttp)))
125 (home-page "https://github.com/romis2012/aiohttp-socks")
126 (synopsis "SOCKS proxy connector for aiohttp")
127 (description "This package provides a SOCKS proxy connector for
128 aiohttp. It supports SOCKS4(a) and SOCKS5.")
129 (license license:asl2.0)))
131 (define-public python-aiodns
133 (name "python-aiodns")
138 (uri (pypi-uri "aiodns" version))
141 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
142 (build-system python-build-system)
144 `(("python-pycares" ,python-pycares)))
146 `(#:tests? #f)) ;tests require internet access
147 (home-page "http://github.com/saghul/aiodns")
148 (synopsis "Simple DNS resolver for asyncio")
149 (description "@code{aiodns} provides a simple way for doing
150 asynchronous DNS resolutions with a synchronous looking interface by
151 using @url{https://github.com/saghul/pycares,pycares}.")
152 (license license:expat)))
154 (define-public python-aiorpcx
156 (name "python-aiorpcx")
161 (uri (pypi-uri "aiorpcX" version))
164 "0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp"))))
165 (build-system python-build-system)
167 `(("python-attrs" ,python-attrs)))
168 (home-page "https://github.com/kyuupichan/aiorpcX")
169 (synopsis "Generic asyncio RPC implementation")
171 "aiorpcX is a generic asyncio library implementation of RPC suitable for
172 an application that is a client, server or both.
174 The package includes a module with full coverage of JSON RPC versions 1.0 and
175 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
176 comes with a SOCKS proxy client.")
177 (license (list license:expat license:bsd-2))))
179 (define-public python-falcon
181 (name "python-falcon")
186 (uri (pypi-uri "falcon" version))
189 "1i0vmqsk24z4biirqhpvas9h28wy7nmpy3jvnb6rz2imq04zd09r"))))
190 (build-system python-build-system)
193 (modify-phases %standard-phases
196 (invoke "pytest"))))))
198 `(("python-mimeparse" ,python-mimeparse)
199 ("python-six" ,python-six)))
201 `(("python-cython" ,python-cython) ;for faster binaries
202 ("python-pytest" ,python-pytest)
203 ("python-pyyaml" ,python-pyyaml)
204 ("python-requests" ,python-requests)
205 ("python-testtools" ,python-testtools)
206 ("python-jsonschema" ,python-jsonschema)
207 ("python-msgpack" ,python-msgpack)))
208 (home-page "https://falconframework.org")
210 "Web framework for building APIs and application backends")
212 "Falcon is a web API framework for building microservices, application
213 backends and higher-level frameworks. Among its features are:
215 @item Optimized and extensible code base
216 @item Routing via URI templates and REST-inspired resource
218 @item Access to headers and bodies through request and response
220 @item Request processing via middleware components and hooks
221 @item Idiomatic HTTP error responses
222 @item Straightforward exception handling
223 @item Unit testing support through WSGI helpers and mocks
224 @item Compatible with both CPython and PyPy
225 @item Cython support for better performance when used with CPython
227 (license license:asl2.0)))
229 (define-public python2-falcon
230 (package-with-python2 python-falcon))
232 (define-public python-falcon-cors
234 (name "python-falcon-cors")
239 (uri (pypi-uri "falcon-cors" version))
242 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
243 (build-system python-build-system)
245 `(("python-falcon" ,python-falcon)))
247 "https://github.com/lwcolton/falcon-cors")
248 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
249 (description "This middleware provides @dfn{cross-origin resource
250 sharing} (CORS) support for Falcon. It allows applying a specially crafted
251 CORS object to the incoming requests, enabling the ability to serve resources
252 over a different origin than that of the web application.")
253 (license license:asl2.0)))
255 (define-public python2-falcon-cors
256 (package-with-python2 python-falcon-cors))
258 (define-public python-furl
265 (uri (pypi-uri "furl" version))
268 "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
269 (build-system python-build-system)
271 `(("python-six" ,python-six)
272 ("python-orderedmultidict" ,python-orderedmultidict)))
274 `(("python-pycodestyle" ,python-pycodestyle)))
275 (home-page "https://github.com/gruns/furl")
276 (synopsis "URL manipulation in Python")
277 (description "Furl provides an easy-to-use alternative to the
278 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
279 (license license:unlicense)))
281 (define-public python2-furl
282 (package-with-python2 python-furl))
284 (define-public python-httplib2
286 (name "python-httplib2")
291 (uri (pypi-uri "httplib2" version))
294 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
295 (build-system python-build-system)
296 (home-page "https://github.com/jcgregorio/httplib2")
297 (synopsis "Comprehensive HTTP client library")
299 "A comprehensive HTTP client library supporting many features left out of
300 other HTTP libraries.")
301 (license license:expat)))
303 (define-public python2-httplib2
304 (package-with-python2 python-httplib2))
306 (define-public python-html2text
308 (name "python-html2text")
313 (uri (pypi-uri "html2text" version))
316 "1m6d7ciq30adc3d1n8g6r46072n7q8kdy039pqvnnmp763xi8xb2"))))
317 (build-system python-build-system)
318 (home-page "https://pypi.org/project/html2text/")
319 (synopsis "Convert HTML into plain text")
320 (description "html2text takes HTML and converts it into plain ASCII text
321 which is also valid markdown. html2text was originally written by Aaron
323 (license license:gpl3+)))
325 (define-public python2-html2text
326 (package-with-python2 python-html2text))
328 (define-public python-mechanicalsoup
330 (name "python-mechanicalsoup")
335 (uri (pypi-uri "MechanicalSoup" version))
337 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
338 (build-system python-build-system)
340 ;; TODO: Enable tests when python-flake8@3.5 hits master.
343 `(("python-beautifulsoup4" ,python-beautifulsoup4)
344 ("python-lxml" ,python-lxml)
345 ("python-requests" ,python-requests)
346 ("python-six" ,python-six)))
349 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
350 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
351 ;; ("python-pytest-mock" ,python-pytest-mock)
352 ;; ("python-pytest-runner" ,python-pytest-runner)
353 ;; ("python-requests-mock" ,python-requests-mock)))
354 (home-page "https://mechanicalsoup.readthedocs.io/")
355 (synopsis "Python library for automating website interaction")
357 "MechanicalSoup is a Python library for automating interaction with
358 websites. It automatically stores and sends cookies, follows redirects, and can
359 follow links and submit forms. It doesn’t do JavaScript.")
360 (license license:expat)))
362 (define-public python2-mechanicalsoup
363 (package-with-python2 python-mechanicalsoup))
365 (define-public python-sockjs-tornado
367 (name "python-sockjs-tornado")
372 (uri (pypi-uri "sockjs-tornado" version))
375 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
376 (build-system python-build-system)
378 `(;; There are no tests, and running the test phase requires missing
382 `(("python-tornado" ,python-tornado)))
383 (home-page "https://github.com/mrjoes/sockjs-tornado/")
385 "SockJS Python server implementation on top of the Tornado framework")
387 "SockJS-tornado provides the server-side counterpart to a SockJS client
388 library, through the Tornado framework.
390 SockJS provides a low-latency, full-duplex, cross-domain communication channel
391 between a web browser and web server.")
392 (license license:expat)))
394 (define-public python2-sockjs-tornado
395 (package-with-python2 python-sockjs-tornado))
397 (define-public python-flask-babel
399 (name "python-flask-babel")
404 (uri (pypi-uri "Flask-Babel" version))
407 "0ff9n165vhf1nhv6807ckhpp224jw7k7sd7jz5kfh3sbpl85gmy0"))))
408 (build-system python-build-system)
410 `(("python-flask" ,python-flask)
411 ("python-babel" ,python-babel)
412 ("python-jinja2" ,python-jinja2)
413 ("python-pytz" ,python-pytz)))
414 (home-page "https://github.com/python-babel/flask-babel")
415 (synopsis "Add i18n/l10n support to Flask applications")
416 (description "This package implements internationalization and localization
417 support for Flask. This is based on the Python babel module as well as pytz -
418 both of which are installed automatically if you install this library.")
419 (license license:bsd-3)))
421 (define-public python2-flask-babel
422 (package-with-python2 python-flask-babel))
424 (define-public python-html5lib
426 (name "python-html5lib")
431 (uri (pypi-uri "html5lib" version))
434 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
435 (build-system python-build-system)
437 `(("python-six" ,python-six)
438 ("python-webencodings" ,python-webencodings)))
440 `(#:test-target "check"))
442 "https://github.com/html5lib/html5lib-python")
444 "Python HTML parser based on the WHATWG HTML specifcation")
446 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
447 and written in Python.")
448 (license license:expat)))
450 (define-public python2-html5lib
451 (package-with-python2 python-html5lib))
453 ;; Needed for python-bleach, a dependency of python-notebook
454 (define-public python-html5lib-0.9
456 (inherit python-html5lib)
461 (uri (pypi-uri "html5lib" version))
464 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
466 (define-public python2-html5lib-0.9
467 (package-with-python2 python-html5lib-0.9))
469 (define-public python-html5-parser
471 (name "python-html5-parser")
475 (uri (pypi-uri "html5-parser" version))
478 "01mx33sx4dhl4kj6wc48nj6jz7ry60rkhjv0s6k8h5xmjf5yy0x9"))))
479 (build-system python-build-system)
481 `(("pkg-config" ,pkg-config)))
483 `(("libxml2" ,libxml2)))
485 `(("python-lxml" ,python-lxml)
486 ("python-beautifulsoup4" ,python-beautifulsoup4)))
487 (home-page "https://html5-parser.readthedocs.io")
488 (synopsis "Fast C-based HTML5 parsing for Python")
489 (description "This package provides a fast implementation of the HTML5
490 parsing spec for Python. Parsing is done in C using a variant of the gumbo
491 parser. The gumbo parse tree is then transformed into an lxml tree, also in
492 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
493 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
494 ;; indicate ASL2.0, including the LICENSE file for the whole project.
495 (license (list license:asl2.0 license:gpl3))))
497 (define-public python2-html5-parser
498 (package-with-python2 python-html5-parser))
500 (define-public python-pycurl
502 (name "python-pycurl")
507 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
510 (base32 "1915kb04k1j4y6k1dx1sgnbddxrl9r1n4q928if2lkrdm73xy30g"))))
511 (build-system python-build-system)
513 ;; The tests attempt to access external web servers, so we cannot run
514 ;; them. Furthermore, they are skipped altogether when using Python 2.
516 #:phases (modify-phases %standard-phases
517 (add-before 'build 'configure-tls-backend
519 ;; XXX: PycURL fails to automatically determine which TLS
520 ;; backend to use when cURL is built with --disable-static.
521 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
522 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
525 `(("python-nose" ,python-nose)
526 ("python-bottle" ,python-bottle)))
530 (home-page "http://pycurl.io/")
531 (synopsis "Lightweight Python wrapper around libcurl")
532 (description "Pycurl is a lightweight wrapper around libcurl. It provides
533 high-speed transfers via libcurl and frequently outperforms alternatives.")
535 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
536 ;; under the terms of LGPLv2.1+ or Expat.
537 (license (list license:lgpl2.1+ license:expat))))
539 (define-public python2-pycurl
540 (package-with-python2 python-pycurl))
542 (define-public python-webencodings
544 (name "python-webencodings")
548 (uri (pypi-uri "webencodings" version))
551 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
552 (build-system python-build-system)
555 (modify-phases %standard-phases
558 (invoke "py.test" "-v" "webencodings/tests.py")
561 `(("python-pytest" ,python-pytest)))
562 (home-page "https://github.com/SimonSapin/python-webencodings")
563 (synopsis "Character encoding aliases for legacy web content")
565 "In order to be compatible with legacy web content when interpreting
566 something like @code{Content-Type: text/html; charset=latin1}, tools need
567 to use a particular set of aliases for encoding labels as well as some
568 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
569 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
570 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
571 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
572 defines all such details so that implementations do not have to
573 reverse-engineer each other.
575 This module implements the Encoding standard and has encoding labels and
576 BOM detection, but the actual implementation for encoders and decoders
578 (license license:bsd-3)))
580 (define-public python2-webencodings
581 (package-with-python2 python-webencodings))
583 (define-public python-openid
585 (name "python-openid")
590 (uri (pypi-uri "python3-openid" version))
593 "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
594 (build-system python-build-system)
597 (modify-phases %standard-phases
600 (invoke "coverage" "run" "-m"
601 "unittest" "openid.test.test_suite"))))))
602 (properties `((python2-variant . ,(delay python2-openid))))
604 `(("python-defusedxml" ,python-defusedxml)))
606 `(("python-coverage" ,python-coverage)
607 ("python-psycopg2" ,python-psycopg2)
608 ("python-django" ,python-django)))
609 (home-page "https://github.com/necaris/python3-openid")
610 (synopsis "OpenID support for servers and consumers")
611 (description "This library provides OpenID authentication for Python, both
612 for clients and servers.")
613 (license license:asl2.0)))
615 (define-public python2-openid
617 (name "python2-openid")
622 (uri (pypi-uri "python-openid" version))
625 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
626 (build-system python-build-system)
628 ;; Python 3 support is in `python3-openid`, a separate package.
630 ;; Tests aren't initialized correctly.
632 (home-page "https://github.com/openid/python-openid")
633 (synopsis "OpenID support for servers and consumers")
634 (description "This library provides OpenID authentication for Python, both
635 for clients and servers.")
636 (license license:asl2.0)))
638 (define-public python-cssutils
640 (name "python-cssutils")
645 (uri (pypi-uri "cssutils" version))
648 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
649 (build-system python-build-system)
651 `(("unzip" ,unzip))) ; for unpacking the source
653 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
654 (home-page "http://cthedot.de/cssutils/")
656 "CSS Cascading Style Sheets library for Python")
658 "Cssutils is a Python package for parsing and building CSS
659 Cascading Style Sheets. Currently it provides a DOM only and no rendering
661 (license license:lgpl3+)))
663 (define-public python2-cssutils
664 (package-with-python2 python-cssutils))
666 (define-public python-css-parser
668 (inherit python-cssutils)
669 (name "python-css-parser")
674 (uri (pypi-uri "css-parser" version ".tar.gz"))
677 "0i4xfykiffxzr4f6y0m2ggqvx1rzam6pw6krlr5k6ldf29akbay7"))))
678 (home-page "https://github.com/ebook-utils/css-parser")
679 (synopsis "Fork of cssutils modified for parsing ebooks")
681 "Css-parser is a fork of cssutils 1.0.2, updated and modified for parsing
682 ebooks, due to cssutils not receiving updates as of 1.0.2.")
683 (license license:lgpl3+)))
685 (define-public python2-css-parser
686 (package-with-python2 python-css-parser))
688 (define-public python-cssselect
690 (name "python-cssselect")
695 (uri (pypi-uri "cssselect" version))
698 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
699 (build-system python-build-system)
701 ;; tests fail with message
702 ;; AttributeError: 'module' object has no attribute 'tests'
705 "https://pythonhosted.org/cssselect/")
707 "CSS3 selector parser and translator to XPath 1.0")
709 "Cssselect ia a Python module that parses CSS3 Selectors and translates
710 them to XPath 1.0 expressions. Such expressions can be used in lxml or
711 another XPath engine to find the matching elements in an XML or HTML document.")
712 (license license:bsd-3)))
714 (define-public python2-cssselect
715 (package-with-python2 python-cssselect))
717 (define-public python-openid-cla
719 (name "python-openid-cla")
724 (uri (pypi-uri "python-openid-cla" version))
727 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
728 (build-system python-build-system)
729 (arguments '(#:tests? #f)) ; No tests.
730 (home-page "https://github.com/puiterwijk/python-openid-cla/")
731 (synopsis "Implementation of the OpenID CLA extension for python-openid")
732 (description "@code{openid-cla} is an implementation of the OpenID
733 contributor license agreement extension for python-openid.")
734 (license license:bsd-3)))
736 (define-public python2-openid-cla
737 (package-with-python2 python-openid-cla))
739 (define-public python-openid-teams
741 (name "python-openid-teams")
746 (uri (pypi-uri "python-openid-teams" version))
749 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
750 (build-system python-build-system)
751 (arguments '(#:tests? #f)) ; No tests.
752 (home-page "https://github.com/puiterwijk/python-openid-teams/")
753 (synopsis "Implementation of the OpenID teams extension for python-openid")
755 "@code{openid-teams} is an implementation of the OpenID
756 teams extension for python-openid.")
757 (license license:bsd-3)))
759 (define-public python2-openid-teams
760 (package-with-python2 python-openid-teams))
762 (define-public python-tornado
764 (name "python-tornado")
769 (uri (pypi-uri "tornado" version))
772 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
773 (build-system python-build-system)
775 '(;; FIXME: Two tests error out with:
776 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
778 ;; (modify-phases %standard-phases
781 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
782 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
783 ;; (invoke "python" "-m" "tornado.test.runtests")
787 `(("python-certifi" ,python-certifi)))
788 (home-page "https://www.tornadoweb.org/")
789 (synopsis "Python web framework and asynchronous networking library")
791 "Tornado is a Python web framework and asynchronous networking library,
792 originally developed at FriendFeed. By using non-blocking network I/O,
793 Tornado can scale to tens of thousands of open connections, making it ideal
794 for long polling, WebSockets, and other applications that require a long-lived
795 connection to each user.")
796 (license license:asl2.0)
797 (properties `((python2-variant . ,(delay python2-tornado))))))
799 (define-public python2-tornado
800 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
801 (package (inherit tornado)
803 `(("python2-backport-ssl-match-hostname"
804 ,python2-backport-ssl-match-hostname)
805 ("python2-backports-abc" ,python2-backports-abc)
806 ("python2-singledispatch" ,python2-singledispatch)
807 ,@(package-propagated-inputs tornado))))))
809 (define-public python-tornado-http-auth
811 (name "python-tornado-http-auth")
816 (uri (pypi-uri "tornado-http-auth" version))
819 "0znrgqd7k2s4ia474xizi6h3061zj4sn5n6cq76bkwl3wwshifn5"))))
820 (build-system python-build-system)
822 `(("python-tornado" ,python-tornado)))
824 "https://github.com/gvalkov/tornado-http-auth")
826 "Digest and basic authentication module for Tornado")
828 "Provides support for adding authentication to services using the Tornado
829 web framework, either via the basic or digest authentication schemes.")
830 (license license:asl2.0)))
832 (define-public python-terminado
834 (name "python-terminado")
839 (uri (pypi-uri "terminado" version))
842 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
843 (build-system python-build-system)
845 `(("python-tornado" ,python-tornado)
846 ("python-ptyprocess" ,python-ptyprocess)))
848 `(("python-nose" ,python-nose)))
851 (modify-phases %standard-phases
853 (lambda _ (invoke "nosetests") #t)))))
854 (home-page "https://github.com/takluyver/terminado")
855 (synopsis "Terminals served to term.js using Tornado websockets")
856 (description "This package provides a Tornado websocket backend for the
857 term.js Javascript terminal emulator library.")
858 (license license:bsd-2)
859 (properties `((python2-variant . ,(delay python2-terminado))))))
861 (define-public python2-terminado
862 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
863 (package (inherit terminado)
865 `(("python2-backport-ssl-match-hostname"
866 ,python2-backport-ssl-match-hostname)
867 ("python2-futures" ,python2-futures)
868 ,@(package-propagated-inputs terminado))))))
870 (define-public python-wsgi-intercept
872 (name "python-wsgi-intercept")
876 (uri (pypi-uri "wsgi_intercept" version))
879 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
880 (build-system python-build-system)
882 `(("python-six" ,python-six)))
884 `(("python-pytest" ,python-pytest)
885 ("python-httplib2" ,python-httplib2)
886 ("python-requests" ,python-requests)
887 ("python-urllib3" ,python-urllib3)))
888 (synopsis "Puts a WSGI application in place of a real URI for testing")
889 (description "Wsgi_intercept installs a WSGI application in place of a real
890 URI for testing. Testing a WSGI application normally involves starting a
891 server at a local host and port, then pointing your test code to that address.
892 Instead, this library lets you intercept calls to any specific host/port
893 combination and redirect them into a WSGI application importable by your test
894 program. Thus, you can avoid spawning multiple processes or threads to test
896 (home-page "https://github.com/cdent/wsgi-intercept")
897 (license license:expat)))
899 (define-public python-webob
901 (name "python-webob")
906 (uri (pypi-uri "WebOb" version))
909 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
910 (build-system python-build-system)
912 `(("python-nose" ,python-nose)))
913 (home-page "https://webob.org/")
914 (synopsis "WSGI request and response object")
916 "WebOb provides wrappers around the WSGI request environment, and an
917 object to help create WSGI responses.")
918 (license license:expat)))
920 (define-public python2-webob
921 (package-with-python2 python-webob))
923 (define-public python-zope-event
925 (name "python-zope-event")
930 (uri (pypi-uri "zope.event" version))
933 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
934 (build-system python-build-system)
935 (home-page "https://pypi.python.org/pypi/zope.event")
936 (synopsis "Event publishing system for Python")
937 (description "Zope.event provides an event publishing API, intended for
938 use by applications which are unaware of any subscribers to their events. It
939 is a simple event-dispatching system on which more sophisticated event
940 dispatching systems can be built.")
941 (license license:zpl2.1)))
943 (define-public python2-zope-event
944 (package-with-python2 python-zope-event))
946 (define-public python-zope-interface
948 (name "python-zope-interface")
953 (uri (pypi-uri "zope.interface" version))
956 "1rgh2x3rcl9r0v0499kf78xy86rnmanajf4ywmqb943wpk50sg8v"))))
957 (build-system python-build-system)
959 `(("python-zope-event" ,python-zope-event)))
960 (home-page "https://github.com/zopefoundation/zope.interface")
961 (synopsis "Python implementation of the \"design by contract\"
963 (description "Zope.interface provides an implementation of \"object
964 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
965 conforming to a given API or contract.")
966 (license license:zpl2.1)))
968 (define-public python2-zope-interface
969 (package-with-python2 python-zope-interface))
971 (define-public python-zope-exceptions
973 (name "python-zope-exceptions")
978 (uri (pypi-uri "zope.exceptions" version))
981 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
982 (build-system python-build-system)
984 '(#:tests? #f)) ; circular dependency with zope.testrunner
986 `(("python-zope-interface" ,python-zope-interface)))
987 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
988 (synopsis "Zope exceptions")
989 (description "Zope.exceptions provides general-purpose exception types
990 that have uses outside of the Zope framework.")
991 (license license:zpl2.1)))
993 (define-public python2-zope-exceptions
994 (package-with-python2 python-zope-exceptions))
996 (define-public python-zope-testing
998 (name "python-zope-testing")
1003 (uri (pypi-uri "zope.testing" version))
1006 "0iiq54hjhkk2gpvzfjac70vyn4r0kw0ngvicshxbdwrkgf2gjq3g"))
1007 (modules '((guix build utils)))
1010 ;; Remove pre-compiled .pyc files backup files from source.
1011 (for-each delete-file (find-files "." "(\\.pyc|~)$"))
1013 (build-system python-build-system)
1014 (home-page "https://pypi.python.org/pypi/zope.testing")
1015 (synopsis "Zope testing helpers")
1016 (description "Zope.testing provides a number of testing utilities for HTML
1017 forms, HTTP servers, regular expressions, and more.")
1018 (license license:zpl2.1)))
1020 (define-public python2-zope-testing
1021 (package-with-python2 python-zope-testing))
1023 (define-public python-zope-testrunner
1025 (name "python-zope-testrunner")
1030 (uri (pypi-uri "zope.testrunner" version ".zip"))
1033 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
1034 (build-system python-build-system)
1036 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1038 `(("python-six" ,python-six)
1039 ;("python-zope-interface" ,python-zope-interface)
1040 ("python-zope-exceptions" ,python-zope-exceptions)
1041 ("python-zope-testing" ,python-zope-testing)
1044 `(("python-zope-interface" ,python-zope-interface)))
1045 (home-page "https://pypi.python.org/pypi/zope.testrunner")
1046 (synopsis "Zope testrunner script")
1047 (description "Zope.testrunner provides a script for running Python
1049 (license license:zpl2.1)))
1051 (define-public python2-zope-testrunner
1052 (let ((base (package-with-python2 python-zope-testrunner)))
1056 (append (package-native-inputs base)
1057 `(("python2-subunit" ,python2-subunit)
1058 ("python2-mimeparse" ,python2-mimeparse)))))))
1060 (define-public python-zope-i18nmessageid
1062 (name "python-zope-i18nmessageid")
1067 (uri (pypi-uri "zope.i18nmessageid" version))
1070 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
1071 (build-system python-build-system)
1072 (home-page "https://pypi.python.org/pypi/zope.i18nmessageid")
1073 (synopsis "Message identifiers for internationalization")
1074 (description "Zope.i18nmessageid provides facilities for declaring
1075 internationalized messages within program source text.")
1076 (license license:zpl2.1)))
1078 (define-public python2-zope-i18nmessageid
1079 (package-with-python2 python-zope-i18nmessageid))
1081 (define-public python-zope-schema
1083 (name "python-zope-schema")
1088 (uri (pypi-uri "zope.schema" version))
1091 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
1092 (build-system python-build-system)
1094 '(#:tests? #f)) ; FIXME: Tests can't find zope.event.
1096 `(("python-zope-event" ,python-zope-event)
1097 ("python-zope-exceptions" ,python-zope-exceptions)
1098 ("python-zope-interface" ,python-zope-interface)))
1100 `(("python-zope-testing" ,python-zope-testing)
1101 ("python-coverage" ,python-coverage)
1102 ("python-nose" ,python-nose)))
1103 (home-page "https://pypi.python.org/pypi/zope.schema")
1104 (synopsis "Zope data schemas")
1105 (description "Zope.scheme provides extensions to zope.interface for
1106 defining data schemas.")
1107 (license license:zpl2.1)))
1109 (define-public python2-zope-schema
1110 (package-with-python2 python-zope-schema))
1112 (define-public python-zope-configuration
1114 (name "python-zope-configuration")
1118 (uri (pypi-uri "zope.configuration" version))
1121 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
1122 (build-system python-build-system)
1124 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1126 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1127 ("python-zope-schema" ,python-zope-schema)))
1128 (home-page "https://pypi.python.org/pypi/zope.configuration")
1129 (synopsis "Zope Configuration Markup Language")
1130 (description "Zope.configuration implements ZCML, the Zope Configuration
1132 (license license:zpl2.1)))
1134 (define-public python2-zope-configuration
1135 (package-with-python2 python-zope-configuration))
1137 (define-public python-zope-proxy
1139 (name "python-zope-proxy")
1144 (uri (pypi-uri "zope.proxy" version))
1147 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
1148 (build-system python-build-system)
1150 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1152 `(("python-zope-interface" ,python-zope-interface)))
1153 (home-page "https://pypi.python.org/pypi/zope.proxy")
1154 (synopsis "Generic, transparent proxies")
1155 (description "Zope.proxy provides generic, transparent proxies for Python.
1156 Proxies are special objects which serve as mostly-transparent wrappers around
1157 another object, intervening in the apparent behavior of the wrapped object
1158 only when necessary to apply the policy (e.g., access checking, location
1159 brokering, etc.) for which the proxy is responsible.")
1160 (license license:zpl2.1)))
1162 (define-public python2-zope-proxy
1163 (package-with-python2 python-zope-proxy))
1165 (define-public python-zope-location
1167 (name "python-zope-location")
1172 (uri (pypi-uri "zope.location" version))
1175 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
1176 (build-system python-build-system)
1178 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1180 `(("python-zope-proxy" ,python-zope-proxy)
1181 ("python-zope-schema" ,python-zope-schema)))
1182 (home-page "https://pypi.python.org/pypi/zope.location/")
1183 (synopsis "Zope location library")
1184 (description "Zope.location implements the concept of \"locations\" in
1185 Zope3, which are are special objects that have a structural location.")
1186 (license license:zpl2.1)))
1188 (define-public python2-zope-location
1189 (package-with-python2 python-zope-location))
1191 (define-public python-zope-security
1193 (name "python-zope-security")
1198 (uri (pypi-uri "zope.security" version))
1201 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
1202 (build-system python-build-system)
1204 '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
1206 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1207 ("python-zope-proxy" ,python-zope-proxy)
1208 ("python-zope-schema" ,python-zope-schema)))
1210 `(("python-six" ,python-six)
1211 ("python-zope-component" ,python-zope-component)
1212 ("python-zope-configuration" ,python-zope-configuration)
1213 ("python-zope-location" ,python-zope-location)
1214 ("python-zope-testrunner" ,python-zope-testrunner)
1215 ("python-zope-testing" ,python-zope-testing)))
1216 (home-page "https://pypi.python.org/pypi/zope.security")
1217 (synopsis "Zope security framework")
1218 (description "Zope.security provides a generic mechanism to implement
1219 security policies on Python objects.")
1220 (license license:zpl2.1)))
1222 (define-public python2-zope-security
1223 (let ((zope-security (package-with-python2 python-zope-security)))
1224 (package (inherit zope-security)
1226 `(("python2-zope-testrunner" ,python2-zope-testrunner)
1228 "python-zope-testrunner"
1229 (package-propagated-inputs zope-security)))))))
1231 (define-public python-zope-component
1233 (name "python-zope-component")
1238 (uri (pypi-uri "zope.component" version))
1241 "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv"))))
1242 (build-system python-build-system)
1244 ;; Skip tests due to circular dependency with python-zope-security.
1247 `(("python-zope-testing" ,python-zope-testing)))
1249 `(("python-zope-event" ,python-zope-event)
1250 ("python-zope-interface" ,python-zope-interface)
1251 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1252 ("python-zope-configuration" ,python-zope-configuration)))
1253 (home-page "https://github.com/zopefoundation/zope.component")
1254 (synopsis "Zope Component Architecture")
1255 (description "Zope.component represents the core of the Zope Component
1256 Architecture. Together with the zope.interface package, it provides
1257 facilities for defining, registering and looking up components.")
1258 (license license:zpl2.1)))
1260 (define-public python2-zope-component
1261 (package-with-python2 python-zope-component))
1263 (define-public python-ndg-httpsclient
1265 (name "python-ndg-httpsclient")
1269 (uri (pypi-uri "ndg_httpsclient" version))
1272 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1273 (build-system python-build-system)
1275 '(;; The tests appear to require networking.
1278 `(("python-pyopenssl" ,python-pyopenssl)))
1279 (synopsis "HTTPS support for Python's httplib and urllib2")
1280 (description "This is a HTTPS client implementation for httplib and urllib2
1281 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1282 over the default provided with Python and, importantly, enables full
1283 verification of the SSL peer.")
1284 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1285 (license license:bsd-3)))
1287 ;; python2-openssl requires special care, so package-with-python2 is
1289 (define-public python2-ndg-httpsclient
1290 (package (inherit python-ndg-httpsclient)
1291 (name "python2-ndg-httpsclient")
1293 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1294 ((#:python _) python-2)))
1296 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1298 (define-public python-websocket-client
1300 (name "python-websocket-client")
1305 (uri (pypi-uri "websocket_client" version))
1308 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
1309 (build-system python-build-system)
1311 `(("python-six" ,python-six)))
1312 (home-page "https://github.com/liris/websocket-client")
1313 (synopsis "WebSocket client for Python")
1314 (description "The Websocket-client module provides the low level APIs for
1315 WebSocket usage in Python programs.")
1316 (properties `((python2-variant . ,(delay python2-websocket-client))))
1317 (license license:lgpl2.1+)))
1319 (define-public python2-websocket-client
1320 (let ((base (package-with-python2
1321 (strip-python2-variant python-websocket-client))))
1325 `(("python2-backport-ssl-match-hostname"
1326 ,python2-backport-ssl-match-hostname)
1327 ,@(package-native-inputs base))))))
1329 (define-public python-requests
1331 (name "python-requests")
1335 (uri (pypi-uri "requests" version))
1338 "1d5ybh11jr5sm7xp6mz8fyc7vrp4syifds91m7sj60xalal0gq0i"))))
1339 (build-system python-build-system)
1341 `(("python-certifi" ,python-certifi)
1342 ("python-chardet" ,python-chardet)
1343 ("python-idna" ,python-idna)
1344 ("python-urllib3" ,python-urllib3)))
1346 ;; FIXME: Some tests require network access.
1348 (home-page "http://python-requests.org/")
1349 (synopsis "Python HTTP library")
1351 "Requests is a Python HTTP client library. It aims to be easier to use
1352 than Python’s urllib2 library.")
1353 (license license:asl2.0)))
1355 ;; Some software requires an older version of Requests, notably Docker/Docker
1357 (define-public python-requests-2.20
1358 (package (inherit python-requests)
1362 (uri (pypi-uri "requests" version))
1365 "0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
1367 `(("python-urllib3" ,python-urllib3-1.24)
1368 ("python-idna" ,python-idna-2.7)
1369 ,@(package-propagated-inputs python-requests)))))
1371 ;; Some software requires an older version of Requests, notably Docker
1373 (define-public python-requests-2.7
1374 (package (inherit python-requests)
1378 (uri (pypi-uri "requests" version))
1381 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1383 (define-public python2-requests
1384 (package-with-python2 python-requests))
1386 (define-public python-requests-mock
1388 (name "python-requests-mock")
1393 (uri (pypi-uri "requests-mock" version))
1396 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1397 (build-system python-build-system)
1399 `(("python-requests" ,python-requests)
1400 ("python-six" ,python-six)))
1402 `(("python-pbr" ,python-pbr)
1403 ("python-discover" ,python-discover)
1404 ("python-docutils" ,python-docutils)
1405 ("python-fixtures" ,python-fixtures)
1406 ("python-mock" ,python-mock)
1407 ("python-sphinx" ,python-sphinx)
1408 ("python-testrepository" ,python-testrepository)
1409 ("python-testtools" ,python-testtools)))
1410 (home-page "https://requests-mock.readthedocs.org/")
1411 (synopsis "Mock out responses from the requests package")
1413 "This module provides a building block to stub out the HTTP requests
1414 portions of your testing code.")
1415 (properties `((python2-variant . ,(delay python2-requests-mock))))
1416 (license license:asl2.0)))
1418 (define-public python2-requests-mock
1419 (package (inherit (package-with-python2
1420 (strip-python2-variant python-requests-mock)))
1422 `(#:python ,python-2
1423 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1426 (define-public python-requests-toolbelt
1428 (name "python-requests-toolbelt")
1432 (uri (pypi-uri "requests-toolbelt" version))
1435 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1436 (build-system python-build-system)
1438 `(("python-betamax" ,python-betamax)
1439 ("python-mock" ,python-mock)
1440 ("python-pytest" ,python-pytest)))
1442 `(("python-requests" ,python-requests)))
1443 (synopsis "Extensions to python-requests")
1444 (description "This is a toolbelt of useful classes and functions to be used
1445 with python-requests.")
1446 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1447 (license license:asl2.0)))
1449 (define-public python2-requests-toolbelt
1450 (package-with-python2 python-requests-toolbelt))
1452 (define-public python-oauthlib
1454 (name "python-oauthlib")
1458 (uri (pypi-uri "oauthlib" version))
1461 "163jg4a8f7c5ki655grrr47kgljy12wri3qly7ijf64sk1fjrqqc"))))
1462 (build-system python-build-system)
1464 `(#:phases (modify-phases %standard-phases
1467 (invoke "pytest" "-vv"))))))
1469 `(("python-pytest" ,python-pytest)
1470 ("python-pytest-cov" ,python-pytest-cov)
1471 ("python-mock" ,python-mock)))
1473 `(("python-cryptography" ,python-cryptography)
1474 ("python-pyjwt" ,python-pyjwt)
1475 ("python-blinker" ,python-blinker)))
1476 (home-page "https://github.com/oauthlib/oauthlib")
1477 (synopsis "OAuth implementation for Python")
1479 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1480 OAuth request-signing logic.")
1481 (license license:bsd-3)))
1483 (define-public python2-oauthlib
1484 (package-with-python2 python-oauthlib))
1486 (define-public python-rauth
1488 (name "python-rauth")
1493 (uri (pypi-uri "rauth" version))
1496 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1497 (build-system python-build-system)
1499 `(#:test-target "check"))
1501 `(("python-requests" ,python-requests)))
1502 (home-page "https://github.com/litl/rauth")
1503 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1505 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1506 provides service wrappers for convenient connection initialization and
1507 authenticated session objects providing things like keep-alive.")
1508 (license license:expat)
1509 (properties `((python2-variant . ,(delay python2-rauth))))))
1511 (define-public python2-rauth
1512 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1515 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1516 ,@(package-native-inputs base))))))
1518 (define-public python-urllib3
1520 (name "python-urllib3")
1525 (uri (pypi-uri "urllib3" version))
1528 "0cij8qcvvpj62g1q8n785qjkdymfh4b7vf45si4sw64l41rr3rfv"))))
1529 (build-system python-build-system)
1530 (arguments `(#:tests? #f))
1532 `(;; These 5 inputs are used to build urrlib3[secure]
1533 ("python-certifi" ,python-certifi)
1534 ("python-cryptography" ,python-cryptography)
1535 ("python-idna" ,python-idna)
1536 ("python-ipaddress" ,python-ipaddress)
1537 ("python-pyopenssl" ,python-pyopenssl)
1538 ("python-pysocks" ,python-pysocks)))
1539 (home-page "https://urllib3.readthedocs.io/")
1540 (synopsis "HTTP library with thread-safe connection pooling")
1542 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1543 can reuse the same socket connection for multiple requests, it can POST files,
1544 supports url redirection and retries, and also gzip and deflate decoding.")
1545 (license license:expat)))
1547 ;; Some software requires an older version of urllib3, notably Docker.
1548 (define-public python-urllib3-1.24
1549 (package (inherit python-urllib3)
1553 (uri (pypi-uri "urllib3" version))
1556 "1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
1559 (define-public python2-urllib3
1560 (package-with-python2 python-urllib3))
1562 (define-public awscli
1569 (uri (pypi-uri name version))
1572 "0sispclx263lybbk19zp1n9yhg8xxx4jddypzgi24vpjaqnsbwlc"))))
1573 (build-system python-build-system)
1575 ;; FIXME: The 'pypi' release does not contain tests.
1578 (modify-phases %standard-phases
1579 (add-after 'unpack 'fix-reference-to-groff
1581 (substitute* "awscli/help.py"
1582 (("if not self._exists_on_path\\('groff'\\):") "")
1583 (("raise ExecutableNotFoundError\\('groff'\\)") "")
1584 (("cmdline = \\['groff'")
1585 (string-append "cmdline = ['" (which "groff") "'")))
1588 `(("python-colorama" ,python-colorama)
1589 ("python-botocore" ,python-botocore)
1590 ("python-s3transfer" ,python-s3transfer)
1591 ("python-docutils" ,python-docutils)
1592 ("python-pyyaml" ,python-pyyaml)
1593 ("python-rsa" ,python-rsa)))
1595 `(("groff" ,groff)))
1596 (home-page "https://aws.amazon.com/cli/")
1597 (synopsis "Command line client for AWS")
1598 (description "AWS CLI provides a unified command line interface to the
1599 Amazon Web Services (AWS) API.")
1600 (license license:asl2.0)))
1602 (define-public python-wsgiproxy2
1604 (name "python-wsgiproxy2")
1609 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
1612 "19d9dva282vfjs784i0zkxp078lxfz4h3f621z30ij9wbf5rba6a"))))
1613 (build-system python-build-system)
1615 `(("python-webtest" ,python-webtest)))
1617 `(("python-requests" ,python-requests)
1618 ("python-six" ,python-six)
1619 ("python-urllib3" ,python-urllib3)
1620 ("python-webob" ,python-webob)))
1621 (home-page "https://github.com/gawel/WSGIProxy2/")
1622 (synopsis "WSGI Proxy with various http client backends")
1623 (description "WSGI turns HTTP requests into WSGI function calls.
1624 WSGIProxy turns WSGI function calls into HTTP requests.
1625 It also includes code to sign requests and pass private data,
1626 and to spawn subprocesses to handle requests.")
1627 (license license:expat)))
1629 (define-public python2-wsgiproxy2
1630 (package-with-python2 python-wsgiproxy2))
1632 (define-public python-pastedeploy
1634 (name "python-pastedeploy")
1639 (uri (pypi-uri "PasteDeploy" version))
1642 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
1643 (build-system python-build-system)
1645 `(("python-nose" ,python-nose)))
1646 (home-page "http://pythonpaste.org/deploy/")
1648 "Load, configure, and compose WSGI applications and servers")
1650 "This tool provides code to load WSGI applications and servers from URIs;
1651 these URIs can refer to Python Eggs for INI-style configuration files. Paste
1652 Script provides commands to serve applications based on this configuration
1654 (license license:expat)))
1656 (define-public python2-pastedeploy
1657 (package-with-python2 python-pastedeploy))
1659 (define-public python-webtest
1661 (name "python-webtest")
1666 (uri (pypi-uri "WebTest" version))
1669 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
1670 (build-system python-build-system)
1672 ;; Tests require python-pyquery, which creates a circular dependency.
1675 `(("python-waitress" ,python-waitress)
1676 ("python-webob" ,python-webob)
1677 ("python-six" ,python-six)
1678 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1679 (home-page "http://webtest.pythonpaste.org/")
1680 (synopsis "Helper to test WSGI applications")
1681 (description "Webtest allows you to test your Python web applications
1682 without starting an HTTP server. It supports anything that supports the
1684 (license license:expat)))
1686 (define-public python2-webtest
1687 (package-with-python2 python-webtest))
1689 (define-public python-flask
1691 (name "python-flask")
1695 (uri (pypi-uri "Flask" version))
1698 "1wxnhjlxwwjhjxmghykjhllpahv5pkdc5hln4ab6nab43s26sz5d"))))
1699 (build-system python-build-system)
1702 (modify-phases %standard-phases
1705 (invoke "python" "-m" "pytest"))))))
1707 `(("python-pytest" ,python-pytest)))
1709 `(("python-itsdangerous" ,python-itsdangerous)
1710 ("python-jinja2" ,python-jinja2)
1711 ("python-click" ,python-click)
1712 ("python-werkzeug" ,python-werkzeug)))
1713 (home-page "https://www.palletsprojects.com/p/flask/")
1714 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
1715 (description "Flask is a micro web framework based on the Werkzeug toolkit
1716 and Jinja2 template engine. It is called a micro framework because it does not
1717 presume or force a developer to use a particular tool or library.")
1718 (license license:bsd-3)))
1720 (define-public python2-flask
1721 (package-with-python2 python-flask))
1723 (define-public python-flask-wtf
1725 (name "python-flask-wtf")
1730 (uri (pypi-uri "Flask-WTF" version))
1733 "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990"))))
1734 (build-system python-build-system)
1737 (modify-phases %standard-phases
1738 (add-before 'check 'drop-failing-test
1740 ;; FIXME: This file tries resolving an external server, which
1741 ;; fails. Try to patch out the offending section instead of
1742 ;; deleting the whole thing.
1743 (delete-file "tests/test_recaptcha.py")
1746 `(("python-flask-babel" ,python-flask-babel)
1747 ("python-babel" ,python-babel)
1748 ("python-wtforms" ,python-wtforms)))
1750 `(("python-nose" ,python-nose)))
1751 (home-page "https://github.com/lepture/flask-wtf")
1752 (synopsis "Simple integration of Flask and WTForms")
1753 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
1754 upload, and reCAPTCHA.")
1755 (license license:bsd-3)))
1757 (define-public python2-flask-wtf
1758 (package-with-python2 python-flask-wtf))
1760 (define-public python-flask-multistatic
1762 (name "python-flask-multistatic")
1767 (uri (pypi-uri "flask-multistatic" version))
1770 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
1771 (build-system python-build-system)
1773 `(("python-flask" ,python-flask)))
1774 (home-page "https://pagure.io/flask-multistatic")
1775 (synopsis "Flask plugin to allow overriding static files")
1776 (description "@code{flask-multistatic} is a flask plugin that adds support
1777 for overriding static files.")
1778 (license license:gpl3+)))
1780 (define-public python2-flask-multistatic
1781 (package-with-python2 python-flask-multistatic))
1783 (define-public python-cookies
1785 (name "python-cookies")
1789 (uri (pypi-uri "cookies" version))
1792 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
1793 (build-system python-build-system)
1795 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
1798 `(("python-pytest" ,python2-pytest)))
1799 (synopsis "HTTP cookie parser and renderer")
1800 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
1802 (home-page "https://gitlab.com/sashahart/cookies")
1803 (license license:expat)))
1805 (define-public python2-cookies
1806 (package-with-python2 python-cookies))
1808 (define-public python-responses
1810 (name "python-responses")
1814 (uri (pypi-uri "responses" version))
1817 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
1818 (build-system python-build-system)
1820 `(;; Test suite is not distributed:
1821 ;; https://github.com/getsentry/responses/issues/38
1824 `(("python-mock" ,python-mock)))
1826 `(("python-requests" ,python-requests)
1827 ("python-cookies" ,python-cookies)
1828 ("python-six" ,python-six)))
1829 (home-page "https://github.com/getsentry/responses")
1830 (synopsis "Utility for mocking out the `requests` Python library")
1831 (description "A utility library for mocking out the `requests` Python
1833 (license license:asl2.0)))
1835 (define-public python2-responses
1836 (package-with-python2 python-responses))
1838 (define-public python-grequests
1840 (name "python-grequests")
1845 (uri (pypi-uri "grequests" version))
1848 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
1849 (build-system python-build-system)
1851 `(("python-gevent" ,python-gevent)
1852 ("python-requests" ,python-requests)))
1854 `(("python-nose" ,python-nose)))
1855 (home-page "https://github.com/kennethreitz/grequests")
1856 (synopsis "Python library for asynchronous HTTP requests")
1857 (description "GRequests is a Python library that allows you to use
1858 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
1859 (license license:bsd-2)))
1861 (define-public python-geventhttpclient
1863 (name "python-geventhttpclient")
1867 (uri (pypi-uri "geventhttpclient" version))
1870 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
1871 (modules '((guix build utils)))
1874 ;; Delete pre-compiled files.
1875 (for-each delete-file (find-files "src/geventhttpclient"
1878 (build-system python-build-system)
1881 (modify-phases %standard-phases
1882 (add-after 'unpack 'delete-network-tests
1884 (delete-file "src/geventhttpclient/tests/test_client.py")
1887 (add-after 'install 'check
1888 (lambda* (#:key inputs outputs #:allow-other-keys)
1889 (add-installed-pythonpath inputs outputs)
1890 (invoke "py.test" "src/geventhttpclient/tests" "-v"
1891 ;; Append the test modules to sys.path to avoid
1892 ;; namespace conflict which breaks SSL tests.
1893 "--import-mode=append")
1896 `(("python-pytest" ,python-pytest)))
1898 `(("python-certifi" ,python-certifi)
1899 ("python-gevent" ,python-gevent)
1900 ("python-six" ,python-six)))
1901 (home-page "https://github.com/gwik/geventhttpclient")
1902 (synopsis "HTTP client library for gevent")
1903 (description "@code{python-geventhttpclient} is a high performance,
1904 concurrent HTTP client library for python using @code{gevent}.")
1905 (license license:expat)))
1907 (define-public python2-geventhttpclient
1908 (package-with-python2 python-geventhttpclient))
1910 (define-public python-requests-oauthlib
1912 (name "python-requests-oauthlib")
1917 (uri (pypi-uri "requests-oauthlib" version))
1920 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
1921 (build-system python-build-system)
1924 (modify-phases %standard-phases
1925 ;; removes tests that require network access
1926 (add-before 'check 'pre-check
1928 (delete-file "tests/test_core.py")
1931 `(("python-pyjwt" ,python-pyjwt)
1932 ("python-requests-mock" ,python-requests-mock)
1933 ("python-mock" ,python-mock)))
1935 `(("python-oauthlib" ,python-oauthlib)
1936 ("python-requests" ,python-requests)))
1938 "https://github.com/requests/requests-oauthlib")
1940 "OAuthlib authentication support for Requests")
1942 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
1943 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
1944 (license license:isc)))
1946 (define-public python2-requests-oauthlib
1947 (package-with-python2 python-requests-oauthlib))
1949 (define-public python-url
1955 (uri (pypi-uri "url" version))
1958 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
1959 (build-system python-build-system)
1961 `(("python-publicsuffix" ,python-publicsuffix)))
1963 `(("python-coverage" ,python-coverage)
1964 ("python-nose" ,python-nose)))
1966 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
1967 (home-page "https://github.com/seomoz/url-py")
1968 (synopsis "URL Parsing")
1969 (description "Library for parsing urls.")
1970 (license license:expat)
1971 (properties `((python2-variant . ,(delay python2-url))))))
1973 (define-public python2-url
1974 (let ((base (package-with-python2 (strip-python2-variant python-url))))
1975 (package (inherit base)
1977 `(("python2-publicsuffix" ,python2-publicsuffix))))))
1979 (define-public python-cachecontrol
1981 (name "python-cachecontrol")
1986 ;; Pypi does not have tests.
1988 "https://github.com/ionrock/cachecontrol/archive/v"
1990 (file-name (string-append name "-" version ".tar.gz"))
1993 "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw"))))
1994 (build-system python-build-system)
1997 (modify-phases %standard-phases
2000 ;; Drop test that requires internet access.
2001 (delete-file "tests/test_regressions.py")
2002 (setenv "PYTHONPATH"
2003 (string-append (getcwd) "/build/lib:"
2004 (getenv "PYTHONPATH")))
2005 (invoke "py.test" "-vv")
2008 `(("python-pytest" ,python-pytest)
2009 ("python-redis" ,python-redis)
2010 ("python-webtest" ,python-webtest)
2011 ("python-mock" ,python-mock)))
2013 `(("python-requests" ,python-requests)
2014 ("python-lockfile" ,python-lockfile)))
2015 (home-page "https://github.com/ionrock/cachecontrol")
2016 (synopsis "The httplib2 caching algorithms for use with requests")
2017 (description "CacheControl is a port of the caching algorithms in
2018 @code{httplib2} for use with @code{requests} session objects.")
2019 (license license:asl2.0)))
2021 (define-public python2-cachecontrol
2022 (package-with-python2 python-cachecontrol))
2024 (define-public python-betamax
2026 (name "python-betamax")
2031 (uri (pypi-uri "betamax" version))
2034 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
2035 (build-system python-build-system)
2037 '(;; Many tests fail because they require networking.
2040 `(("python-requests" ,python-requests)))
2041 (home-page "https://github.com/sigmavirus24/betamax")
2042 (synopsis "Record HTTP interactions with python-requests")
2043 (description "Betamax will record your test suite's HTTP interactions and
2044 replay them during future tests. It is designed to work with python-requests.")
2045 (license license:expat)))
2047 (define-public python2-betamax
2048 (package-with-python2 python-betamax))
2050 (define-public python-betamax-matchers
2052 (name "python-betamax-matchers")
2057 (uri (pypi-uri "betamax-matchers" version))
2060 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
2061 (build-system python-build-system)
2063 `(("python-betamax" ,python-betamax)
2064 ("python-requests-toolbelt" ,python-requests-toolbelt)))
2065 (home-page "https://github.com/sigmavirus24/betamax_matchers")
2066 (synopsis "VCR imitation for python-requests")
2067 (description "@code{betamax-matchers} provides a set of Matchers for
2069 (license license:asl2.0)))
2071 (define-public python2-betamax-matchers
2072 (package-with-python2 python-betamax-matchers))
2074 (define-public python-s3transfer
2076 (name "python-s3transfer")
2080 (uri (pypi-uri "s3transfer" version))
2083 "08fhj73b1ai52hrs2q3nggshq3pswn1gq8ch3m009cb2v2vmqggj"))))
2084 (build-system python-build-system)
2087 (modify-phases %standard-phases
2090 ;; Some of the 'integration' tests require network access or
2091 ;; login credentials.
2092 (invoke "nosetests" "--exclude=integration")
2095 `(("python-docutils" ,python-docutils)
2096 ("python-mock" ,python-mock)
2097 ("python-nose" ,python-nose)))
2099 `(("python-botocore" ,python-botocore)
2100 ("python-urllib3" ,python-urllib3)))
2101 (synopsis "Amazon S3 Transfer Manager")
2102 (description "S3transfer is a Python library for managing Amazon S3
2104 (home-page "https://github.com/boto/s3transfer")
2105 (license license:asl2.0)
2106 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2108 (define-public python2-s3transfer
2109 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2113 `(("python2-futures" ,python2-futures)
2114 ,@(package-native-inputs base))))))
2116 (define-public python-slimit
2118 (name "python-slimit")
2123 (uri (pypi-uri "slimit" version ".zip"))
2126 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2127 (build-system python-build-system)
2129 `(("unzip" ,unzip)))
2131 `(("python-ply" ,python-ply)))
2132 (home-page "https://slimit.readthedocs.io/")
2133 (synopsis "JavaScript minifier, parser and lexer written in Python")
2135 "SlimIt is a JavaScript minifier written in Python. It compiles
2136 JavaScript into more compact code so that it downloads and runs faster.
2137 SlimIt also provides a library that includes a JavaScript parser, lexer,
2138 pretty printer and a tree visitor.")
2139 (license license:expat)))
2141 (define-public python-flask-restful
2143 (name "python-flask-restful")
2148 (uri (pypi-uri "Flask-RESTful" version))
2151 "1a9cbwkr6krryyzq4sd3f415nkkc6dyfls5i3pgyibs94g0hw97q"))))
2152 (build-system python-build-system)
2154 `(("python-aniso8601" ,python-aniso8601)
2155 ("python-flask" ,python-flask)
2156 ("python-pycrypto" ,python-pycrypto)
2157 ("python-pytz" ,python-pytz)))
2159 `(;; Optional dependency of Flask. Tests need it.
2160 ("python-blinker" ,python-blinker)
2161 ("python-mock" ,python-mock) ; For tests
2162 ("python-nose" ,python-nose) ; For tests
2163 ("python-sphinx" ,python-sphinx)))
2165 "https://www.github.com/flask-restful/flask-restful/")
2167 "Flask module for creating REST APIs")
2169 "This package contains a Flask module for creating REST APIs.")
2170 (license license:bsd-3)))
2172 (define-public python-flask-basicauth
2174 (name "python-flask-basicauth")
2179 (uri (pypi-uri "Flask-BasicAuth" version))
2182 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2183 (build-system python-build-system)
2185 `(("python-flask" ,python-flask)))
2187 "https://github.com/jpvanhal/flask-basicauth")
2189 "HTTP basic access authentication for Flask")
2191 "This package provides HTTP basic access authentication for Flask.")
2192 (license license:bsd-3)))
2194 (define-public python-flask-sqlalchemy
2196 (name "python-flask-sqlalchemy")
2201 (uri (pypi-uri "Flask-SQLAlchemy" version))
2204 "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"))))
2205 (build-system python-build-system)
2207 `(("python-flask" ,python-flask)
2208 ("python-sqlalchemy" ,python-sqlalchemy)))
2210 "https://github.com/mitsuhiko/flask-sqlalchemy")
2212 "Module adding SQLAlchemy support to your Flask application")
2214 "This package adds SQLAlchemy support to your Flask application.")
2215 (license license:bsd-3)))
2217 (define-public python-flask-restplus
2219 (name "python-flask-restplus")
2224 (uri (pypi-uri "flask-restplus" version))
2227 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2228 (build-system python-build-system)
2230 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2232 ;; (modify-phases %standard-phases
2235 ;; (invoke "nosetests")
2238 `(("python-aniso8601" ,python-aniso8601)
2239 ("python-flask" ,python-flask)
2240 ("python-jsonschema" ,python-jsonschema)
2241 ("python-pytz" ,python-pytz)
2242 ("python-six" ,python-six)))
2244 `(("python-tzlocal" ,python-tzlocal)
2245 ("python-blinker" ,python-blinker)
2246 ("python-nose" ,python-nose)
2247 ("python-rednose" ,python-rednose)))
2248 (home-page "https://github.com/noirbizarre/flask-restplus")
2249 (synopsis "Framework for documented API development with Flask")
2250 (description "This package provides a framework for API development with
2251 the Flask web framework in Python. It is similar to package
2252 @code{python-flask-restful} but supports the @code{python-swagger}
2253 documentation builder.")
2254 (license license:expat)))
2256 (define-public python-flask-restful-swagger
2258 (name "python-flask-restful-swagger")
2263 (uri (pypi-uri "flask-restful-swagger" version))
2266 "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v"))))
2267 (build-system python-build-system)
2269 `(("python-flask-restful" ,python-flask-restful)))
2270 (home-page "https://github.com/rantav/flask-restful-swagger")
2271 (synopsis "Extract Swagger specs from Flask-Restful projects")
2272 (description "This package lets you extract Swagger API documentation
2273 specs from your Flask-Restful projects.")
2274 (license license:expat)))
2276 (define-public python2-flask-restful-swagger
2277 (package-with-python2 python-flask-restful-swagger))
2279 (define-public python-htmlmin
2281 (name "python-htmlmin")
2286 (uri (pypi-uri "htmlmin" version))
2289 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2291 `(#:tests? #f)) ; no tests
2292 (build-system python-build-system)
2293 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2294 (synopsis "HTML minifier")
2295 (description "@code{htmlmin} is an HTML minifier that just works.
2296 It comes with safe defaults and easily configurable options.")
2297 (license license:bsd-3)))
2299 (define-public python2-htmlmin
2300 (package-with-python2 python-htmlmin))
2302 (define-public python-flask-htmlmin
2304 (name "python-flask-htmlmin")
2309 (uri (pypi-uri "Flask-HTMLmin" version))
2312 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2314 `(("python-flask" ,python-flask)
2315 ("python-htmlmin" ,python-htmlmin)))
2316 (build-system python-build-system)
2317 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2318 (synopsis "HTML response minifier for Flask")
2320 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2321 (license license:bsd-3)))
2323 (define-public python2-flask-htmlmin
2324 (package-with-python2 python-flask-htmlmin))
2326 (define-public python-jsmin
2328 (name "python-jsmin")
2333 (uri (pypi-uri "jsmin" version))
2336 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2337 (build-system python-build-system)
2338 (home-page "https://github.com/tikitu/jsmin/")
2339 (synopsis "Python JavaScript minifier")
2341 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2342 on the command line.")
2343 (license license:expat)))
2345 (define-public python-flask-login
2347 (name "python-flask-login")
2353 (url "https://github.com/maxcountryman/flask-login.git")
2355 (file-name (git-file-name name version))
2357 (base32 "1rj0qwyxapxnp84fi4lhmvh3d91fdiwz7hibw77x3d5i72knqaa9"))))
2360 (modify-phases %standard-phases
2361 (add-before 'check 'avoid-yanc
2362 ;; Work around '.nosetests-real: error: no such option: --with-yanc'.
2364 (setenv "NOCOLOR" "set")
2366 (build-system python-build-system)
2368 `(("python-flask" ,python-flask)))
2371 `(("python-blinker" ,python-blinker)
2372 ("python-mock" ,python-mock)
2373 ("python-nose" ,python-nose)
2374 ("python-pep8" ,python-pep8)
2375 ("python-pyflakes" ,python-pyflakes)
2376 ("python-semantic-version" ,python-semantic-version)
2377 ("python-werkzeug" ,python-werkzeug)))
2378 (home-page "https://github.com/maxcountryman/flask-login")
2379 (synopsis "User session management for Flask")
2381 "@code{Flask-Login} provides user session management for Flask. It
2382 handles the common tasks of logging in, logging out, and remembering your
2383 users' sessions over extended periods of time.")
2384 (license license:expat)))
2386 (define-public python2-flask-login
2387 (package-with-python2 python-flask-login))
2389 (define-public python-oauth2client
2391 (name "python-oauth2client")
2396 (uri (pypi-uri "oauth2client" version))
2399 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2400 (build-system python-build-system)
2404 `(("python-httplib2" ,python-httplib2)
2405 ("python-pyasn1" ,python-pyasn1)
2406 ("python-pyasn1-modules" ,python-pyasn1-modules)
2407 ("python-rsa" ,python-rsa)
2408 ("python-six" ,python-six)))
2409 (home-page "https://github.com/google/oauth2client/")
2410 (synopsis "OAuth 2.0 client library")
2411 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2412 library for Python")
2413 (license license:asl2.0)))
2415 (define-public python2-oauth2client
2416 (package-with-python2 python-oauth2client))
2418 (define-public python-flask-oidc
2420 (name "python-flask-oidc")
2425 (uri (pypi-uri "flask-oidc" version))
2428 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
2429 (build-system python-build-system)
2431 `(("python-flask" ,python-flask)
2432 ("python-itsdangerous" ,python-itsdangerous)
2433 ("python-oauth2client" ,python-oauth2client)
2434 ("python-six" ,python-six)))
2436 `(("python-nose" ,python-nose)
2437 ("python-mock" ,python-mock)))
2438 (home-page "https://github.com/puiterwijk/flask-oidc")
2439 (synopsis "OpenID Connect extension for Flask")
2440 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2442 (license license:bsd-2)))
2444 (define-public python-webassets
2446 (name "python-webassets")
2451 (uri (pypi-uri "webassets" version))
2454 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2455 (build-system python-build-system)
2457 `(("python-jinja2" ,python-jinja2)
2458 ("python-mock" ,python-mock)
2459 ("python-nose" ,python-nose)
2460 ("python-pytest" ,python-pytest)))
2461 (home-page "https://github.com/miracle2k/webassets")
2462 (synopsis "Media asset management")
2463 (description "Merges, minifies and compresses Javascript and CSS files,
2464 supporting a variety of different filters, including YUI, jsmin, jspacker or
2465 CSS tidy. Also supports URL rewriting in CSS files.")
2466 (license license:bsd-2)))
2468 (define-public python-cssmin
2470 (name "python-cssmin")
2475 (uri (pypi-uri "cssmin" version))
2478 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2479 (build-system python-build-system)
2480 (home-page "https://github.com/zacharyvoase/cssmin")
2481 (synopsis "Python port of the YUI CSS Compressor")
2482 (description "Python port of the YUI CSS Compressor.")
2483 (license (list license:expat license:bsd-3))))
2485 (define-public python2-cssmin
2486 (package-with-python2 python-cssmin))
2488 (define-public python-elasticsearch
2490 (name "python-elasticsearch")
2495 (uri (pypi-uri "elasticsearch" version))
2498 "1kjxl45yvvgfb5fmamx0kfsfg9pzphiqrwbkns3s28r1w7ya74cd"))))
2499 (build-system python-build-system)
2501 `(("python-mock" ,python-mock)
2502 ("python-nosexcover" ,python-nosexcover)
2503 ("python-pyaml" ,python-pyaml)
2504 ("python-requests" ,python-requests)))
2506 `(("urllib3" ,python-urllib3)))
2508 ;; tests require the test_elasticsearch module but it is not distributed.
2510 (home-page "https://github.com/elastic/elasticsearch-py")
2511 (synopsis "Low-level client for Elasticsearch")
2512 (description "Official low-level client for Elasticsearch. Its goal is to
2513 provide common ground for all Elasticsearch-related code in Python; because of
2514 this it tries to be opinion-free and very extendable.")
2515 (license license:expat)))
2517 (define-public python2-elasticsearch
2518 (package-with-python2 python-elasticsearch))
2520 (define-public python-flask-script
2522 (name "python-flask-script")
2527 (uri (pypi-uri "Flask-Script" version))
2530 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
2531 (build-system python-build-system)
2534 (modify-phases %standard-phases
2535 (add-after 'unpack 'patch-tests
2537 (substitute* "tests.py"
2538 (("flask\\.ext\\.script") "flask_script"))
2541 `(("python-flask" ,python-flask)
2542 ("python-argcomplete" ,python-argcomplete)
2543 ("python-werkzeug" ,python-werkzeug)))
2545 `(("python-pytest" ,python-pytest)))
2547 "https://github.com/smurfix/flask-script")
2548 (synopsis "Scripting support for Flask")
2549 (description "The Flask-Script extension provides support for writing
2550 external scripts in Flask. This includes running a development server,
2551 a customised Python shell, scripts to set up your database, cronjobs,
2552 and other command-line tasks that belong outside the web application
2554 (license license:bsd-3)))
2556 (define-public python2-flask-script
2557 (package-with-python2 python-flask-script))
2559 (define-public python-flask-migrate
2561 (name "python-flask-migrate")
2566 (uri (pypi-uri "Flask-Migrate" version))
2569 "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk"))))
2570 (build-system python-build-system)
2572 `(("python-flask" ,python-flask)
2573 ("python-alembic" ,python-alembic)
2574 ("python-sqlalchemy" ,python-sqlalchemy)
2575 ("python-flask-script" ,python-flask-script)
2576 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2577 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2578 (synopsis "SQLAlchemy database migrations for Flask programs using
2580 (description "This package contains SQLAlchemy database migration tools
2581 for Flask programs that are using @code{python-alembic}.")
2582 (license license:expat)))
2584 (define-public python2-flask-migrate
2585 (package-with-python2 python-flask-migrate))
2587 (define-public python-genshi
2589 (name "python-genshi")
2595 (url "https://github.com/edgewall/genshi.git")
2597 (file-name (git-file-name name version))
2599 (base32 "01fx8fnpay5w048ppyjivg2dgfpp5rybn07y3pfsgj2knram3nhl"))))
2600 (build-system python-build-system)
2601 (home-page "https://genshi.edgewall.org/")
2602 (synopsis "Toolkit for generation of output for the web")
2603 (description "Genshi is a Python library that provides an integrated set
2604 of components for parsing, generating, and processing HTML, XML or other
2605 textual content for output generation on the web.")
2606 (license license:bsd-3)))
2608 (define-public python2-genshi
2609 (package-with-python2 python-genshi))
2611 (define-public python-flask-principal
2613 (name "python-flask-principal")
2618 (uri (pypi-uri "Flask-Principal" version))
2621 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
2622 (build-system python-build-system)
2624 `(("python-blinker" ,python-blinker)))
2626 `(("python-flask" ,python-flask)
2627 ("python-nose" ,python-nose)))
2628 (home-page "http://packages.python.org/Flask-Principal/")
2629 (synopsis "Identity management for Flask")
2630 (description "@code{flask_principal} is a identity management library for
2631 Flask. It supports managing both authentication and authorization data in a
2632 thread-local variable.")
2633 (license license:expat)))
2635 (define-public python2-flask-principal
2636 (package-with-python2 python-flask-principal))
2638 (define-public python-flask-httpauth
2640 (name "python-flask-httpauth")
2645 (uri (pypi-uri "Flask-HTTPAuth" version))
2648 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
2649 (build-system python-build-system)
2651 `(("python-flask" ,python-flask)))
2652 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
2653 (synopsis "Basic and Digest HTTP authentication for Flask routes")
2654 (description "@code{flask_httpauth} provides Basic and Digest HTTP
2655 authentication for Flask routes.")
2656 (license license:expat)))
2658 (define-public python2-flask-httpauth
2659 (package-with-python2 python-flask-httpauth))
2661 (define-public python-uritemplate
2663 (name "python-uritemplate")
2668 (uri (pypi-uri "uritemplate" version))
2671 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
2672 (build-system python-build-system)
2673 (home-page "https://uritemplate.readthedocs.org")
2674 (synopsis "Library to deal with URI Templates")
2675 (description "@code{uritemplate} provides Python library to deal with URI
2677 (license license:bsd-2)))
2679 (define-public python2-uritemplate
2680 (package-with-python2 python-uritemplate))
2682 (define-public python-publicsuffix
2684 (name "python-publicsuffix")
2688 (uri (pypi-uri "publicsuffix" version))
2691 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
2692 (build-system python-build-system)
2694 `(#:tests? #f)) ; tests use the internet
2695 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
2696 (synopsis "Get suffix for a domain name")
2697 (description "Get a public suffix for a domain name using the Public Suffix
2699 (license license:expat)))
2701 (define-public python2-publicsuffix
2702 (package-with-python2 python-publicsuffix))
2704 (define-public python-publicsuffix2
2706 (name "python-publicsuffix2")
2707 (version "2.20160818")
2711 (uri (pypi-uri "publicsuffix2" version ".tar.bz2"))
2714 "1bb55yka9vkn7i6y1kjzxa516kh6v4gsrxa90w5wdz5p5n968r68"))))
2715 (build-system python-build-system)
2717 '(#:tests? #f)) ; The test suite requires network access.
2718 (home-page "https://github.com/pombredanne/python-publicsuffix2")
2719 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
2720 (description "Get a public suffix for a domain name using the Public Suffix
2721 List. Forked from and using the same API as the publicsuffix package.")
2722 (license (list license:expat license:mpl2.0))))
2724 (define-public python2-publicsuffix2
2725 (package-with-python2 python-publicsuffix2))
2727 (define-public python-werkzeug
2729 (name "python-werkzeug")
2734 (uri (pypi-uri "werkzeug" version))
2737 "0z2m4snn1vc9518r2vzgdj1nc90kcgi60wijvd29yvcp85ypmzf3"))))
2738 (build-system python-build-system)
2741 (modify-phases %standard-phases
2743 (add-after 'install 'check
2744 (lambda* (#:key inputs outputs #:allow-other-keys)
2745 (add-installed-pythonpath inputs outputs)
2746 (invoke "python" "-m" "pytest"))))))
2748 `(("python-requests" ,python-requests)))
2750 `(("python-pytest" ,python-pytest)))
2751 (home-page "https://www.palletsprojects.org/p/werkzeug/")
2752 (synopsis "Utilities for WSGI applications")
2753 (description "One of the most advanced WSGI utility modules. It includes a
2754 powerful debugger, full-featured request and response objects, HTTP utilities to
2755 handle entity tags, cache control headers, HTTP dates, cookie handling, file
2756 uploads, a powerful URL routing system and a bunch of community-contributed
2758 (license license:x11)))
2760 (define-public python2-werkzeug
2761 (package-with-python2 python-werkzeug))
2763 (define-public python-bottle
2765 (name "python-bottle")
2770 (uri (pypi-uri "bottle" version))
2773 "0m9k2a7yxvggc4kw8fsvj381vgsvfcdshg5nzy6vwrxiw2p53drr"))))
2774 (build-system python-build-system)
2775 (home-page "http://bottlepy.org/")
2776 (synopsis "WSGI framework for small web-applications.")
2777 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
2778 (license license:expat)))
2780 (define-public python2-bottle
2781 (package-with-python2 python-bottle))
2783 (define-public python-wtforms
2785 (name "python-wtforms")
2790 (uri (pypi-uri "WTForms" version ".zip"))
2793 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
2794 (build-system python-build-system)
2797 (modify-phases %standard-phases
2798 (add-after 'unpack 'remove-django-test
2799 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
2803 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
2804 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
2807 `(("unzip" ,unzip)))
2808 (home-page "http://wtforms.simplecodes.com/")
2810 "Form validation and rendering library for Python web development")
2812 "WTForms is a flexible forms validation and rendering library
2813 for Python web development. It is very similar to the web form API
2814 available in Django, but is a standalone package.")
2815 (license license:bsd-3)))
2817 (define-public python2-wtforms
2818 (package-with-python2 python-wtforms))
2820 (define-public python-paste
2822 (name "python-paste")
2827 (uri (pypi-uri "Paste" version))
2830 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
2831 (patches (search-patches "python-paste-remove-timing-test.patch"))
2832 (modules '((guix build utils)))
2835 ;; This test calls out to the internet.
2836 (delete-file "tests/test_proxy.py") #t))))
2837 (build-system python-build-system)
2839 `(("python-pytest" ,python-pytest)
2840 ("python-pytest-runner" ,python-pytest-runner)
2841 ("python-nose" ,python-nose)))
2843 `(("python-six" ,python-six)))
2844 (home-page "http://pythonpaste.org")
2846 "Python web development tools, focusing on WSGI")
2848 "Paste provides a variety of web development tools and middleware which
2849 can be nested together to build web applications. Paste's design closely
2850 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
2851 (license license:expat)))
2853 (define-public python2-paste
2854 (package-with-python2 python-paste))
2856 (define-public python-pastescript
2858 (name "python-pastescript")
2863 (uri (pypi-uri "PasteScript" version))
2866 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
2867 (build-system python-build-system)
2869 `(("python-nose" ,python-nose)))
2871 `(("python-paste" ,python-paste)
2872 ("python-pastedeploy" ,python-pastedeploy)))
2873 (home-page "http://pythonpaste.org/script/")
2875 '(;; Unfortunately, this requires the latest unittest2,
2876 ;; but that requires traceback2 which requires linecache2 which requires
2877 ;; unittest2. So we're skipping tests for now.
2878 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
2879 ;; so in theory we could get around this situation somehow.)
2882 "Pluggable command line tool for serving web applications and more")
2884 "PasteScript is a plugin-friendly command line tool which provides a
2885 variety of features, from launching web applications to bootstrapping project
2887 (license license:expat)))
2889 (define-public python2-pastescript
2890 (package-with-python2 python-pastescript))
2892 (define-public python2-urlgrabber
2894 (name "python2-urlgrabber")
2899 (uri (pypi-uri "urlgrabber" version))
2901 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
2902 (build-system python-build-system)
2903 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
2904 (home-page "http://urlgrabber.baseurl.org")
2905 (synopsis "High-level cross protocol url-grabber")
2906 (description "@code{urlgrabber} is Python2 library that unifies access to
2907 files available on web, FTP or locally. It supports HTTP, FTP and file://
2908 protocols, it supports features like HTTP keep-alive, reget, throttling and
2910 (license license:lgpl2.1+)))
2912 (define-public python-pycares
2914 (name "python-pycares")
2919 (uri (pypi-uri "pycares" version))
2922 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
2923 (build-system python-build-system)
2925 `(#:tests? #f)) ;tests require internet access
2926 (home-page "http://github.com/saghul/pycares")
2927 (synopsis "Python interface for @code{c-ares}")
2928 (description "@code{pycares} is a Python module which provides an
2929 interface to @code{c-ares}, a C library that performs DNS requests and
2930 name resolutions asynchronously.")
2931 (license license:expat)))
2933 (define-public python-yarl
2935 (name "python-yarl")
2940 (uri (pypi-uri "yarl" version))
2943 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
2944 (build-system python-build-system)
2946 `(("python-pytest" ,python-pytest)
2947 ("python-pytest-runner" ,python-pytest-runner)))
2949 `(("python-idna" ,python-idna)
2950 ("python-multidict" ,python-multidict)))
2951 (home-page "https://github.com/aio-libs/yarl/")
2952 (synopsis "Yet another URL library")
2953 (description "@code{yarl} module provides handy @code{URL} class
2954 for URL parsing and changing.")
2955 (license license:asl2.0)))
2957 (define-public python-google-api-client
2959 (name "python-google-api-client")
2964 (uri (pypi-uri "google-api-python-client" version))
2967 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
2968 (build-system python-build-system)
2970 '(#:tests? #f)) ; tests require internet access
2972 `(("python-httplib2" ,python-httplib2)
2973 ("python-six" ,python-six)
2974 ("python-oauth2client" ,python-oauth2client)
2975 ("python-uritemplate" ,python-uritemplate)))
2976 (home-page "https://github.com/google/google-api-python-client")
2977 (synopsis "Core Python library for accessing Google APIs")
2978 (description "Python client library for Google's discovery based APIs")
2979 (license license:asl2.0)))
2981 (define-public python2-google-api-client
2982 (package-with-python2 python-google-api-client))
2984 (define-public python-hawkauthlib
2986 (name "python-hawkauthlib")
2991 (uri (pypi-uri "hawkauthlib" version))
2994 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
2995 (build-system python-build-system)
2997 `(("python-requests" ,python-requests)
2998 ("python-webob" ,python-webob)))
2999 (home-page "https://github.com/mozilla-services/hawkauthlib")
3000 (synopsis "Hawk Access Authentication protocol")
3002 "This is a low-level Python library for implementing Hawk Access Authentication,
3003 a simple HTTP request-signing scheme.")
3004 (license license:mpl2.0)))
3006 (define-public python-pybrowserid
3008 (name "python-pybrowserid")
3013 (uri (pypi-uri "PyBrowserID" version))
3016 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
3017 (build-system python-build-system)
3019 `(("python-requests" ,python-requests)))
3021 `(("python-mock" ,python-mock)))
3022 (home-page "https://github.com/mozilla/PyBrowserID")
3023 (synopsis "Python library for the BrowserID protocol")
3025 "This is a Python client library for the BrowserID protocol that
3026 underlies Mozilla Persona.")
3027 (license license:mpl2.0)))
3029 (define-public python-pyfxa
3031 (name "python-pyfxa")
3036 (uri (pypi-uri "PyFxA" version))
3039 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
3040 (build-system python-build-system)
3041 (arguments '(#:tests? #f)) ; 17 tests require network access
3043 `(("python-cryptography" ,python-cryptography)
3044 ("python-hawkauthlib" ,python-hawkauthlib)
3045 ("python-pybrowserid" ,python-pybrowserid)
3046 ("python-requests" ,python-requests)
3047 ("python-six" ,python-six)))
3049 `(("python-grequests" ,python-grequests)
3050 ("python-mock" ,python-mock)
3051 ("python-responses" ,python-responses)
3052 ("python-unittest2" ,python-unittest2)))
3053 (home-page "https://github.com/mozilla/PyFxA")
3054 (synopsis "Firefox Accounts client library for Python")
3056 "This is a Python library for interacting with the Firefox Accounts
3058 (license license:mpl2.0)))
3060 (define-public python-hyperlink
3062 (name "python-hyperlink")
3067 (uri (pypi-uri "hyperlink" version))
3070 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
3071 (build-system python-build-system)
3073 `(("python-idna" ,python-idna)))
3074 (home-page "https://github.com/python-hyper/hyperlink")
3075 (synopsis "Python module to create immutable URLs according to spec")
3076 (description "This package provides a Python module to create immutable, and
3077 correct URLs for Python according to RFCs 3986 and 3987.")
3078 (license license:expat)))
3080 (define-public python-treq
3082 (name "python-treq")
3087 (uri (pypi-uri "treq" version))
3090 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
3091 (build-system python-build-system)
3093 `(("python-attrs" ,python-attrs)
3094 ("python-idna" ,python-idna)
3095 ("python-incremental" ,python-incremental)
3096 ("python-requests" ,python-requests)
3097 ("python-service-identity" ,python-service-identity)
3098 ("python-twisted" ,python-twisted)))
3099 (home-page "https://github.com/twisted/treq")
3100 (synopsis "Requests-like API built on top of twisted.web's Agent")
3101 (description "This package provides an HTTP library inspired by
3102 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3103 high level API for making HTTP requests when using Twisted.")
3104 (license license:expat)))
3106 (define-public python-autobahn
3108 (name "python-autobahn")
3113 (uri (pypi-uri "autobahn" version))
3116 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3117 (build-system python-build-system)
3119 ;; The tests fail to run:
3120 ;; https://github.com/crossbario/autobahn-python/issues/1117
3123 `(("python-cffi" ,python-cffi)
3124 ("python-twisted" ,python-twisted)
3125 ("python-txaio" ,python-txaio)))
3126 (home-page "https://crossbar.io/autobahn/")
3127 (synopsis "Web Application Messaging Protocol implementation")
3128 (description "This package provides an implementation of the @dfn{Web Application
3129 Messaging Protocol} (WAMP). WAMP connects components in distributed
3130 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3131 Calls (rRPC). It is ideal for distributed, multi-client and server applications
3132 such as IoT applications or multi-user database-driven business applications.")
3133 (license license:expat)))
3135 (define-public python-ws4py
3137 (name "python-ws4py")
3142 (uri (pypi-uri "ws4py" version))
3145 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3146 (build-system python-build-system)
3149 (modify-phases %standard-phases
3150 (add-after 'unpack 'python3.7-compatibility
3152 (substitute* '("ws4py/server/tulipserver.py"
3153 "ws4py/async_websocket.py")
3155 "asyncio.ensure_future"))
3157 ;; We don't have a package for cherrypy.
3158 (add-after 'unpack 'remove-cherrypy-support
3160 (delete-file "ws4py/server/cherrypyserver.py")
3163 `(("python-gevent" ,python-gevent)
3164 ("python-tornado" ,python-tornado)))
3165 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3166 (synopsis "WebSocket client and server library")
3168 "This package provides a WebSocket client and server library for
3170 (license license:bsd-3)))
3172 ;; kaldi-gstreamer-server does not yet work with python-ws4py > 0.3.2
3173 (define-public python2-ws4py-for-kaldi-gstreamer-server
3174 (package (inherit python-ws4py)
3175 (name "python2-ws4py")
3180 (uri (pypi-uri "ws4py" version))
3183 "12ys3dv98awhrxd570vla3hqgzq3avjhq4yafhghhq3a942y1928"))))
3184 (build-system python-build-system)
3186 `(#:python ,python-2
3188 (modify-phases %standard-phases
3189 ;; We don't have a package for cherrypy.
3190 (add-after 'unpack 'remove-cherrypy-support
3192 (delete-file "ws4py/server/cherrypyserver.py")
3195 `(("python-gevent" ,python2-gevent)
3196 ("python-tornado" ,python2-tornado)))))
3198 (define-public python-slugify
3200 (name "python-slugify")
3205 (uri (pypi-uri "python-slugify" version))
3208 "0n6pfmsq899c54plpvzi46l7zrpa3zfpm8im6h32czjw6kxky5jp"))
3210 (search-patches "python-slugify-depend-on-unidecode.patch"))))
3212 `(("python-wheel" ,python-wheel)))
3214 `(("python-unidecode" ,python-unidecode)))
3217 (modify-phases %standard-phases
3220 (invoke "python" "test.py"))))))
3221 (build-system python-build-system)
3222 (home-page "https://github.com/un33k/python-slugify")
3223 (synopsis "Python Slugify application that handles Unicode")
3224 (description "This package provides a @command{slufigy} command and
3225 library to create slugs from unicode strings while keeping it DRY.")
3226 (license license:expat)))