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, 2020 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
10 ;;; Copyright © 2016, 2017, 2020 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, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
17 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 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, 2019 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>
33 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
34 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
35 ;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
36 ;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
37 ;;; Copyright © 2020 Holger Peters <holger.peters@posteo.de>
39 ;;; This file is part of GNU Guix.
41 ;;; GNU Guix is free software; you can redistribute it and/or modify it
42 ;;; under the terms of the GNU General Public License as published by
43 ;;; the Free Software Foundation; either version 3 of the License, or (at
44 ;;; your option) any later version.
46 ;;; GNU Guix is distributed in the hope that it will be useful, but
47 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
48 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49 ;;; GNU General Public License for more details.
51 ;;; You should have received a copy of the GNU General Public License
52 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
54 (define-module (gnu packages python-web)
55 #:use-module (guix packages)
56 #:use-module (guix download)
57 #:use-module (guix git-download)
58 #:use-module (guix build-system python)
59 #:use-module (guix utils)
60 #:use-module (gnu packages)
61 #:use-module (gnu packages base)
62 #:use-module (gnu packages check)
63 #:use-module (gnu packages compression)
64 #:use-module (gnu packages curl)
65 #:use-module (gnu packages databases)
66 #:use-module (gnu packages django)
67 #:use-module (gnu packages groff)
68 #:use-module (gnu packages libffi)
69 #:use-module (gnu packages pkg-config)
70 #:use-module (gnu packages python)
71 #:use-module (gnu packages python-check)
72 #:use-module (gnu packages python-crypto)
73 #:use-module (gnu packages python-xyz)
74 #:use-module (gnu packages serialization)
75 #:use-module (gnu packages sphinx)
76 #:use-module (gnu packages texinfo)
77 #:use-module (gnu packages tls)
78 #:use-module (gnu packages time)
79 #:use-module (gnu packages web)
80 #:use-module (gnu packages xml)
81 #:use-module ((guix licenses) #:prefix license:)
82 #:use-module (srfi srfi-1))
84 (define-public python-aiohttp
86 (name "python-aiohttp")
91 (uri (pypi-uri "aiohttp" version))
94 "09pkw6f1790prnrq0k8cqgnf1qy57ll8lpmc6kld09q7zw4vi6i5"))
95 (patches (search-patches "python-aiohttp-3.6.2-no-warning-fail.patch"))))
97 (build-system python-build-system)
100 (modify-phases %standard-phases
101 (add-after 'unpack 'fix-tests
103 ;; disable brotli tests, because we’re not providing that optional library
104 (substitute* "tests/test_http_parser.py"
105 ((" async def test_feed_eof_no_err_brotli")
106 " @pytest.mark.xfail\n async def test_feed_eof_no_err_brotli"))
107 ;; make sure the timestamp of this file is > 1990, because a few
108 ;; tests like test_static_file_if_modified_since_past_date depend on it
109 (invoke "touch" "-d" "2020-01-01" "tests/data.unknown_mime_type")
112 `(("python-aiodns" ,python-aiodns)
113 ("python-async-timeout" ,python-async-timeout)
114 ("python-attrs" ,python-attrs)
115 ("python-chardet" ,python-chardet)
116 ("python-idna-ssl" ,python-idna-ssl)
117 ("python-multidict" ,python-multidict)
118 ("python-yarl" ,python-yarl)))
120 `(("python-pytest-runner" ,python-pytest-runner)
121 ("python-pytest-xdit" ,python-pytest-xdist)
122 ("python-pytest-timeout" ,python-pytest-timeout)
123 ("python-pytest-forked" ,python-pytest-forked)
124 ("python-pytest-mock" ,python-pytest-mock)
125 ("gunicorn" ,gunicorn-bootstrap)
126 ("python-freezegun" ,python-freezegun)
127 ("python-async-generator" ,python-async-generator)))
128 (home-page "https://github.com/aio-libs/aiohttp/")
129 (synopsis "Async HTTP client/server framework (asyncio)")
130 (description "@code{aiohttp} is an asynchronous HTTP client/server
133 Its main features are:
135 @item Supports both client and server side of HTTP protocol.
136 @item Supports both client and server Web-Sockets out-of-the-box without the
138 @item Web-server has middlewares and pluggable routing.
140 (license license:asl2.0)))
142 (define-public python-aiohttp-socks
144 (name "python-aiohttp-socks")
149 (uri (pypi-uri "aiohttp_socks" version))
152 "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
153 (build-system python-build-system)
155 `(("python-aiohttp" ,python-aiohttp)))
156 (home-page "https://github.com/romis2012/aiohttp-socks")
157 (synopsis "SOCKS proxy connector for aiohttp")
158 (description "This package provides a SOCKS proxy connector for
159 aiohttp. It supports SOCKS4(a) and SOCKS5.")
160 (license license:asl2.0)))
162 (define-public python-aiodns
164 (name "python-aiodns")
169 (uri (pypi-uri "aiodns" version))
172 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
173 (build-system python-build-system)
175 `(("python-pycares" ,python-pycares)))
177 `(#:tests? #f)) ;tests require internet access
178 (home-page "http://github.com/saghul/aiodns")
179 (synopsis "Simple DNS resolver for asyncio")
180 (description "@code{aiodns} provides a simple way for doing
181 asynchronous DNS resolutions with a synchronous looking interface by
182 using @url{https://github.com/saghul/pycares,pycares}.")
183 (license license:expat)))
185 (define-public python-aiorpcx
187 (name "python-aiorpcx")
192 (uri (pypi-uri "aiorpcX" version))
195 "0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp"))))
196 (build-system python-build-system)
198 `(("python-attrs" ,python-attrs)))
199 (home-page "https://github.com/kyuupichan/aiorpcX")
200 (synopsis "Generic asyncio RPC implementation")
202 "The aiorpcX library is a generic asyncio implementation of RPC suitable
203 for an application that is a client, server or both.
205 The package includes a module with full coverage of JSON RPC versions 1.0 and
206 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
207 comes with a SOCKS proxy client.")
208 (license (list license:expat license:bsd-2))))
210 (define-public python-falcon
212 (name "python-falcon")
217 (uri (pypi-uri "falcon" version))
220 "1i0vmqsk24z4biirqhpvas9h28wy7nmpy3jvnb6rz2imq04zd09r"))))
221 (build-system python-build-system)
224 (modify-phases %standard-phases
227 (invoke "pytest"))))))
229 `(("python-mimeparse" ,python-mimeparse)
230 ("python-six" ,python-six)))
232 `(("python-cython" ,python-cython) ;for faster binaries
233 ("python-pytest" ,python-pytest)
234 ("python-pyyaml" ,python-pyyaml)
235 ("python-requests" ,python-requests)
236 ("python-testtools" ,python-testtools)
237 ("python-jsonschema" ,python-jsonschema)
238 ("python-msgpack" ,python-msgpack)))
239 (home-page "https://falconframework.org")
241 "Web framework for building APIs and application backends")
243 "Falcon is a web API framework for building microservices, application
244 backends and higher-level frameworks. Among its features are:
246 @item Optimized and extensible code base
247 @item Routing via URI templates and REST-inspired resource
249 @item Access to headers and bodies through request and response
251 @item Request processing via middleware components and hooks
252 @item Idiomatic HTTP error responses
253 @item Straightforward exception handling
254 @item Unit testing support through WSGI helpers and mocks
255 @item Compatible with both CPython and PyPy
256 @item Cython support for better performance when used with CPython
258 (license license:asl2.0)))
260 (define-public python2-falcon
261 (package-with-python2 python-falcon))
263 (define-public python-falcon-cors
265 (name "python-falcon-cors")
270 (uri (pypi-uri "falcon-cors" version))
273 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
274 (build-system python-build-system)
276 `(("python-falcon" ,python-falcon)))
278 "https://github.com/lwcolton/falcon-cors")
279 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
280 (description "This middleware provides @dfn{cross-origin resource
281 sharing} (CORS) support for Falcon. It allows applying a specially crafted
282 CORS object to the incoming requests, enabling the ability to serve resources
283 over a different origin than that of the web application.")
284 (license license:asl2.0)))
286 (define-public python2-falcon-cors
287 (package-with-python2 python-falcon-cors))
289 (define-public python-furl
296 (uri (pypi-uri "furl" version))
299 "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
300 (build-system python-build-system)
302 `(("python-six" ,python-six)
303 ("python-orderedmultidict" ,python-orderedmultidict)))
305 `(("python-pycodestyle" ,python-pycodestyle)))
306 (home-page "https://github.com/gruns/furl")
307 (synopsis "URL manipulation in Python")
308 (description "Furl provides an easy-to-use alternative to the
309 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
310 (license license:unlicense)))
312 (define-public python2-furl
313 (package-with-python2 python-furl))
315 (define-public python-httplib2
317 (name "python-httplib2")
322 (uri (pypi-uri "httplib2" version))
325 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
326 (build-system python-build-system)
327 (home-page "https://github.com/jcgregorio/httplib2")
328 (synopsis "Comprehensive HTTP client library")
330 "A comprehensive HTTP client library supporting many features left out of
331 other HTTP libraries.")
332 (license license:expat)))
334 (define-public python2-httplib2
335 (package-with-python2 python-httplib2))
337 (define-public httpie
344 (uri (pypi-uri "httpie" version))
347 "02bw20cwv3a1lzrn919dk25dq4v81x6q786zlrqsqzhsdxszj14c"))))
348 (build-system python-build-system)
350 ;; The tests attempt to access external web servers, so we cannot run them.
353 `(("python-colorama" ,python-colorama)
354 ("python-pygments" ,python-pygments)
355 ("python-requests" ,python-requests)))
356 (home-page "https://httpie.org/")
357 (synopsis "cURL-like tool for humans")
359 "A command line HTTP client with an intuitive UI, JSON support,
360 syntax highlighting, wget-like downloads, plugins, and more. It consists of
361 a single http command designed for painless debugging and interaction with
362 HTTP servers, RESTful APIs, and web services.")
363 (license license:bsd-3)))
365 (define-public python-html2text
367 (name "python-html2text")
368 (version "2019.8.11")
372 (uri (pypi-uri "html2text" version))
375 "0ppgjplg06kmv9sj0x8p7acczcq2mcfgk1jdjwm4w5w40b0vj5pm"))))
376 (build-system python-build-system)
379 (modify-phases %standard-phases
382 (invoke "pytest" "test/"))))))
384 `(("python-pytest" ,python-pytest)))
385 (home-page "https://github.com/Alir3z4/html2text")
386 (synopsis "Convert HTML into plain text")
387 (description "html2text takes HTML and converts it into plain ASCII text
388 which is also valid markdown. html2text was originally written by Aaron
390 (license license:gpl3+)))
392 (define-public python2-html2text
393 (package-with-python2 python-html2text))
395 (define-public python-mechanicalsoup
397 (name "python-mechanicalsoup")
402 (uri (pypi-uri "MechanicalSoup" version))
404 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
405 (build-system python-build-system)
407 ;; TODO: Enable tests when python-flake8@3.5 hits master.
410 `(("python-beautifulsoup4" ,python-beautifulsoup4)
411 ("python-lxml" ,python-lxml)
412 ("python-requests" ,python-requests)
413 ("python-six" ,python-six)))
416 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
417 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
418 ;; ("python-pytest-mock" ,python-pytest-mock)
419 ;; ("python-pytest-runner" ,python-pytest-runner)
420 ;; ("python-requests-mock" ,python-requests-mock)))
421 (home-page "https://mechanicalsoup.readthedocs.io/")
422 (synopsis "Python library for automating website interaction")
424 "MechanicalSoup is a Python library for automating interaction with
425 websites. It automatically stores and sends cookies, follows redirects, and can
426 follow links and submit forms. It doesn’t do JavaScript.")
427 (license license:expat)))
429 (define-public python2-mechanicalsoup
430 (package-with-python2 python-mechanicalsoup))
432 (define-public python-sockjs-tornado
434 (name "python-sockjs-tornado")
439 (uri (pypi-uri "sockjs-tornado" version))
442 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
443 (build-system python-build-system)
445 `(;; There are no tests, and running the test phase requires missing
449 `(("python-tornado" ,python-tornado)))
450 (home-page "https://github.com/mrjoes/sockjs-tornado/")
452 "SockJS Python server implementation on top of the Tornado framework")
454 "SockJS-tornado provides the server-side counterpart to a SockJS client
455 library, through the Tornado framework.
457 SockJS provides a low-latency, full-duplex, cross-domain communication channel
458 between a web browser and web server.")
459 (license license:expat)))
461 (define-public python2-sockjs-tornado
462 (package-with-python2 python-sockjs-tornado))
464 (define-public python-flask-babel
466 (name "python-flask-babel")
471 (uri (pypi-uri "Flask-Babel" version))
474 "0gmb165vkwv5v7dxsxa2i3zhafns0fh938m2zdcrv4d8z5l099yn"))))
475 (build-system python-build-system)
477 '(#:phases (modify-phases %standard-phases
480 (with-directory-excursion "tests"
481 (invoke "python" "tests.py")))))))
483 `(("python-flask" ,python-flask)
484 ("python-babel" ,python-babel)
485 ("python-jinja2" ,python-jinja2)
486 ("python-pytz" ,python-pytz)))
487 (home-page "https://github.com/python-babel/flask-babel")
488 (synopsis "Add i18n/l10n support to Flask applications")
489 (description "This package implements internationalization and localization
490 support for Flask. This is based on the Python babel module as well as pytz -
491 both of which are installed automatically if you install this library.")
492 (license license:bsd-3)))
494 (define-public python2-flask-babel
495 (package-with-python2 python-flask-babel))
497 (define-public python-html5lib
499 (name "python-html5lib")
504 (uri (pypi-uri "html5lib" version))
507 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
508 (build-system python-build-system)
510 `(("python-six" ,python-six)
511 ("python-webencodings" ,python-webencodings)))
513 `(#:test-target "check"))
515 "https://github.com/html5lib/html5lib-python")
517 "Python HTML parser based on the WHATWG HTML specifcation")
519 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
520 and written in Python.")
521 (license license:expat)))
523 (define-public python2-html5lib
524 (package-with-python2 python-html5lib))
526 ;; Needed for python-bleach, a dependency of python-notebook
527 (define-public python-html5lib-0.9
529 (inherit python-html5lib)
534 (uri (pypi-uri "html5lib" version))
537 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
539 (define-public python2-html5lib-0.9
540 (package-with-python2 python-html5lib-0.9))
542 (define-public python-html5-parser
544 (name "python-html5-parser")
548 (uri (pypi-uri "html5-parser" version))
551 "01mx33sx4dhl4kj6wc48nj6jz7ry60rkhjv0s6k8h5xmjf5yy0x9"))))
552 (build-system python-build-system)
554 `(("pkg-config" ,pkg-config)))
556 `(("libxml2" ,libxml2)))
558 `(("python-lxml" ,python-lxml)
559 ("python-beautifulsoup4" ,python-beautifulsoup4)))
560 (home-page "https://html5-parser.readthedocs.io")
561 (synopsis "Fast C-based HTML5 parsing for Python")
562 (description "This package provides a fast implementation of the HTML5
563 parsing spec for Python. Parsing is done in C using a variant of the gumbo
564 parser. The gumbo parse tree is then transformed into an lxml tree, also in
565 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
566 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
567 ;; indicate ASL2.0, including the LICENSE file for the whole project.
568 (license (list license:asl2.0 license:gpl3))))
570 (define-public python2-html5-parser
571 (package-with-python2 python-html5-parser))
573 (define-public python-pycurl
575 (name "python-pycurl")
580 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
583 (base32 "1915kb04k1j4y6k1dx1sgnbddxrl9r1n4q928if2lkrdm73xy30g"))))
584 (build-system python-build-system)
586 ;; The tests attempt to access external web servers, so we cannot run
587 ;; them. Furthermore, they are skipped altogether when using Python 2.
589 #:phases (modify-phases %standard-phases
590 (add-before 'build 'configure-tls-backend
592 ;; XXX: PycURL fails to automatically determine which TLS
593 ;; backend to use when cURL is built with --disable-static.
594 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
595 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
598 `(("python-nose" ,python-nose)
599 ("python-bottle" ,python-bottle)))
603 (home-page "http://pycurl.io/")
604 (synopsis "Lightweight Python wrapper around libcurl")
605 (description "Pycurl is a lightweight wrapper around libcurl. It provides
606 high-speed transfers via libcurl and frequently outperforms alternatives.")
608 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
609 ;; under the terms of LGPLv2.1+ or Expat.
610 (license (list license:lgpl2.1+ license:expat))))
612 (define-public python2-pycurl
613 (package-with-python2 python-pycurl))
615 (define-public python-webencodings
617 (name "python-webencodings")
621 (uri (pypi-uri "webencodings" version))
624 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
625 (build-system python-build-system)
628 (modify-phases %standard-phases
631 (invoke "py.test" "-v" "webencodings/tests.py")
634 `(("python-pytest" ,python-pytest)))
635 (home-page "https://github.com/SimonSapin/python-webencodings")
636 (synopsis "Character encoding aliases for legacy web content")
638 "In order to be compatible with legacy web content when interpreting
639 something like @code{Content-Type: text/html; charset=latin1}, tools need
640 to use a particular set of aliases for encoding labels as well as some
641 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
642 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
643 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
644 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
645 defines all such details so that implementations do not have to
646 reverse-engineer each other.
648 This module implements the Encoding standard and has encoding labels and
649 BOM detection, but the actual implementation for encoders and decoders
651 (license license:bsd-3)))
653 (define-public python2-webencodings
654 (package-with-python2 python-webencodings))
656 (define-public python-openid
658 (name "python-openid")
663 (uri (pypi-uri "python3-openid" version))
666 "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
667 (build-system python-build-system)
670 (modify-phases %standard-phases
673 (invoke "coverage" "run" "-m"
674 "unittest" "openid.test.test_suite"))))))
675 (properties `((python2-variant . ,(delay python2-openid))))
677 `(("python-defusedxml" ,python-defusedxml)))
679 `(("python-coverage" ,python-coverage)
680 ("python-psycopg2" ,python-psycopg2)
681 ("python-django" ,python-django)))
682 (home-page "https://github.com/necaris/python3-openid")
683 (synopsis "OpenID support for servers and consumers")
684 (description "This library provides OpenID authentication for Python, both
685 for clients and servers.")
686 (license license:asl2.0)))
688 (define-public python2-openid
690 (name "python2-openid")
695 (uri (pypi-uri "python-openid" version))
698 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
699 (build-system python-build-system)
701 ;; Python 3 support is in `python3-openid`, a separate package.
703 ;; Tests aren't initialized correctly.
705 (home-page "https://github.com/openid/python-openid")
706 (synopsis "OpenID support for servers and consumers")
707 (description "This library provides OpenID authentication for Python, both
708 for clients and servers.")
709 (license license:asl2.0)))
711 (define-public python-cssutils
713 (name "python-cssutils")
718 (uri (pypi-uri "cssutils" version))
721 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
722 (build-system python-build-system)
724 `(("unzip" ,unzip))) ; for unpacking the source
726 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
727 (home-page "http://cthedot.de/cssutils/")
729 "CSS Cascading Style Sheets library for Python")
731 "Cssutils is a Python package for parsing and building CSS
732 Cascading Style Sheets. Currently it provides a DOM only and no rendering
734 (license license:lgpl3+)))
736 (define-public python2-cssutils
737 (package-with-python2 python-cssutils))
739 (define-public python-css-parser
741 (inherit python-cssutils)
742 (name "python-css-parser")
747 (uri (pypi-uri "css-parser" version ".tar.gz"))
750 "0i4xfykiffxzr4f6y0m2ggqvx1rzam6pw6krlr5k6ldf29akbay7"))))
751 (home-page "https://github.com/ebook-utils/css-parser")
752 (synopsis "Fork of cssutils modified for parsing ebooks")
754 "Css-parser is a fork of cssutils 1.0.2, updated and modified for parsing
755 ebooks, due to cssutils not receiving updates as of 1.0.2.")
756 (license license:lgpl3+)))
758 (define-public python2-css-parser
759 (package-with-python2 python-css-parser))
761 (define-public python-cssselect
763 (name "python-cssselect")
768 (uri (pypi-uri "cssselect" version))
771 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
772 (build-system python-build-system)
774 ;; tests fail with message
775 ;; AttributeError: 'module' object has no attribute 'tests'
778 "https://pythonhosted.org/cssselect/")
780 "CSS3 selector parser and translator to XPath 1.0")
782 "Cssselect ia a Python module that parses CSS3 Selectors and translates
783 them to XPath 1.0 expressions. Such expressions can be used in lxml or
784 another XPath engine to find the matching elements in an XML or HTML document.")
785 (license license:bsd-3)))
787 (define-public python2-cssselect
788 (package-with-python2 python-cssselect))
790 (define-public python-openid-cla
792 (name "python-openid-cla")
797 (uri (pypi-uri "python-openid-cla" version))
800 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
801 (build-system python-build-system)
802 (arguments '(#:tests? #f)) ; No tests.
803 (home-page "https://github.com/puiterwijk/python-openid-cla/")
804 (synopsis "Implementation of the OpenID CLA extension for python-openid")
805 (description "@code{openid-cla} is an implementation of the OpenID
806 contributor license agreement extension for python-openid.")
807 (license license:bsd-3)))
809 (define-public python2-openid-cla
810 (package-with-python2 python-openid-cla))
812 (define-public python-openid-teams
814 (name "python-openid-teams")
819 (uri (pypi-uri "python-openid-teams" version))
822 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
823 (build-system python-build-system)
824 (arguments '(#:tests? #f)) ; No tests.
825 (home-page "https://github.com/puiterwijk/python-openid-teams/")
826 (synopsis "Implementation of the OpenID teams extension for python-openid")
828 "@code{openid-teams} is an implementation of the OpenID
829 teams extension for python-openid.")
830 (license license:bsd-3)))
832 (define-public python2-openid-teams
833 (package-with-python2 python-openid-teams))
835 (define-public python-tornado
837 (name "python-tornado")
842 (uri (pypi-uri "tornado" version))
845 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
846 (build-system python-build-system)
848 '(;; FIXME: Two tests error out with:
849 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
851 ;; (modify-phases %standard-phases
854 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
855 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
856 ;; (invoke "python" "-m" "tornado.test.runtests")
860 `(("python-certifi" ,python-certifi)))
861 (home-page "https://www.tornadoweb.org/")
862 (synopsis "Python web framework and asynchronous networking library")
864 "Tornado is a Python web framework and asynchronous networking library,
865 originally developed at FriendFeed. By using non-blocking network I/O,
866 Tornado can scale to tens of thousands of open connections, making it ideal
867 for long polling, WebSockets, and other applications that require a long-lived
868 connection to each user.")
869 (license license:asl2.0)
870 (properties `((python2-variant . ,(delay python2-tornado))))))
872 (define-public python2-tornado
873 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
874 (package (inherit tornado)
876 `(("python2-backport-ssl-match-hostname"
877 ,python2-backport-ssl-match-hostname)
878 ("python2-backports-abc" ,python2-backports-abc)
879 ("python2-singledispatch" ,python2-singledispatch)
880 ,@(package-propagated-inputs tornado))))))
882 (define-public python-tornado-http-auth
884 (name "python-tornado-http-auth")
889 (uri (pypi-uri "tornado-http-auth" version))
891 (base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x"))))
892 (build-system python-build-system)
894 `(("python-tornado" ,python-tornado)))
895 (home-page "https://github.com/gvalkov/tornado-http-auth")
896 (synopsis "Digest and basic authentication module for Tornado")
898 "Provides support for adding authentication to services using the Tornado
899 web framework, either via the basic or digest authentication schemes.")
900 (license license:asl2.0)))
902 (define-public python-terminado
904 (name "python-terminado")
909 (uri (pypi-uri "terminado" version))
912 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
913 (build-system python-build-system)
915 `(("python-tornado" ,python-tornado)
916 ("python-ptyprocess" ,python-ptyprocess)))
918 `(("python-nose" ,python-nose)))
921 (modify-phases %standard-phases
923 (lambda _ (invoke "nosetests") #t)))))
924 (home-page "https://github.com/takluyver/terminado")
925 (synopsis "Terminals served to term.js using Tornado websockets")
926 (description "This package provides a Tornado websocket backend for the
927 term.js Javascript terminal emulator library.")
928 (license license:bsd-2)
929 (properties `((python2-variant . ,(delay python2-terminado))))))
931 (define-public python2-terminado
932 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
933 (package (inherit terminado)
935 `(("python2-backport-ssl-match-hostname"
936 ,python2-backport-ssl-match-hostname)
937 ("python2-futures" ,python2-futures)
938 ,@(package-propagated-inputs terminado))))))
940 (define-public python-wsgi-intercept
942 (name "python-wsgi-intercept")
946 (uri (pypi-uri "wsgi_intercept" version))
949 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
950 (build-system python-build-system)
952 `(("python-six" ,python-six)))
954 `(("python-pytest" ,python-pytest)
955 ("python-httplib2" ,python-httplib2)
956 ("python-requests" ,python-requests)
957 ("python-urllib3" ,python-urllib3)))
958 (synopsis "Puts a WSGI application in place of a real URI for testing")
959 (description "Wsgi_intercept installs a WSGI application in place of a real
960 URI for testing. Testing a WSGI application normally involves starting a
961 server at a local host and port, then pointing your test code to that address.
962 Instead, this library lets you intercept calls to any specific host/port
963 combination and redirect them into a WSGI application importable by your test
964 program. Thus, you can avoid spawning multiple processes or threads to test
966 (home-page "https://github.com/cdent/wsgi-intercept")
967 (license license:expat)))
969 (define-public python-webob
971 (name "python-webob")
976 (uri (pypi-uri "WebOb" version))
979 "1cpqskanmvwia8wqlpcr3ykyxysynjdnbl5namvpg8vw6jnkv1dh"))))
980 (build-system python-build-system)
982 `(("python-nose" ,python-nose)))
983 (home-page "https://webob.org/")
984 (synopsis "WSGI request and response object")
986 "WebOb provides wrappers around the WSGI request environment, and an
987 object to help create WSGI responses.")
988 (license license:expat)))
990 (define-public python2-webob
991 (package-with-python2 python-webob))
993 (define-public python-zope-event
995 (name "python-zope-event")
1000 (uri (pypi-uri "zope.event" version))
1003 "1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9"))))
1004 (build-system python-build-system)
1005 (home-page "https://pypi.org/project/zope.event/")
1006 (synopsis "Event publishing system for Python")
1007 (description "Zope.event provides an event publishing API, intended for
1008 use by applications which are unaware of any subscribers to their events. It
1009 is a simple event-dispatching system on which more sophisticated event
1010 dispatching systems can be built.")
1011 (license license:zpl2.1)))
1013 (define-public python2-zope-event
1014 (package-with-python2 python-zope-event))
1016 (define-public python-zope-interface
1018 (name "python-zope-interface")
1023 (uri (pypi-uri "zope.interface" version))
1026 "0r9kvb1q3lxrdhxabliv9nwhjsdmn1n0vcjv93rlqkyb7yyh24gx"))))
1027 (build-system python-build-system)
1029 `(("python-zope-event" ,python-zope-event)))
1030 (home-page "https://github.com/zopefoundation/zope.interface")
1031 (synopsis "Python implementation of the \"design by contract\"
1033 (description "Zope.interface provides an implementation of \"object
1034 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
1035 conforming to a given API or contract.")
1036 (license license:zpl2.1)))
1038 (define-public python2-zope-interface
1039 (package-with-python2 python-zope-interface))
1041 (define-public python-zope-exceptions
1043 (name "python-zope-exceptions")
1048 (uri (pypi-uri "zope.exceptions" version))
1051 "04bjskwas17yscl8bs3l44maxspw1gdji0zcmr499fs420y9r9az"))))
1052 (build-system python-build-system)
1054 '(#:tests? #f)) ; circular dependency with zope.testrunner
1056 `(("python-zope-interface" ,python-zope-interface)))
1057 (home-page "https://pypi.org/project/zope.exceptions/")
1058 (synopsis "Zope exceptions")
1059 (description "Zope.exceptions provides general-purpose exception types
1060 that have uses outside of the Zope framework.")
1061 (license license:zpl2.1)))
1063 (define-public python2-zope-exceptions
1064 (package-with-python2 python-zope-exceptions))
1066 (define-public python-zope-testing
1068 (name "python-zope-testing")
1073 (uri (pypi-uri "zope.testing" version))
1076 "1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn"))))
1077 (build-system python-build-system)
1078 (home-page "https://pypi.org/project/zope.testing/")
1079 (synopsis "Zope testing helpers")
1080 (description "Zope.testing provides a number of testing utilities for HTML
1081 forms, HTTP servers, regular expressions, and more.")
1082 (license license:zpl2.1)))
1084 (define-public python2-zope-testing
1085 (package-with-python2 python-zope-testing))
1087 (define-public python-zope-testrunner
1089 (name "python-zope-testrunner")
1094 (uri (pypi-uri "zope.testrunner" version))
1097 "0w3q66cy4crpj7c0hw0vvvvwf3g931rnvw7wwa20av7yqvv6ajim"))))
1098 (build-system python-build-system)
1100 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1102 `(("python-zope-testing" ,python-zope-testing)))
1104 `(("python-six" ,python-six)
1105 ("python-zope-exceptions" ,python-zope-exceptions)
1106 ("python-zope-interface" ,python-zope-interface)))
1107 (home-page "https://pypi.org/project/zope.testrunner/")
1108 (synopsis "Zope testrunner script")
1109 (description "Zope.testrunner provides a script for running Python
1111 (license license:zpl2.1)))
1113 (define-public python2-zope-testrunner
1114 (package-with-python2 python-zope-testrunner))
1116 (define-public python-zope-i18nmessageid
1118 (name "python-zope-i18nmessageid")
1123 (uri (pypi-uri "zope.i18nmessageid" version))
1126 "0ndhn4w1qgwkfbwf9vm2bgq418z5g0wmfsgl0d9nz62cd0mi8d4m"))))
1127 (build-system python-build-system)
1129 `(("python-coverage" ,python-coverage)
1130 ("python-zope-testrunner" ,python-zope-testrunner)))
1132 `(("python-six" ,python-six)))
1133 (home-page "https://pypi.org/project/zope.i18nmessageid/")
1134 (synopsis "Message identifiers for internationalization")
1135 (description "Zope.i18nmessageid provides facilities for declaring
1136 internationalized messages within program source text.")
1137 (license license:zpl2.1)))
1139 (define-public python2-zope-i18nmessageid
1140 (package-with-python2 python-zope-i18nmessageid))
1142 (define-public python-zope-schema
1144 (name "python-zope-schema")
1149 (uri (pypi-uri "zope.schema" version))
1152 "0q93j0x52a42khw12al90jw2bk0wly3jwghql3a25zpwwxvn24ya"))))
1153 (build-system python-build-system)
1155 '(#:tests? #f)) ; FIXME: Tests can't find zope.event.
1157 `(("python-zope-event" ,python-zope-event)
1158 ("python-zope-interface" ,python-zope-interface)))
1160 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1161 ("python-zope-testing" ,python-zope-testing)
1162 ("python-zope-testrunner" ,python-zope-testrunner)))
1163 (home-page "https://pypi.org/project/zope.schema/")
1164 (synopsis "Zope data schemas")
1165 (description "Zope.scheme provides extensions to zope.interface for
1166 defining data schemas.")
1167 (license license:zpl2.1)))
1169 (define-public python2-zope-schema
1170 (package-with-python2 python-zope-schema))
1172 (define-public python-zope-configuration
1174 (name "python-zope-configuration")
1178 (uri (pypi-uri "zope.configuration" version))
1181 "1qb88764fd7nkkmqv7fl9bxd1jirynkg5vbqkpqdiffnkxzp85kf"))))
1182 (build-system python-build-system)
1184 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1186 `(("python-zope-testing" ,python-zope-testing)
1187 ("python-zope-testrunner" ,python-zope-testrunner)))
1189 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1190 ("python-zope-interface" ,python-zope-interface)
1191 ("python-zope-schema" ,python-zope-schema)))
1192 (home-page "https://pypi.org/project/zope.configuration/")
1193 (synopsis "Zope Configuration Markup Language")
1194 (description "Zope.configuration implements ZCML, the Zope Configuration
1196 (license license:zpl2.1)))
1198 (define-public python2-zope-configuration
1199 (package-with-python2 python-zope-configuration))
1201 (define-public python-zope-proxy
1203 (name "python-zope-proxy")
1208 (uri (pypi-uri "zope.proxy" version))
1211 "1g0rcfnbchpvqhm76aixqlz544dawrgmy8gw9zwmijhk6wfl9f26"))))
1212 (build-system python-build-system)
1214 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1216 `(("python-zope-testrunner" ,python-zope-testrunner)))
1218 `(("python-zope-interface" ,python-zope-interface)))
1219 (home-page "https://pypi.org/project/zope.proxy/")
1220 (synopsis "Generic, transparent proxies")
1221 (description "Zope.proxy provides generic, transparent proxies for Python.
1222 Proxies are special objects which serve as mostly-transparent wrappers around
1223 another object, intervening in the apparent behavior of the wrapped object
1224 only when necessary to apply the policy (e.g., access checking, location
1225 brokering, etc.) for which the proxy is responsible.")
1226 (license license:zpl2.1)))
1228 (define-public python2-zope-proxy
1229 (package-with-python2 python-zope-proxy))
1231 (define-public python-zope-location
1233 (name "python-zope-location")
1238 (uri (pypi-uri "zope.location" version))
1241 "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857"))))
1242 (build-system python-build-system)
1244 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1246 `(("python-zope-testrunner" ,python-zope-testrunner)))
1248 `(("python-zope-interface" ,python-zope-interface)
1249 ("python-zope-proxy" ,python-zope-proxy)
1250 ("python-zope-schema" ,python-zope-schema)))
1251 (home-page "https://pypi.org/project/zope.location/")
1252 (synopsis "Zope location library")
1253 (description "Zope.location implements the concept of \"locations\" in
1254 Zope3, which are are special objects that have a structural location.")
1255 (license license:zpl2.1)))
1257 (define-public python2-zope-location
1258 (package-with-python2 python-zope-location))
1260 (define-public python-zope-security
1262 (name "python-zope-security")
1267 (uri (pypi-uri "zope.security" version))
1270 "1npfrgnm202v48wavpwn3450dsn7az12lfww95vbhxyjl11f14yb"))))
1271 (build-system python-build-system)
1273 '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
1275 `(("python-zope-component" ,python-zope-component)
1276 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1277 ("python-zope-interface" ,python-zope-interface)
1278 ("python-zope-location" ,python-zope-location)
1279 ("python-zope-proxy" ,python-zope-proxy)
1280 ("python-zope-schema" ,python-zope-schema)))
1282 `(("python-zope-configuration" ,python-zope-configuration)
1283 ("python-zope-testrunner" ,python-zope-testrunner)
1284 ("python-zope-testing" ,python-zope-testing)))
1285 (home-page "https://pypi.org/project/zope.security/")
1286 (synopsis "Zope security framework")
1287 (description "Zope.security provides a generic mechanism to implement
1288 security policies on Python objects.")
1289 (license license:zpl2.1)))
1291 (define-public python2-zope-security
1292 (package-with-python2 python-zope-security))
1294 (define-public python-zope-component
1296 (name "python-zope-component")
1301 (uri (pypi-uri "zope.component" version))
1304 "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv"))))
1305 (build-system python-build-system)
1307 ;; Skip tests due to circular dependency with python-zope-security.
1310 `(("python-zope-testing" ,python-zope-testing)))
1312 `(("python-zope-event" ,python-zope-event)
1313 ("python-zope-interface" ,python-zope-interface)
1314 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1315 ("python-zope-configuration" ,python-zope-configuration)))
1316 (home-page "https://github.com/zopefoundation/zope.component")
1317 (synopsis "Zope Component Architecture")
1318 (description "Zope.component represents the core of the Zope Component
1319 Architecture. Together with the zope.interface package, it provides
1320 facilities for defining, registering and looking up components.")
1321 (license license:zpl2.1)))
1323 (define-public python2-zope-component
1324 (package-with-python2 python-zope-component))
1326 (define-public python-ndg-httpsclient
1328 (name "python-ndg-httpsclient")
1332 (uri (pypi-uri "ndg_httpsclient" version))
1335 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1336 (build-system python-build-system)
1338 '(;; The tests appear to require networking.
1341 `(("python-pyopenssl" ,python-pyopenssl)))
1342 (synopsis "HTTPS support for Python's httplib and urllib2")
1343 (description "This is a HTTPS client implementation for httplib and urllib2
1344 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1345 over the default provided with Python and, importantly, enables full
1346 verification of the SSL peer.")
1347 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1348 (license license:bsd-3)))
1350 ;; python2-openssl requires special care, so package-with-python2 is
1352 (define-public python2-ndg-httpsclient
1353 (package (inherit python-ndg-httpsclient)
1354 (name "python2-ndg-httpsclient")
1356 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1357 ((#:python _) python-2)))
1359 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1361 (define-public python-websocket-client
1363 (name "python-websocket-client")
1368 (uri (pypi-uri "websocket_client" version))
1371 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
1372 (build-system python-build-system)
1374 `(("python-six" ,python-six)))
1375 (home-page "https://github.com/liris/websocket-client")
1376 (synopsis "WebSocket client for Python")
1377 (description "The Websocket-client module provides the low level APIs for
1378 WebSocket usage in Python programs.")
1379 (properties `((python2-variant . ,(delay python2-websocket-client))))
1380 (license license:lgpl2.1+)))
1382 (define-public python2-websocket-client
1383 (let ((base (package-with-python2
1384 (strip-python2-variant python-websocket-client))))
1388 `(("python2-backport-ssl-match-hostname"
1389 ,python2-backport-ssl-match-hostname)
1390 ,@(package-native-inputs base))))))
1392 (define-public python-requests
1394 (name "python-requests")
1398 (uri (pypi-uri "requests" version))
1401 "1d5ybh11jr5sm7xp6mz8fyc7vrp4syifds91m7sj60xalal0gq0i"))))
1402 (build-system python-build-system)
1404 `(("python-certifi" ,python-certifi)
1405 ("python-chardet" ,python-chardet)
1406 ("python-idna" ,python-idna)
1407 ("python-urllib3" ,python-urllib3)))
1409 ;; FIXME: Some tests require network access.
1411 (home-page "http://python-requests.org/")
1412 (synopsis "Python HTTP library")
1414 "Requests is a Python HTTP client library. It aims to be easier to use
1415 than Python’s urllib2 library.")
1416 (license license:asl2.0)))
1418 ;; Some software requires an older version of Requests, notably Docker/Docker
1420 (define-public python-requests-2.20
1421 (package (inherit python-requests)
1425 (uri (pypi-uri "requests" version))
1428 "0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
1430 `(("python-urllib3" ,python-urllib3-1.24)
1431 ("python-idna" ,python-idna-2.7)
1432 ,@(package-propagated-inputs python-requests)))))
1434 ;; Some software requires an older version of Requests, notably Docker
1436 (define-public python-requests-2.7
1437 (package (inherit python-requests)
1441 (uri (pypi-uri "requests" version))
1444 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1446 (define-public python2-requests
1447 (package-with-python2 python-requests))
1449 (define-public python-requests_ntlm
1451 (name "python-requests_ntlm")
1456 (uri (pypi-uri "requests_ntlm" version))
1459 "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
1460 (build-system python-build-system)
1462 `(("python-cryptography" ,python-cryptography)
1463 ("python-ntlm-auth" ,python-ntlm-auth)
1464 ("python-requests" ,python-requests)))
1465 (home-page "https://github.com/requests/requests-ntlm")
1467 "NTLM authentication support for Requests")
1469 "This package allows for HTTP NTLM authentication using the requests
1471 (license license:isc)))
1473 (define-public python-requests-mock
1475 (name "python-requests-mock")
1480 (uri (pypi-uri "requests-mock" version))
1483 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1484 (build-system python-build-system)
1486 `(("python-requests" ,python-requests)
1487 ("python-six" ,python-six)))
1489 `(("python-pbr" ,python-pbr)
1490 ("python-discover" ,python-discover)
1491 ("python-docutils" ,python-docutils)
1492 ("python-fixtures" ,python-fixtures)
1493 ("python-mock" ,python-mock)
1494 ("python-sphinx" ,python-sphinx)
1495 ("python-testrepository" ,python-testrepository)
1496 ("python-testtools" ,python-testtools)))
1497 (home-page "https://requests-mock.readthedocs.org/")
1498 (synopsis "Mock out responses from the requests package")
1500 "This module provides a building block to stub out the HTTP requests
1501 portions of your testing code.")
1502 (properties `((python2-variant . ,(delay python2-requests-mock))))
1503 (license license:asl2.0)))
1505 (define-public python2-requests-mock
1506 (package (inherit (package-with-python2
1507 (strip-python2-variant python-requests-mock)))
1509 `(#:python ,python-2
1510 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1513 (define-public python-requests-toolbelt
1515 (name "python-requests-toolbelt")
1519 (uri (pypi-uri "requests-toolbelt" version))
1522 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1523 (build-system python-build-system)
1525 `(("python-betamax" ,python-betamax)
1526 ("python-mock" ,python-mock)
1527 ("python-pytest" ,python-pytest)))
1529 `(("python-requests" ,python-requests)))
1530 (synopsis "Extensions to python-requests")
1531 (description "This is a toolbelt of useful classes and functions to be used
1532 with python-requests.")
1533 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1534 (license license:asl2.0)))
1536 (define-public python2-requests-toolbelt
1537 (package-with-python2 python-requests-toolbelt))
1539 (define-public python-oauthlib
1541 (name "python-oauthlib")
1545 (uri (pypi-uri "oauthlib" version))
1548 "163jg4a8f7c5ki655grrr47kgljy12wri3qly7ijf64sk1fjrqqc"))))
1549 (build-system python-build-system)
1551 `(#:phases (modify-phases %standard-phases
1554 (invoke "pytest" "-vv"))))))
1556 `(("python-pytest" ,python-pytest)
1557 ("python-pytest-cov" ,python-pytest-cov)
1558 ("python-mock" ,python-mock)))
1560 `(("python-cryptography" ,python-cryptography)
1561 ("python-pyjwt" ,python-pyjwt)
1562 ("python-blinker" ,python-blinker)))
1563 (home-page "https://github.com/oauthlib/oauthlib")
1564 (synopsis "OAuth implementation for Python")
1566 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1567 OAuth request-signing logic.")
1568 (license license:bsd-3)))
1570 (define-public python2-oauthlib
1571 (package-with-python2 python-oauthlib))
1573 (define-public python-rauth
1575 (name "python-rauth")
1580 (uri (pypi-uri "rauth" version))
1583 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1584 (build-system python-build-system)
1586 `(#:test-target "check"))
1588 `(("python-requests" ,python-requests)))
1589 (home-page "https://github.com/litl/rauth")
1590 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1592 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1593 provides service wrappers for convenient connection initialization and
1594 authenticated session objects providing things like keep-alive.")
1595 (license license:expat)
1596 (properties `((python2-variant . ,(delay python2-rauth))))))
1598 (define-public python2-rauth
1599 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1602 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1603 ,@(package-native-inputs base))))))
1605 (define-public python-urllib3
1607 (name "python-urllib3")
1612 (uri (pypi-uri "urllib3" version))
1615 "0cij8qcvvpj62g1q8n785qjkdymfh4b7vf45si4sw64l41rr3rfv"))))
1616 (build-system python-build-system)
1617 (arguments `(#:tests? #f))
1619 `(;; These 5 inputs are used to build urrlib3[secure]
1620 ("python-certifi" ,python-certifi)
1621 ("python-cryptography" ,python-cryptography)
1622 ("python-idna" ,python-idna)
1623 ("python-ipaddress" ,python-ipaddress)
1624 ("python-pyopenssl" ,python-pyopenssl)
1625 ("python-pysocks" ,python-pysocks)))
1626 (home-page "https://urllib3.readthedocs.io/")
1627 (synopsis "HTTP library with thread-safe connection pooling")
1629 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1630 can reuse the same socket connection for multiple requests, it can POST files,
1631 supports url redirection and retries, and also gzip and deflate decoding.")
1632 (license license:expat)))
1634 ;; Some software requires an older version of urllib3, notably Docker.
1635 (define-public python-urllib3-1.24
1636 (package (inherit python-urllib3)
1640 (uri (pypi-uri "urllib3" version))
1643 "1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
1646 (define-public python2-urllib3
1647 (package-with-python2 python-urllib3))
1649 (define-public awscli
1656 (uri (pypi-uri name version))
1659 "0p479mfs9r0m82a217pap8156ijwvhv6r3kqa4k267gd05wgvygm"))))
1660 (build-system python-build-system)
1662 ;; FIXME: The 'pypi' release does not contain tests.
1665 (modify-phases %standard-phases
1666 (add-after 'unpack 'fix-reference-to-groff
1668 (substitute* "awscli/help.py"
1669 (("if not self._exists_on_path\\('groff'\\):") "")
1670 (("raise ExecutableNotFoundError\\('groff'\\)") "")
1671 (("cmdline = \\['groff'")
1672 (string-append "cmdline = ['" (which "groff") "'")))
1675 `(("python-colorama" ,python-colorama)
1676 ("python-botocore" ,python-botocore)
1677 ("python-s3transfer" ,python-s3transfer)
1678 ("python-docutils" ,python-docutils)
1679 ("python-pyyaml" ,python-pyyaml)
1680 ("python-rsa" ,python-rsa)))
1682 `(("groff" ,groff)))
1683 (home-page "https://aws.amazon.com/cli/")
1684 (synopsis "Command line client for AWS")
1685 (description "AWS CLI provides a unified command line interface to the
1686 Amazon Web Services (AWS) API.")
1687 (license license:asl2.0)))
1689 (define-public python-wsgiproxy2
1691 (name "python-wsgiproxy2")
1696 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
1698 (base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf"))))
1699 (build-system python-build-system)
1701 `(("python-webtest" ,python-webtest)))
1703 `(("python-requests" ,python-requests)
1704 ("python-six" ,python-six)
1705 ("python-urllib3" ,python-urllib3)
1706 ("python-webob" ,python-webob)))
1707 (home-page "https://github.com/gawel/WSGIProxy2/")
1708 (synopsis "WSGI Proxy with various http client backends")
1709 (description "WSGI turns HTTP requests into WSGI function calls.
1710 WSGIProxy turns WSGI function calls into HTTP requests.
1711 It also includes code to sign requests and pass private data,
1712 and to spawn subprocesses to handle requests.")
1713 (license license:expat)))
1715 (define-public python2-wsgiproxy2
1716 (package-with-python2 python-wsgiproxy2))
1718 (define-public python-pastedeploy
1720 (name "python-pastedeploy")
1725 (uri (pypi-uri "PasteDeploy" version))
1727 (base32 "16qsq5y6mryslmbp5pn35x4z8z3ndp5rpgl42h226879nrw9hmg7"))))
1728 (build-system python-build-system)
1730 '(#:test-target "pytest"))
1732 `(("python-pytest" ,python-pytest)
1733 ("python-pytest-runner" ,python-pytest-runner)))
1734 (home-page "https://pylonsproject.org/")
1736 "Load, configure, and compose WSGI applications and servers")
1738 "This tool provides code to load WSGI applications and servers from URIs;
1739 these URIs can refer to Python Eggs for INI-style configuration files. Paste
1740 Script provides commands to serve applications based on this configuration
1742 (license license:expat)))
1744 (define-public python2-pastedeploy
1745 (package-with-python2 python-pastedeploy))
1747 (define-public python-webtest
1749 (name "python-webtest")
1754 (uri (pypi-uri "WebTest" version))
1757 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
1758 (build-system python-build-system)
1760 ;; Tests require python-pyquery, which creates a circular dependency.
1763 `(("python-waitress" ,python-waitress)
1764 ("python-webob" ,python-webob)
1765 ("python-six" ,python-six)
1766 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1767 (home-page "https://docs.pylonsproject.org/projects/webtest/")
1768 (synopsis "Helper to test WSGI applications")
1769 (description "Webtest allows you to test your Python web applications
1770 without starting an HTTP server. It supports anything that supports the
1772 (license license:expat)))
1774 (define-public python2-webtest
1775 (package-with-python2 python-webtest))
1777 (define-public python-flask
1779 (name "python-flask")
1783 (uri (pypi-uri "Flask" version))
1786 "0q3h295izcil7lswkzfnyg3k5gq4hpmqmpl6i7s5m1n9szi1myjf"))))
1787 (build-system python-build-system)
1790 (modify-phases %standard-phases
1793 (setenv "PYTHONPATH" (string-append "./build/lib:"
1794 (getenv "PYTHONPATH")))
1795 (invoke "pytest" "-vv" "tests"))))))
1797 `(("python-pytest" ,python-pytest)))
1799 `(("python-itsdangerous" ,python-itsdangerous)
1800 ("python-jinja2" ,python-jinja2)
1801 ("python-click" ,python-click)
1802 ("python-werkzeug" ,python-werkzeug)))
1803 (home-page "https://www.palletsprojects.com/p/flask/")
1804 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
1805 (description "Flask is a micro web framework based on the Werkzeug toolkit
1806 and Jinja2 template engine. It is called a micro framework because it does not
1807 presume or force a developer to use a particular tool or library.")
1808 (license license:bsd-3)))
1810 (define-public python2-flask
1811 (package-with-python2 python-flask))
1813 (define-public python-flask-wtf
1815 (name "python-flask-wtf")
1820 (uri (pypi-uri "Flask-WTF" version))
1823 "086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl"))))
1824 (build-system python-build-system)
1827 (modify-phases %standard-phases
1830 (setenv "PYTHONPATH" (string-append "./build/lib:"
1831 (getenv "PYTHONPATH")))
1832 (invoke "pytest" "-vv"))))))
1834 `(("python-flask-babel" ,python-flask-babel)
1835 ("python-babel" ,python-babel)
1836 ("python-wtforms" ,python-wtforms)))
1838 `(("python-pytest" ,python-pytest)))
1839 (home-page "https://github.com/lepture/flask-wtf")
1840 (synopsis "Simple integration of Flask and WTForms")
1841 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
1842 upload, and reCAPTCHA.")
1843 (license license:bsd-3)))
1845 (define-public python2-flask-wtf
1846 (package-with-python2 python-flask-wtf))
1848 (define-public python-flask-multistatic
1850 (name "python-flask-multistatic")
1855 (uri (pypi-uri "flask-multistatic" version))
1858 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
1859 (build-system python-build-system)
1861 `(("python-flask" ,python-flask)))
1862 (home-page "https://pagure.io/flask-multistatic")
1863 (synopsis "Flask plugin to allow overriding static files")
1864 (description "@code{flask-multistatic} is a flask plugin that adds support
1865 for overriding static files.")
1866 (license license:gpl3+)))
1868 (define-public python2-flask-multistatic
1869 (package-with-python2 python-flask-multistatic))
1871 (define-public python-cookies
1873 (name "python-cookies")
1877 (uri (pypi-uri "cookies" version))
1880 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
1881 (build-system python-build-system)
1883 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
1886 `(("python-pytest" ,python-pytest)))
1887 (synopsis "HTTP cookie parser and renderer")
1888 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
1890 (home-page "https://gitlab.com/sashahart/cookies")
1891 (license license:expat)))
1893 (define-public python2-cookies
1894 (package-with-python2 python-cookies))
1896 (define-public python-responses
1898 (name "python-responses")
1902 (uri (pypi-uri "responses" version))
1905 "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah"))))
1906 (build-system python-build-system)
1908 `(;; Test suite is not distributed:
1909 ;; https://github.com/getsentry/responses/issues/38
1912 `(("python-mock" ,python-mock)))
1914 `(("python-requests" ,python-requests)
1915 ("python-cookies" ,python-cookies)
1916 ("python-six" ,python-six)))
1917 (home-page "https://github.com/getsentry/responses")
1918 (synopsis "Utility for mocking out the `requests` Python library")
1919 (description "A utility library for mocking out the `requests` Python
1921 (license license:asl2.0)))
1923 (define-public python2-responses
1924 (package-with-python2 python-responses))
1926 (define-public python-grequests
1928 (name "python-grequests")
1933 (uri (pypi-uri "grequests" version))
1936 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
1937 (build-system python-build-system)
1939 `(("python-gevent" ,python-gevent)
1940 ("python-requests" ,python-requests)))
1942 `(("python-nose" ,python-nose)))
1943 (home-page "https://github.com/kennethreitz/grequests")
1944 (synopsis "Python library for asynchronous HTTP requests")
1945 (description "GRequests is a Python library that allows you to use
1946 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
1947 (license license:bsd-2)))
1949 (define-public python-geventhttpclient
1951 (name "python-geventhttpclient")
1955 (uri (pypi-uri "geventhttpclient" version))
1958 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
1959 (modules '((guix build utils)))
1962 ;; Delete pre-compiled files.
1963 (for-each delete-file (find-files "src/geventhttpclient"
1966 (build-system python-build-system)
1969 (modify-phases %standard-phases
1970 (add-after 'unpack 'delete-network-tests
1972 (delete-file "src/geventhttpclient/tests/test_client.py")
1975 (add-after 'install 'check
1976 (lambda* (#:key inputs outputs #:allow-other-keys)
1977 (add-installed-pythonpath inputs outputs)
1978 (invoke "py.test" "src/geventhttpclient/tests" "-v"
1979 ;; Append the test modules to sys.path to avoid
1980 ;; namespace conflict which breaks SSL tests.
1981 "--import-mode=append")
1984 `(("python-pytest" ,python-pytest)))
1986 `(("python-certifi" ,python-certifi)
1987 ("python-gevent" ,python-gevent)
1988 ("python-six" ,python-six)))
1989 (home-page "https://github.com/gwik/geventhttpclient")
1990 (synopsis "HTTP client library for gevent")
1991 (description "@code{python-geventhttpclient} is a high performance,
1992 concurrent HTTP client library for python using @code{gevent}.")
1993 (license license:expat)))
1995 (define-public python2-geventhttpclient
1996 (package-with-python2 python-geventhttpclient))
1998 (define-public python-requests-oauthlib
2000 (name "python-requests-oauthlib")
2005 (uri (pypi-uri "requests-oauthlib" version))
2008 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
2009 (build-system python-build-system)
2012 (modify-phases %standard-phases
2013 ;; removes tests that require network access
2014 (add-before 'check 'pre-check
2016 (delete-file "tests/test_core.py")
2019 `(("python-pyjwt" ,python-pyjwt)
2020 ("python-requests-mock" ,python-requests-mock)
2021 ("python-mock" ,python-mock)))
2023 `(("python-oauthlib" ,python-oauthlib)
2024 ("python-requests" ,python-requests)))
2026 "https://github.com/requests/requests-oauthlib")
2028 "OAuthlib authentication support for Requests")
2030 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
2031 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
2032 (license license:isc)))
2034 (define-public python2-requests-oauthlib
2035 (package-with-python2 python-requests-oauthlib))
2037 (define-public python-url
2043 (uri (pypi-uri "url" version))
2046 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
2047 (build-system python-build-system)
2049 `(("python-publicsuffix" ,python-publicsuffix)))
2051 `(("python-coverage" ,python-coverage)
2052 ("python-nose" ,python-nose)))
2054 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
2055 (home-page "https://github.com/seomoz/url-py")
2056 (synopsis "URL Parsing")
2057 (description "Library for parsing urls.")
2058 (license license:expat)
2059 (properties `((python2-variant . ,(delay python2-url))))))
2061 (define-public python2-url
2062 (let ((base (package-with-python2 (strip-python2-variant python-url))))
2063 (package (inherit base)
2065 `(("python2-publicsuffix" ,python2-publicsuffix))))))
2067 (define-public python-cachecontrol
2069 (name "python-cachecontrol")
2074 ;; Pypi does not have tests.
2076 (url "https://github.com/ionrock/cachecontrol")
2077 (commit (string-append "v" version))))
2078 (file-name (git-file-name name version))
2081 "03lgc65sl04n0cgzmmgg99bk83f9i6k8yrmcd4hpl46q1pymn0kz"))))
2082 (build-system python-build-system)
2084 ;; Versions > 0.11.6 depend on CherryPy for testing.
2085 ;; It's too much work to package CherryPy for now.
2088 `(("python-requests" ,python-requests)
2089 ("python-msgpack" ,python-msgpack)
2090 ("python-lockfile" ,python-lockfile)))
2091 (home-page "https://github.com/ionrock/cachecontrol")
2092 (synopsis "The httplib2 caching algorithms for use with requests")
2093 (description "CacheControl is a port of the caching algorithms in
2094 @code{httplib2} for use with @code{requests} session objects.")
2095 (license license:asl2.0)))
2097 (define-public python2-cachecontrol
2098 (package-with-python2 python-cachecontrol))
2100 (define-public python-betamax
2102 (name "python-betamax")
2107 (uri (pypi-uri "betamax" version))
2110 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
2111 (build-system python-build-system)
2113 '(;; Many tests fail because they require networking.
2116 `(("python-requests" ,python-requests)))
2117 (home-page "https://github.com/sigmavirus24/betamax")
2118 (synopsis "Record HTTP interactions with python-requests")
2119 (description "Betamax will record your test suite's HTTP interactions and
2120 replay them during future tests. It is designed to work with python-requests.")
2121 (license license:expat)))
2123 (define-public python2-betamax
2124 (package-with-python2 python-betamax))
2126 (define-public python-betamax-matchers
2128 (name "python-betamax-matchers")
2133 (uri (pypi-uri "betamax-matchers" version))
2136 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
2137 (build-system python-build-system)
2139 `(("python-betamax" ,python-betamax)
2140 ("python-requests-toolbelt" ,python-requests-toolbelt)))
2141 (home-page "https://github.com/sigmavirus24/betamax_matchers")
2142 (synopsis "VCR imitation for python-requests")
2143 (description "@code{betamax-matchers} provides a set of Matchers for
2145 (license license:asl2.0)))
2147 (define-public python2-betamax-matchers
2148 (package-with-python2 python-betamax-matchers))
2150 (define-public python-s3transfer
2152 (name "python-s3transfer")
2156 (uri (pypi-uri "s3transfer" version))
2159 "08fhj73b1ai52hrs2q3nggshq3pswn1gq8ch3m009cb2v2vmqggj"))))
2160 (build-system python-build-system)
2163 (modify-phases %standard-phases
2166 ;; Some of the 'integration' tests require network access or
2167 ;; login credentials.
2168 (invoke "nosetests" "--exclude=integration")
2171 `(("python-docutils" ,python-docutils)
2172 ("python-mock" ,python-mock)
2173 ("python-nose" ,python-nose)))
2175 `(("python-botocore" ,python-botocore)
2176 ("python-urllib3" ,python-urllib3)))
2177 (synopsis "Amazon S3 Transfer Manager")
2178 (description "S3transfer is a Python library for managing Amazon S3
2180 (home-page "https://github.com/boto/s3transfer")
2181 (license license:asl2.0)
2182 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2184 (define-public python2-s3transfer
2185 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2189 `(("python2-futures" ,python2-futures)
2190 ,@(package-native-inputs base))))))
2192 (define-public python-slimit
2194 (name "python-slimit")
2199 (uri (pypi-uri "slimit" version ".zip"))
2202 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2203 (build-system python-build-system)
2205 `(("unzip" ,unzip)))
2207 `(("python-ply" ,python-ply)))
2208 (home-page "https://slimit.readthedocs.io/")
2209 (synopsis "JavaScript minifier, parser and lexer written in Python")
2211 "SlimIt is a JavaScript minifier written in Python. It compiles
2212 JavaScript into more compact code so that it downloads and runs faster.
2213 SlimIt also provides a library that includes a JavaScript parser, lexer,
2214 pretty printer and a tree visitor.")
2215 (license license:expat)))
2217 (define-public python-flask-restful
2219 (name "python-flask-restful")
2224 (uri (pypi-uri "Flask-RESTful" version))
2225 (patches (search-patches "python-flask-restful-werkzeug-compat.patch"))
2228 "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
2229 (build-system python-build-system)
2231 `(("python-aniso8601" ,python-aniso8601)
2232 ("python-flask" ,python-flask)
2233 ("python-pycrypto" ,python-pycrypto)
2234 ("python-pytz" ,python-pytz)))
2236 `(;; Optional dependency of Flask. Tests need it.
2237 ("python-blinker" ,python-blinker)
2238 ("python-mock" ,python-mock) ; For tests
2239 ("python-nose" ,python-nose))) ;for tests
2241 "https://www.github.com/flask-restful/flask-restful/")
2243 "Flask module for creating REST APIs")
2245 "This package contains a Flask module for creating REST APIs.")
2246 (license license:bsd-3)))
2248 (define-public python-flask-basicauth
2250 (name "python-flask-basicauth")
2255 (uri (pypi-uri "Flask-BasicAuth" version))
2258 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2259 (build-system python-build-system)
2261 `(("python-flask" ,python-flask)))
2263 "https://github.com/jpvanhal/flask-basicauth")
2265 "HTTP basic access authentication for Flask")
2267 "This package provides HTTP basic access authentication for Flask.")
2268 (license license:bsd-3)))
2270 (define-public python-flask-htpasswd
2272 (name "python-flask-htpasswd")
2277 (uri (pypi-uri "flask-htpasswd" version))
2280 "14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra"))))
2281 (build-system python-build-system)
2283 `(("python-flask" ,python-flask)
2284 ("python-itsdangerous" ,python-itsdangerous)
2285 ("python-passlib" ,python-passlib)
2286 ("python-tox" ,python-tox)))
2287 (home-page "http://github.com/carsongee/flask-htpasswd")
2288 (synopsis "Basic authentication via htpasswd files in Flask applications")
2289 (description "This package provides Basic authentication via
2290 @file{htpasswd} files and access_token authentication in Flask
2292 (license license:bsd-3)))
2294 (define-public python-flask-sqlalchemy
2296 (name "python-flask-sqlalchemy")
2300 (uri (pypi-uri "Flask-SQLAlchemy" version))
2303 "0nnllf0ddbh9jlhngnyjj98lbxgxr1csaplllx0caw98syq0k5hc"))))
2304 (build-system python-build-system)
2306 `(("python-flask" ,python-flask)
2307 ("python-sqlalchemy" ,python-sqlalchemy)))
2308 (home-page "https://github.com/mitsuhiko/flask-sqlalchemy")
2309 (synopsis "Module adding SQLAlchemy support to your Flask application")
2311 "This package adds SQLAlchemy support to your Flask application.")
2312 (license license:bsd-3)))
2314 (define-public python-flask-restplus
2316 (name "python-flask-restplus")
2321 (uri (pypi-uri "flask-restplus" version))
2324 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2325 (build-system python-build-system)
2327 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2329 ;; (modify-phases %standard-phases
2332 ;; (invoke "nosetests")
2335 `(("python-aniso8601" ,python-aniso8601)
2336 ("python-flask" ,python-flask)
2337 ("python-jsonschema" ,python-jsonschema)
2338 ("python-pytz" ,python-pytz)
2339 ("python-six" ,python-six)))
2341 `(("python-tzlocal" ,python-tzlocal)
2342 ("python-blinker" ,python-blinker)
2343 ("python-nose" ,python-nose)
2344 ("python-rednose" ,python-rednose)))
2345 (home-page "https://github.com/noirbizarre/flask-restplus")
2346 (synopsis "Framework for documented API development with Flask")
2347 (description "This package provides a framework for API development with
2348 the Flask web framework in Python. It is similar to package
2349 @code{python-flask-restful} but supports the @code{python-swagger}
2350 documentation builder.")
2351 (license license:expat)))
2353 (define-public python-flask-restful-swagger
2355 (name "python-flask-restful-swagger")
2360 (uri (pypi-uri "flask-restful-swagger" version))
2363 "1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq"))))
2364 (build-system python-build-system)
2365 (arguments '(#:tests? #f)) ;no tests
2367 `(("python-flask-restful" ,python-flask-restful)))
2368 (home-page "https://github.com/rantav/flask-restful-swagger")
2369 (synopsis "Extract Swagger specs from Flask-Restful projects")
2370 (description "This package lets you extract Swagger API documentation
2371 specs from your Flask-Restful projects.")
2372 (license license:expat)))
2374 (define-public python2-flask-restful-swagger
2375 (package-with-python2 python-flask-restful-swagger))
2377 (define-public python-htmlmin
2379 (name "python-htmlmin")
2384 (uri (pypi-uri "htmlmin" version))
2387 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2389 `(#:tests? #f)) ; no tests
2390 (build-system python-build-system)
2391 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2392 (synopsis "HTML minifier")
2393 (description "@code{htmlmin} is an HTML minifier that just works.
2394 It comes with safe defaults and easily configurable options.")
2395 (license license:bsd-3)))
2397 (define-public python2-htmlmin
2398 (package-with-python2 python-htmlmin))
2400 (define-public python-flask-htmlmin
2402 (name "python-flask-htmlmin")
2407 (uri (pypi-uri "Flask-HTMLmin" version))
2410 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2412 `(("python-flask" ,python-flask)
2413 ("python-htmlmin" ,python-htmlmin)))
2414 (build-system python-build-system)
2415 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2416 (synopsis "HTML response minifier for Flask")
2418 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2419 (license license:bsd-3)))
2421 (define-public python2-flask-htmlmin
2422 (package-with-python2 python-flask-htmlmin))
2424 (define-public python-jsmin
2426 (name "python-jsmin")
2431 (uri (pypi-uri "jsmin" version))
2434 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2435 (build-system python-build-system)
2436 (home-page "https://github.com/tikitu/jsmin/")
2437 (synopsis "Python JavaScript minifier")
2439 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2440 on the command line.")
2441 (license license:expat)))
2443 (define-public python-flask-login
2445 (name "python-flask-login")
2451 (url "https://github.com/maxcountryman/flask-login.git")
2453 (file-name (git-file-name name version))
2455 (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
2456 (build-system python-build-system)
2458 `(("python-flask" ,python-flask)))
2461 `(("python-blinker" ,python-blinker)
2462 ("python-coverage" ,python-coverage)
2463 ("python-mock" ,python-mock)
2464 ("python-pycodestyle" ,python-pycodestyle)
2465 ("python-pyflakes" ,python-pyflakes)
2466 ("python-pytest" ,python-pytest)
2467 ("python-semantic-version" ,python-semantic-version)
2468 ("python-werkzeug" ,python-werkzeug)))
2469 (home-page "https://github.com/maxcountryman/flask-login")
2470 (synopsis "User session management for Flask")
2472 "@code{Flask-Login} provides user session management for Flask. It
2473 handles the common tasks of logging in, logging out, and remembering your
2474 users' sessions over extended periods of time.")
2475 (license license:expat)))
2477 (define-public python2-flask-login
2478 (package-with-python2 python-flask-login))
2480 (define-public python-oauth2client
2482 (name "python-oauth2client")
2487 (uri (pypi-uri "oauth2client" version))
2490 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2491 (build-system python-build-system)
2495 `(("python-httplib2" ,python-httplib2)
2496 ("python-pyasn1" ,python-pyasn1)
2497 ("python-pyasn1-modules" ,python-pyasn1-modules)
2498 ("python-rsa" ,python-rsa)
2499 ("python-six" ,python-six)))
2500 (home-page "https://github.com/google/oauth2client/")
2501 (synopsis "OAuth 2.0 client library")
2502 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2503 library for Python")
2504 (license license:asl2.0)))
2506 (define-public python2-oauth2client
2507 (package-with-python2 python-oauth2client))
2509 (define-public python-flask-oidc
2511 (name "python-flask-oidc")
2516 (uri (pypi-uri "flask-oidc" version))
2519 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
2520 (build-system python-build-system)
2522 `(("python-flask" ,python-flask)
2523 ("python-itsdangerous" ,python-itsdangerous)
2524 ("python-oauth2client" ,python-oauth2client)
2525 ("python-six" ,python-six)))
2527 `(("python-nose" ,python-nose)
2528 ("python-mock" ,python-mock)))
2529 (home-page "https://github.com/puiterwijk/flask-oidc")
2530 (synopsis "OpenID Connect extension for Flask")
2531 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2533 (license license:bsd-2)))
2535 (define-public python-webassets
2537 (name "python-webassets")
2542 (uri (pypi-uri "webassets" version))
2545 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2546 (build-system python-build-system)
2548 `(("python-jinja2" ,python-jinja2)
2549 ("python-mock" ,python-mock)
2550 ("python-nose" ,python-nose)
2551 ("python-pytest" ,python-pytest)))
2552 (home-page "https://github.com/miracle2k/webassets")
2553 (synopsis "Media asset management")
2554 (description "Merges, minifies and compresses Javascript and CSS files,
2555 supporting a variety of different filters, including YUI, jsmin, jspacker or
2556 CSS tidy. Also supports URL rewriting in CSS files.")
2557 (license license:bsd-2)))
2559 (define-public python-cssmin
2561 (name "python-cssmin")
2566 (uri (pypi-uri "cssmin" version))
2569 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2570 (build-system python-build-system)
2571 (home-page "https://github.com/zacharyvoase/cssmin")
2572 (synopsis "Python port of the YUI CSS Compressor")
2573 (description "Python port of the YUI CSS Compressor.")
2574 (license (list license:expat license:bsd-3))))
2576 (define-public python2-cssmin
2577 (package-with-python2 python-cssmin))
2579 (define-public python-elasticsearch
2581 (name "python-elasticsearch")
2586 (uri (pypi-uri "elasticsearch" version))
2589 "0rnjvlhw4v3vg14l519qliy1s1zpmx3827q0xfviwvk42rr7hh01"))))
2590 (build-system python-build-system)
2592 `(("python-mock" ,python-mock)
2593 ("python-nosexcover" ,python-nosexcover)
2594 ("python-pyaml" ,python-pyaml)
2595 ("python-requests" ,python-requests)))
2597 `(("urllib3" ,python-urllib3)))
2599 ;; tests require the test_elasticsearch module but it is not distributed.
2601 (home-page "https://github.com/elastic/elasticsearch-py")
2602 (synopsis "Low-level client for Elasticsearch")
2603 (description "Official low-level client for Elasticsearch. Its goal is to
2604 provide common ground for all Elasticsearch-related code in Python; because of
2605 this it tries to be opinion-free and very extendable.")
2606 (license license:expat)))
2608 (define-public python2-elasticsearch
2609 (package-with-python2 python-elasticsearch))
2611 (define-public python-flask-script
2613 (name "python-flask-script")
2618 (uri (pypi-uri "Flask-Script" version))
2621 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
2622 (build-system python-build-system)
2625 (modify-phases %standard-phases
2626 (add-after 'unpack 'patch-tests
2628 (substitute* "tests.py"
2629 (("flask\\.ext\\.script") "flask_script"))
2632 `(("python-flask" ,python-flask)
2633 ("python-argcomplete" ,python-argcomplete)
2634 ("python-werkzeug" ,python-werkzeug)))
2636 `(("python-pytest" ,python-pytest)))
2638 "https://github.com/smurfix/flask-script")
2639 (synopsis "Scripting support for Flask")
2640 (description "The Flask-Script extension provides support for writing
2641 external scripts in Flask. This includes running a development server,
2642 a customised Python shell, scripts to set up your database, cronjobs,
2643 and other command-line tasks that belong outside the web application
2645 (license license:bsd-3)))
2647 (define-public python2-flask-script
2648 (package-with-python2 python-flask-script))
2650 (define-public python-flask-migrate
2652 (name "python-flask-migrate")
2657 (uri (pypi-uri "Flask-Migrate" version))
2660 "1vip9ww6l18dxffjsggm83k71zkvihxpnhaswpv8klh95s6517d6"))))
2661 (build-system python-build-system)
2663 `(("python-flask" ,python-flask)
2664 ("python-alembic" ,python-alembic)
2665 ("python-sqlalchemy" ,python-sqlalchemy)
2666 ("python-flask-script" ,python-flask-script)
2667 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2668 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2669 (synopsis "SQLAlchemy database migrations for Flask programs using
2671 (description "This package contains SQLAlchemy database migration tools
2672 for Flask programs that are using @code{python-alembic}.")
2673 (license license:expat)))
2675 (define-public python-genshi
2677 (name "python-genshi")
2683 (url "https://github.com/edgewall/genshi.git")
2685 (file-name (git-file-name name version))
2687 (base32 "04bw7nd4wyn8ixnhik57hny2xpjjpn80k5hp6691inix5gc6rxaf"))))
2688 (build-system python-build-system)
2689 (home-page "https://genshi.edgewall.org/")
2690 (synopsis "Toolkit for generation of output for the web")
2691 (description "Genshi is a Python library that provides an integrated set
2692 of components for parsing, generating, and processing HTML, XML or other
2693 textual content for output generation on the web.")
2694 (license license:bsd-3)))
2696 (define-public python2-genshi
2697 (package-with-python2 python-genshi))
2699 (define-public python-flask-principal
2701 (name "python-flask-principal")
2706 (uri (pypi-uri "Flask-Principal" version))
2709 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
2710 (build-system python-build-system)
2712 `(("python-blinker" ,python-blinker)))
2714 `(("python-flask" ,python-flask)
2715 ("python-nose" ,python-nose)))
2716 (home-page "https://pythonhosted.org/Flask-Principal/")
2717 (synopsis "Identity management for Flask")
2718 (description "@code{flask_principal} is a identity management library for
2719 Flask. It supports managing both authentication and authorization data in a
2720 thread-local variable.")
2721 (license license:expat)))
2723 (define-public python2-flask-principal
2724 (package-with-python2 python-flask-principal))
2726 (define-public python-flask-httpauth
2728 (name "python-flask-httpauth")
2733 (uri (pypi-uri "Flask-HTTPAuth" version))
2736 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
2737 (build-system python-build-system)
2739 `(("python-flask" ,python-flask)))
2740 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
2741 (synopsis "Basic and Digest HTTP authentication for Flask routes")
2742 (description "@code{flask_httpauth} provides Basic and Digest HTTP
2743 authentication for Flask routes.")
2744 (license license:expat)))
2746 (define-public python2-flask-httpauth
2747 (package-with-python2 python-flask-httpauth))
2749 (define-public python-uritemplate
2751 (name "python-uritemplate")
2756 (uri (pypi-uri "uritemplate" version))
2759 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
2760 (build-system python-build-system)
2761 (home-page "https://uritemplate.readthedocs.org")
2762 (synopsis "Library to deal with URI Templates")
2763 (description "@code{uritemplate} provides Python library to deal with URI
2765 (license license:bsd-2)))
2767 (define-public python2-uritemplate
2768 (package-with-python2 python-uritemplate))
2770 (define-public python-publicsuffix
2772 (name "python-publicsuffix")
2776 (uri (pypi-uri "publicsuffix" version))
2779 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
2780 (build-system python-build-system)
2782 `(#:tests? #f)) ; tests use the internet
2783 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
2784 (synopsis "Get suffix for a domain name")
2785 (description "Get a public suffix for a domain name using the Public Suffix
2787 (license license:expat)))
2789 (define-public python2-publicsuffix
2790 (package-with-python2 python-publicsuffix))
2792 (define-public python-publicsuffix2
2794 (name "python-publicsuffix2")
2795 (version "2.20191221")
2799 (uri (pypi-uri "publicsuffix2" version))
2801 (base32 "0yzysvfj1najr1mb4pcqrbmjir3xpb69rlffln95a3cdm8qwry00"))))
2802 (build-system python-build-system)
2805 (modify-phases %standard-phases
2806 (add-after 'unpack 'ignore-maintainer-inputs
2808 ;; Comment out a demand for python-requests, which is used only by
2809 ;; the unused ‘update_psl’ helper command.
2810 (substitute* "setup.py"
2811 (("'requests " match)
2812 (format #f "# ~a" match)))
2814 #:tests? #f)) ; the test suite requires network access
2815 (home-page "https://github.com/pombredanne/python-publicsuffix2")
2816 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
2817 (description "Get a public suffix for a domain name using the Public Suffix
2818 List. Forked from and using the same API as the publicsuffix package.")
2819 (license (list license:expat license:mpl2.0))))
2821 (define-public python2-publicsuffix2
2822 (package-with-python2 python-publicsuffix2))
2824 (define-public python-werkzeug
2826 (name "python-werkzeug")
2831 (uri (pypi-uri "Werkzeug" version))
2834 "15kh0z61klp62mrc1prka13xsshxn0rsp1j1s2964iw86yisi6qn"))))
2835 (build-system python-build-system)
2838 (modify-phases %standard-phases
2840 (add-after 'install 'check
2841 (lambda* (#:key inputs outputs #:allow-other-keys)
2842 (add-installed-pythonpath inputs outputs)
2843 (invoke "python" "-m" "pytest"))))))
2845 `(("python-requests" ,python-requests)))
2847 `(("python-pytest" ,python-pytest)
2848 ("python-pytest-timeout" ,python-pytest-timeout)))
2849 (home-page "https://www.palletsprojects.org/p/werkzeug/")
2850 (synopsis "Utilities for WSGI applications")
2851 (description "One of the most advanced WSGI utility modules. It includes a
2852 powerful debugger, full-featured request and response objects, HTTP utilities to
2853 handle entity tags, cache control headers, HTTP dates, cookie handling, file
2854 uploads, a powerful URL routing system and a bunch of community-contributed
2856 (license license:x11)))
2858 (define-public python2-werkzeug
2859 (package-with-python2 python-werkzeug))
2861 (define-public python-bottle
2863 (name "python-bottle")
2868 (uri (pypi-uri "bottle" version))
2871 "0m9k2a7yxvggc4kw8fsvj381vgsvfcdshg5nzy6vwrxiw2p53drr"))))
2872 (build-system python-build-system)
2873 (home-page "http://bottlepy.org/")
2874 (synopsis "WSGI framework for small web-applications.")
2875 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
2876 (license license:expat)))
2878 (define-public python2-bottle
2879 (package-with-python2 python-bottle))
2881 (define-public python-wtforms
2883 (name "python-wtforms")
2888 (uri (pypi-uri "WTForms" version ".zip"))
2891 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
2892 (build-system python-build-system)
2895 (modify-phases %standard-phases
2896 (add-after 'unpack 'remove-django-test
2897 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
2901 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
2902 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
2905 `(("unzip" ,unzip)))
2906 (home-page "http://wtforms.simplecodes.com/")
2908 "Form validation and rendering library for Python web development")
2910 "WTForms is a flexible forms validation and rendering library
2911 for Python web development. It is very similar to the web form API
2912 available in Django, but is a standalone package.")
2913 (license license:bsd-3)))
2915 (define-public python2-wtforms
2916 (package-with-python2 python-wtforms))
2918 (define-public python-paste
2920 (name "python-paste")
2925 (uri (pypi-uri "Paste" version))
2928 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
2929 (patches (search-patches "python-paste-remove-timing-test.patch"))
2930 (modules '((guix build utils)))
2933 ;; This test calls out to the internet.
2934 (delete-file "tests/test_proxy.py") #t))))
2935 (build-system python-build-system)
2937 `(("python-pytest" ,python-pytest)
2938 ("python-pytest-runner" ,python-pytest-runner)
2939 ("python-nose" ,python-nose)))
2941 `(("python-six" ,python-six)))
2942 (home-page "https://pythonpaste.readthedocs.io/")
2944 "Python web development tools, focusing on WSGI")
2946 "Paste provides a variety of web development tools and middleware which
2947 can be nested together to build web applications. Paste's design closely
2948 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
2949 (license license:expat)))
2951 (define-public python2-paste
2952 (package-with-python2 python-paste))
2954 (define-public python-pastescript
2956 (name "python-pastescript")
2961 (uri (pypi-uri "PasteScript" version))
2964 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
2965 (build-system python-build-system)
2967 `(("python-nose" ,python-nose)))
2969 `(("python-paste" ,python-paste)
2970 ("python-pastedeploy" ,python-pastedeploy)))
2971 (home-page (string-append "https://web.archive.org/web/20161025192515/"
2972 "http://pythonpaste.org/script/"))
2974 '(;; Unfortunately, this requires the latest unittest2,
2975 ;; but that requires traceback2 which requires linecache2 which requires
2976 ;; unittest2. So we're skipping tests for now.
2977 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
2978 ;; so in theory we could get around this situation somehow.)
2981 "Pluggable command line tool for serving web applications and more")
2983 "PasteScript is a plugin-friendly command line tool which provides a
2984 variety of features, from launching web applications to bootstrapping project
2986 (license license:expat)))
2988 (define-public python2-pastescript
2989 (package-with-python2 python-pastescript))
2991 (define-public python2-urlgrabber
2993 (name "python2-urlgrabber")
2998 (uri (pypi-uri "urlgrabber" version))
3000 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
3001 (build-system python-build-system)
3002 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
3003 (home-page "http://urlgrabber.baseurl.org")
3004 (synopsis "High-level cross protocol url-grabber")
3005 (description "@code{urlgrabber} is Python2 library that unifies access to
3006 files available on web, FTP or locally. It supports HTTP, FTP and file://
3007 protocols, it supports features like HTTP keep-alive, reget, throttling and
3009 (license license:lgpl2.1+)))
3011 (define-public python-pycares
3013 (name "python-pycares")
3018 (uri (pypi-uri "pycares" version))
3021 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
3022 (build-system python-build-system)
3024 `(#:tests? #f)) ;tests require internet access
3025 (home-page "http://github.com/saghul/pycares")
3026 (synopsis "Python interface for @code{c-ares}")
3027 (description "@code{pycares} is a Python module which provides an
3028 interface to @code{c-ares}, a C library that performs DNS requests and
3029 name resolutions asynchronously.")
3030 (license license:expat)))
3032 (define-public python-yarl
3034 (name "python-yarl")
3039 (uri (pypi-uri "yarl" version))
3042 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
3043 (build-system python-build-system)
3045 `(("python-pytest" ,python-pytest)
3046 ("python-pytest-runner" ,python-pytest-runner)))
3048 `(("python-idna" ,python-idna)
3049 ("python-multidict" ,python-multidict)))
3050 (home-page "https://github.com/aio-libs/yarl/")
3051 (synopsis "Yet another URL library")
3052 (description "@code{yarl} module provides handy @code{URL} class
3053 for URL parsing and changing.")
3054 (license license:asl2.0)))
3056 (define-public python-google-api-client
3058 (name "python-google-api-client")
3063 (uri (pypi-uri "google-api-python-client" version))
3066 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
3067 (build-system python-build-system)
3069 '(#:tests? #f)) ; tests require internet access
3071 `(("python-httplib2" ,python-httplib2)
3072 ("python-six" ,python-six)
3073 ("python-oauth2client" ,python-oauth2client)
3074 ("python-uritemplate" ,python-uritemplate)))
3075 (home-page "https://github.com/google/google-api-python-client")
3076 (synopsis "Core Python library for accessing Google APIs")
3077 (description "Python client library for Google's discovery based APIs")
3078 (license license:asl2.0)))
3080 (define-public python2-google-api-client
3081 (package-with-python2 python-google-api-client))
3083 (define-public python-hawkauthlib
3085 (name "python-hawkauthlib")
3090 (uri (pypi-uri "hawkauthlib" version))
3093 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
3094 (build-system python-build-system)
3096 `(("python-requests" ,python-requests)
3097 ("python-webob" ,python-webob)))
3098 (home-page "https://github.com/mozilla-services/hawkauthlib")
3099 (synopsis "Hawk Access Authentication protocol")
3101 "This is a low-level Python library for implementing Hawk Access Authentication,
3102 a simple HTTP request-signing scheme.")
3103 (license license:mpl2.0)))
3105 (define-public python-pybrowserid
3107 (name "python-pybrowserid")
3112 (uri (pypi-uri "PyBrowserID" version))
3115 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
3116 (build-system python-build-system)
3118 `(("python-requests" ,python-requests)))
3120 `(("python-mock" ,python-mock)))
3121 (home-page "https://github.com/mozilla/PyBrowserID")
3122 (synopsis "Python library for the BrowserID protocol")
3124 "This is a Python client library for the BrowserID protocol that
3125 underlies Mozilla Persona.")
3126 (license license:mpl2.0)))
3128 (define-public python-pyfxa
3130 (name "python-pyfxa")
3135 (uri (pypi-uri "PyFxA" version))
3138 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
3139 (build-system python-build-system)
3140 (arguments '(#:tests? #f)) ; 17 tests require network access
3142 `(("python-cryptography" ,python-cryptography)
3143 ("python-hawkauthlib" ,python-hawkauthlib)
3144 ("python-pybrowserid" ,python-pybrowserid)
3145 ("python-requests" ,python-requests)
3146 ("python-six" ,python-six)))
3148 `(("python-grequests" ,python-grequests)
3149 ("python-mock" ,python-mock)
3150 ("python-responses" ,python-responses)
3151 ("python-unittest2" ,python-unittest2)))
3152 (home-page "https://github.com/mozilla/PyFxA")
3153 (synopsis "Firefox Accounts client library for Python")
3155 "This is a Python library for interacting with the Firefox Accounts
3157 (license license:mpl2.0)))
3159 (define-public python-hyperlink
3161 (name "python-hyperlink")
3166 (uri (pypi-uri "hyperlink" version))
3169 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
3170 (build-system python-build-system)
3172 `(("python-idna" ,python-idna)))
3173 (home-page "https://github.com/python-hyper/hyperlink")
3174 (synopsis "Python module to create immutable URLs according to spec")
3175 (description "This package provides a Python module to create immutable, and
3176 correct URLs for Python according to RFCs 3986 and 3987.")
3177 (license license:expat)))
3179 (define-public python-treq
3181 (name "python-treq")
3186 (uri (pypi-uri "treq" version))
3189 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
3190 (build-system python-build-system)
3192 `(("python-attrs" ,python-attrs)
3193 ("python-idna" ,python-idna)
3194 ("python-incremental" ,python-incremental)
3195 ("python-requests" ,python-requests)
3196 ("python-service-identity" ,python-service-identity)
3197 ("python-twisted" ,python-twisted)))
3198 (home-page "https://github.com/twisted/treq")
3199 (synopsis "Requests-like API built on top of twisted.web's Agent")
3200 (description "This package provides an HTTP library inspired by
3201 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3202 high level API for making HTTP requests when using Twisted.")
3203 (license license:expat)))
3205 (define-public python-autobahn
3207 (name "python-autobahn")
3212 (uri (pypi-uri "autobahn" version))
3215 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3216 (build-system python-build-system)
3218 ;; The tests fail to run:
3219 ;; https://github.com/crossbario/autobahn-python/issues/1117
3222 `(("python-cffi" ,python-cffi)
3223 ("python-twisted" ,python-twisted)
3224 ("python-txaio" ,python-txaio)))
3225 (home-page "https://crossbar.io/autobahn/")
3226 (synopsis "Web Application Messaging Protocol implementation")
3227 (description "This package provides an implementation of the @dfn{Web Application
3228 Messaging Protocol} (WAMP). WAMP connects components in distributed
3229 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3230 Calls (rRPC). It is ideal for distributed, multi-client and server applications
3231 such as IoT applications or multi-user database-driven business applications.")
3232 (license license:expat)))
3234 (define-public python-ws4py
3236 (name "python-ws4py")
3241 (uri (pypi-uri "ws4py" version))
3244 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3245 (build-system python-build-system)
3248 (modify-phases %standard-phases
3249 (add-after 'unpack 'python3.7-compatibility
3251 (substitute* '("ws4py/server/tulipserver.py"
3252 "ws4py/async_websocket.py")
3254 "asyncio.ensure_future"))
3256 ;; We don't have a package for cherrypy.
3257 (add-after 'unpack 'remove-cherrypy-support
3259 (delete-file "ws4py/server/cherrypyserver.py")
3262 `(("python-gevent" ,python-gevent)
3263 ("python-tornado" ,python-tornado)))
3264 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3265 (synopsis "WebSocket client and server library")
3267 "This package provides a WebSocket client and server library for
3269 (license license:bsd-3)))
3271 (define-public python-slugify
3273 (name "python-slugify")
3278 (uri (pypi-uri "python-slugify" version))
3280 (base32 "0dv97yi5fq074q5qyqbin09pmi8ixg36caf5nkpw2bqkd8jh6pap"))
3282 (search-patches "python-slugify-depend-on-unidecode.patch"))))
3284 `(("python-wheel" ,python-wheel)))
3286 `(("python-unidecode" ,python-unidecode)))
3289 (modify-phases %standard-phases
3292 (invoke "python" "test.py"))))))
3293 (build-system python-build-system)
3294 (home-page "https://github.com/un33k/python-slugify")
3295 (synopsis "Python Slugify application that handles Unicode")
3296 (description "This package provides a @command{slufigy} command and
3297 library to create slugs from unicode strings while keeping it DRY.")
3298 (license license:expat)))
3300 (define-public python-branca
3302 (name "python-branca")
3307 (uri (pypi-uri "branca" version))
3310 "0pmigd521j2228xf8x34vbx0niwvms7xl7za0lymywj0vydjqxiy"))))
3311 (build-system python-build-system)
3313 `(("python-jinja2" ,python-jinja2)
3314 ("python-six" ,python-six)))
3316 `(("python-pytest" ,python-pytest)))
3317 (home-page "https://github.com/python-visualization/branca")
3318 (synopsis "Generate complex HTML+JS pages with Python")
3319 (description "Generate complex HTML+JS pages with Python")
3320 (license license:expat)))
3322 (define-public python-tinycss2
3324 (name "python-tinycss2")
3329 (uri (pypi-uri "tinycss2" version))
3331 (base32 "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4"))))
3332 (build-system python-build-system)
3335 (modify-phases %standard-phases
3337 (lambda _ (invoke "pytest"))))))
3339 `(("python-webencodings" ,python-webencodings)))
3341 `(("python-pytest-flake8" ,python-pytest-flake8)
3342 ("python-pytest-isort" ,python-pytest-isort)
3343 ("python-pytest-runner" ,python-pytest-runner)))
3344 (home-page "https://tinycss2.readthedocs.io/")
3345 (synopsis "Low-level CSS parser for Python")
3346 (description "@code{tinycss2} can parse strings, return Python objects
3347 representing tokens and blocks, and generate CSS strings corresponding to
3350 Based on the CSS Syntax Level 3 specification, @code{tinycss2} knows the
3351 grammar of CSS but doesn’t know specific rules, properties or values supported
3352 in various CSS modules.")
3353 (license license:bsd-3)))
3355 (define-public python-cssselect2
3357 (name "python-cssselect2")
3362 (uri (pypi-uri "cssselect2" version))
3364 (base32 "0skymzb4ncrm2zdsy80f53vi0arf776lvbp51hzh4ayp1il5lj3h"))))
3365 (build-system python-build-system)
3368 (modify-phases %standard-phases
3370 (lambda _ (invoke "pytest"))))))
3372 `(("python-tinycss2" ,python-tinycss2)))
3374 `(("python-pytest-cov" ,python-pytest-cov)
3375 ("python-pytest-flake8" ,python-pytest-flake8)
3376 ("python-pytest-isort" ,python-pytest-isort)
3377 ("python-pytest-runner" ,python-pytest-runner)))
3378 (home-page "https://cssselect2.readthedocs.io/")
3379 (synopsis "CSS selectors for Python ElementTree")
3380 (description "@code{cssselect2} is a straightforward implementation of
3381 CSS3 Selectors for markup documents (HTML, XML, etc.) that can be read by
3382 ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.).
3384 Unlike the Python package @code{cssselect}, it does not translate selectors to
3385 XPath and therefore does not have all the correctness corner cases that are
3386 hard or impossible to fix in cssselect.")
3387 (license license:bsd-3)))
3389 (define-public gunicorn
3396 (uri (pypi-uri "gunicorn" version))
3399 "09n6fc019bgrvph1s5h1lwhn2avcsprw6ncd203qhra3i8mvn10r"))))
3400 (outputs '("out" "doc"))
3401 (build-system python-build-system)
3404 (modify-phases %standard-phases
3405 (add-after 'build 'build-doc
3407 (invoke "make" "-C" "docs" "PAPER=a4" "html" "info")
3408 (delete-file "docs/build/texinfo/Makefile")
3409 (delete-file "docs/build/texinfo/Gunicorn.texi")
3413 (setenv "PYTHONPATH"
3414 (string-append ".:" (getenv "PYTHONPATH")))
3416 (add-after 'install 'install-doc
3417 (lambda* (#:key outputs #:allow-other-keys)
3418 (let* ((doc (string-append (assoc-ref outputs "doc")
3419 "/share/doc/" ,name "-" ,version))
3420 (html (string-append doc "/html"))
3421 (info (string-append doc "/info"))
3422 (examples (string-append doc "/examples")))
3426 (copy-recursively "docs/build/html" html)
3427 (copy-recursively "docs/build/texinfo" info)
3428 (copy-recursively "examples" examples)
3429 (for-each (lambda (file)
3430 (copy-file file (string-append doc "/" file)))
3431 '("README.rst" "NOTICE" "LICENSE" "THANKS")))
3434 `(("binutils" ,binutils) ;; for ctypes.util.find_library()
3435 ("python-aiohttp", python-aiohttp)
3436 ("python-pytest" ,python-pytest)
3437 ("python-pytest-cov" ,python-pytest-cov)
3438 ("python-sphinx" ,python-sphinx)
3439 ("texinfo" ,texinfo)))
3440 (home-page "https://gunicorn.org/")
3441 (synopsis "Python WSGI HTTP Server for UNIX")
3442 (description "Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP
3443 Server for UNIX. It’s a pre-fork worker model ported from Ruby’s
3444 Unicorn project. The Gunicorn server is broadly compatible with
3445 various web frameworks, simply implemented, light on server resources,
3446 and fairly speedy.")
3447 (license license:expat)))
3449 ;; break cyclic dependency for python-aiohttp, which depends on gunicorn for
3451 (define-public gunicorn-bootstrap
3455 (arguments `(#:tests? #f))
3456 (properties '((hidden? . #t)))
3457 (native-inputs `())))
3459 (define-public python-translation-finder
3461 (name "python-translation-finder")
3466 (uri (pypi-uri "translation-finder" version))
3469 "1pcy9z8gmb8x41gjhw9x0lkr0d2mv5mdxcs2hwg6q8mxs857j589"))))
3470 (build-system python-build-system)
3473 (modify-phases %standard-phases
3474 (add-before 'build 'remove-failing-test
3476 (delete-file "translation_finder/test_api.py")
3479 `(("python-chardet" ,python-chardet)
3480 ("python-pathlib2" ,python-pathlib2)
3481 ("python-ruamel.yaml" ,python-ruamel.yaml)
3482 ("python-six" ,python-six)))
3484 `(("python-codecov" ,python-codecov)
3485 ("python-codacy-coverage" ,python-codacy-coverage)
3486 ("python-pytest-cov" ,python-pytest-cov)
3487 ("python-pytest-runner" ,python-pytest-runner)
3488 ("python-twine" ,python-twine)))
3489 (home-page "https://weblate.org/")
3490 (synopsis "Translation file finder for Weblate")
3491 (description "This package provides a function to find translation file in
3492 the source code of a project. It supports many translation file formats and
3493 is part of the Weblate translation platform.")
3494 (license license:gpl3+)))
3496 (define-public python-gitlab
3498 (name "python-gitlab")
3503 (uri (pypi-uri "python-gitlab" version))
3506 "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5"))))
3507 (build-system python-build-system)
3509 `(("python-requests" ,python-requests)
3510 ("python-six" ,python-six)))
3512 `(("python-httmock" ,python-httmock)
3513 ("python-mock" ,python-mock)))
3515 "https://github.com/python-gitlab/python-gitlab")
3516 (synopsis "Interact with GitLab API")
3517 (description "This package provides an extended library for interacting
3518 with GitLab instances through their API.")
3519 (license license:lgpl3+)))
3521 (define-public python-path-and-address
3523 (name "python-path-and-address")
3527 ;; The source distributed on PyPI doesn't include tests.
3530 (url "https://github.com/joeyespo/path-and-address")
3531 (commit (string-append "v" version))))
3532 (file-name (git-file-name name version))
3535 "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6"))))
3536 (build-system python-build-system)
3539 (modify-phases %standard-phases
3541 (lambda* (#:key inputs outputs #:allow-other-keys)
3542 (add-installed-pythonpath inputs outputs)
3543 (invoke "py.test"))))))
3545 `(("python-pytest" ,python-pytest)))
3546 (home-page "https://github.com/joeyespo/path-and-address")
3547 (synopsis "Functions for command-line server tools used by humans")
3548 (description "Path-and-address resolves ambiguities of command-line
3549 interfaces, inferring which argument is the path, and which is the address.")
3550 (license license:expat)))
3553 ;; No release by upstream for quite some time, some bugs fixed since. See:
3554 ;; https://github.com/joeyespo/grip/issues/304
3555 (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3"))
3558 (version (git-version "4.5.2" "1" commit))
3563 (url "https://github.com/joeyespo/grip")
3565 (file-name (git-file-name name version))
3568 "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w"))))
3569 (build-system python-build-system)
3571 `(("python-docopt" ,python-docopt)
3572 ("python-flask" ,python-flask)
3573 ("python-markdown" ,python-markdown)
3574 ("python-path-and-address" ,python-path-and-address)
3575 ("python-pygments" ,python-pygments)
3576 ("python-requests" ,python-requests)))
3578 `(("python-pytest" ,python-pytest)
3579 ("python-responses" ,python-responses)))
3582 (modify-phases %standard-phases
3584 (lambda* (#:key inputs outputs #:allow-other-keys)
3585 (add-installed-pythonpath inputs outputs)
3586 (setenv "PATH" (string-append
3588 (assoc-ref %outputs "out") "/bin"))
3589 (invoke "py.test" "-m" "not assumption"))))))
3590 (home-page "https://github.com/joeyespo/grip")
3591 (synopsis "Preview Markdown files using the GitHub API")
3592 (description "Grip is a command-line server application written in Python
3593 that uses the GitHub Markdown API to render a local Markdown file. The styles
3594 and rendering come directly from GitHub, so you'll know exactly how it will
3595 appear. Changes you make to the file will be instantly reflected in the browser
3596 without requiring a page refresh.")
3597 (license license:expat))))
3599 (define-public python-port-for
3601 (name "python-port-for")
3606 (uri (pypi-uri "port-for" version))
3609 "1pncxlj25ggw99r0ijfbkq70gd7cbhqdx5ivsxy4jdp0z14cpda7"))))
3610 (build-system python-build-system)
3613 (modify-phases %standard-phases
3614 (add-after 'unpack 'use-urllib3
3616 (substitute* "port_for/_download_ranges.py"
3617 (("urllib2") "urllib3"))
3620 `(("python-urllib3" ,python-urllib3)))
3622 `(("python-mock" ,python-mock)))
3623 (home-page "https://github.com/kmike/port-for/")
3624 (synopsis "TCP localhost port finder and association manager")
3626 "This package provides a utility that helps with local TCP ports
3627 management. It can find an unused TCP localhost port and remember the
3629 (license license:expat)))
3631 (define-public python-livereload
3633 (name "python-livereload")
3638 (uri (pypi-uri "livereload" version))
3641 "0rhggz185bxc3zjnfpmhcvibyzi86i624za1lfh7x7ajsxw4y9c9"))))
3642 (build-system python-build-system)
3644 `(("python-six" ,python-six)
3645 ("python-tornado" ,python-tornado)))
3646 (home-page "https://github.com/lepture/python-livereload")
3647 (synopsis "Python LiveReload")
3649 "Python LiveReload provides a command line utility, @command{livereload},
3650 for starting a web server in a directory. It can trigger arbitrary commands
3651 and serve updated contents upon changes to the directory.")
3652 (license license:bsd-3)))