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>
33 ;;; This file is part of GNU Guix.
35 ;;; GNU Guix is free software; you can redistribute it and/or modify it
36 ;;; under the terms of the GNU General Public License as published by
37 ;;; the Free Software Foundation; either version 3 of the License, or (at
38 ;;; your option) any later version.
40 ;;; GNU Guix is distributed in the hope that it will be useful, but
41 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
42 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43 ;;; GNU General Public License for more details.
45 ;;; You should have received a copy of the GNU General Public License
46 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
48 (define-module (gnu packages python-web)
49 #:use-module (guix packages)
50 #:use-module (guix download)
51 #:use-module (guix git-download)
52 #:use-module (guix build-system python)
53 #:use-module (guix utils)
54 #:use-module (gnu packages)
55 #:use-module (gnu packages check)
56 #:use-module (gnu packages compression)
57 #:use-module (gnu packages curl)
58 #:use-module (gnu packages databases)
59 #:use-module (gnu packages django)
60 #:use-module (gnu packages groff)
61 #:use-module (gnu packages libffi)
62 #:use-module (gnu packages pkg-config)
63 #:use-module (gnu packages python)
64 #:use-module (gnu packages python-crypto)
65 #:use-module (gnu packages python-xyz)
66 #:use-module (gnu packages sphinx)
67 #:use-module (gnu packages tls)
68 #:use-module (gnu packages time)
69 #:use-module (gnu packages web)
70 #:use-module (gnu packages xml)
71 #:use-module ((guix licenses) #:prefix license:)
72 #:use-module (srfi srfi-1))
74 (define-public python-aiohttp
76 (name "python-aiohttp")
81 (uri (pypi-uri "aiohttp" version))
84 "1ykm6kdjkrg556j0zd7dx2l1rsrbh0d9g27ivr6dmaahz9pyrbsi"))))
85 (build-system python-build-system)
87 `(#:tests? #f)) ;missing pytest-timeout
89 `(("python-aiodns" ,python-aiodns)
90 ("python-async-timeout" ,python-async-timeout)
91 ("python-attrs" ,python-attrs)
92 ("python-chardet" ,python-chardet)
93 ("python-idna-ssl" ,python-idna-ssl)
94 ("python-multidict" ,python-multidict)
95 ("python-yarl" ,python-yarl)))
96 (home-page "https://github.com/aio-libs/aiohttp/")
97 (synopsis "Async HTTP client/server framework (asyncio)")
98 (description "@code{aiohttp} is an asynchronous HTTP client/server
101 Its main features are:
103 @item Supports both client and server side of HTTP protocol.
104 @item Supports both client and server Web-Sockets out-of-the-box without the
106 @item Web-server has middlewares and pluggable routing.
108 (license license:asl2.0)))
110 (define-public python-aiohttp-socks
112 (name "python-aiohttp-socks")
117 (uri (pypi-uri "aiohttp_socks" version))
120 "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
121 (build-system python-build-system)
123 `(("python-aiohttp" ,python-aiohttp)))
124 (home-page "https://github.com/romis2012/aiohttp-socks")
125 (synopsis "SOCKS proxy connector for aiohttp")
126 (description "This package provides a SOCKS proxy connector for
127 aiohttp. It supports SOCKS4(a) and SOCKS5.")
128 (license license:asl2.0)))
130 (define-public python-aiodns
132 (name "python-aiodns")
137 (uri (pypi-uri "aiodns" version))
140 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
141 (build-system python-build-system)
143 `(("python-pycares" ,python-pycares)))
145 `(#:tests? #f)) ;tests require internet access
146 (home-page "http://github.com/saghul/aiodns")
147 (synopsis "Simple DNS resolver for asyncio")
148 (description "@code{aiodns} provides a simple way for doing
149 asynchronous DNS resolutions with a synchronous looking interface by
150 using @url{https://github.com/saghul/pycares,pycares}.")
151 (license license:expat)))
153 (define-public python-aiorpcx
155 (name "python-aiorpcx")
160 (uri (pypi-uri "aiorpcX" version))
163 "1p88k15jh0d2a18pnnbfcamsqi2bxvmmhpizmdlxfdxf8vy5ggyj"))))
164 (build-system python-build-system)
166 `(("python-attrs" ,python-attrs)))
167 (home-page "https://github.com/kyuupichan/aiorpcX")
168 (synopsis "Generic asyncio RPC implementation")
170 "aiorpcX is a generic asyncio library implementation of RPC suitable for
171 an application that is a client, server or both.
173 The package includes a module with full coverage of JSON RPC versions 1.0 and
174 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
175 comes with a SOCKS proxy client.")
176 (license (list license:expat license:bsd-2))))
178 (define-public python-falcon
180 (name "python-falcon")
185 (uri (pypi-uri "falcon" version))
188 "1i0vmqsk24z4biirqhpvas9h28wy7nmpy3jvnb6rz2imq04zd09r"))))
189 (build-system python-build-system)
192 (modify-phases %standard-phases
195 (invoke "pytest"))))))
197 `(("python-mimeparse" ,python-mimeparse)
198 ("python-six" ,python-six)))
200 `(("python-cython" ,python-cython) ;for faster binaries
201 ("python-pytest" ,python-pytest)
202 ("python-pyyaml" ,python-pyyaml)
203 ("python-requests" ,python-requests)
204 ("python-testtools" ,python-testtools)
205 ("python-jsonschema" ,python-jsonschema)
206 ("python-msgpack" ,python-msgpack)))
207 (home-page "https://falconframework.org")
209 "Web framework for building APIs and application backends")
211 "Falcon is a web API framework for building microservices, application
212 backends and higher-level frameworks. Among its features are:
214 @item Optimized and extensible code base
215 @item Routing via URI templates and REST-inspired resource
217 @item Access to headers and bodies through request and response
219 @item Request processing via middleware components and hooks
220 @item Idiomatic HTTP error responses
221 @item Straightforward exception handling
222 @item Unit testing support through WSGI helpers and mocks
223 @item Compatible with both CPython and PyPy
224 @item Cython support for better performance when used with CPython
226 (license license:asl2.0)))
228 (define-public python2-falcon
229 (package-with-python2 python-falcon))
231 (define-public python-falcon-cors
233 (name "python-falcon-cors")
238 (uri (pypi-uri "falcon-cors" version))
241 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
242 (build-system python-build-system)
244 `(("python-falcon" ,python-falcon)))
246 "https://github.com/lwcolton/falcon-cors")
247 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
248 (description "This middleware provides @dfn{cross-origin resource
249 sharing} (CORS) support for Falcon. It allows applying a specially crafted
250 CORS object to the incoming requests, enabling the ability to serve resources
251 over a different origin than that of the web application.")
252 (license license:asl2.0)))
254 (define-public python2-falcon-cors
255 (package-with-python2 python-falcon-cors))
257 (define-public python-furl
264 (uri (pypi-uri "furl" version))
267 "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
268 (build-system python-build-system)
270 `(("python-six" ,python-six)
271 ("python-orderedmultidict" ,python-orderedmultidict)))
273 `(("python-pycodestyle" ,python-pycodestyle)))
274 (home-page "https://github.com/gruns/furl")
275 (synopsis "URL manipulation in Python")
276 (description "Furl provides an easy-to-use alternative to the
277 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
278 (license license:unlicense)))
280 (define-public python2-furl
281 (package-with-python2 python-furl))
283 (define-public python-httplib2
285 (name "python-httplib2")
290 (uri (pypi-uri "httplib2" version))
293 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
294 (build-system python-build-system)
295 (home-page "https://github.com/jcgregorio/httplib2")
296 (synopsis "Comprehensive HTTP client library")
298 "A comprehensive HTTP client library supporting many features left out of
299 other HTTP libraries.")
300 (license license:expat)))
302 (define-public python2-httplib2
303 (package-with-python2 python-httplib2))
305 (define-public python-html2text
307 (name "python-html2text")
312 (uri (pypi-uri "html2text" version))
315 "1m6d7ciq30adc3d1n8g6r46072n7q8kdy039pqvnnmp763xi8xb2"))))
316 (build-system python-build-system)
317 (home-page "https://pypi.org/project/html2text/")
318 (synopsis "Convert HTML into plain text")
319 (description "html2text takes HTML and converts it into plain ASCII text
320 which is also valid markdown. html2text was originally written by Aaron
322 (license license:gpl3+)))
324 (define-public python2-html2text
325 (package-with-python2 python-html2text))
327 (define-public python-mechanicalsoup
329 (name "python-mechanicalsoup")
334 (uri (pypi-uri "MechanicalSoup" version))
336 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
337 (build-system python-build-system)
339 ;; TODO: Enable tests when python-flake8@3.5 hits master.
342 `(("python-beautifulsoup4" ,python-beautifulsoup4)
343 ("python-lxml" ,python-lxml)
344 ("python-requests" ,python-requests)
345 ("python-six" ,python-six)))
348 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
349 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
350 ;; ("python-pytest-mock" ,python-pytest-mock)
351 ;; ("python-pytest-runner" ,python-pytest-runner)
352 ;; ("python-requests-mock" ,python-requests-mock)))
353 (home-page "https://mechanicalsoup.readthedocs.io/")
354 (synopsis "Python library for automating website interaction")
356 "MechanicalSoup is a Python library for automating interaction with
357 websites. It automatically stores and sends cookies, follows redirects, and can
358 follow links and submit forms. It doesn’t do JavaScript.")
359 (license license:expat)))
361 (define-public python2-mechanicalsoup
362 (package-with-python2 python-mechanicalsoup))
364 (define-public python-sockjs-tornado
366 (name "python-sockjs-tornado")
371 (uri (pypi-uri "sockjs-tornado" version))
374 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
375 (build-system python-build-system)
377 `(;; There are no tests, and running the test phase requires missing
381 `(("python-tornado" ,python-tornado)))
382 (home-page "https://github.com/mrjoes/sockjs-tornado/")
384 "SockJS Python server implementation on top of the Tornado framework")
386 "SockJS-tornado provides the server-side counterpart to a SockJS client
387 library, through the Tornado framework.
389 SockJS provides a low-latency, full-duplex, cross-domain communication channel
390 between a web browser and web server.")
391 (license license:expat)))
393 (define-public python2-sockjs-tornado
394 (package-with-python2 python-sockjs-tornado))
396 (define-public python-flask-babel
398 (name "python-flask-babel")
403 (uri (pypi-uri "Flask-Babel" version))
406 "0ff9n165vhf1nhv6807ckhpp224jw7k7sd7jz5kfh3sbpl85gmy0"))))
407 (build-system python-build-system)
409 `(("python-flask" ,python-flask)
410 ("python-babel" ,python-babel)
411 ("python-jinja2" ,python-jinja2)
412 ("python-pytz" ,python-pytz)))
413 (home-page "https://github.com/python-babel/flask-babel")
414 (synopsis "Add i18n/l10n support to Flask applications")
415 (description "This package implements internationalization and localization
416 support for Flask. This is based on the Python babel module as well as pytz -
417 both of which are installed automatically if you install this library.")
418 (license license:bsd-3)))
420 (define-public python2-flask-babel
421 (package-with-python2 python-flask-babel))
423 (define-public python-html5lib
425 (name "python-html5lib")
430 (uri (pypi-uri "html5lib" version))
433 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
434 (build-system python-build-system)
436 `(("python-six" ,python-six)
437 ("python-webencodings" ,python-webencodings)))
439 `(#:test-target "check"))
441 "https://github.com/html5lib/html5lib-python")
443 "Python HTML parser based on the WHATWG HTML specifcation")
445 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
446 and written in Python.")
447 (license license:expat)))
449 (define-public python2-html5lib
450 (package-with-python2 python-html5lib))
452 ;; Needed for python-bleach, a dependency of python-notebook
453 (define-public python-html5lib-0.9
455 (inherit python-html5lib)
460 (uri (pypi-uri "html5lib" version))
463 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
465 (define-public python2-html5lib-0.9
466 (package-with-python2 python-html5lib-0.9))
468 (define-public python-html5-parser
470 (name "python-html5-parser")
474 (uri (pypi-uri "html5-parser" version))
477 "01mx33sx4dhl4kj6wc48nj6jz7ry60rkhjv0s6k8h5xmjf5yy0x9"))))
478 (build-system python-build-system)
480 `(("pkg-config" ,pkg-config)))
482 `(("libxml2" ,libxml2)))
484 `(("python-lxml" ,python-lxml)
485 ("python-beautifulsoup4" ,python-beautifulsoup4)))
486 (home-page "https://html5-parser.readthedocs.io")
487 (synopsis "Fast C-based HTML5 parsing for Python")
488 (description "This package provides a fast implementation of the HTML5
489 parsing spec for Python. Parsing is done in C using a variant of the gumbo
490 parser. The gumbo parse tree is then transformed into an lxml tree, also in
491 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
492 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
493 ;; indicate ASL2.0, including the LICENSE file for the whole project.
494 (license (list license:asl2.0 license:gpl3))))
496 (define-public python2-html5-parser
497 (package-with-python2 python-html5-parser))
499 (define-public python-pycurl
501 (name "python-pycurl")
506 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
509 (base32 "1915kb04k1j4y6k1dx1sgnbddxrl9r1n4q928if2lkrdm73xy30g"))))
510 (build-system python-build-system)
512 ;; The tests attempt to access external web servers, so we cannot run
513 ;; them. Furthermore, they are skipped altogether when using Python 2.
515 #:phases (modify-phases %standard-phases
516 (add-before 'build 'configure-tls-backend
518 ;; XXX: PycURL fails to automatically determine which TLS
519 ;; backend to use when cURL is built with --disable-static.
520 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
521 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
524 `(("python-nose" ,python-nose)
525 ("python-bottle" ,python-bottle)))
529 (home-page "http://pycurl.io/")
530 (synopsis "Lightweight Python wrapper around libcurl")
531 (description "Pycurl is a lightweight wrapper around libcurl. It provides
532 high-speed transfers via libcurl and frequently outperforms alternatives.")
534 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
535 ;; under the terms of LGPLv2.1+ or Expat.
536 (license (list license:lgpl2.1+ license:expat))))
538 (define-public python2-pycurl
539 (package-with-python2 python-pycurl))
541 (define-public python-webencodings
543 (name "python-webencodings")
547 (uri (pypi-uri "webencodings" version))
550 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
551 (build-system python-build-system)
554 (modify-phases %standard-phases
557 (invoke "py.test" "-v" "webencodings/tests.py")
560 `(("python-pytest" ,python-pytest)))
561 (home-page "https://github.com/SimonSapin/python-webencodings")
562 (synopsis "Character encoding aliases for legacy web content")
564 "In order to be compatible with legacy web content when interpreting
565 something like @code{Content-Type: text/html; charset=latin1}, tools need
566 to use a particular set of aliases for encoding labels as well as some
567 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
568 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
569 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
570 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
571 defines all such details so that implementations do not have to
572 reverse-engineer each other.
574 This module implements the Encoding standard and has encoding labels and
575 BOM detection, but the actual implementation for encoders and decoders
577 (license license:bsd-3)))
579 (define-public python2-webencodings
580 (package-with-python2 python-webencodings))
582 (define-public python-openid
584 (name "python-openid")
589 (uri (pypi-uri "python3-openid" version))
592 "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
593 (build-system python-build-system)
596 (modify-phases %standard-phases
599 (invoke "coverage" "run" "-m"
600 "unittest" "openid.test.test_suite"))))))
601 (properties `((python2-variant . ,(delay python2-openid))))
603 `(("python-defusedxml" ,python-defusedxml)))
605 `(("python-coverage" ,python-coverage)
606 ("python-psycopg2" ,python-psycopg2)
607 ("python-django" ,python-django)))
608 (home-page "https://github.com/necaris/python3-openid")
609 (synopsis "OpenID support for servers and consumers")
610 (description "This library provides OpenID authentication for Python, both
611 for clients and servers.")
612 (license license:asl2.0)))
614 (define-public python2-openid
616 (name "python2-openid")
621 (uri (pypi-uri "python-openid" version))
624 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
625 (build-system python-build-system)
627 ;; Python 3 support is in `python3-openid`, a separate package.
629 ;; Tests aren't initialized correctly.
631 (home-page "https://github.com/openid/python-openid")
632 (synopsis "OpenID support for servers and consumers")
633 (description "This library provides OpenID authentication for Python, both
634 for clients and servers.")
635 (license license:asl2.0)))
637 (define-public python-cssutils
639 (name "python-cssutils")
644 (uri (pypi-uri "cssutils" version))
647 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
648 (build-system python-build-system)
650 `(("unzip" ,unzip))) ; for unpacking the source
652 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
653 (home-page "http://cthedot.de/cssutils/")
655 "CSS Cascading Style Sheets library for Python")
657 "Cssutils is a Python package for parsing and building CSS
658 Cascading Style Sheets. Currently it provides a DOM only and no rendering
660 (license license:lgpl3+)))
662 (define-public python2-cssutils
663 (package-with-python2 python-cssutils))
665 (define-public python-css-parser
667 (inherit python-cssutils)
668 (name "python-css-parser")
673 (uri (pypi-uri "css-parser" version ".tar.gz"))
676 "0i4xfykiffxzr4f6y0m2ggqvx1rzam6pw6krlr5k6ldf29akbay7"))))
677 (home-page "https://github.com/ebook-utils/css-parser")
678 (synopsis "Fork of cssutils modified for parsing ebooks")
680 "Css-parser is a fork of cssutils 1.0.2, updated and modified for parsing
681 ebooks, due to cssutils not receiving updates as of 1.0.2.")
682 (license license:lgpl3+)))
684 (define-public python2-css-parser
685 (package-with-python2 python-css-parser))
687 (define-public python-cssselect
689 (name "python-cssselect")
694 (uri (pypi-uri "cssselect" version))
697 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
698 (build-system python-build-system)
700 ;; tests fail with message
701 ;; AttributeError: 'module' object has no attribute 'tests'
704 "https://pythonhosted.org/cssselect/")
706 "CSS3 selector parser and translator to XPath 1.0")
708 "Cssselect ia a Python module that parses CSS3 Selectors and translates
709 them to XPath 1.0 expressions. Such expressions can be used in lxml or
710 another XPath engine to find the matching elements in an XML or HTML document.")
711 (license license:bsd-3)))
713 (define-public python2-cssselect
714 (package-with-python2 python-cssselect))
716 (define-public python-openid-cla
718 (name "python-openid-cla")
723 (uri (pypi-uri "python-openid-cla" version))
726 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
727 (build-system python-build-system)
728 (arguments '(#:tests? #f)) ; No tests.
729 (home-page "https://github.com/puiterwijk/python-openid-cla/")
730 (synopsis "Implementation of the OpenID CLA extension for python-openid")
731 (description "@code{openid-cla} is an implementation of the OpenID
732 contributor license agreement extension for python-openid.")
733 (license license:bsd-3)))
735 (define-public python2-openid-cla
736 (package-with-python2 python-openid-cla))
738 (define-public python-openid-teams
740 (name "python-openid-teams")
745 (uri (pypi-uri "python-openid-teams" version))
748 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
749 (build-system python-build-system)
750 (arguments '(#:tests? #f)) ; No tests.
751 (home-page "https://github.com/puiterwijk/python-openid-teams/")
752 (synopsis "Implementation of the OpenID teams extension for python-openid")
754 "@code{openid-teams} is an implementation of the OpenID
755 teams extension for python-openid.")
756 (license license:bsd-3)))
758 (define-public python2-openid-teams
759 (package-with-python2 python-openid-teams))
761 (define-public python-tornado
763 (name "python-tornado")
768 (uri (pypi-uri "tornado" version))
771 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
772 (build-system python-build-system)
774 '(;; FIXME: Two tests error out with:
775 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
777 ;; (modify-phases %standard-phases
780 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
781 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
782 ;; (invoke "python" "-m" "tornado.test.runtests")
786 `(("python-certifi" ,python-certifi)))
787 (home-page "https://www.tornadoweb.org/")
788 (synopsis "Python web framework and asynchronous networking library")
790 "Tornado is a Python web framework and asynchronous networking library,
791 originally developed at FriendFeed. By using non-blocking network I/O,
792 Tornado can scale to tens of thousands of open connections, making it ideal
793 for long polling, WebSockets, and other applications that require a long-lived
794 connection to each user.")
795 (license license:asl2.0)
796 (properties `((python2-variant . ,(delay python2-tornado))))))
798 (define-public python2-tornado
799 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
800 (package (inherit tornado)
802 `(("python2-backport-ssl-match-hostname"
803 ,python2-backport-ssl-match-hostname)
804 ("python2-backports-abc" ,python2-backports-abc)
805 ("python2-singledispatch" ,python2-singledispatch)
806 ,@(package-propagated-inputs tornado))))))
808 (define-public python-tornado-http-auth
810 (name "python-tornado-http-auth")
815 (uri (pypi-uri "tornado-http-auth" version))
818 "0znrgqd7k2s4ia474xizi6h3061zj4sn5n6cq76bkwl3wwshifn5"))))
819 (build-system python-build-system)
821 `(("python-tornado" ,python-tornado)))
823 "https://github.com/gvalkov/tornado-http-auth")
825 "Digest and basic authentication module for Tornado")
827 "Provides support for adding authentication to services using the Tornado
828 web framework, either via the basic or digest authentication schemes.")
829 (license license:asl2.0)))
831 (define-public python-terminado
833 (name "python-terminado")
838 (uri (pypi-uri "terminado" version))
841 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
842 (build-system python-build-system)
844 `(("python-tornado" ,python-tornado)
845 ("python-ptyprocess" ,python-ptyprocess)))
847 `(("python-nose" ,python-nose)))
850 (modify-phases %standard-phases
852 (lambda _ (invoke "nosetests") #t)))))
853 (home-page "https://github.com/takluyver/terminado")
854 (synopsis "Terminals served to term.js using Tornado websockets")
855 (description "This package provides a Tornado websocket backend for the
856 term.js Javascript terminal emulator library.")
857 (license license:bsd-2)
858 (properties `((python2-variant . ,(delay python2-terminado))))))
860 (define-public python2-terminado
861 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
862 (package (inherit terminado)
864 `(("python2-backport-ssl-match-hostname"
865 ,python2-backport-ssl-match-hostname)
866 ("python2-futures" ,python2-futures)
867 ,@(package-propagated-inputs terminado))))))
869 (define-public python-wsgi-intercept
871 (name "python-wsgi-intercept")
875 (uri (pypi-uri "wsgi_intercept" version))
878 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
879 (build-system python-build-system)
881 `(("python-six" ,python-six)))
883 `(("python-pytest" ,python-pytest)
884 ("python-httplib2" ,python-httplib2)
885 ("python-requests" ,python-requests)
886 ("python-urllib3" ,python-urllib3)))
887 (synopsis "Puts a WSGI application in place of a real URI for testing")
888 (description "Wsgi_intercept installs a WSGI application in place of a real
889 URI for testing. Testing a WSGI application normally involves starting a
890 server at a local host and port, then pointing your test code to that address.
891 Instead, this library lets you intercept calls to any specific host/port
892 combination and redirect them into a WSGI application importable by your test
893 program. Thus, you can avoid spawning multiple processes or threads to test
895 (home-page "https://github.com/cdent/wsgi-intercept")
896 (license license:expat)))
898 (define-public python-webob
900 (name "python-webob")
905 (uri (pypi-uri "WebOb" version))
908 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
909 (build-system python-build-system)
911 `(("python-nose" ,python-nose)))
912 (home-page "https://webob.org/")
913 (synopsis "WSGI request and response object")
915 "WebOb provides wrappers around the WSGI request environment, and an
916 object to help create WSGI responses.")
917 (license license:expat)))
919 (define-public python2-webob
920 (package-with-python2 python-webob))
922 (define-public python-zope-event
924 (name "python-zope-event")
929 (uri (pypi-uri "zope.event" version))
932 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
933 (build-system python-build-system)
934 (home-page "https://pypi.python.org/pypi/zope.event")
935 (synopsis "Event publishing system for Python")
936 (description "Zope.event provides an event publishing API, intended for
937 use by applications which are unaware of any subscribers to their events. It
938 is a simple event-dispatching system on which more sophisticated event
939 dispatching systems can be built.")
940 (license license:zpl2.1)))
942 (define-public python2-zope-event
943 (package-with-python2 python-zope-event))
945 (define-public python-zope-interface
947 (name "python-zope-interface")
952 (uri (pypi-uri "zope.interface" version))
955 "1rgh2x3rcl9r0v0499kf78xy86rnmanajf4ywmqb943wpk50sg8v"))))
956 (build-system python-build-system)
958 `(("python-zope-event" ,python-zope-event)))
959 (home-page "https://github.com/zopefoundation/zope.interface")
960 (synopsis "Python implementation of the \"design by contract\"
962 (description "Zope.interface provides an implementation of \"object
963 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
964 conforming to a given API or contract.")
965 (license license:zpl2.1)))
967 (define-public python2-zope-interface
968 (package-with-python2 python-zope-interface))
970 (define-public python-zope-exceptions
972 (name "python-zope-exceptions")
977 (uri (pypi-uri "zope.exceptions" version))
980 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
981 (build-system python-build-system)
983 '(#:tests? #f)) ; circular dependency with zope.testrunner
985 `(("python-zope-interface" ,python-zope-interface)))
986 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
987 (synopsis "Zope exceptions")
988 (description "Zope.exceptions provides general-purpose exception types
989 that have uses outside of the Zope framework.")
990 (license license:zpl2.1)))
992 (define-public python2-zope-exceptions
993 (package-with-python2 python-zope-exceptions))
995 (define-public python-zope-testing
997 (name "python-zope-testing")
1002 (uri (pypi-uri "zope.testing" version))
1005 "0iiq54hjhkk2gpvzfjac70vyn4r0kw0ngvicshxbdwrkgf2gjq3g"))
1006 (modules '((guix build utils)))
1009 ;; Remove pre-compiled .pyc files backup files from source.
1010 (for-each delete-file (find-files "." "(\\.pyc|~)$"))
1012 (build-system python-build-system)
1013 (home-page "https://pypi.python.org/pypi/zope.testing")
1014 (synopsis "Zope testing helpers")
1015 (description "Zope.testing provides a number of testing utilities for HTML
1016 forms, HTTP servers, regular expressions, and more.")
1017 (license license:zpl2.1)))
1019 (define-public python2-zope-testing
1020 (package-with-python2 python-zope-testing))
1022 (define-public python-zope-testrunner
1024 (name "python-zope-testrunner")
1029 (uri (pypi-uri "zope.testrunner" version ".zip"))
1032 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
1033 (build-system python-build-system)
1035 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1037 `(("python-six" ,python-six)
1038 ;("python-zope-interface" ,python-zope-interface)
1039 ("python-zope-exceptions" ,python-zope-exceptions)
1040 ("python-zope-testing" ,python-zope-testing)
1043 `(("python-zope-interface" ,python-zope-interface)))
1044 (home-page "https://pypi.python.org/pypi/zope.testrunner")
1045 (synopsis "Zope testrunner script")
1046 (description "Zope.testrunner provides a script for running Python
1048 (license license:zpl2.1)))
1050 (define-public python2-zope-testrunner
1051 (let ((base (package-with-python2 python-zope-testrunner)))
1055 (append (package-native-inputs base)
1056 `(("python2-subunit" ,python2-subunit)
1057 ("python2-mimeparse" ,python2-mimeparse)))))))
1059 (define-public python-zope-i18nmessageid
1061 (name "python-zope-i18nmessageid")
1066 (uri (pypi-uri "zope.i18nmessageid" version))
1069 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
1070 (build-system python-build-system)
1071 (home-page "https://pypi.python.org/pypi/zope.i18nmessageid")
1072 (synopsis "Message identifiers for internationalization")
1073 (description "Zope.i18nmessageid provides facilities for declaring
1074 internationalized messages within program source text.")
1075 (license license:zpl2.1)))
1077 (define-public python2-zope-i18nmessageid
1078 (package-with-python2 python-zope-i18nmessageid))
1080 (define-public python-zope-schema
1082 (name "python-zope-schema")
1087 (uri (pypi-uri "zope.schema" version))
1090 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
1091 (build-system python-build-system)
1093 '(#:tests? #f)) ; FIXME: Tests can't find zope.event.
1095 `(("python-zope-event" ,python-zope-event)
1096 ("python-zope-exceptions" ,python-zope-exceptions)
1097 ("python-zope-interface" ,python-zope-interface)))
1099 `(("python-zope-testing" ,python-zope-testing)
1100 ("python-coverage" ,python-coverage)
1101 ("python-nose" ,python-nose)))
1102 (home-page "https://pypi.python.org/pypi/zope.schema")
1103 (synopsis "Zope data schemas")
1104 (description "Zope.scheme provides extensions to zope.interface for
1105 defining data schemas.")
1106 (license license:zpl2.1)))
1108 (define-public python2-zope-schema
1109 (package-with-python2 python-zope-schema))
1111 (define-public python-zope-configuration
1113 (name "python-zope-configuration")
1117 (uri (pypi-uri "zope.configuration" version))
1120 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
1121 (build-system python-build-system)
1123 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1125 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1126 ("python-zope-schema" ,python-zope-schema)))
1127 (home-page "https://pypi.python.org/pypi/zope.configuration")
1128 (synopsis "Zope Configuration Markup Language")
1129 (description "Zope.configuration implements ZCML, the Zope Configuration
1131 (license license:zpl2.1)))
1133 (define-public python2-zope-configuration
1134 (package-with-python2 python-zope-configuration))
1136 (define-public python-zope-proxy
1138 (name "python-zope-proxy")
1143 (uri (pypi-uri "zope.proxy" version))
1146 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
1147 (build-system python-build-system)
1149 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1151 `(("python-zope-interface" ,python-zope-interface)))
1152 (home-page "https://pypi.python.org/pypi/zope.proxy")
1153 (synopsis "Generic, transparent proxies")
1154 (description "Zope.proxy provides generic, transparent proxies for Python.
1155 Proxies are special objects which serve as mostly-transparent wrappers around
1156 another object, intervening in the apparent behavior of the wrapped object
1157 only when necessary to apply the policy (e.g., access checking, location
1158 brokering, etc.) for which the proxy is responsible.")
1159 (license license:zpl2.1)))
1161 (define-public python2-zope-proxy
1162 (package-with-python2 python-zope-proxy))
1164 (define-public python-zope-location
1166 (name "python-zope-location")
1171 (uri (pypi-uri "zope.location" version))
1174 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
1175 (build-system python-build-system)
1177 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1179 `(("python-zope-proxy" ,python-zope-proxy)
1180 ("python-zope-schema" ,python-zope-schema)))
1181 (home-page "https://pypi.python.org/pypi/zope.location/")
1182 (synopsis "Zope location library")
1183 (description "Zope.location implements the concept of \"locations\" in
1184 Zope3, which are are special objects that have a structural location.")
1185 (license license:zpl2.1)))
1187 (define-public python2-zope-location
1188 (package-with-python2 python-zope-location))
1190 (define-public python-zope-security
1192 (name "python-zope-security")
1197 (uri (pypi-uri "zope.security" version))
1200 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
1201 (build-system python-build-system)
1203 '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
1205 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1206 ("python-zope-proxy" ,python-zope-proxy)
1207 ("python-zope-schema" ,python-zope-schema)))
1209 `(("python-six" ,python-six)
1210 ("python-zope-component" ,python-zope-component)
1211 ("python-zope-configuration" ,python-zope-configuration)
1212 ("python-zope-location" ,python-zope-location)
1213 ("python-zope-testrunner" ,python-zope-testrunner)
1214 ("python-zope-testing" ,python-zope-testing)))
1215 (home-page "https://pypi.python.org/pypi/zope.security")
1216 (synopsis "Zope security framework")
1217 (description "Zope.security provides a generic mechanism to implement
1218 security policies on Python objects.")
1219 (license license:zpl2.1)))
1221 (define-public python2-zope-security
1222 (let ((zope-security (package-with-python2 python-zope-security)))
1223 (package (inherit zope-security)
1225 `(("python2-zope-testrunner" ,python2-zope-testrunner)
1227 "python-zope-testrunner"
1228 (package-propagated-inputs zope-security)))))))
1230 (define-public python-zope-component
1232 (name "python-zope-component")
1237 (uri (pypi-uri "zope.component" version))
1240 "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv"))))
1241 (build-system python-build-system)
1243 ;; Skip tests due to circular dependency with python-zope-security.
1246 `(("python-zope-testing" ,python-zope-testing)))
1248 `(("python-zope-event" ,python-zope-event)
1249 ("python-zope-interface" ,python-zope-interface)
1250 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1251 ("python-zope-configuration" ,python-zope-configuration)))
1252 (home-page "https://github.com/zopefoundation/zope.component")
1253 (synopsis "Zope Component Architecture")
1254 (description "Zope.component represents the core of the Zope Component
1255 Architecture. Together with the zope.interface package, it provides
1256 facilities for defining, registering and looking up components.")
1257 (license license:zpl2.1)))
1259 (define-public python2-zope-component
1260 (package-with-python2 python-zope-component))
1262 (define-public python-ndg-httpsclient
1264 (name "python-ndg-httpsclient")
1268 (uri (pypi-uri "ndg_httpsclient" version))
1271 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1272 (build-system python-build-system)
1274 '(;; The tests appear to require networking.
1277 `(("python-pyopenssl" ,python-pyopenssl)))
1278 (synopsis "HTTPS support for Python's httplib and urllib2")
1279 (description "This is a HTTPS client implementation for httplib and urllib2
1280 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1281 over the default provided with Python and, importantly, enables full
1282 verification of the SSL peer.")
1283 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1284 (license license:bsd-3)))
1286 ;; python2-openssl requires special care, so package-with-python2 is
1288 (define-public python2-ndg-httpsclient
1289 (package (inherit python-ndg-httpsclient)
1290 (name "python2-ndg-httpsclient")
1292 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1293 ((#:python _) python-2)))
1295 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1297 (define-public python-websocket-client
1299 (name "python-websocket-client")
1304 (uri (pypi-uri "websocket_client" version))
1307 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
1308 (build-system python-build-system)
1310 `(("python-six" ,python-six)))
1311 (home-page "https://github.com/liris/websocket-client")
1312 (synopsis "WebSocket client for Python")
1313 (description "The Websocket-client module provides the low level APIs for
1314 WebSocket usage in Python programs.")
1315 (properties `((python2-variant . ,(delay python2-websocket-client))))
1316 (license license:lgpl2.1+)))
1318 (define-public python2-websocket-client
1319 (let ((base (package-with-python2
1320 (strip-python2-variant python-websocket-client))))
1324 `(("python2-backport-ssl-match-hostname"
1325 ,python2-backport-ssl-match-hostname)
1326 ,@(package-native-inputs base))))))
1328 (define-public python-requests
1330 (name "python-requests")
1334 (uri (pypi-uri "requests" version))
1337 "1d5ybh11jr5sm7xp6mz8fyc7vrp4syifds91m7sj60xalal0gq0i"))))
1338 (build-system python-build-system)
1340 `(("python-certifi" ,python-certifi)
1341 ("python-chardet" ,python-chardet)
1342 ("python-idna" ,python-idna)
1343 ("python-urllib3" ,python-urllib3)))
1345 ;; FIXME: Some tests require network access.
1347 (home-page "http://python-requests.org/")
1348 (synopsis "Python HTTP library")
1350 "Requests is a Python HTTP client library. It aims to be easier to use
1351 than Python’s urllib2 library.")
1352 (license license:asl2.0)))
1354 ;; Some software requires an older version of Requests, notably Docker
1356 (define-public python-requests-2.7
1357 (package (inherit python-requests)
1361 (uri (pypi-uri "requests" version))
1364 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1366 (define-public python2-requests
1367 (package-with-python2 python-requests))
1369 (define-public python-requests-mock
1371 (name "python-requests-mock")
1376 (uri (pypi-uri "requests-mock" version))
1379 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1380 (build-system python-build-system)
1382 `(("python-requests" ,python-requests)
1383 ("python-six" ,python-six)))
1385 `(("python-pbr" ,python-pbr)
1386 ("python-discover" ,python-discover)
1387 ("python-docutils" ,python-docutils)
1388 ("python-fixtures" ,python-fixtures)
1389 ("python-mock" ,python-mock)
1390 ("python-sphinx" ,python-sphinx)
1391 ("python-testrepository" ,python-testrepository)
1392 ("python-testtools" ,python-testtools)))
1393 (home-page "https://requests-mock.readthedocs.org/")
1394 (synopsis "Mock out responses from the requests package")
1396 "This module provides a building block to stub out the HTTP requests
1397 portions of your testing code.")
1398 (properties `((python2-variant . ,(delay python2-requests-mock))))
1399 (license license:asl2.0)))
1401 (define-public python2-requests-mock
1402 (package (inherit (package-with-python2
1403 (strip-python2-variant python-requests-mock)))
1405 `(#:python ,python-2
1406 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1409 (define-public python-requests-toolbelt
1411 (name "python-requests-toolbelt")
1415 (uri (pypi-uri "requests-toolbelt" version))
1418 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1419 (build-system python-build-system)
1421 `(("python-betamax" ,python-betamax)
1422 ("python-mock" ,python-mock)
1423 ("python-pytest" ,python-pytest)))
1425 `(("python-requests" ,python-requests)))
1426 (synopsis "Extensions to python-requests")
1427 (description "This is a toolbelt of useful classes and functions to be used
1428 with python-requests.")
1429 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1430 (license license:asl2.0)))
1432 (define-public python2-requests-toolbelt
1433 (package-with-python2 python-requests-toolbelt))
1435 (define-public python-oauthlib
1437 (name "python-oauthlib")
1441 (uri (pypi-uri "oauthlib" version))
1444 "163jg4a8f7c5ki655grrr47kgljy12wri3qly7ijf64sk1fjrqqc"))))
1445 (build-system python-build-system)
1447 `(#:phases (modify-phases %standard-phases
1450 (invoke "pytest" "-vv"))))))
1452 `(("python-pytest" ,python-pytest)
1453 ("python-pytest-cov" ,python-pytest-cov)
1454 ("python-mock" ,python-mock)))
1456 `(("python-cryptography" ,python-cryptography)
1457 ("python-pyjwt" ,python-pyjwt)
1458 ("python-blinker" ,python-blinker)))
1459 (home-page "https://github.com/oauthlib/oauthlib")
1460 (synopsis "OAuth implementation for Python")
1462 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1463 OAuth request-signing logic.")
1464 (license license:bsd-3)))
1466 (define-public python2-oauthlib
1467 (package-with-python2 python-oauthlib))
1469 (define-public python-rauth
1471 (name "python-rauth")
1476 (uri (pypi-uri "rauth" version))
1479 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1480 (build-system python-build-system)
1482 `(#:test-target "check"))
1484 `(("python-requests" ,python-requests)))
1485 (home-page "https://github.com/litl/rauth")
1486 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1488 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1489 provides service wrappers for convenient connection initialization and
1490 authenticated session objects providing things like keep-alive.")
1491 (license license:expat)
1492 (properties `((python2-variant . ,(delay python2-rauth))))))
1494 (define-public python2-rauth
1495 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1498 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1499 ,@(package-native-inputs base))))))
1501 (define-public python-urllib3
1503 (name "python-urllib3")
1508 (uri (pypi-uri "urllib3" version))
1511 "0cij8qcvvpj62g1q8n785qjkdymfh4b7vf45si4sw64l41rr3rfv"))))
1512 (build-system python-build-system)
1513 (arguments `(#:tests? #f))
1515 `(;; These 5 inputs are used to build urrlib3[secure]
1516 ("python-certifi" ,python-certifi)
1517 ("python-cryptography" ,python-cryptography)
1518 ("python-idna" ,python-idna)
1519 ("python-ipaddress" ,python-ipaddress)
1520 ("python-pyopenssl" ,python-pyopenssl)
1521 ("python-pysocks" ,python-pysocks)))
1522 (home-page "https://urllib3.readthedocs.io/")
1523 (synopsis "HTTP library with thread-safe connection pooling")
1525 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1526 can reuse the same socket connection for multiple requests, it can POST files,
1527 supports url redirection and retries, and also gzip and deflate decoding.")
1528 (license license:expat)))
1530 (define-public python2-urllib3
1531 (package-with-python2 python-urllib3))
1533 (define-public awscli
1540 (uri (pypi-uri name version))
1543 "0sispclx263lybbk19zp1n9yhg8xxx4jddypzgi24vpjaqnsbwlc"))))
1544 (build-system python-build-system)
1546 ;; FIXME: The 'pypi' release does not contain tests.
1549 (modify-phases %standard-phases
1550 (add-after 'unpack 'fix-reference-to-groff
1552 (substitute* "awscli/help.py"
1553 (("if not self._exists_on_path\\('groff'\\):") "")
1554 (("raise ExecutableNotFoundError\\('groff'\\)") "")
1555 (("cmdline = \\['groff'")
1556 (string-append "cmdline = ['" (which "groff") "'")))
1559 `(("python-colorama" ,python-colorama)
1560 ("python-botocore" ,python-botocore)
1561 ("python-s3transfer" ,python-s3transfer)
1562 ("python-docutils" ,python-docutils)
1563 ("python-pyyaml" ,python-pyyaml)
1564 ("python-rsa" ,python-rsa)))
1566 `(("groff" ,groff)))
1567 (home-page "https://aws.amazon.com/cli/")
1568 (synopsis "Command line client for AWS")
1569 (description "AWS CLI provides a unified command line interface to the
1570 Amazon Web Services (AWS) API.")
1571 (license license:asl2.0)))
1573 (define-public python-wsgiproxy2
1575 (name "python-wsgiproxy2")
1580 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
1583 "19d9dva282vfjs784i0zkxp078lxfz4h3f621z30ij9wbf5rba6a"))))
1584 (build-system python-build-system)
1586 `(("python-webtest" ,python-webtest)))
1588 `(("python-requests" ,python-requests)
1589 ("python-six" ,python-six)
1590 ("python-urllib3" ,python-urllib3)
1591 ("python-webob" ,python-webob)))
1592 (home-page "https://github.com/gawel/WSGIProxy2/")
1593 (synopsis "WSGI Proxy with various http client backends")
1594 (description "WSGI turns HTTP requests into WSGI function calls.
1595 WSGIProxy turns WSGI function calls into HTTP requests.
1596 It also includes code to sign requests and pass private data,
1597 and to spawn subprocesses to handle requests.")
1598 (license license:expat)))
1600 (define-public python2-wsgiproxy2
1601 (package-with-python2 python-wsgiproxy2))
1603 (define-public python-pastedeploy
1605 (name "python-pastedeploy")
1610 (uri (pypi-uri "PasteDeploy" version))
1613 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
1614 (build-system python-build-system)
1616 `(("python-nose" ,python-nose)))
1617 (home-page "http://pythonpaste.org/deploy/")
1619 "Load, configure, and compose WSGI applications and servers")
1621 "This tool provides code to load WSGI applications and servers from URIs;
1622 these URIs can refer to Python Eggs for INI-style configuration files. Paste
1623 Script provides commands to serve applications based on this configuration
1625 (license license:expat)))
1627 (define-public python2-pastedeploy
1628 (package-with-python2 python-pastedeploy))
1630 (define-public python-webtest
1632 (name "python-webtest")
1637 (uri (pypi-uri "WebTest" version))
1640 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
1641 (build-system python-build-system)
1643 ;; Tests require python-pyquery, which creates a circular dependency.
1646 `(("python-waitress" ,python-waitress)
1647 ("python-webob" ,python-webob)
1648 ("python-six" ,python-six)
1649 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1650 (home-page "http://webtest.pythonpaste.org/")
1651 (synopsis "Helper to test WSGI applications")
1652 (description "Webtest allows you to test your Python web applications
1653 without starting an HTTP server. It supports anything that supports the
1655 (license license:expat)))
1657 (define-public python2-webtest
1658 (package-with-python2 python-webtest))
1660 (define-public python-flask
1662 (name "python-flask")
1666 (uri (pypi-uri "Flask" version))
1669 "1wxnhjlxwwjhjxmghykjhllpahv5pkdc5hln4ab6nab43s26sz5d"))))
1670 (build-system python-build-system)
1673 (modify-phases %standard-phases
1676 (invoke "python" "-m" "pytest"))))))
1678 `(("python-pytest" ,python-pytest)))
1680 `(("python-itsdangerous" ,python-itsdangerous)
1681 ("python-jinja2" ,python-jinja2)
1682 ("python-click" ,python-click)
1683 ("python-werkzeug" ,python-werkzeug)))
1684 (home-page "https://www.palletsprojects.com/p/flask/")
1685 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
1686 (description "Flask is a micro web framework based on the Werkzeug toolkit
1687 and Jinja2 template engine. It is called a micro framework because it does not
1688 presume or force a developer to use a particular tool or library.")
1689 (license license:bsd-3)))
1691 (define-public python2-flask
1692 (package-with-python2 python-flask))
1694 (define-public python-flask-wtf
1696 (name "python-flask-wtf")
1701 (uri (pypi-uri "Flask-WTF" version))
1704 "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990"))))
1705 (build-system python-build-system)
1708 (modify-phases %standard-phases
1709 (add-before 'check 'drop-failing-test
1711 ;; FIXME: This file tries resolving an external server, which
1712 ;; fails. Try to patch out the offending section instead of
1713 ;; deleting the whole thing.
1714 (delete-file "tests/test_recaptcha.py")
1717 `(("python-flask-babel" ,python-flask-babel)
1718 ("python-babel" ,python-babel)
1719 ("python-wtforms" ,python-wtforms)))
1721 `(("python-nose" ,python-nose)))
1722 (home-page "https://github.com/lepture/flask-wtf")
1723 (synopsis "Simple integration of Flask and WTForms")
1724 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
1725 upload, and reCAPTCHA.")
1726 (license license:bsd-3)))
1728 (define-public python2-flask-wtf
1729 (package-with-python2 python-flask-wtf))
1731 (define-public python-flask-multistatic
1733 (name "python-flask-multistatic")
1738 (uri (pypi-uri "flask-multistatic" version))
1741 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
1742 (build-system python-build-system)
1744 `(("python-flask" ,python-flask)))
1745 (home-page "https://pagure.io/flask-multistatic")
1746 (synopsis "Flask plugin to allow overriding static files")
1747 (description "@code{flask-multistatic} is a flask plugin that adds support
1748 for overriding static files.")
1749 (license license:gpl3+)))
1751 (define-public python2-flask-multistatic
1752 (package-with-python2 python-flask-multistatic))
1754 (define-public python-cookies
1756 (name "python-cookies")
1760 (uri (pypi-uri "cookies" version))
1763 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
1764 (build-system python-build-system)
1766 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
1769 `(("python-pytest" ,python2-pytest)))
1770 (synopsis "HTTP cookie parser and renderer")
1771 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
1773 (home-page "https://gitlab.com/sashahart/cookies")
1774 (license license:expat)))
1776 (define-public python2-cookies
1777 (package-with-python2 python-cookies))
1779 (define-public python-responses
1781 (name "python-responses")
1785 (uri (pypi-uri "responses" version))
1788 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
1789 (build-system python-build-system)
1791 `(;; Test suite is not distributed:
1792 ;; https://github.com/getsentry/responses/issues/38
1795 `(("python-mock" ,python-mock)))
1797 `(("python-requests" ,python-requests)
1798 ("python-cookies" ,python-cookies)
1799 ("python-six" ,python-six)))
1800 (home-page "https://github.com/getsentry/responses")
1801 (synopsis "Utility for mocking out the `requests` Python library")
1802 (description "A utility library for mocking out the `requests` Python
1804 (license license:asl2.0)))
1806 (define-public python2-responses
1807 (package-with-python2 python-responses))
1809 (define-public python-grequests
1811 (name "python-grequests")
1816 (uri (pypi-uri "grequests" version))
1819 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
1820 (build-system python-build-system)
1822 `(("python-gevent" ,python-gevent)
1823 ("python-requests" ,python-requests)))
1825 `(("python-nose" ,python-nose)))
1826 (home-page "https://github.com/kennethreitz/grequests")
1827 (synopsis "Python library for asynchronous HTTP requests")
1828 (description "GRequests is a Python library that allows you to use
1829 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
1830 (license license:bsd-2)))
1832 (define-public python-geventhttpclient
1834 (name "python-geventhttpclient")
1838 (uri (pypi-uri "geventhttpclient" version))
1841 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
1842 (modules '((guix build utils)))
1845 ;; Delete pre-compiled files.
1846 (for-each delete-file (find-files "src/geventhttpclient"
1849 (build-system python-build-system)
1852 (modify-phases %standard-phases
1853 (add-after 'unpack 'delete-network-tests
1855 (delete-file "src/geventhttpclient/tests/test_client.py")
1858 (add-after 'install 'check
1859 (lambda* (#:key inputs outputs #:allow-other-keys)
1860 (add-installed-pythonpath inputs outputs)
1861 (invoke "py.test" "src/geventhttpclient/tests" "-v"
1862 ;; Append the test modules to sys.path to avoid
1863 ;; namespace conflict which breaks SSL tests.
1864 "--import-mode=append")
1867 `(("python-pytest" ,python-pytest)))
1869 `(("python-certifi" ,python-certifi)
1870 ("python-gevent" ,python-gevent)
1871 ("python-six" ,python-six)))
1872 (home-page "https://github.com/gwik/geventhttpclient")
1873 (synopsis "HTTP client library for gevent")
1874 (description "@code{python-geventhttpclient} is a high performance,
1875 concurrent HTTP client library for python using @code{gevent}.")
1876 (license license:expat)))
1878 (define-public python2-geventhttpclient
1879 (package-with-python2 python-geventhttpclient))
1881 (define-public python-requests-oauthlib
1883 (name "python-requests-oauthlib")
1888 (uri (pypi-uri "requests-oauthlib" version))
1891 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
1892 (build-system python-build-system)
1895 (modify-phases %standard-phases
1896 ;; removes tests that require network access
1897 (add-before 'check 'pre-check
1899 (delete-file "tests/test_core.py")
1902 `(("python-pyjwt" ,python-pyjwt)
1903 ("python-requests-mock" ,python-requests-mock)
1904 ("python-mock" ,python-mock)))
1906 `(("python-oauthlib" ,python-oauthlib)
1907 ("python-requests" ,python-requests)))
1909 "https://github.com/requests/requests-oauthlib")
1911 "OAuthlib authentication support for Requests")
1913 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
1914 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
1915 (license license:isc)))
1917 (define-public python2-requests-oauthlib
1918 (package-with-python2 python-requests-oauthlib))
1920 (define-public python-url
1926 (uri (pypi-uri "url" version))
1929 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
1930 (build-system python-build-system)
1932 `(("python-publicsuffix" ,python-publicsuffix)))
1934 `(("python-coverage" ,python-coverage)
1935 ("python-nose" ,python-nose)))
1937 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
1938 (home-page "https://github.com/seomoz/url-py")
1939 (synopsis "URL Parsing")
1940 (description "Library for parsing urls.")
1941 (license license:expat)
1942 (properties `((python2-variant . ,(delay python2-url))))))
1944 (define-public python2-url
1945 (let ((base (package-with-python2 (strip-python2-variant python-url))))
1946 (package (inherit base)
1948 `(("python2-publicsuffix" ,python2-publicsuffix))))))
1950 (define-public python-cachecontrol
1952 (name "python-cachecontrol")
1957 ;; Pypi does not have tests.
1959 "https://github.com/ionrock/cachecontrol/archive/v"
1961 (file-name (string-append name "-" version ".tar.gz"))
1964 "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw"))))
1965 (build-system python-build-system)
1968 (modify-phases %standard-phases
1971 ;; Drop test that requires internet access.
1972 (delete-file "tests/test_regressions.py")
1973 (setenv "PYTHONPATH"
1974 (string-append (getcwd) "/build/lib:"
1975 (getenv "PYTHONPATH")))
1976 (invoke "py.test" "-vv")
1979 `(("python-pytest" ,python-pytest)
1980 ("python-redis" ,python-redis)
1981 ("python-webtest" ,python-webtest)
1982 ("python-mock" ,python-mock)))
1984 `(("python-requests" ,python-requests)
1985 ("python-lockfile" ,python-lockfile)))
1986 (home-page "https://github.com/ionrock/cachecontrol")
1987 (synopsis "The httplib2 caching algorithms for use with requests")
1988 (description "CacheControl is a port of the caching algorithms in
1989 @code{httplib2} for use with @code{requests} session objects.")
1990 (license license:asl2.0)))
1992 (define-public python2-cachecontrol
1993 (package-with-python2 python-cachecontrol))
1995 (define-public python-betamax
1997 (name "python-betamax")
2002 (uri (pypi-uri "betamax" version))
2005 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
2006 (build-system python-build-system)
2008 '(;; Many tests fail because they require networking.
2011 `(("python-requests" ,python-requests)))
2012 (home-page "https://github.com/sigmavirus24/betamax")
2013 (synopsis "Record HTTP interactions with python-requests")
2014 (description "Betamax will record your test suite's HTTP interactions and
2015 replay them during future tests. It is designed to work with python-requests.")
2016 (license license:expat)))
2018 (define-public python2-betamax
2019 (package-with-python2 python-betamax))
2021 (define-public python-betamax-matchers
2023 (name "python-betamax-matchers")
2028 (uri (pypi-uri "betamax-matchers" version))
2031 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
2032 (build-system python-build-system)
2034 `(("python-betamax" ,python-betamax)
2035 ("python-requests-toolbelt" ,python-requests-toolbelt)))
2036 (home-page "https://github.com/sigmavirus24/betamax_matchers")
2037 (synopsis "VCR imitation for python-requests")
2038 (description "@code{betamax-matchers} provides a set of Matchers for
2040 (license license:asl2.0)))
2042 (define-public python2-betamax-matchers
2043 (package-with-python2 python-betamax-matchers))
2045 (define-public python-s3transfer
2047 (name "python-s3transfer")
2051 (uri (pypi-uri "s3transfer" version))
2054 "08fhj73b1ai52hrs2q3nggshq3pswn1gq8ch3m009cb2v2vmqggj"))))
2055 (build-system python-build-system)
2058 (modify-phases %standard-phases
2061 ;; Some of the 'integration' tests require network access or
2062 ;; login credentials.
2063 (invoke "nosetests" "--exclude=integration")
2066 `(("python-docutils" ,python-docutils)
2067 ("python-mock" ,python-mock)
2068 ("python-nose" ,python-nose)))
2070 `(("python-botocore" ,python-botocore)
2071 ("python-urllib3" ,python-urllib3)))
2072 (synopsis "Amazon S3 Transfer Manager")
2073 (description "S3transfer is a Python library for managing Amazon S3
2075 (home-page "https://github.com/boto/s3transfer")
2076 (license license:asl2.0)
2077 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2079 (define-public python2-s3transfer
2080 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2084 `(("python2-futures" ,python2-futures)
2085 ,@(package-native-inputs base))))))
2087 (define-public python-slimit
2089 (name "python-slimit")
2094 (uri (pypi-uri "slimit" version ".zip"))
2097 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2098 (build-system python-build-system)
2100 `(("unzip" ,unzip)))
2102 `(("python-ply" ,python-ply)))
2103 (home-page "https://slimit.readthedocs.io/")
2104 (synopsis "JavaScript minifier, parser and lexer written in Python")
2106 "SlimIt is a JavaScript minifier written in Python. It compiles
2107 JavaScript into more compact code so that it downloads and runs faster.
2108 SlimIt also provides a library that includes a JavaScript parser, lexer,
2109 pretty printer and a tree visitor.")
2110 (license license:expat)))
2112 (define-public python-flask-restful
2114 (name "python-flask-restful")
2119 (uri (pypi-uri "Flask-RESTful" version))
2122 "1a9cbwkr6krryyzq4sd3f415nkkc6dyfls5i3pgyibs94g0hw97q"))))
2123 (build-system python-build-system)
2125 `(("python-aniso8601" ,python-aniso8601)
2126 ("python-flask" ,python-flask)
2127 ("python-pycrypto" ,python-pycrypto)
2128 ("python-pytz" ,python-pytz)))
2130 `(;; Optional dependency of Flask. Tests need it.
2131 ("python-blinker" ,python-blinker)
2132 ("python-mock" ,python-mock) ; For tests
2133 ("python-nose" ,python-nose) ; For tests
2134 ("python-sphinx" ,python-sphinx)))
2136 "https://www.github.com/flask-restful/flask-restful/")
2138 "Flask module for creating REST APIs")
2140 "This package contains a Flask module for creating REST APIs.")
2141 (license license:bsd-3)))
2143 (define-public python-flask-basicauth
2145 (name "python-flask-basicauth")
2150 (uri (pypi-uri "Flask-BasicAuth" version))
2153 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2154 (build-system python-build-system)
2156 `(("python-flask" ,python-flask)))
2158 "https://github.com/jpvanhal/flask-basicauth")
2160 "HTTP basic access authentication for Flask")
2162 "This package provides HTTP basic access authentication for Flask.")
2163 (license license:bsd-3)))
2165 (define-public python-flask-sqlalchemy
2167 (name "python-flask-sqlalchemy")
2172 (uri (pypi-uri "Flask-SQLAlchemy" version))
2175 "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"))))
2176 (build-system python-build-system)
2178 `(("python-flask" ,python-flask)
2179 ("python-sqlalchemy" ,python-sqlalchemy)))
2181 "https://github.com/mitsuhiko/flask-sqlalchemy")
2183 "Module adding SQLAlchemy support to your Flask application")
2185 "This package adds SQLAlchemy support to your Flask application.")
2186 (license license:bsd-3)))
2188 (define-public python-flask-restplus
2190 (name "python-flask-restplus")
2195 (uri (pypi-uri "flask-restplus" version))
2198 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2199 (build-system python-build-system)
2201 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2203 ;; (modify-phases %standard-phases
2206 ;; (invoke "nosetests")
2209 `(("python-aniso8601" ,python-aniso8601)
2210 ("python-flask" ,python-flask)
2211 ("python-jsonschema" ,python-jsonschema)
2212 ("python-pytz" ,python-pytz)
2213 ("python-six" ,python-six)))
2215 `(("python-tzlocal" ,python-tzlocal)
2216 ("python-blinker" ,python-blinker)
2217 ("python-nose" ,python-nose)
2218 ("python-rednose" ,python-rednose)))
2219 (home-page "https://github.com/noirbizarre/flask-restplus")
2220 (synopsis "Framework for documented API development with Flask")
2221 (description "This package provides a framework for API development with
2222 the Flask web framework in Python. It is similar to package
2223 @code{python-flask-restful} but supports the @code{python-swagger}
2224 documentation builder.")
2225 (license license:expat)))
2227 (define-public python-flask-restful-swagger
2229 (name "python-flask-restful-swagger")
2234 (uri (pypi-uri "flask-restful-swagger" version))
2237 "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v"))))
2238 (build-system python-build-system)
2240 `(("python-flask-restful" ,python-flask-restful)))
2241 (home-page "https://github.com/rantav/flask-restful-swagger")
2242 (synopsis "Extract Swagger specs from Flask-Restful projects")
2243 (description "This package lets you extract Swagger API documentation
2244 specs from your Flask-Restful projects.")
2245 (license license:expat)))
2247 (define-public python2-flask-restful-swagger
2248 (package-with-python2 python-flask-restful-swagger))
2250 (define-public python-htmlmin
2252 (name "python-htmlmin")
2257 (uri (pypi-uri "htmlmin" version))
2260 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2262 `(#:tests? #f)) ; no tests
2263 (build-system python-build-system)
2264 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2265 (synopsis "HTML minifier")
2266 (description "@code{htmlmin} is an HTML minifier that just works.
2267 It comes with safe defaults and easily configurable options.")
2268 (license license:bsd-3)))
2270 (define-public python2-htmlmin
2271 (package-with-python2 python-htmlmin))
2273 (define-public python-flask-htmlmin
2275 (name "python-flask-htmlmin")
2280 (uri (pypi-uri "Flask-HTMLmin" version))
2283 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2285 `(("python-flask" ,python-flask)
2286 ("python-htmlmin" ,python-htmlmin)))
2287 (build-system python-build-system)
2288 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2289 (synopsis "HTML response minifier for Flask")
2291 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2292 (license license:bsd-3)))
2294 (define-public python2-flask-htmlmin
2295 (package-with-python2 python-flask-htmlmin))
2297 (define-public python-jsmin
2299 (name "python-jsmin")
2304 (uri (pypi-uri "jsmin" version))
2307 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2308 (build-system python-build-system)
2309 (home-page "https://github.com/tikitu/jsmin/")
2310 (synopsis "Python JavaScript minifier")
2312 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2313 on the command line.")
2314 (license license:expat)))
2316 (define-public python-flask-login
2318 (name "python-flask-login")
2324 (url "https://github.com/maxcountryman/flask-login.git")
2326 (file-name (git-file-name name version))
2328 (base32 "1rj0qwyxapxnp84fi4lhmvh3d91fdiwz7hibw77x3d5i72knqaa9"))))
2331 (modify-phases %standard-phases
2332 (add-before 'check 'avoid-yanc
2333 ;; Work around '.nosetests-real: error: no such option: --with-yanc'.
2335 (setenv "NOCOLOR" "set")
2337 (build-system python-build-system)
2339 `(("python-flask" ,python-flask)))
2342 `(("python-blinker" ,python-blinker)
2343 ("python-mock" ,python-mock)
2344 ("python-nose" ,python-nose)
2345 ("python-pep8" ,python-pep8)
2346 ("python-pyflakes" ,python-pyflakes)
2347 ("python-semantic-version" ,python-semantic-version)
2348 ("python-werkzeug" ,python-werkzeug)))
2349 (home-page "https://github.com/maxcountryman/flask-login")
2350 (synopsis "User session management for Flask")
2352 "@code{Flask-Login} provides user session management for Flask. It
2353 handles the common tasks of logging in, logging out, and remembering your
2354 users' sessions over extended periods of time.")
2355 (license license:expat)))
2357 (define-public python2-flask-login
2358 (package-with-python2 python-flask-login))
2360 (define-public python-oauth2client
2362 (name "python-oauth2client")
2367 (uri (pypi-uri "oauth2client" version))
2370 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2371 (build-system python-build-system)
2375 `(("python-httplib2" ,python-httplib2)
2376 ("python-pyasn1" ,python-pyasn1)
2377 ("python-pyasn1-modules" ,python-pyasn1-modules)
2378 ("python-rsa" ,python-rsa)
2379 ("python-six" ,python-six)))
2380 (home-page "https://github.com/google/oauth2client/")
2381 (synopsis "OAuth 2.0 client library")
2382 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2383 library for Python")
2384 (license license:asl2.0)))
2386 (define-public python2-oauth2client
2387 (package-with-python2 python-oauth2client))
2389 (define-public python-flask-oidc
2391 (name "python-flask-oidc")
2396 (uri (pypi-uri "flask-oidc" version))
2399 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
2400 (build-system python-build-system)
2402 `(("python-flask" ,python-flask)
2403 ("python-itsdangerous" ,python-itsdangerous)
2404 ("python-oauth2client" ,python-oauth2client)
2405 ("python-six" ,python-six)))
2407 `(("python-nose" ,python-nose)
2408 ("python-mock" ,python-mock)))
2409 (home-page "https://github.com/puiterwijk/flask-oidc")
2410 (synopsis "OpenID Connect extension for Flask")
2411 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2413 (license license:bsd-2)))
2415 (define-public python-webassets
2417 (name "python-webassets")
2422 (uri (pypi-uri "webassets" version))
2425 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2426 (build-system python-build-system)
2428 `(("python-jinja2" ,python-jinja2)
2429 ("python-mock" ,python-mock)
2430 ("python-nose" ,python-nose)
2431 ("python-pytest" ,python-pytest)))
2432 (home-page "https://github.com/miracle2k/webassets")
2433 (synopsis "Media asset management")
2434 (description "Merges, minifies and compresses Javascript and CSS files,
2435 supporting a variety of different filters, including YUI, jsmin, jspacker or
2436 CSS tidy. Also supports URL rewriting in CSS files.")
2437 (license license:bsd-2)))
2439 (define-public python-cssmin
2441 (name "python-cssmin")
2446 (uri (pypi-uri "cssmin" version))
2449 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2450 (build-system python-build-system)
2451 (home-page "https://github.com/zacharyvoase/cssmin")
2452 (synopsis "Python port of the YUI CSS Compressor")
2453 (description "Python port of the YUI CSS Compressor.")
2454 (license (list license:expat license:bsd-3))))
2456 (define-public python2-cssmin
2457 (package-with-python2 python-cssmin))
2459 (define-public python-elasticsearch
2461 (name "python-elasticsearch")
2466 (uri (pypi-uri "elasticsearch" version))
2469 "1kjxl45yvvgfb5fmamx0kfsfg9pzphiqrwbkns3s28r1w7ya74cd"))))
2470 (build-system python-build-system)
2472 `(("python-mock" ,python-mock)
2473 ("python-nosexcover" ,python-nosexcover)
2474 ("python-pyaml" ,python-pyaml)
2475 ("python-requests" ,python-requests)))
2477 `(("urllib3" ,python-urllib3)))
2479 ;; tests require the test_elasticsearch module but it is not distributed.
2481 (home-page "https://github.com/elastic/elasticsearch-py")
2482 (synopsis "Low-level client for Elasticsearch")
2483 (description "Official low-level client for Elasticsearch. Its goal is to
2484 provide common ground for all Elasticsearch-related code in Python; because of
2485 this it tries to be opinion-free and very extendable.")
2486 (license license:expat)))
2488 (define-public python2-elasticsearch
2489 (package-with-python2 python-elasticsearch))
2491 (define-public python-flask-script
2493 (name "python-flask-script")
2498 (uri (pypi-uri "Flask-Script" version))
2501 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
2502 (build-system python-build-system)
2505 (modify-phases %standard-phases
2506 (add-after 'unpack 'patch-tests
2508 (substitute* "tests.py"
2509 (("flask\\.ext\\.script") "flask_script"))
2512 `(("python-flask" ,python-flask)
2513 ("python-argcomplete" ,python-argcomplete)
2514 ("python-werkzeug" ,python-werkzeug)))
2516 `(("python-pytest" ,python-pytest)))
2518 "https://github.com/smurfix/flask-script")
2519 (synopsis "Scripting support for Flask")
2520 (description "The Flask-Script extension provides support for writing
2521 external scripts in Flask. This includes running a development server,
2522 a customised Python shell, scripts to set up your database, cronjobs,
2523 and other command-line tasks that belong outside the web application
2525 (license license:bsd-3)))
2527 (define-public python2-flask-script
2528 (package-with-python2 python-flask-script))
2530 (define-public python-flask-migrate
2532 (name "python-flask-migrate")
2537 (uri (pypi-uri "Flask-Migrate" version))
2540 "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk"))))
2541 (build-system python-build-system)
2543 `(("python-flask" ,python-flask)
2544 ("python-alembic" ,python-alembic)
2545 ("python-sqlalchemy" ,python-sqlalchemy)
2546 ("python-flask-script" ,python-flask-script)
2547 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2548 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2549 (synopsis "SQLAlchemy database migrations for Flask programs using
2551 (description "This package contains SQLAlchemy database migration tools
2552 for Flask programs that are using @code{python-alembic}.")
2553 (license license:expat)))
2555 (define-public python2-flask-migrate
2556 (package-with-python2 python-flask-migrate))
2558 (define-public python-genshi
2560 (name "python-genshi")
2566 (url "https://github.com/edgewall/genshi.git")
2568 (file-name (git-file-name name version))
2570 (base32 "01fx8fnpay5w048ppyjivg2dgfpp5rybn07y3pfsgj2knram3nhl"))))
2571 (build-system python-build-system)
2572 (home-page "https://genshi.edgewall.org/")
2573 (synopsis "Toolkit for generation of output for the web")
2574 (description "Genshi is a Python library that provides an integrated set
2575 of components for parsing, generating, and processing HTML, XML or other
2576 textual content for output generation on the web.")
2577 (license license:bsd-3)))
2579 (define-public python2-genshi
2580 (package-with-python2 python-genshi))
2582 (define-public python-flask-principal
2584 (name "python-flask-principal")
2589 (uri (pypi-uri "Flask-Principal" version))
2592 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
2593 (build-system python-build-system)
2595 `(("python-blinker" ,python-blinker)))
2597 `(("python-flask" ,python-flask)
2598 ("python-nose" ,python-nose)))
2599 (home-page "http://packages.python.org/Flask-Principal/")
2600 (synopsis "Identity management for Flask")
2601 (description "@code{flask_principal} is a identity management library for
2602 Flask. It supports managing both authentication and authorization data in a
2603 thread-local variable.")
2604 (license license:expat)))
2606 (define-public python2-flask-principal
2607 (package-with-python2 python-flask-principal))
2609 (define-public python-flask-httpauth
2611 (name "python-flask-httpauth")
2616 (uri (pypi-uri "Flask-HTTPAuth" version))
2619 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
2620 (build-system python-build-system)
2622 `(("python-flask" ,python-flask)))
2623 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
2624 (synopsis "Basic and Digest HTTP authentication for Flask routes")
2625 (description "@code{flask_httpauth} provides Basic and Digest HTTP
2626 authentication for Flask routes.")
2627 (license license:expat)))
2629 (define-public python2-flask-httpauth
2630 (package-with-python2 python-flask-httpauth))
2632 (define-public python-uritemplate
2634 (name "python-uritemplate")
2639 (uri (pypi-uri "uritemplate" version))
2642 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
2643 (build-system python-build-system)
2644 (home-page "https://uritemplate.readthedocs.org")
2645 (synopsis "Library to deal with URI Templates")
2646 (description "@code{uritemplate} provides Python library to deal with URI
2648 (license license:bsd-2)))
2650 (define-public python2-uritemplate
2651 (package-with-python2 python-uritemplate))
2653 (define-public python-publicsuffix
2655 (name "python-publicsuffix")
2659 (uri (pypi-uri "publicsuffix" version))
2662 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
2663 (build-system python-build-system)
2665 `(#:tests? #f)) ; tests use the internet
2666 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
2667 (synopsis "Get suffix for a domain name")
2668 (description "Get a public suffix for a domain name using the Public Suffix
2670 (license license:expat)))
2672 (define-public python2-publicsuffix
2673 (package-with-python2 python-publicsuffix))
2675 (define-public python-publicsuffix2
2677 (name "python-publicsuffix2")
2678 (version "2.20160818")
2682 (uri (pypi-uri "publicsuffix2" version ".tar.bz2"))
2685 "1bb55yka9vkn7i6y1kjzxa516kh6v4gsrxa90w5wdz5p5n968r68"))))
2686 (build-system python-build-system)
2688 '(#:tests? #f)) ; The test suite requires network access.
2689 (home-page "https://github.com/pombredanne/python-publicsuffix2")
2690 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
2691 (description "Get a public suffix for a domain name using the Public Suffix
2692 List. Forked from and using the same API as the publicsuffix package.")
2693 (license (list license:expat license:mpl2.0))))
2695 (define-public python2-publicsuffix2
2696 (package-with-python2 python-publicsuffix2))
2698 (define-public python-werkzeug
2700 (name "python-werkzeug")
2705 (uri (pypi-uri "werkzeug" version))
2708 "0z2m4snn1vc9518r2vzgdj1nc90kcgi60wijvd29yvcp85ypmzf3"))))
2709 (build-system python-build-system)
2712 (modify-phases %standard-phases
2714 (add-after 'install 'check
2715 (lambda* (#:key inputs outputs #:allow-other-keys)
2716 (add-installed-pythonpath inputs outputs)
2717 (invoke "python" "-m" "pytest"))))))
2719 `(("python-requests" ,python-requests)))
2721 `(("python-pytest" ,python-pytest)))
2722 (home-page "https://www.palletsprojects.org/p/werkzeug/")
2723 (synopsis "Utilities for WSGI applications")
2724 (description "One of the most advanced WSGI utility modules. It includes a
2725 powerful debugger, full-featured request and response objects, HTTP utilities to
2726 handle entity tags, cache control headers, HTTP dates, cookie handling, file
2727 uploads, a powerful URL routing system and a bunch of community-contributed
2729 (license license:x11)))
2731 (define-public python2-werkzeug
2732 (package-with-python2 python-werkzeug))
2734 (define-public python-bottle
2736 (name "python-bottle")
2741 (uri (pypi-uri "bottle" version))
2744 "0m9k2a7yxvggc4kw8fsvj381vgsvfcdshg5nzy6vwrxiw2p53drr"))))
2745 (build-system python-build-system)
2746 (home-page "http://bottlepy.org/")
2747 (synopsis "WSGI framework for small web-applications.")
2748 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
2749 (license license:expat)))
2751 (define-public python2-bottle
2752 (package-with-python2 python-bottle))
2754 (define-public python-wtforms
2756 (name "python-wtforms")
2761 (uri (pypi-uri "WTForms" version ".zip"))
2764 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
2765 (build-system python-build-system)
2768 (modify-phases %standard-phases
2769 (add-after 'unpack 'remove-django-test
2770 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
2774 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
2775 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
2778 `(("unzip" ,unzip)))
2779 (home-page "http://wtforms.simplecodes.com/")
2781 "Form validation and rendering library for Python web development")
2783 "WTForms is a flexible forms validation and rendering library
2784 for Python web development. It is very similar to the web form API
2785 available in Django, but is a standalone package.")
2786 (license license:bsd-3)))
2788 (define-public python2-wtforms
2789 (package-with-python2 python-wtforms))
2791 (define-public python-paste
2793 (name "python-paste")
2798 (uri (pypi-uri "Paste" version))
2801 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
2802 (patches (search-patches "python-paste-remove-timing-test.patch"))
2803 (modules '((guix build utils)))
2806 ;; This test calls out to the internet.
2807 (delete-file "tests/test_proxy.py") #t))))
2808 (build-system python-build-system)
2810 `(("python-pytest" ,python-pytest)
2811 ("python-pytest-runner" ,python-pytest-runner)
2812 ("python-nose" ,python-nose)))
2814 `(("python-six" ,python-six)))
2815 (home-page "http://pythonpaste.org")
2817 "Python web development tools, focusing on WSGI")
2819 "Paste provides a variety of web development tools and middleware which
2820 can be nested together to build web applications. Paste's design closely
2821 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
2822 (license license:expat)))
2824 (define-public python2-paste
2825 (package-with-python2 python-paste))
2827 (define-public python-pastescript
2829 (name "python-pastescript")
2834 (uri (pypi-uri "PasteScript" version))
2837 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
2838 (build-system python-build-system)
2840 `(("python-nose" ,python-nose)))
2842 `(("python-paste" ,python-paste)
2843 ("python-pastedeploy" ,python-pastedeploy)))
2844 (home-page "http://pythonpaste.org/script/")
2846 '(;; Unfortunately, this requires the latest unittest2,
2847 ;; but that requires traceback2 which requires linecache2 which requires
2848 ;; unittest2. So we're skipping tests for now.
2849 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
2850 ;; so in theory we could get around this situation somehow.)
2853 "Pluggable command line tool for serving web applications and more")
2855 "PasteScript is a plugin-friendly command line tool which provides a
2856 variety of features, from launching web applications to bootstrapping project
2858 (license license:expat)))
2860 (define-public python2-pastescript
2861 (package-with-python2 python-pastescript))
2863 (define-public python2-urlgrabber
2865 (name "python2-urlgrabber")
2870 (uri (pypi-uri "urlgrabber" version))
2872 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
2873 (build-system python-build-system)
2874 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
2875 (home-page "http://urlgrabber.baseurl.org")
2876 (synopsis "High-level cross protocol url-grabber")
2877 (description "@code{urlgrabber} is Python2 library that unifies access to
2878 files available on web, FTP or locally. It supports HTTP, FTP and file://
2879 protocols, it supports features like HTTP keep-alive, reget, throttling and
2881 (license license:lgpl2.1+)))
2883 (define-public python-pycares
2885 (name "python-pycares")
2890 (uri (pypi-uri "pycares" version))
2893 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
2894 (build-system python-build-system)
2896 `(#:tests? #f)) ;tests require internet access
2897 (home-page "http://github.com/saghul/pycares")
2898 (synopsis "Python interface for @code{c-ares}")
2899 (description "@code{pycares} is a Python module which provides an
2900 interface to @code{c-ares}, a C library that performs DNS requests and
2901 name resolutions asynchronously.")
2902 (license license:expat)))
2904 (define-public python-yarl
2906 (name "python-yarl")
2911 (uri (pypi-uri "yarl" version))
2914 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
2915 (build-system python-build-system)
2917 `(("python-pytest" ,python-pytest)
2918 ("python-pytest-runner" ,python-pytest-runner)))
2920 `(("python-idna" ,python-idna)
2921 ("python-multidict" ,python-multidict)))
2922 (home-page "https://github.com/aio-libs/yarl/")
2923 (synopsis "Yet another URL library")
2924 (description "@code{yarl} module provides handy @code{URL} class
2925 for URL parsing and changing.")
2926 (license license:asl2.0)))
2928 (define-public python-google-api-client
2930 (name "python-google-api-client")
2935 (uri (pypi-uri "google-api-python-client" version))
2938 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
2939 (build-system python-build-system)
2941 '(#:tests? #f)) ; tests require internet access
2943 `(("python-httplib2" ,python-httplib2)
2944 ("python-six" ,python-six)
2945 ("python-oauth2client" ,python-oauth2client)
2946 ("python-uritemplate" ,python-uritemplate)))
2947 (home-page "https://github.com/google/google-api-python-client")
2948 (synopsis "Core Python library for accessing Google APIs")
2949 (description "Python client library for Google's discovery based APIs")
2950 (license license:asl2.0)))
2952 (define-public python2-google-api-client
2953 (package-with-python2 python-google-api-client))
2955 (define-public python-hawkauthlib
2957 (name "python-hawkauthlib")
2962 (uri (pypi-uri "hawkauthlib" version))
2965 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
2966 (build-system python-build-system)
2968 `(("python-requests" ,python-requests)
2969 ("python-webob" ,python-webob)))
2970 (home-page "https://github.com/mozilla-services/hawkauthlib")
2971 (synopsis "Hawk Access Authentication protocol")
2973 "This is a low-level Python library for implementing Hawk Access Authentication,
2974 a simple HTTP request-signing scheme.")
2975 (license license:mpl2.0)))
2977 (define-public python-pybrowserid
2979 (name "python-pybrowserid")
2984 (uri (pypi-uri "PyBrowserID" version))
2987 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
2988 (build-system python-build-system)
2990 `(("python-requests" ,python-requests)))
2992 `(("python-mock" ,python-mock)))
2993 (home-page "https://github.com/mozilla/PyBrowserID")
2994 (synopsis "Python library for the BrowserID protocol")
2996 "This is a Python client library for the BrowserID protocol that
2997 underlies Mozilla Persona.")
2998 (license license:mpl2.0)))
3000 (define-public python-pyfxa
3002 (name "python-pyfxa")
3007 (uri (pypi-uri "PyFxA" version))
3010 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
3011 (build-system python-build-system)
3012 (arguments '(#:tests? #f)) ; 17 tests require network access
3014 `(("python-cryptography" ,python-cryptography)
3015 ("python-hawkauthlib" ,python-hawkauthlib)
3016 ("python-pybrowserid" ,python-pybrowserid)
3017 ("python-requests" ,python-requests)
3018 ("python-six" ,python-six)))
3020 `(("python-grequests" ,python-grequests)
3021 ("python-mock" ,python-mock)
3022 ("python-responses" ,python-responses)
3023 ("python-unittest2" ,python-unittest2)))
3024 (home-page "https://github.com/mozilla/PyFxA")
3025 (synopsis "Firefox Accounts client library for Python")
3027 "This is a Python library for interacting with the Firefox Accounts
3029 (license license:mpl2.0)))
3031 (define-public python-hyperlink
3033 (name "python-hyperlink")
3038 (uri (pypi-uri "hyperlink" version))
3041 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
3042 (build-system python-build-system)
3044 `(("python-idna" ,python-idna)))
3045 (home-page "https://github.com/python-hyper/hyperlink")
3046 (synopsis "Python module to create immutable URLs according to spec")
3047 (description "This package provides a Python module to create immutable, and
3048 correct URLs for Python according to RFCs 3986 and 3987.")
3049 (license license:expat)))
3051 (define-public python-treq
3053 (name "python-treq")
3058 (uri (pypi-uri "treq" version))
3061 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
3062 (build-system python-build-system)
3064 `(("python-attrs" ,python-attrs)
3065 ("python-idna" ,python-idna)
3066 ("python-incremental" ,python-incremental)
3067 ("python-requests" ,python-requests)
3068 ("python-service-identity" ,python-service-identity)
3069 ("python-twisted" ,python-twisted)))
3070 (home-page "https://github.com/twisted/treq")
3071 (synopsis "Requests-like API built on top of twisted.web's Agent")
3072 (description "This package provides an HTTP library inspired by
3073 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3074 high level API for making HTTP requests when using Twisted.")
3075 (license license:expat)))
3077 (define-public python-autobahn
3079 (name "python-autobahn")
3084 (uri (pypi-uri "autobahn" version))
3087 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3088 (build-system python-build-system)
3090 ;; The tests fail to run:
3091 ;; https://github.com/crossbario/autobahn-python/issues/1117
3094 `(("python-cffi" ,python-cffi)
3095 ("python-twisted" ,python-twisted)
3096 ("python-txaio" ,python-txaio)))
3097 (home-page "https://crossbar.io/autobahn/")
3098 (synopsis "Web Application Messaging Protocol implementation")
3099 (description "This package provides an implementation of the @dfn{Web Application
3100 Messaging Protocol} (WAMP). WAMP connects components in distributed
3101 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3102 Calls (rRPC). It is ideal for distributed, multi-client and server applications
3103 such as IoT applications or multi-user database-driven business applications.")
3104 (license license:expat)))
3106 (define-public python-ws4py
3108 (name "python-ws4py")
3113 (uri (pypi-uri "ws4py" version))
3116 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3117 (build-system python-build-system)
3120 (modify-phases %standard-phases
3121 (add-after 'unpack 'python3.7-compatibility
3123 (substitute* '("ws4py/server/tulipserver.py"
3124 "ws4py/async_websocket.py")
3126 "asyncio.ensure_future"))
3128 ;; We don't have a package for cherrypy.
3129 (add-after 'unpack 'remove-cherrypy-support
3131 (delete-file "ws4py/server/cherrypyserver.py")
3134 `(("python-gevent" ,python-gevent)
3135 ("python-tornado" ,python-tornado)))
3136 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3137 (synopsis "WebSocket client and server library")
3139 "This package provides a WebSocket client and server library for
3141 (license license:bsd-3)))
3143 ;; kaldi-gstreamer-server does not yet work with python-ws4py > 0.3.2
3144 (define-public python2-ws4py-for-kaldi-gstreamer-server
3145 (package (inherit python-ws4py)
3146 (name "python2-ws4py")
3151 (uri (pypi-uri "ws4py" version))
3154 "12ys3dv98awhrxd570vla3hqgzq3avjhq4yafhghhq3a942y1928"))))
3155 (build-system python-build-system)
3157 `(#:python ,python-2
3159 (modify-phases %standard-phases
3160 ;; We don't have a package for cherrypy.
3161 (add-after 'unpack 'remove-cherrypy-support
3163 (delete-file "ws4py/server/cherrypyserver.py")
3166 `(("python-gevent" ,python2-gevent)
3167 ("python-tornado" ,python2-tornado)))))