1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
3 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 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, 2020 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 Nikita <nikita@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>
38 ;;; Copyright © 2020 Noisytoot <noisytoot@gmail.com>
39 ;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
41 ;;; This file is part of GNU Guix.
43 ;;; GNU Guix is free software; you can redistribute it and/or modify it
44 ;;; under the terms of the GNU General Public License as published by
45 ;;; the Free Software Foundation; either version 3 of the License, or (at
46 ;;; your option) any later version.
48 ;;; GNU Guix is distributed in the hope that it will be useful, but
49 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
50 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 ;;; GNU General Public License for more details.
53 ;;; You should have received a copy of the GNU General Public License
54 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
56 (define-module (gnu packages python-web)
57 #:use-module (guix packages)
58 #:use-module (guix download)
59 #:use-module (guix git-download)
60 #:use-module (guix build-system python)
61 #:use-module (guix utils)
62 #:use-module (gnu packages)
63 #:use-module (gnu packages base)
64 #:use-module (gnu packages check)
65 #:use-module (gnu packages compression)
66 #:use-module (gnu packages curl)
67 #:use-module (gnu packages databases)
68 #:use-module (gnu packages django)
69 #:use-module (gnu packages groff)
70 #:use-module (gnu packages libffi)
71 #:use-module (gnu packages pkg-config)
72 #:use-module (gnu packages python)
73 #:use-module (gnu packages python-check)
74 #:use-module (gnu packages python-crypto)
75 #:use-module (gnu packages python-xyz)
76 #:use-module (gnu packages serialization)
77 #:use-module (gnu packages sphinx)
78 #:use-module (gnu packages texinfo)
79 #:use-module (gnu packages tls)
80 #:use-module (gnu packages time)
81 #:use-module (gnu packages web)
82 #:use-module (gnu packages xml)
83 #:use-module ((guix licenses) #:prefix license:)
84 #:use-module (srfi srfi-1))
86 (define-public python-aiohttp
88 (name "python-aiohttp")
93 (uri (pypi-uri "aiohttp" version))
96 "09pkw6f1790prnrq0k8cqgnf1qy57ll8lpmc6kld09q7zw4vi6i5"))
97 (patches (search-patches "python-aiohttp-3.6.2-no-warning-fail.patch"))))
98 (build-system python-build-system)
101 (modify-phases %standard-phases
102 (add-after 'unpack 'fix-tests
104 ;; disable brotli tests, because we’re not providing that optional library
105 (substitute* "tests/test_http_parser.py"
106 ((" async def test_feed_eof_no_err_brotli")
107 " @pytest.mark.xfail\n async def test_feed_eof_no_err_brotli"))
108 ;; make sure the timestamp of this file is > 1990, because a few
109 ;; tests like test_static_file_if_modified_since_past_date depend on it
110 (invoke "touch" "-d" "2020-01-01" "tests/data.unknown_mime_type")
112 ;; FIXME: These tests are failing due to deprecation warnings
113 ;; in Python 3.8. Remove this when updating to aiohttp >= 3.7.
114 ;; https://github.com/aio-libs/aiohttp/issues/4477
115 ;; https://github.com/aio-libs/aiohttp/issues/4525
116 (with-directory-excursion "tests"
117 (for-each delete-file '("test_client_session.py"
119 "test_web_middleware.py"
120 "test_web_protocol.py"
121 "test_web_urldispatcher.py")))
124 `(("python-aiodns" ,python-aiodns)
125 ("python-async-timeout" ,python-async-timeout)
126 ("python-attrs" ,python-attrs)
127 ("python-chardet" ,python-chardet)
128 ("python-idna-ssl" ,python-idna-ssl)
129 ("python-multidict" ,python-multidict)
130 ("python-yarl" ,python-yarl)))
132 `(("python-pytest-runner" ,python-pytest-runner)
133 ("python-pytest-xdit" ,python-pytest-xdist)
134 ("python-pytest-timeout" ,python-pytest-timeout)
135 ("python-pytest-forked" ,python-pytest-forked)
136 ("python-pytest-mock" ,python-pytest-mock)
137 ("gunicorn" ,gunicorn-bootstrap)
138 ("python-freezegun" ,python-freezegun)
139 ("python-async-generator" ,python-async-generator)))
140 (home-page "https://github.com/aio-libs/aiohttp/")
141 (synopsis "Async HTTP client/server framework (asyncio)")
142 (description "@code{aiohttp} is an asynchronous HTTP client/server
145 Its main features are:
147 @item Supports both client and server side of HTTP protocol.
148 @item Supports both client and server Web-Sockets out-of-the-box without the
150 @item Web-server has middlewares and pluggable routing.
152 (license license:asl2.0)))
154 (define-public python-aiohttp-socks
156 (name "python-aiohttp-socks")
161 (uri (pypi-uri "aiohttp_socks" version))
164 "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
165 (build-system python-build-system)
167 `(("python-aiohttp" ,python-aiohttp)))
168 (home-page "https://github.com/romis2012/aiohttp-socks")
169 (synopsis "SOCKS proxy connector for aiohttp")
170 (description "This package provides a SOCKS proxy connector for
171 aiohttp. It supports SOCKS4(a) and SOCKS5.")
172 (license license:asl2.0)))
174 (define-public python-aiodns
176 (name "python-aiodns")
181 (uri (pypi-uri "aiodns" version))
184 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
185 (build-system python-build-system)
187 `(("python-pycares" ,python-pycares)))
189 `(#:tests? #f)) ;tests require internet access
190 (home-page "https://github.com/saghul/aiodns")
191 (synopsis "Simple DNS resolver for asyncio")
192 (description "@code{aiodns} provides a simple way for doing
193 asynchronous DNS resolutions with a synchronous looking interface by
194 using @url{https://github.com/saghul/pycares,pycares}.")
195 (license license:expat)))
197 (define-public python-aiorpcx
199 (name "python-aiorpcx")
204 (uri (pypi-uri "aiorpcX" version))
207 "0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp"))))
208 (build-system python-build-system)
210 `(("python-attrs" ,python-attrs)))
211 (home-page "https://github.com/kyuupichan/aiorpcX")
212 (synopsis "Generic asyncio RPC implementation")
214 "The aiorpcX library is a generic asyncio implementation of RPC suitable
215 for an application that is a client, server or both.
217 The package includes a module with full coverage of JSON RPC versions 1.0 and
218 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
219 comes with a SOCKS proxy client.")
220 (license (list license:expat license:bsd-2))))
222 (define-public python-falcon
224 (name "python-falcon")
229 (uri (pypi-uri "falcon" version))
232 "1z6mqfv574x6jiawf67ib52g4kk20c2x7xk7wrn1573b8v7r79gf"))
233 (modules '((guix build utils)))
236 (delete-file-recursively "falcon/vendor")
237 (substitute* "setup.py"
238 ((".*falcon\\.vendor\\.mimeparse.*") ""))
239 (substitute* '("falcon/media/handlers.py"
241 (("from falcon\\.vendor ") ""))
242 (substitute* "falcon.egg-info/SOURCES.txt"
243 (("falcon/vendor.*") ""))
245 (build-system python-build-system)
248 (modify-phases %standard-phases
250 (lambda* (#:key inputs outputs #:allow-other-keys)
251 ;; Skip orjson, which requires rust to build.
252 (substitute* "tests/test_media_handlers.py"
253 (("== 'CPython") "!= 'CPython"))
254 (add-installed-pythonpath inputs outputs)
255 (invoke "pytest" "--ignore" "falcon"))))))
257 `(("python-mimeparse" ,python-mimeparse)))
259 `(("python-cython" ,python-cython) ;for faster binaries
260 ("python-mujson" ,python-mujson)
261 ("python-msgpack" ,python-msgpack)
262 ("python-pytest" ,python-pytest)
263 ("python-pytest-runner" ,python-pytest-runner)
264 ("python-pyyaml" ,python-pyyaml)
265 ("python-rapidjson" ,python-rapidjson)
266 ("python-requests" ,python-requests)
267 ("python-testtools" ,python-testtools)
268 ("python-ujson" ,python-ujson)))
269 (home-page "https://falconframework.org")
271 "Web framework for building APIs and application backends")
273 "Falcon is a web API framework for building microservices, application
274 backends and higher-level frameworks. Among its features are:
276 @item Optimized and extensible code base
277 @item Routing via URI templates and REST-inspired resource
279 @item Access to headers and bodies through request and response
281 @item Request processing via middleware components and hooks
282 @item Idiomatic HTTP error responses
283 @item Straightforward exception handling
284 @item Unit testing support through WSGI helpers and mocks
285 @item Compatible with both CPython and PyPy
286 @item Cython support for better performance when used with CPython
288 (properties `((python2-variant . ,(delay python2-falcon))))
289 (license license:asl2.0)))
291 (define-public python2-falcon
292 (let ((falcon (package-with-python2 (strip-python2-variant python-falcon))))
296 (alist-delete "python-rapidjson" (package-native-inputs falcon))))))
298 (define-public python-falcon-cors
300 (name "python-falcon-cors")
305 (uri (pypi-uri "falcon-cors" version))
308 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
309 (build-system python-build-system)
311 `(("python-falcon" ,python-falcon)))
313 "https://github.com/lwcolton/falcon-cors")
314 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
315 (description "This middleware provides @dfn{cross-origin resource
316 sharing} (CORS) support for Falcon. It allows applying a specially crafted
317 CORS object to the incoming requests, enabling the ability to serve resources
318 over a different origin than that of the web application.")
319 (license license:asl2.0)))
321 (define-public python2-falcon-cors
322 (package-with-python2 python-falcon-cors))
324 (define-public python-furl
331 (uri (pypi-uri "furl" version))
334 "1v2lakx03d5w8954a39ki44xv5mllnq0a0avhxykv9hrzg0yvjpx"))))
335 (build-system python-build-system)
337 `(("python-six" ,python-six)
338 ("python-orderedmultidict" ,python-orderedmultidict)))
340 `(("python-flake8" ,python-flake8)))
341 (home-page "https://github.com/gruns/furl")
342 (synopsis "URL manipulation in Python")
343 (description "Furl provides an easy-to-use alternative to the
344 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
345 (license license:unlicense)))
347 (define-public python2-furl
348 (package-with-python2 python-furl))
350 (define-public python-httplib2
352 (name "python-httplib2")
357 (uri (pypi-uri "httplib2" version))
360 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
361 (build-system python-build-system)
362 (home-page "https://github.com/jcgregorio/httplib2")
363 (synopsis "Comprehensive HTTP client library")
365 "A comprehensive HTTP client library supporting many features left out of
366 other HTTP libraries.")
367 (license license:expat)))
369 (define-public python2-httplib2
370 (package-with-python2 python-httplib2))
372 (define-public httpie
379 (uri (pypi-uri "httpie" version))
382 "18058k0i3cc4ixvgzj882w693lf40283flvspbrvd876iq42ib1i"))))
383 (build-system python-build-system)
385 ;; The tests attempt to access external web servers, so we cannot run them.
388 `(("python-colorama" ,python-colorama)
389 ("python-pygments" ,python-pygments)
390 ("python-requests" ,python-requests)))
391 (home-page "https://httpie.org/")
392 (synopsis "cURL-like tool for humans")
394 "A command line HTTP client with an intuitive UI, JSON support,
395 syntax highlighting, wget-like downloads, plugins, and more. It consists of
396 a single http command designed for painless debugging and interaction with
397 HTTP servers, RESTful APIs, and web services.")
398 (license license:bsd-3)))
400 (define-public python-html2text
402 (name "python-html2text")
403 (version "2019.8.11")
407 (uri (pypi-uri "html2text" version))
410 "0ppgjplg06kmv9sj0x8p7acczcq2mcfgk1jdjwm4w5w40b0vj5pm"))))
411 (build-system python-build-system)
414 (modify-phases %standard-phases
417 (invoke "pytest" "test/"))))))
419 `(("python-pytest" ,python-pytest)))
420 (home-page "https://github.com/Alir3z4/html2text")
421 (synopsis "Convert HTML into plain text")
422 (description "html2text takes HTML and converts it into plain ASCII text
423 which is also valid markdown. html2text was originally written by Aaron
425 (license license:gpl3+)))
427 (define-public python2-html2text
428 (package-with-python2 python-html2text))
430 (define-public python-mechanicalsoup
432 (name "python-mechanicalsoup")
437 (uri (pypi-uri "MechanicalSoup" version))
439 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
440 (build-system python-build-system)
442 ;; TODO: Enable tests when python-flake8@3.5 hits master.
445 `(("python-beautifulsoup4" ,python-beautifulsoup4)
446 ("python-lxml" ,python-lxml)
447 ("python-requests" ,python-requests)
448 ("python-six" ,python-six)))
451 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
452 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
453 ;; ("python-pytest-mock" ,python-pytest-mock)
454 ;; ("python-pytest-runner" ,python-pytest-runner)
455 ;; ("python-requests-mock" ,python-requests-mock)))
456 (home-page "https://mechanicalsoup.readthedocs.io/")
457 (synopsis "Python library for automating website interaction")
459 "MechanicalSoup is a Python library for automating interaction with
460 websites. It automatically stores and sends cookies, follows redirects, and can
461 follow links and submit forms. It doesn’t do JavaScript.")
462 (license license:expat)))
464 (define-public python2-mechanicalsoup
465 (package-with-python2 python-mechanicalsoup))
467 (define-public python-sockjs-tornado
469 (name "python-sockjs-tornado")
474 (uri (pypi-uri "sockjs-tornado" version))
477 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
478 (build-system python-build-system)
480 `(;; There are no tests, and running the test phase requires missing
484 `(("python-tornado" ,python-tornado)))
485 (home-page "https://github.com/mrjoes/sockjs-tornado/")
487 "SockJS Python server implementation on top of the Tornado framework")
489 "SockJS-tornado provides the server-side counterpart to a SockJS client
490 library, through the Tornado framework.
492 SockJS provides a low-latency, full-duplex, cross-domain communication channel
493 between a web browser and web server.")
494 (license license:expat)))
496 (define-public python2-sockjs-tornado
497 (package-with-python2 python-sockjs-tornado))
499 (define-public python-flask-babel
501 (name "python-flask-babel")
506 (uri (pypi-uri "Flask-Babel" version))
509 "0gmb165vkwv5v7dxsxa2i3zhafns0fh938m2zdcrv4d8z5l099yn"))))
510 (build-system python-build-system)
512 '(#:phases (modify-phases %standard-phases
515 (with-directory-excursion "tests"
516 (invoke "python" "tests.py")))))))
518 `(("python-flask" ,python-flask)
519 ("python-babel" ,python-babel)
520 ("python-jinja2" ,python-jinja2)
521 ("python-pytz" ,python-pytz)))
522 (home-page "https://github.com/python-babel/flask-babel")
523 (synopsis "Add i18n/l10n support to Flask applications")
524 (description "This package implements internationalization and localization
525 support for Flask. This is based on the Python babel module as well as pytz -
526 both of which are installed automatically if you install this library.")
527 (license license:bsd-3)))
529 (define-public python2-flask-babel
530 (package-with-python2 python-flask-babel))
532 (define-public python-html5lib
534 (name "python-html5lib")
539 (uri (pypi-uri "html5lib" version))
542 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
543 (build-system python-build-system)
545 `(("python-six" ,python-six)
546 ("python-webencodings" ,python-webencodings)))
548 `(#:test-target "check"))
550 "https://github.com/html5lib/html5lib-python")
552 "Python HTML parser based on the WHATWG HTML specifcation")
554 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
555 and written in Python.")
556 (license license:expat)))
558 (define-public python2-html5lib
559 (package-with-python2 python-html5lib))
561 ;; Needed for python-bleach, a dependency of python-notebook
562 (define-public python-html5lib-0.9
564 (inherit python-html5lib)
569 (uri (pypi-uri "html5lib" version))
572 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
574 (define-public python2-html5lib-0.9
575 (package-with-python2 python-html5lib-0.9))
577 (define-public python-html5-parser
579 (name "python-html5-parser")
583 (uri (pypi-uri "html5-parser" version))
586 "13yl3vnf3sxl05m0nhpngnrz3g1jvyahd33lys3m3hfb91l8zzi5"))))
587 (build-system python-build-system)
589 `(("pkg-config" ,pkg-config)))
591 `(("libxml2" ,libxml2)))
593 `(("python-lxml" ,python-lxml)
594 ("python-beautifulsoup4" ,python-beautifulsoup4)))
595 (home-page "https://html5-parser.readthedocs.io")
596 (synopsis "Fast C-based HTML5 parsing for Python")
597 (description "This package provides a fast implementation of the HTML5
598 parsing spec for Python. Parsing is done in C using a variant of the gumbo
599 parser. The gumbo parse tree is then transformed into an lxml tree, also in
600 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
601 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
602 ;; indicate ASL2.0, including the LICENSE file for the whole project.
603 (license (list license:asl2.0 license:gpl3))))
605 (define-public python2-html5-parser
606 (package-with-python2 python-html5-parser))
608 (define-public python-pycurl
610 (name "python-pycurl")
615 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
618 (base32 "1cwlb76vddqp2mxqvjbhf367caddzy82rhangddjjhjqaj8x4zgc"))))
619 (build-system python-build-system)
621 ;; The tests attempt to access external web servers, so we cannot run
622 ;; them. Furthermore, they are skipped altogether when using Python 2.
624 #:phases (modify-phases %standard-phases
625 (add-before 'build 'configure-tls-backend
627 ;; XXX: PycURL fails to automatically determine which TLS
628 ;; backend to use when cURL is built with --disable-static.
629 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
630 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
633 `(("python-nose" ,python-nose)
634 ("python-bottle" ,python-bottle)))
638 (home-page "http://pycurl.io/")
639 (synopsis "Lightweight Python wrapper around libcurl")
640 (description "Pycurl is a lightweight wrapper around libcurl. It provides
641 high-speed transfers via libcurl and frequently outperforms alternatives.")
643 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
644 ;; under the terms of LGPLv2.1+ or Expat.
645 (license (list license:lgpl2.1+ license:expat))))
647 (define-public python2-pycurl
648 (package-with-python2 python-pycurl))
650 (define-public python-webencodings
652 (name "python-webencodings")
656 (uri (pypi-uri "webencodings" version))
659 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
660 (build-system python-build-system)
663 (modify-phases %standard-phases
666 (invoke "py.test" "-v" "webencodings/tests.py")
669 `(("python-pytest" ,python-pytest)))
670 (home-page "https://github.com/SimonSapin/python-webencodings")
671 (synopsis "Character encoding aliases for legacy web content")
673 "In order to be compatible with legacy web content when interpreting
674 something like @code{Content-Type: text/html; charset=latin1}, tools need
675 to use a particular set of aliases for encoding labels as well as some
676 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
677 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
678 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
679 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
680 defines all such details so that implementations do not have to
681 reverse-engineer each other.
683 This module implements the Encoding standard and has encoding labels and
684 BOM detection, but the actual implementation for encoders and decoders
686 (license license:bsd-3)))
688 (define-public python2-webencodings
689 (package-with-python2 python-webencodings))
691 (define-public python-openid
693 (name "python-openid")
698 (uri (pypi-uri "python3-openid" version))
701 "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
702 (build-system python-build-system)
705 (modify-phases %standard-phases
708 (invoke "coverage" "run" "-m"
709 "unittest" "openid.test.test_suite"))))))
710 (properties `((python2-variant . ,(delay python2-openid))))
712 `(("python-defusedxml" ,python-defusedxml)))
714 `(("python-coverage" ,python-coverage)
715 ("python-psycopg2" ,python-psycopg2)
716 ("python-django" ,python-django)))
717 (home-page "https://github.com/necaris/python3-openid")
718 (synopsis "OpenID support for servers and consumers")
719 (description "This library provides OpenID authentication for Python, both
720 for clients and servers.")
721 (license license:asl2.0)))
723 (define-public python2-openid
725 (name "python2-openid")
730 (uri (pypi-uri "python-openid" version))
733 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
734 (build-system python-build-system)
736 ;; Python 3 support is in `python3-openid`, a separate package.
738 ;; Tests aren't initialized correctly.
740 (home-page "https://github.com/openid/python-openid")
741 (synopsis "OpenID support for servers and consumers")
742 (description "This library provides OpenID authentication for Python, both
743 for clients and servers.")
744 (license license:asl2.0)))
746 (define-public python-cssutils
748 (name "python-cssutils")
753 (uri (pypi-uri "cssutils" version))
756 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
757 (build-system python-build-system)
759 `(("unzip" ,unzip))) ; for unpacking the source
761 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
762 (home-page "http://cthedot.de/cssutils/")
764 "CSS Cascading Style Sheets library for Python")
766 "Cssutils is a Python package for parsing and building CSS
767 Cascading Style Sheets. Currently it provides a DOM only and no rendering
769 (license license:lgpl3+)))
771 (define-public python2-cssutils
772 (package-with-python2 python-cssutils))
774 (define-public python-css-parser
776 (inherit python-cssutils)
777 (name "python-css-parser")
782 (uri (pypi-uri "css-parser" version ".tar.gz"))
785 "0i4xfykiffxzr4f6y0m2ggqvx1rzam6pw6krlr5k6ldf29akbay7"))))
786 (home-page "https://github.com/ebook-utils/css-parser")
787 (synopsis "Fork of cssutils modified for parsing ebooks")
789 "Css-parser is a fork of cssutils 1.0.2, updated and modified for parsing
790 ebooks, due to cssutils not receiving updates as of 1.0.2.")
791 (license license:lgpl3+)))
793 (define-public python2-css-parser
794 (package-with-python2 python-css-parser))
796 (define-public python-cssselect
798 (name "python-cssselect")
801 ;; The PyPI release does not contain tests.
804 (url "https://github.com/scrapy/cssselect")
805 (commit (string-append "v" version))))
806 (file-name (git-file-name name version))
809 "0xslrnhbrmgakp4xg6k26qffay3kqffp3a2z2sk27c65rwxa79kc"))))
810 (build-system python-build-system)
812 `(#:phases (modify-phases %standard-phases
815 (invoke "pytest" "-vv"))))))
817 `(("python-lxml" ,python-lxml)
818 ("python-pytest" ,python-pytest)))
819 (home-page "https://github.com/scrapy/cssselect")
820 (synopsis "CSS3 selector parser and translator to XPath 1.0")
822 "Cssselect ia a Python module that parses CSS3 Selectors and translates
823 them to XPath 1.0 expressions. Such expressions can be used in lxml or
824 another XPath engine to find the matching elements in an XML or HTML document.")
825 (license license:bsd-3)))
827 (define-public python2-cssselect
828 (package-with-python2 python-cssselect))
830 (define-public python-openid-cla
832 (name "python-openid-cla")
837 (uri (pypi-uri "python-openid-cla" version))
840 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
841 (build-system python-build-system)
842 (arguments '(#:tests? #f)) ; No tests.
843 (home-page "https://github.com/puiterwijk/python-openid-cla/")
844 (synopsis "Implementation of the OpenID CLA extension for python-openid")
845 (description "@code{openid-cla} is an implementation of the OpenID
846 contributor license agreement extension for python-openid.")
847 (license license:bsd-3)))
849 (define-public python2-openid-cla
850 (package-with-python2 python-openid-cla))
852 (define-public python-openid-teams
854 (name "python-openid-teams")
859 (uri (pypi-uri "python-openid-teams" version))
862 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
863 (build-system python-build-system)
864 (arguments '(#:tests? #f)) ; No tests.
865 (home-page "https://github.com/puiterwijk/python-openid-teams/")
866 (synopsis "Implementation of the OpenID teams extension for python-openid")
868 "@code{openid-teams} is an implementation of the OpenID
869 teams extension for python-openid.")
870 (license license:bsd-3)))
872 (define-public python2-openid-teams
873 (package-with-python2 python-openid-teams))
875 (define-public python-tornado
877 (name "python-tornado")
882 (uri (pypi-uri "tornado" version))
885 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
886 (build-system python-build-system)
888 '(;; FIXME: Two tests error out with:
889 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
891 ;; (modify-phases %standard-phases
894 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
895 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
896 ;; (invoke "python" "-m" "tornado.test.runtests")
900 `(("python-certifi" ,python-certifi)))
901 (home-page "https://www.tornadoweb.org/")
902 (synopsis "Python web framework and asynchronous networking library")
904 "Tornado is a Python web framework and asynchronous networking library,
905 originally developed at FriendFeed. By using non-blocking network I/O,
906 Tornado can scale to tens of thousands of open connections, making it ideal
907 for long polling, WebSockets, and other applications that require a long-lived
908 connection to each user.")
909 (license license:asl2.0)
910 (properties `((python2-variant . ,(delay python2-tornado))))))
912 (define-public python-tornado-6
914 (name "python-tornado")
919 (uri (pypi-uri "tornado" version))
922 "1p5n7sw4580pkybywg93p8ddqdj9lhhy72rzswfa801vlidx9qhg"))))
923 (build-system python-build-system)
926 (modify-phases %standard-phases
929 (invoke "python" "-m" "tornado.test.runtests")
932 `(("python-certifi" ,python-certifi)))
933 (home-page "https://www.tornadoweb.org/")
934 (synopsis "Python web framework and asynchronous networking library")
936 "Tornado is a Python web framework and asynchronous networking library,
937 originally developed at FriendFeed. By using non-blocking network I/O,
938 Tornado can scale to tens of thousands of open connections, making it ideal
939 for long polling, WebSockets, and other applications that require a long-lived
940 connection to each user.")
941 (license license:asl2.0)))
943 (define-public python2-tornado
944 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
945 (package (inherit tornado)
947 `(("python2-backport-ssl-match-hostname"
948 ,python2-backport-ssl-match-hostname)
949 ("python2-backports-abc" ,python2-backports-abc)
950 ("python2-singledispatch" ,python2-singledispatch)
951 ,@(package-propagated-inputs tornado))))))
953 (define-public python-tornado-http-auth
955 (name "python-tornado-http-auth")
960 (uri (pypi-uri "tornado-http-auth" version))
962 (base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x"))))
963 (build-system python-build-system)
965 `(("python-tornado" ,python-tornado)))
966 (home-page "https://github.com/gvalkov/tornado-http-auth")
967 (synopsis "Digest and basic authentication module for Tornado")
969 "Provides support for adding authentication to services using the Tornado
970 web framework, either via the basic or digest authentication schemes.")
971 (license license:asl2.0)))
973 (define-public python-terminado
975 (name "python-terminado")
980 (uri (pypi-uri "terminado" version))
983 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
984 (build-system python-build-system)
986 `(("python-tornado" ,python-tornado)
987 ("python-ptyprocess" ,python-ptyprocess)))
989 `(("python-nose" ,python-nose)))
992 (modify-phases %standard-phases
994 (lambda _ (invoke "nosetests") #t)))))
995 (home-page "https://github.com/takluyver/terminado")
996 (synopsis "Terminals served to term.js using Tornado websockets")
997 (description "This package provides a Tornado websocket backend for the
998 term.js Javascript terminal emulator library.")
999 (license license:bsd-2)
1000 (properties `((python2-variant . ,(delay python2-terminado))))))
1002 (define-public python2-terminado
1003 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
1004 (package (inherit terminado)
1006 `(("python2-backport-ssl-match-hostname"
1007 ,python2-backport-ssl-match-hostname)
1008 ("python2-futures" ,python2-futures)
1009 ,@(package-propagated-inputs terminado))))))
1011 (define-public python-wsgi-intercept
1013 (name "python-wsgi-intercept")
1017 (uri (pypi-uri "wsgi_intercept" version))
1020 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
1021 (build-system python-build-system)
1023 `(("python-six" ,python-six)))
1025 `(("python-pytest" ,python-pytest)
1026 ("python-httplib2" ,python-httplib2)
1027 ("python-requests" ,python-requests)
1028 ("python-urllib3" ,python-urllib3)))
1029 (synopsis "Puts a WSGI application in place of a real URI for testing")
1030 (description "Wsgi_intercept installs a WSGI application in place of a real
1031 URI for testing. Testing a WSGI application normally involves starting a
1032 server at a local host and port, then pointing your test code to that address.
1033 Instead, this library lets you intercept calls to any specific host/port
1034 combination and redirect them into a WSGI application importable by your test
1035 program. Thus, you can avoid spawning multiple processes or threads to test
1037 (home-page "https://github.com/cdent/wsgi-intercept")
1038 (license license:expat)))
1040 (define-public python-webob
1042 (name "python-webob")
1047 (uri (pypi-uri "WebOb" version))
1050 "026i3z99nr3px75isa9mbnky5i7rffiv4d124h5kxfjjsxz92fma"))))
1051 (build-system python-build-system)
1053 `(("python-nose" ,python-nose)))
1054 (home-page "https://webob.org/")
1055 (synopsis "WSGI request and response object")
1057 "WebOb provides wrappers around the WSGI request environment, and an
1058 object to help create WSGI responses.")
1059 (license license:expat)))
1061 (define-public python2-webob
1062 (package-with-python2 python-webob))
1064 (define-public python-zope-event
1066 (name "python-zope-event")
1071 (uri (pypi-uri "zope.event" version))
1074 "1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9"))))
1075 (build-system python-build-system)
1076 (home-page "https://pypi.org/project/zope.event/")
1077 (synopsis "Event publishing system for Python")
1078 (description "Zope.event provides an event publishing API, intended for
1079 use by applications which are unaware of any subscribers to their events. It
1080 is a simple event-dispatching system on which more sophisticated event
1081 dispatching systems can be built.")
1082 (license license:zpl2.1)))
1084 (define-public python2-zope-event
1085 (package-with-python2 python-zope-event))
1087 (define-public python-zope-interface
1089 (name "python-zope-interface")
1094 (uri (pypi-uri "zope.interface" version))
1097 "03nrl6b8cb600dnnh46y149awvrm0gxyqgwq5hdw3lvys8mw9r20"))))
1098 (build-system python-build-system)
1099 (arguments '(#:tests? #f)) ; test suite can't find python-zope-testing
1101 `(("python-coverage" ,python-coverage)
1102 ("python-nose" ,python-nose)
1103 ("python-zope-event" ,python-zope-event)
1104 ("python-zope-testing" ,python-zope-testing)))
1105 (home-page "https://github.com/zopefoundation/zope.interface")
1106 (synopsis "Python implementation of the \"design by contract\"
1108 (description "Zope.interface provides an implementation of \"object
1109 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
1110 conforming to a given API or contract.")
1111 (license license:zpl2.1)))
1113 (define-public python2-zope-interface
1114 (package-with-python2 python-zope-interface))
1116 (define-public python-zope-exceptions
1118 (name "python-zope-exceptions")
1123 (uri (pypi-uri "zope.exceptions" version))
1126 "1nkgfwawswmyc6i0b8g3ymvja4mb507m8yhid8s4rbxq3dmqhwhd"))))
1127 (build-system python-build-system)
1130 (modify-phases %standard-phases
1133 (invoke "zope-testrunner" "--test-path=src"))))))
1135 `(("python-zope-testrunner" ,python-zope-testrunner-bootstrap)))
1137 `(("python-zope-interface" ,python-zope-interface)))
1138 (home-page "https://pypi.org/project/zope.exceptions/")
1139 (synopsis "Zope exceptions")
1140 (description "Zope.exceptions provides general-purpose exception types
1141 that have uses outside of the Zope framework.")
1142 (license license:zpl2.1)))
1144 (define-public python-zope-exceptions-bootstrap
1146 (inherit python-zope-exceptions)
1147 (arguments `(#:tests? #f))
1148 (propagated-inputs `())
1150 (properties `((hidden? . #t)))))
1152 (define-public python2-zope-exceptions
1153 (package-with-python2 python-zope-exceptions))
1155 (define-public python-zope-testing
1157 (name "python-zope-testing")
1162 (uri (pypi-uri "zope.testing" version))
1165 "1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn"))))
1166 (build-system python-build-system)
1167 (home-page "https://pypi.org/project/zope.testing/")
1168 (synopsis "Zope testing helpers")
1169 (description "Zope.testing provides a number of testing utilities for HTML
1170 forms, HTTP servers, regular expressions, and more.")
1171 (license license:zpl2.1)))
1173 (define-public python2-zope-testing
1174 (package-with-python2 python-zope-testing))
1176 (define-public python-zope-testrunner
1178 (name "python-zope-testrunner")
1183 (uri (pypi-uri "zope.testrunner" version))
1186 "0jyyf1dcz156q95x2y7yw2v420q2xn3cff0c5aci7hmdmcbn0gc7"))))
1187 (build-system python-build-system)
1189 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1191 `(("python-zope-testing" ,python-zope-testing)))
1193 `(("python-six" ,python-six)
1194 ("python-zope-exceptions" ,python-zope-exceptions)
1195 ("python-zope-interface" ,python-zope-interface)))
1196 (home-page "https://pypi.org/project/zope.testrunner/")
1197 (synopsis "Zope testrunner script")
1198 (description "Zope.testrunner provides a script for running Python
1200 (license license:zpl2.1)))
1202 (define-public python-zope-testrunner-bootstrap
1204 (inherit python-zope-testrunner)
1205 (arguments `(#:tests? #f))
1207 `(("python-six" ,python-six)
1208 ("python-zope-exceptions" ,python-zope-exceptions-bootstrap)))
1209 (properties `((hidden? . #t)))))
1211 (define-public python2-zope-testrunner
1212 (package-with-python2 python-zope-testrunner))
1214 (define-public python-zope-i18nmessageid
1216 (name "python-zope-i18nmessageid")
1221 (uri (pypi-uri "zope.i18nmessageid" version))
1224 "0ndhn4w1qgwkfbwf9vm2bgq418z5g0wmfsgl0d9nz62cd0mi8d4m"))))
1225 (build-system python-build-system)
1227 `(("python-coverage" ,python-coverage)
1228 ("python-zope-testrunner" ,python-zope-testrunner)))
1230 `(("python-six" ,python-six)))
1231 (home-page "https://pypi.org/project/zope.i18nmessageid/")
1232 (synopsis "Message identifiers for internationalization")
1233 (description "Zope.i18nmessageid provides facilities for declaring
1234 internationalized messages within program source text.")
1235 (license license:zpl2.1)))
1237 (define-public python2-zope-i18nmessageid
1238 (package-with-python2 python-zope-i18nmessageid))
1240 (define-public python-zope-schema
1242 (name "python-zope-schema")
1247 (uri (pypi-uri "zope.schema" version))
1250 "09jg47bxhfg1ahr1jxb5y0cbiszyk1j6fn1r1r7s6svjl3lbryr0"))))
1251 (build-system python-build-system)
1254 (modify-phases %standard-phases
1256 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
1257 (add-installed-pythonpath inputs outputs)
1259 (invoke "zope-testrunner" "--test-path=src")
1262 `(("python-zope-event" ,python-zope-event)
1263 ("python-zope-interface" ,python-zope-interface)))
1265 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1266 ("python-zope-testing" ,python-zope-testing)
1267 ("python-zope-testrunner" ,python-zope-testrunner)))
1268 (home-page "https://pypi.org/project/zope.schema/")
1269 (synopsis "Zope data schemas")
1270 (description "Zope.scheme provides extensions to zope.interface for
1271 defining data schemas.")
1272 (license license:zpl2.1)))
1274 (define-public python2-zope-schema
1275 (package-with-python2 python-zope-schema))
1277 (define-public python-zope-configuration
1279 (name "python-zope-configuration")
1283 (uri (pypi-uri "zope.configuration" version))
1286 "0g6vrl7y27z9cj5xyrww9xlzk4npj55mgmlrcd9d2nj08jn2pw79"))))
1287 (build-system python-build-system)
1289 `(("python-manuel" ,python-manuel)
1290 ("python-zope-testing" ,python-zope-testing)
1291 ("python-zope-testrunner" ,python-zope-testrunner)))
1293 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1294 ("python-zope-interface" ,python-zope-interface)
1295 ("python-zope-schema" ,python-zope-schema)))
1296 (home-page "https://pypi.org/project/zope.configuration/")
1297 (synopsis "Zope Configuration Markup Language")
1298 (description "Zope.configuration implements ZCML, the Zope Configuration
1300 (license license:zpl2.1)))
1302 (define-public python2-zope-configuration
1303 (package-with-python2 python-zope-configuration))
1305 (define-public python-zope-proxy
1307 (name "python-zope-proxy")
1312 (uri (pypi-uri "zope.proxy" version))
1315 "14h7nyfbl5vpfk0rbviy4ygdfx0yx5kncvg6jpbdb0dhwna0ssm6"))))
1316 (build-system python-build-system)
1318 `(("python-zope-security" ,python-zope-security-bootstrap)
1319 ("python-zope-testrunner" ,python-zope-testrunner)))
1321 `(("python-zope-interface" ,python-zope-interface)))
1322 (home-page "https://pypi.org/project/zope.proxy/")
1323 (synopsis "Generic, transparent proxies")
1324 (description "Zope.proxy provides generic, transparent proxies for Python.
1325 Proxies are special objects which serve as mostly-transparent wrappers around
1326 another object, intervening in the apparent behavior of the wrapped object
1327 only when necessary to apply the policy (e.g., access checking, location
1328 brokering, etc.) for which the proxy is responsible.")
1329 (license license:zpl2.1)))
1331 (define-public python-zope-proxy-bootstrap
1333 (inherit python-zope-proxy)
1334 (arguments `(#:tests? #f))
1336 (properties `((hidden? . #t)))))
1338 (define-public python2-zope-proxy
1339 (package-with-python2 python-zope-proxy))
1341 (define-public python-zope-location
1343 (name "python-zope-location")
1348 (uri (pypi-uri "zope.location" version))
1351 "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857"))))
1352 (build-system python-build-system)
1354 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1356 `(("python-zope-testrunner" ,python-zope-testrunner)))
1358 `(("python-zope-interface" ,python-zope-interface)
1359 ("python-zope-proxy" ,python-zope-proxy)
1360 ("python-zope-schema" ,python-zope-schema)))
1361 (home-page "https://pypi.org/project/zope.location/")
1362 (synopsis "Zope location library")
1363 (description "Zope.location implements the concept of \"locations\" in
1364 Zope3, which are are special objects that have a structural location.")
1365 (license license:zpl2.1)))
1367 (define-public python2-zope-location
1368 (package-with-python2 python-zope-location))
1370 (define-public python-zope-security
1372 (name "python-zope-security")
1377 (uri (pypi-uri "zope.security" version))
1380 "1npfrgnm202v48wavpwn3450dsn7az12lfww95vbhxyjl11f14yb"))))
1381 (build-system python-build-system)
1383 '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
1385 `(("python-zope-component" ,python-zope-component)
1386 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1387 ("python-zope-interface" ,python-zope-interface)
1388 ("python-zope-location" ,python-zope-location)
1389 ("python-zope-proxy" ,python-zope-proxy)
1390 ("python-zope-schema" ,python-zope-schema)))
1392 `(("python-zope-configuration" ,python-zope-configuration)
1393 ("python-zope-testrunner" ,python-zope-testrunner)
1394 ("python-zope-testing" ,python-zope-testing)))
1395 (home-page "https://pypi.org/project/zope.security/")
1396 (synopsis "Zope security framework")
1397 (description "Zope.security provides a generic mechanism to implement
1398 security policies on Python objects.")
1399 (license license:zpl2.1)))
1401 (define-public python-zope-security-bootstrap
1403 (inherit python-zope-security)
1404 (arguments `(#:tests? #f))
1406 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1407 ("python-zope-interface" ,python-zope-interface)
1408 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
1409 ("python-zope-schema" ,python-zope-schema)))
1411 (properties `((hidden? . #t)))))
1413 (define-public python2-zope-security
1414 (package-with-python2 python-zope-security))
1416 (define-public python-zope-component
1418 (name "python-zope-component")
1423 (uri (pypi-uri "zope.component" version))
1426 "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv"))))
1427 (build-system python-build-system)
1429 ;; Skip tests due to circular dependency with python-zope-security.
1432 `(("python-zope-testing" ,python-zope-testing)))
1434 `(("python-zope-event" ,python-zope-event)
1435 ("python-zope-interface" ,python-zope-interface)
1436 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1437 ("python-zope-configuration" ,python-zope-configuration)))
1438 (home-page "https://github.com/zopefoundation/zope.component")
1439 (synopsis "Zope Component Architecture")
1440 (description "Zope.component represents the core of the Zope Component
1441 Architecture. Together with the zope.interface package, it provides
1442 facilities for defining, registering and looking up components.")
1443 (license license:zpl2.1)))
1445 (define-public python2-zope-component
1446 (package-with-python2 python-zope-component))
1448 (define-public python-ndg-httpsclient
1450 (name "python-ndg-httpsclient")
1454 (uri (pypi-uri "ndg_httpsclient" version))
1457 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1458 (build-system python-build-system)
1460 '(;; The tests appear to require networking.
1463 `(("python-pyopenssl" ,python-pyopenssl)))
1464 (synopsis "HTTPS support for Python's httplib and urllib2")
1465 (description "This is a HTTPS client implementation for httplib and urllib2
1466 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1467 over the default provided with Python and, importantly, enables full
1468 verification of the SSL peer.")
1469 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1470 (license license:bsd-3)))
1472 ;; python2-openssl requires special care, so package-with-python2 is
1474 (define-public python2-ndg-httpsclient
1475 (package (inherit python-ndg-httpsclient)
1476 (name "python2-ndg-httpsclient")
1478 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1479 ((#:python _) python-2)))
1481 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1483 (define-public python-websocket-client
1485 (name "python-websocket-client")
1490 (uri (pypi-uri "websocket_client" version))
1493 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
1494 (build-system python-build-system)
1496 `(("python-six" ,python-six)))
1497 (home-page "https://github.com/liris/websocket-client")
1498 (synopsis "WebSocket client for Python")
1499 (description "The Websocket-client module provides the low level APIs for
1500 WebSocket usage in Python programs.")
1501 (properties `((python2-variant . ,(delay python2-websocket-client))))
1502 (license license:lgpl2.1+)))
1504 (define-public python2-websocket-client
1505 (let ((base (package-with-python2
1506 (strip-python2-variant python-websocket-client))))
1510 `(("python2-backport-ssl-match-hostname"
1511 ,python2-backport-ssl-match-hostname)
1512 ,@(package-native-inputs base))))))
1514 (define-public python-requests
1516 (name "python-requests")
1520 (uri (pypi-uri "requests" version))
1523 "1rhpg0jb08v0gd7f19jjiwlcdnxpmqi1fhvw7r4s9avddi4kvx5k"))))
1524 (build-system python-build-system)
1526 `(("python-certifi" ,python-certifi)
1527 ("python-chardet" ,python-chardet)
1528 ("python-idna" ,python-idna)
1529 ("python-urllib3" ,python-urllib3)))
1531 ;; FIXME: Some tests require network access.
1533 (home-page "http://python-requests.org/")
1534 (synopsis "Python HTTP library")
1536 "Requests is a Python HTTP client library. It aims to be easier to use
1537 than Python’s urllib2 library.")
1538 (license license:asl2.0)))
1540 ;; Some software requires an older version of Requests, notably Docker/Docker
1542 (define-public python-requests-2.20
1543 (package (inherit python-requests)
1547 (uri (pypi-uri "requests" version))
1550 "0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
1552 `(("python-urllib3" ,python-urllib3-1.24)
1553 ("python-idna" ,python-idna-2.7)
1554 ,@(package-propagated-inputs python-requests)))))
1556 ;; Some software requires an older version of Requests, notably Docker
1558 (define-public python-requests-2.7
1559 (package (inherit python-requests)
1563 (uri (pypi-uri "requests" version))
1566 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1568 (define-public python2-requests
1569 (package-with-python2 python-requests))
1571 (define-public python-requests_ntlm
1573 (name "python-requests_ntlm")
1578 (uri (pypi-uri "requests_ntlm" version))
1581 "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
1582 (build-system python-build-system)
1584 `(("python-cryptography" ,python-cryptography)
1585 ("python-ntlm-auth" ,python-ntlm-auth)
1586 ("python-requests" ,python-requests)))
1587 (home-page "https://github.com/requests/requests-ntlm")
1589 "NTLM authentication support for Requests")
1591 "This package allows for HTTP NTLM authentication using the requests
1593 (license license:isc)))
1595 (define-public python-requests-mock
1597 (name "python-requests-mock")
1602 (uri (pypi-uri "requests-mock" version))
1605 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1606 (build-system python-build-system)
1608 `(("python-requests" ,python-requests)
1609 ("python-six" ,python-six)))
1611 `(("python-pbr" ,python-pbr)
1612 ("python-discover" ,python-discover)
1613 ("python-docutils" ,python-docutils)
1614 ("python-fixtures" ,python-fixtures)
1615 ("python-mock" ,python-mock)
1616 ("python-sphinx" ,python-sphinx)
1617 ("python-testrepository" ,python-testrepository)
1618 ("python-testtools" ,python-testtools)))
1619 (home-page "https://requests-mock.readthedocs.org/")
1620 (synopsis "Mock out responses from the requests package")
1622 "This module provides a building block to stub out the HTTP requests
1623 portions of your testing code.")
1624 (properties `((python2-variant . ,(delay python2-requests-mock))))
1625 (license license:asl2.0)))
1627 (define-public python2-requests-mock
1628 (package (inherit (package-with-python2
1629 (strip-python2-variant python-requests-mock)))
1631 `(#:python ,python-2
1632 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1635 (define-public python-requests-toolbelt
1637 (name "python-requests-toolbelt")
1641 (uri (pypi-uri "requests-toolbelt" version))
1644 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1645 (build-system python-build-system)
1647 `(("python-betamax" ,python-betamax)
1648 ("python-mock" ,python-mock)
1649 ("python-pytest" ,python-pytest)))
1651 `(("python-requests" ,python-requests)))
1652 (synopsis "Extensions to python-requests")
1653 (description "This is a toolbelt of useful classes and functions to be used
1654 with python-requests.")
1655 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1656 (license license:asl2.0)))
1658 (define-public python2-requests-toolbelt
1659 (package-with-python2 python-requests-toolbelt))
1661 (define-public python-oauthlib
1663 (name "python-oauthlib")
1667 (uri (pypi-uri "oauthlib" version))
1670 "163jg4a8f7c5ki655grrr47kgljy12wri3qly7ijf64sk1fjrqqc"))))
1671 (build-system python-build-system)
1673 `(#:phases (modify-phases %standard-phases
1676 (invoke "pytest" "-vv"))))))
1678 `(("python-pytest" ,python-pytest)
1679 ("python-pytest-cov" ,python-pytest-cov)
1680 ("python-mock" ,python-mock)))
1682 `(("python-cryptography" ,python-cryptography)
1683 ("python-pyjwt" ,python-pyjwt)
1684 ("python-blinker" ,python-blinker)))
1685 (home-page "https://github.com/oauthlib/oauthlib")
1686 (synopsis "OAuth implementation for Python")
1688 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1689 OAuth request-signing logic.")
1690 (license license:bsd-3)))
1692 (define-public python2-oauthlib
1693 (package-with-python2 python-oauthlib))
1695 (define-public python-rauth
1697 (name "python-rauth")
1702 (uri (pypi-uri "rauth" version))
1705 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1706 (build-system python-build-system)
1708 `(#:test-target "check"))
1710 `(("python-requests" ,python-requests)))
1711 (home-page "https://github.com/litl/rauth")
1712 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1714 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1715 provides service wrappers for convenient connection initialization and
1716 authenticated session objects providing things like keep-alive.")
1717 (license license:expat)
1718 (properties `((python2-variant . ,(delay python2-rauth))))))
1720 (define-public python2-rauth
1721 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1724 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1725 ,@(package-native-inputs base))))))
1727 (define-public python-urllib3
1729 (name "python-urllib3")
1734 (uri (pypi-uri "urllib3" version))
1737 "09rmjqm5syhhc8fx3v06h3yv6cqy0b1081jg8wm5grpwpr72j61h"))))
1738 (build-system python-build-system)
1739 (arguments `(#:tests? #f))
1741 `(;; These 5 inputs are used to build urrlib3[secure]
1742 ("python-certifi" ,python-certifi)
1743 ("python-cryptography" ,python-cryptography)
1744 ("python-idna" ,python-idna)
1745 ("python-ipaddress" ,python-ipaddress)
1746 ("python-pyopenssl" ,python-pyopenssl)
1747 ("python-pysocks" ,python-pysocks)))
1748 (home-page "https://urllib3.readthedocs.io/")
1749 (synopsis "HTTP library with thread-safe connection pooling")
1751 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1752 can reuse the same socket connection for multiple requests, it can POST files,
1753 supports url redirection and retries, and also gzip and deflate decoding.")
1754 (license license:expat)))
1756 ;; Some software requires an older version of urllib3, notably Docker.
1757 (define-public python-urllib3-1.24
1758 (package (inherit python-urllib3)
1762 (uri (pypi-uri "urllib3" version))
1765 "1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
1768 (define-public python2-urllib3
1769 (package-with-python2 python-urllib3))
1771 (define-public awscli
1778 (uri (pypi-uri name version))
1781 "0p479mfs9r0m82a217pap8156ijwvhv6r3kqa4k267gd05wgvygm"))))
1782 (build-system python-build-system)
1784 ;; FIXME: The 'pypi' release does not contain tests.
1787 (modify-phases %standard-phases
1788 (add-after 'unpack 'fix-reference-to-groff
1790 (substitute* "awscli/help.py"
1791 (("if not self._exists_on_path\\('groff'\\):") "")
1792 (("raise ExecutableNotFoundError\\('groff'\\)") "")
1793 (("cmdline = \\['groff'")
1794 (string-append "cmdline = ['" (which "groff") "'")))
1797 `(("python-colorama" ,python-colorama)
1798 ("python-botocore" ,python-botocore)
1799 ("python-s3transfer" ,python-s3transfer)
1800 ("python-docutils" ,python-docutils)
1801 ("python-pyyaml" ,python-pyyaml)
1802 ("python-rsa" ,python-rsa)))
1804 `(("groff" ,groff)))
1805 (home-page "https://aws.amazon.com/cli/")
1806 (synopsis "Command line client for AWS")
1807 (description "AWS CLI provides a unified command line interface to the
1808 Amazon Web Services (AWS) API.")
1809 (license license:asl2.0)))
1811 (define-public python-wsgiproxy2
1813 (name "python-wsgiproxy2")
1818 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
1820 (base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf"))))
1821 (build-system python-build-system)
1823 `(("python-webtest" ,python-webtest)))
1825 `(("python-requests" ,python-requests)
1826 ("python-six" ,python-six)
1827 ("python-urllib3" ,python-urllib3)
1828 ("python-webob" ,python-webob)))
1829 (home-page "https://github.com/gawel/WSGIProxy2/")
1830 (synopsis "WSGI Proxy with various http client backends")
1831 (description "WSGI turns HTTP requests into WSGI function calls.
1832 WSGIProxy turns WSGI function calls into HTTP requests.
1833 It also includes code to sign requests and pass private data,
1834 and to spawn subprocesses to handle requests.")
1835 (license license:expat)))
1837 (define-public python2-wsgiproxy2
1838 (package-with-python2 python-wsgiproxy2))
1840 (define-public python-pastedeploy
1842 (name "python-pastedeploy")
1847 (uri (pypi-uri "PasteDeploy" version))
1849 (base32 "16qsq5y6mryslmbp5pn35x4z8z3ndp5rpgl42h226879nrw9hmg7"))))
1850 (build-system python-build-system)
1852 '(#:test-target "pytest"))
1854 `(("python-pytest" ,python-pytest)
1855 ("python-pytest-runner" ,python-pytest-runner)))
1856 (home-page "https://pylonsproject.org/")
1858 "Load, configure, and compose WSGI applications and servers")
1860 "This tool provides code to load WSGI applications and servers from URIs;
1861 these URIs can refer to Python Eggs for INI-style configuration files. Paste
1862 Script provides commands to serve applications based on this configuration
1864 (license license:expat)))
1866 (define-public python2-pastedeploy
1867 (package-with-python2 python-pastedeploy))
1869 (define-public python-webtest
1871 (name "python-webtest")
1876 (uri (pypi-uri "WebTest" version))
1879 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
1880 (build-system python-build-system)
1882 ;; Tests require python-pyquery, which creates a circular dependency.
1885 `(("python-waitress" ,python-waitress)
1886 ("python-webob" ,python-webob)
1887 ("python-six" ,python-six)
1888 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1889 (home-page "https://docs.pylonsproject.org/projects/webtest/")
1890 (synopsis "Helper to test WSGI applications")
1891 (description "Webtest allows you to test your Python web applications
1892 without starting an HTTP server. It supports anything that supports the
1894 (license license:expat)))
1896 (define-public python2-webtest
1897 (package-with-python2 python-webtest))
1899 (define-public python-flask
1901 (name "python-flask")
1905 (uri (pypi-uri "Flask" version))
1908 "0q3h295izcil7lswkzfnyg3k5gq4hpmqmpl6i7s5m1n9szi1myjf"))))
1909 (build-system python-build-system)
1912 (modify-phases %standard-phases
1915 (setenv "PYTHONPATH" (string-append "./build/lib:"
1916 (getenv "PYTHONPATH")))
1917 (invoke "pytest" "-vv" "tests"))))))
1919 `(("python-pytest" ,python-pytest)))
1921 `(("python-itsdangerous" ,python-itsdangerous)
1922 ("python-jinja2" ,python-jinja2)
1923 ("python-click" ,python-click)
1924 ("python-werkzeug" ,python-werkzeug)))
1925 (home-page "https://www.palletsprojects.com/p/flask/")
1926 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
1927 (description "Flask is a micro web framework based on the Werkzeug toolkit
1928 and Jinja2 template engine. It is called a micro framework because it does not
1929 presume or force a developer to use a particular tool or library.")
1930 (license license:bsd-3)))
1932 (define-public python2-flask
1933 (package-with-python2 python-flask))
1935 (define-public python-flask-wtf
1937 (name "python-flask-wtf")
1942 (uri (pypi-uri "Flask-WTF" version))
1945 "086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl"))))
1946 (build-system python-build-system)
1949 (modify-phases %standard-phases
1952 (setenv "PYTHONPATH" (string-append "./build/lib:"
1953 (getenv "PYTHONPATH")))
1954 (invoke "pytest" "-vv"))))))
1956 `(("python-flask-babel" ,python-flask-babel)
1957 ("python-babel" ,python-babel)
1958 ("python-wtforms" ,python-wtforms)))
1960 `(("python-pytest" ,python-pytest)))
1961 (home-page "https://github.com/lepture/flask-wtf")
1962 (synopsis "Simple integration of Flask and WTForms")
1963 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
1964 upload, and reCAPTCHA.")
1965 (license license:bsd-3)))
1967 (define-public python2-flask-wtf
1968 (package-with-python2 python-flask-wtf))
1970 (define-public python-flask-multistatic
1972 (name "python-flask-multistatic")
1977 (uri (pypi-uri "flask-multistatic" version))
1980 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
1981 (build-system python-build-system)
1983 `(("python-flask" ,python-flask)))
1984 (home-page "https://pagure.io/flask-multistatic")
1985 (synopsis "Flask plugin to allow overriding static files")
1986 (description "@code{flask-multistatic} is a flask plugin that adds support
1987 for overriding static files.")
1988 (license license:gpl3+)))
1990 (define-public python2-flask-multistatic
1991 (package-with-python2 python-flask-multistatic))
1993 (define-public python-cookies
1995 (name "python-cookies")
1999 (uri (pypi-uri "cookies" version))
2002 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
2003 (build-system python-build-system)
2005 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
2008 `(("python-pytest" ,python-pytest)))
2009 (synopsis "HTTP cookie parser and renderer")
2010 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
2012 (home-page "https://gitlab.com/sashahart/cookies")
2013 (license license:expat)))
2015 (define-public python2-cookies
2016 (package-with-python2 python-cookies))
2018 (define-public python-responses
2020 (name "python-responses")
2024 (uri (pypi-uri "responses" version))
2027 "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah"))))
2028 (build-system python-build-system)
2030 `(;; Test suite is not distributed:
2031 ;; https://github.com/getsentry/responses/issues/38
2034 `(("python-mock" ,python-mock)))
2036 `(("python-requests" ,python-requests)
2037 ("python-cookies" ,python-cookies)
2038 ("python-six" ,python-six)))
2039 (home-page "https://github.com/getsentry/responses")
2040 (synopsis "Utility for mocking out the `requests` Python library")
2041 (description "A utility library for mocking out the `requests` Python
2043 (license license:asl2.0)))
2045 (define-public python2-responses
2046 (package-with-python2 python-responses))
2048 (define-public python-grequests
2050 (name "python-grequests")
2055 (uri (pypi-uri "grequests" version))
2058 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
2059 (build-system python-build-system)
2061 `(("python-gevent" ,python-gevent)
2062 ("python-requests" ,python-requests)))
2064 `(("python-nose" ,python-nose)
2065 ("python-zope.interface" ,python-zope-interface)
2066 ("python-zope.event" ,python-zope-event)))
2067 (home-page "https://github.com/kennethreitz/grequests")
2068 (synopsis "Python library for asynchronous HTTP requests")
2069 (description "GRequests is a Python library that allows you to use
2070 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
2071 (license license:bsd-2)))
2073 (define-public python-geventhttpclient
2075 (name "python-geventhttpclient")
2079 (uri (pypi-uri "geventhttpclient" version))
2082 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
2083 (modules '((guix build utils)))
2086 ;; Delete pre-compiled files.
2087 (for-each delete-file (find-files "src/geventhttpclient"
2090 (build-system python-build-system)
2093 (modify-phases %standard-phases
2094 (add-after 'unpack 'delete-network-tests
2096 (delete-file "src/geventhttpclient/tests/test_client.py")
2099 (lambda* (#:key inputs outputs #:allow-other-keys)
2100 (add-installed-pythonpath inputs outputs)
2101 (invoke "py.test" "src/geventhttpclient/tests" "-v"
2102 ;; Append the test modules to sys.path to avoid
2103 ;; namespace conflict which breaks SSL tests.
2104 "--import-mode=append"
2105 ;; XXX: Disable test fails with Python 3.8:
2106 ;; https://github.com/gwik/geventhttpclient/issues/119
2107 "-k" (string-append "not test_cookielib_compatibility"))
2110 `(("python-pytest" ,python-pytest)))
2112 `(("python-certifi" ,python-certifi)
2113 ("python-gevent" ,python-gevent)
2114 ("python-six" ,python-six)))
2115 (home-page "https://github.com/gwik/geventhttpclient")
2116 (synopsis "HTTP client library for gevent")
2117 (description "@code{python-geventhttpclient} is a high performance,
2118 concurrent HTTP client library for python using @code{gevent}.")
2119 (license license:expat)))
2121 (define-public python2-geventhttpclient
2122 (package-with-python2 python-geventhttpclient))
2124 (define-public python-requests-oauthlib
2126 (name "python-requests-oauthlib")
2131 (uri (pypi-uri "requests-oauthlib" version))
2134 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
2135 (build-system python-build-system)
2138 (modify-phases %standard-phases
2139 ;; removes tests that require network access
2140 (add-before 'check 'pre-check
2142 (delete-file "tests/test_core.py")
2145 `(("python-pyjwt" ,python-pyjwt)
2146 ("python-requests-mock" ,python-requests-mock)
2147 ("python-mock" ,python-mock)))
2149 `(("python-oauthlib" ,python-oauthlib)
2150 ("python-requests" ,python-requests)))
2152 "https://github.com/requests/requests-oauthlib")
2154 "OAuthlib authentication support for Requests")
2156 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
2157 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
2158 (license license:isc)))
2160 (define-public python2-requests-oauthlib
2161 (package-with-python2 python-requests-oauthlib))
2163 (define-public python-url
2169 (uri (pypi-uri "url" version))
2172 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
2173 (build-system python-build-system)
2175 `(("python-publicsuffix" ,python-publicsuffix)))
2177 `(("python-coverage" ,python-coverage)
2178 ("python-nose" ,python-nose)))
2180 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
2181 (home-page "https://github.com/seomoz/url-py")
2182 (synopsis "URL Parsing")
2183 (description "Library for parsing urls.")
2184 (license license:expat)
2185 (properties `((python2-variant . ,(delay python2-url))))))
2187 (define-public python2-url
2188 (let ((base (package-with-python2 (strip-python2-variant python-url))))
2189 (package (inherit base)
2191 `(("python2-publicsuffix" ,python2-publicsuffix))))))
2193 (define-public python-cachecontrol
2195 (name "python-cachecontrol")
2200 ;; Pypi does not have tests.
2202 (url "https://github.com/ionrock/cachecontrol")
2203 (commit (string-append "v" version))))
2204 (file-name (git-file-name name version))
2207 "03lgc65sl04n0cgzmmgg99bk83f9i6k8yrmcd4hpl46q1pymn0kz"))))
2208 (build-system python-build-system)
2210 ;; Versions > 0.11.6 depend on CherryPy for testing.
2211 ;; It's too much work to package CherryPy for now.
2214 `(("python-requests" ,python-requests)
2215 ("python-msgpack" ,python-msgpack)
2216 ("python-lockfile" ,python-lockfile)))
2217 (home-page "https://github.com/ionrock/cachecontrol")
2218 (synopsis "The httplib2 caching algorithms for use with requests")
2219 (description "CacheControl is a port of the caching algorithms in
2220 @code{httplib2} for use with @code{requests} session objects.")
2221 (license license:asl2.0)))
2223 (define-public python2-cachecontrol
2224 (package-with-python2 python-cachecontrol))
2226 (define-public python-betamax
2228 (name "python-betamax")
2233 (uri (pypi-uri "betamax" version))
2236 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
2237 (build-system python-build-system)
2239 '(;; Many tests fail because they require networking.
2242 `(("python-requests" ,python-requests)))
2243 (home-page "https://github.com/sigmavirus24/betamax")
2244 (synopsis "Record HTTP interactions with python-requests")
2245 (description "Betamax will record your test suite's HTTP interactions and
2246 replay them during future tests. It is designed to work with python-requests.")
2247 (license license:expat)))
2249 (define-public python2-betamax
2250 (package-with-python2 python-betamax))
2252 (define-public python-betamax-matchers
2254 (name "python-betamax-matchers")
2259 (uri (pypi-uri "betamax-matchers" version))
2262 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
2263 (build-system python-build-system)
2265 `(("python-betamax" ,python-betamax)
2266 ("python-requests-toolbelt" ,python-requests-toolbelt)))
2267 (home-page "https://github.com/sigmavirus24/betamax_matchers")
2268 (synopsis "VCR imitation for python-requests")
2269 (description "@code{betamax-matchers} provides a set of Matchers for
2271 (license license:asl2.0)))
2273 (define-public python2-betamax-matchers
2274 (package-with-python2 python-betamax-matchers))
2276 (define-public python-s3transfer
2278 (name "python-s3transfer")
2282 (uri (pypi-uri "s3transfer" version))
2285 "08fhj73b1ai52hrs2q3nggshq3pswn1gq8ch3m009cb2v2vmqggj"))))
2286 (build-system python-build-system)
2289 (modify-phases %standard-phases
2290 (add-after 'unpack 'patch
2292 ;; There's a small issue with one test with Python 3.8, this
2293 ;; change has been suggested upstream:
2294 ;; https://github.com/boto/s3transfer/pull/164
2295 (substitute* "tests/unit/test_s3transfer.py"
2296 (("super\\(FailedDownloadParts, self\\)\\.submit\\(function\\)")
2297 "futures.Future()"))
2301 ;; Some of the 'integration' tests require network access or
2302 ;; login credentials.
2303 (invoke "nosetests" "--exclude=integration")
2306 `(("python-docutils" ,python-docutils)
2307 ("python-mock" ,python-mock)
2308 ("python-nose" ,python-nose)))
2310 `(("python-botocore" ,python-botocore)
2311 ("python-urllib3" ,python-urllib3)))
2312 (synopsis "Amazon S3 Transfer Manager")
2313 (description "S3transfer is a Python library for managing Amazon S3
2315 (home-page "https://github.com/boto/s3transfer")
2316 (license license:asl2.0)
2317 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2319 (define-public python2-s3transfer
2320 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2324 `(("python2-futures" ,python2-futures)
2325 ,@(package-native-inputs base))))))
2327 (define-public python-slimit
2329 (name "python-slimit")
2334 (uri (pypi-uri "slimit" version ".zip"))
2337 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2338 (build-system python-build-system)
2340 `(("unzip" ,unzip)))
2342 `(("python-ply" ,python-ply)))
2343 (home-page "https://slimit.readthedocs.io/")
2344 (synopsis "JavaScript minifier, parser and lexer written in Python")
2346 "SlimIt is a JavaScript minifier written in Python. It compiles
2347 JavaScript into more compact code so that it downloads and runs faster.
2348 SlimIt also provides a library that includes a JavaScript parser, lexer,
2349 pretty printer and a tree visitor.")
2350 (license license:expat)))
2352 (define-public python-flask-restful
2354 (name "python-flask-restful")
2359 (uri (pypi-uri "Flask-RESTful" version))
2360 (patches (search-patches "python-flask-restful-werkzeug-compat.patch"))
2363 "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
2364 (build-system python-build-system)
2366 `(("python-aniso8601" ,python-aniso8601)
2367 ("python-flask" ,python-flask)
2368 ("python-pycrypto" ,python-pycrypto)
2369 ("python-pytz" ,python-pytz)))
2371 `(;; Optional dependency of Flask. Tests need it.
2372 ("python-blinker" ,python-blinker)
2373 ("python-mock" ,python-mock) ; For tests
2374 ("python-nose" ,python-nose))) ;for tests
2376 "https://www.github.com/flask-restful/flask-restful/")
2378 "Flask module for creating REST APIs")
2380 "This package contains a Flask module for creating REST APIs.")
2381 (license license:bsd-3)))
2383 (define-public python-flask-basicauth
2385 (name "python-flask-basicauth")
2390 (uri (pypi-uri "Flask-BasicAuth" version))
2393 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2394 (build-system python-build-system)
2396 `(("python-flask" ,python-flask)))
2398 "https://github.com/jpvanhal/flask-basicauth")
2400 "HTTP basic access authentication for Flask")
2402 "This package provides HTTP basic access authentication for Flask.")
2403 (license license:bsd-3)))
2405 (define-public python-flask-htpasswd
2407 (name "python-flask-htpasswd")
2412 (uri (pypi-uri "flask-htpasswd" version))
2415 "14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra"))))
2416 (build-system python-build-system)
2418 `(("python-flask" ,python-flask)
2419 ("python-itsdangerous" ,python-itsdangerous)
2420 ("python-passlib" ,python-passlib)
2421 ("python-tox" ,python-tox)))
2422 (home-page "https://github.com/carsongee/flask-htpasswd")
2423 (synopsis "Basic authentication via htpasswd files in Flask applications")
2424 (description "This package provides Basic authentication via
2425 @file{htpasswd} files and access_token authentication in Flask
2427 (license license:bsd-3)))
2429 (define-public python-flask-sqlalchemy
2431 (name "python-flask-sqlalchemy")
2435 (uri (pypi-uri "Flask-SQLAlchemy" version))
2438 "19apnn2m9bl1d1h2nc52pnmiyx993mwzmfjrv04l3wn5hyznyr8b"))))
2439 (build-system python-build-system)
2441 `(("python-flask" ,python-flask)
2442 ("python-sqlalchemy" ,python-sqlalchemy)))
2443 (home-page "https://github.com/mitsuhiko/flask-sqlalchemy")
2444 (synopsis "Module adding SQLAlchemy support to your Flask application")
2446 "This package adds SQLAlchemy support to your Flask application.")
2447 (license license:bsd-3)))
2449 (define-public python-flask-restplus
2451 (name "python-flask-restplus")
2456 (uri (pypi-uri "flask-restplus" version))
2459 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2460 (build-system python-build-system)
2462 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2464 ;; (modify-phases %standard-phases
2467 ;; (invoke "nosetests")
2470 `(("python-aniso8601" ,python-aniso8601)
2471 ("python-flask" ,python-flask)
2472 ("python-jsonschema" ,python-jsonschema)
2473 ("python-pytz" ,python-pytz)
2474 ("python-six" ,python-six)))
2476 `(("python-tzlocal" ,python-tzlocal)
2477 ("python-blinker" ,python-blinker)
2478 ("python-nose" ,python-nose)
2479 ("python-rednose" ,python-rednose)))
2480 (home-page "https://github.com/noirbizarre/flask-restplus")
2481 (synopsis "Framework for documented API development with Flask")
2482 (description "This package provides a framework for API development with
2483 the Flask web framework in Python. It is similar to package
2484 @code{python-flask-restful} but supports the @code{python-swagger}
2485 documentation builder.")
2486 (license license:expat)))
2488 (define-public python-flask-restful-swagger
2490 (name "python-flask-restful-swagger")
2495 (uri (pypi-uri "flask-restful-swagger" version))
2498 "1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq"))))
2499 (build-system python-build-system)
2500 (arguments '(#:tests? #f)) ;no tests
2502 `(("python-flask-restful" ,python-flask-restful)))
2503 (home-page "https://github.com/rantav/flask-restful-swagger")
2504 (synopsis "Extract Swagger specs from Flask-Restful projects")
2505 (description "This package lets you extract Swagger API documentation
2506 specs from your Flask-Restful projects.")
2507 (license license:expat)))
2509 (define-public python2-flask-restful-swagger
2510 (package-with-python2 python-flask-restful-swagger))
2512 (define-public python-htmlmin
2514 (name "python-htmlmin")
2519 (uri (pypi-uri "htmlmin" version))
2522 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2524 `(#:tests? #f)) ; no tests
2525 (build-system python-build-system)
2526 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2527 (synopsis "HTML minifier")
2528 (description "@code{htmlmin} is an HTML minifier that just works.
2529 It comes with safe defaults and easily configurable options.")
2530 (license license:bsd-3)))
2532 (define-public python2-htmlmin
2533 (package-with-python2 python-htmlmin))
2535 (define-public python-flask-htmlmin
2537 (name "python-flask-htmlmin")
2542 (uri (pypi-uri "Flask-HTMLmin" version))
2545 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2547 `(("python-flask" ,python-flask)
2548 ("python-htmlmin" ,python-htmlmin)))
2549 (build-system python-build-system)
2550 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2551 (synopsis "HTML response minifier for Flask")
2553 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2554 (license license:bsd-3)))
2556 (define-public python2-flask-htmlmin
2557 (package-with-python2 python-flask-htmlmin))
2559 (define-public python-jsmin
2561 (name "python-jsmin")
2566 (uri (pypi-uri "jsmin" version))
2569 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2570 (build-system python-build-system)
2571 (home-page "https://github.com/tikitu/jsmin/")
2572 (synopsis "Python JavaScript minifier")
2574 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2575 on the command line.")
2576 (license license:expat)))
2578 (define-public python-flask-login
2580 (name "python-flask-login")
2586 (url "https://github.com/maxcountryman/flask-login")
2588 (file-name (git-file-name name version))
2590 (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
2591 (build-system python-build-system)
2593 `(("python-flask" ,python-flask)))
2596 `(("python-blinker" ,python-blinker)
2597 ("python-coverage" ,python-coverage)
2598 ("python-mock" ,python-mock)
2599 ("python-pycodestyle" ,python-pycodestyle)
2600 ("python-pyflakes" ,python-pyflakes)
2601 ("python-pytest" ,python-pytest)
2602 ("python-semantic-version" ,python-semantic-version)
2603 ("python-werkzeug" ,python-werkzeug)))
2604 (home-page "https://github.com/maxcountryman/flask-login")
2605 (synopsis "User session management for Flask")
2607 "@code{Flask-Login} provides user session management for Flask. It
2608 handles the common tasks of logging in, logging out, and remembering your
2609 users' sessions over extended periods of time.")
2610 (license license:expat)))
2612 (define-public python2-flask-login
2613 (package-with-python2 python-flask-login))
2615 (define-public python-oauth2client
2617 (name "python-oauth2client")
2622 (uri (pypi-uri "oauth2client" version))
2625 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2626 (build-system python-build-system)
2630 `(("python-httplib2" ,python-httplib2)
2631 ("python-pyasn1" ,python-pyasn1)
2632 ("python-pyasn1-modules" ,python-pyasn1-modules)
2633 ("python-rsa" ,python-rsa)
2634 ("python-six" ,python-six)))
2635 (home-page "https://github.com/google/oauth2client/")
2636 (synopsis "OAuth 2.0 client library")
2637 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2638 library for Python")
2639 (license license:asl2.0)))
2641 (define-public python2-oauth2client
2642 (package-with-python2 python-oauth2client))
2644 (define-public python-flask-oidc
2646 (name "python-flask-oidc")
2651 (uri (pypi-uri "flask-oidc" version))
2654 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
2655 (build-system python-build-system)
2657 `(("python-flask" ,python-flask)
2658 ("python-itsdangerous" ,python-itsdangerous)
2659 ("python-oauth2client" ,python-oauth2client)
2660 ("python-six" ,python-six)))
2662 `(("python-nose" ,python-nose)
2663 ("python-mock" ,python-mock)))
2664 (home-page "https://github.com/puiterwijk/flask-oidc")
2665 (synopsis "OpenID Connect extension for Flask")
2666 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2668 (license license:bsd-2)))
2670 (define-public python-webassets
2672 (name "python-webassets")
2677 (uri (pypi-uri "webassets" version))
2680 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2681 (build-system python-build-system)
2683 `(("python-jinja2" ,python-jinja2)
2684 ("python-mock" ,python-mock)
2685 ("python-nose" ,python-nose)
2686 ("python-pytest" ,python-pytest)))
2687 (home-page "https://github.com/miracle2k/webassets")
2688 (synopsis "Media asset management")
2689 (description "Merges, minifies and compresses Javascript and CSS files,
2690 supporting a variety of different filters, including YUI, jsmin, jspacker or
2691 CSS tidy. Also supports URL rewriting in CSS files.")
2692 (license license:bsd-2)))
2694 (define-public python-cssmin
2696 (name "python-cssmin")
2701 (uri (pypi-uri "cssmin" version))
2704 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2705 (build-system python-build-system)
2706 (home-page "https://github.com/zacharyvoase/cssmin")
2707 (synopsis "Python port of the YUI CSS Compressor")
2708 (description "Python port of the YUI CSS Compressor.")
2709 (license (list license:expat license:bsd-3))))
2711 (define-public python2-cssmin
2712 (package-with-python2 python-cssmin))
2714 (define-public python-elasticsearch
2716 (name "python-elasticsearch")
2721 (uri (pypi-uri "elasticsearch" version))
2724 "0rnjvlhw4v3vg14l519qliy1s1zpmx3827q0xfviwvk42rr7hh01"))))
2725 (build-system python-build-system)
2727 `(("python-mock" ,python-mock)
2728 ("python-nosexcover" ,python-nosexcover)
2729 ("python-pyaml" ,python-pyaml)
2730 ("python-requests" ,python-requests)))
2732 `(("urllib3" ,python-urllib3)))
2734 ;; tests require the test_elasticsearch module but it is not distributed.
2736 (home-page "https://github.com/elastic/elasticsearch-py")
2737 (synopsis "Low-level client for Elasticsearch")
2738 (description "Official low-level client for Elasticsearch. Its goal is to
2739 provide common ground for all Elasticsearch-related code in Python; because of
2740 this it tries to be opinion-free and very extendable.")
2741 (license license:expat)))
2743 (define-public python2-elasticsearch
2744 (package-with-python2 python-elasticsearch))
2746 (define-public python-flask-script
2748 (name "python-flask-script")
2753 (uri (pypi-uri "Flask-Script" version))
2756 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
2757 (build-system python-build-system)
2760 (modify-phases %standard-phases
2761 (add-after 'unpack 'patch-tests
2763 (substitute* "tests.py"
2764 (("flask\\.ext\\.script") "flask_script"))
2767 `(("python-flask" ,python-flask)
2768 ("python-argcomplete" ,python-argcomplete)
2769 ("python-werkzeug" ,python-werkzeug)))
2771 `(("python-pytest" ,python-pytest)))
2773 "https://github.com/smurfix/flask-script")
2774 (synopsis "Scripting support for Flask")
2775 (description "The Flask-Script extension provides support for writing
2776 external scripts in Flask. This includes running a development server,
2777 a customised Python shell, scripts to set up your database, cronjobs,
2778 and other command-line tasks that belong outside the web application
2780 (license license:bsd-3)))
2782 (define-public python2-flask-script
2783 (package-with-python2 python-flask-script))
2785 (define-public python-flask-migrate
2787 (name "python-flask-migrate")
2792 (uri (pypi-uri "Flask-Migrate" version))
2795 "1vip9ww6l18dxffjsggm83k71zkvihxpnhaswpv8klh95s6517d6"))))
2796 (build-system python-build-system)
2798 `(("python-flask" ,python-flask)
2799 ("python-alembic" ,python-alembic)
2800 ("python-sqlalchemy" ,python-sqlalchemy)
2801 ("python-flask-script" ,python-flask-script)
2802 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2803 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2804 (synopsis "SQLAlchemy database migrations for Flask programs using
2806 (description "This package contains SQLAlchemy database migration tools
2807 for Flask programs that are using @code{python-alembic}.")
2808 (license license:expat)))
2810 (define-public python-genshi
2812 (name "python-genshi")
2818 (url "https://github.com/edgewall/genshi")
2820 (file-name (git-file-name name version))
2822 (base32 "04bw7nd4wyn8ixnhik57hny2xpjjpn80k5hp6691inix5gc6rxaf"))))
2823 (build-system python-build-system)
2824 (home-page "https://genshi.edgewall.org/")
2825 (synopsis "Toolkit for generation of output for the web")
2826 (description "Genshi is a Python library that provides an integrated set
2827 of components for parsing, generating, and processing HTML, XML or other
2828 textual content for output generation on the web.")
2829 (license license:bsd-3)))
2831 (define-public python2-genshi
2832 (package-with-python2 python-genshi))
2834 (define-public python-flask-principal
2836 (name "python-flask-principal")
2841 (uri (pypi-uri "Flask-Principal" version))
2844 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
2845 (build-system python-build-system)
2847 `(("python-blinker" ,python-blinker)))
2849 `(("python-flask" ,python-flask)
2850 ("python-nose" ,python-nose)))
2851 (home-page "https://pythonhosted.org/Flask-Principal/")
2852 (synopsis "Identity management for Flask")
2853 (description "@code{flask_principal} is a identity management library for
2854 Flask. It supports managing both authentication and authorization data in a
2855 thread-local variable.")
2856 (license license:expat)))
2858 (define-public python2-flask-principal
2859 (package-with-python2 python-flask-principal))
2861 (define-public python-flask-httpauth
2863 (name "python-flask-httpauth")
2868 (uri (pypi-uri "Flask-HTTPAuth" version))
2871 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
2872 (build-system python-build-system)
2874 `(("python-flask" ,python-flask)))
2875 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
2876 (synopsis "Basic and Digest HTTP authentication for Flask routes")
2877 (description "@code{flask_httpauth} provides Basic and Digest HTTP
2878 authentication for Flask routes.")
2879 (license license:expat)))
2881 (define-public python2-flask-httpauth
2882 (package-with-python2 python-flask-httpauth))
2884 (define-public python-uritemplate
2886 (name "python-uritemplate")
2891 (uri (pypi-uri "uritemplate" version))
2894 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
2895 (build-system python-build-system)
2896 (home-page "https://uritemplate.readthedocs.org")
2897 (synopsis "Library to deal with URI Templates")
2898 (description "@code{uritemplate} provides Python library to deal with URI
2900 (license license:bsd-2)))
2902 (define-public python2-uritemplate
2903 (package-with-python2 python-uritemplate))
2905 (define-public python-publicsuffix
2907 (name "python-publicsuffix")
2911 (uri (pypi-uri "publicsuffix" version))
2914 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
2915 (build-system python-build-system)
2917 `(#:tests? #f)) ; tests use the internet
2918 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
2919 (synopsis "Get suffix for a domain name")
2920 (description "Get a public suffix for a domain name using the Public Suffix
2922 (license license:expat)))
2924 (define-public python2-publicsuffix
2925 (package-with-python2 python-publicsuffix))
2927 (define-public python-publicsuffix2
2929 (name "python-publicsuffix2")
2930 (version "2.20191221")
2934 (uri (pypi-uri "publicsuffix2" version))
2936 (base32 "0yzysvfj1najr1mb4pcqrbmjir3xpb69rlffln95a3cdm8qwry00"))))
2937 (build-system python-build-system)
2940 (modify-phases %standard-phases
2941 (add-after 'unpack 'ignore-maintainer-inputs
2943 ;; Comment out a demand for python-requests, which is used only by
2944 ;; the unused ‘update_psl’ helper command.
2945 (substitute* "setup.py"
2946 (("'requests " match)
2947 (format #f "# ~a" match)))
2949 #:tests? #f)) ; the test suite requires network access
2950 (home-page "https://github.com/pombredanne/python-publicsuffix2")
2951 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
2952 (description "Get a public suffix for a domain name using the Public Suffix
2953 List. Forked from and using the same API as the publicsuffix package.")
2954 (license (list license:expat license:mpl2.0))))
2956 (define-public python2-publicsuffix2
2957 (package-with-python2 python-publicsuffix2))
2959 (define-public python-werkzeug
2961 (name "python-werkzeug")
2966 (uri (pypi-uri "Werkzeug" version))
2969 "15kh0z61klp62mrc1prka13xsshxn0rsp1j1s2964iw86yisi6qn"))))
2970 (build-system python-build-system)
2973 (modify-phases %standard-phases
2975 (add-after 'install 'check
2976 (lambda* (#:key inputs outputs #:allow-other-keys)
2977 (add-installed-pythonpath inputs outputs)
2978 (invoke "python" "-m" "pytest"))))))
2980 `(("python-requests" ,python-requests)))
2982 `(("python-pytest" ,python-pytest)
2983 ("python-pytest-timeout" ,python-pytest-timeout)))
2984 (home-page "https://www.palletsprojects.org/p/werkzeug/")
2985 (synopsis "Utilities for WSGI applications")
2986 (description "One of the most advanced WSGI utility modules. It includes a
2987 powerful debugger, full-featured request and response objects, HTTP utilities to
2988 handle entity tags, cache control headers, HTTP dates, cookie handling, file
2989 uploads, a powerful URL routing system and a bunch of community-contributed
2991 (license license:x11)))
2993 (define-public python2-werkzeug
2994 (package-with-python2 python-werkzeug))
2996 (define-public python-bottle
2998 (name "python-bottle")
3003 (uri (pypi-uri "bottle" version))
3006 "17pn43kzr7m6czjbm4nda7kzs4ap9mmb30qfbhifyzas2i5vf688"))))
3007 (build-system python-build-system)
3008 (home-page "http://bottlepy.org/")
3009 (synopsis "WSGI framework for small web-applications.")
3010 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
3011 (license license:expat)))
3013 (define-public python2-bottle
3014 (package-with-python2 python-bottle))
3016 (define-public python-wtforms
3018 (name "python-wtforms")
3023 (uri (pypi-uri "WTForms" version ".zip"))
3026 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
3027 (build-system python-build-system)
3030 (modify-phases %standard-phases
3031 (add-after 'unpack 'remove-django-test
3032 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
3036 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
3037 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
3040 `(("unzip" ,unzip)))
3041 (home-page "http://wtforms.simplecodes.com/")
3043 "Form validation and rendering library for Python web development")
3045 "WTForms is a flexible forms validation and rendering library
3046 for Python web development. It is very similar to the web form API
3047 available in Django, but is a standalone package.")
3048 (license license:bsd-3)))
3050 (define-public python2-wtforms
3051 (package-with-python2 python-wtforms))
3053 (define-public python-paste
3055 (name "python-paste")
3060 (uri (pypi-uri "Paste" version))
3063 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
3064 (patches (search-patches "python-paste-remove-timing-test.patch"))
3065 (modules '((guix build utils)))
3068 ;; This test calls out to the internet.
3069 (delete-file "tests/test_proxy.py") #t))))
3070 (build-system python-build-system)
3072 `(("python-pytest" ,python-pytest)
3073 ("python-pytest-runner" ,python-pytest-runner)
3074 ("python-nose" ,python-nose)))
3076 `(("python-six" ,python-six)))
3077 (home-page "https://pythonpaste.readthedocs.io/")
3079 "Python web development tools, focusing on WSGI")
3081 "Paste provides a variety of web development tools and middleware which
3082 can be nested together to build web applications. Paste's design closely
3083 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
3084 (license license:expat)))
3086 (define-public python2-paste
3087 (package-with-python2 python-paste))
3089 (define-public python-pastescript
3091 (name "python-pastescript")
3096 (uri (pypi-uri "PasteScript" version))
3099 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
3100 (build-system python-build-system)
3102 `(("python-nose" ,python-nose)))
3104 `(("python-paste" ,python-paste)
3105 ("python-pastedeploy" ,python-pastedeploy)))
3106 (home-page (string-append "https://web.archive.org/web/20161025192515/"
3107 "http://pythonpaste.org/script/"))
3109 '(;; Unfortunately, this requires the latest unittest2,
3110 ;; but that requires traceback2 which requires linecache2 which requires
3111 ;; unittest2. So we're skipping tests for now.
3112 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
3113 ;; so in theory we could get around this situation somehow.)
3116 "Pluggable command line tool for serving web applications and more")
3118 "PasteScript is a plugin-friendly command line tool which provides a
3119 variety of features, from launching web applications to bootstrapping project
3121 (license license:expat)))
3123 (define-public python2-pastescript
3124 (package-with-python2 python-pastescript))
3126 (define-public python2-urlgrabber
3128 (name "python2-urlgrabber")
3133 (uri (pypi-uri "urlgrabber" version))
3135 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
3136 (build-system python-build-system)
3137 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
3138 (home-page "http://urlgrabber.baseurl.org")
3139 (synopsis "High-level cross protocol url-grabber")
3140 (description "@code{urlgrabber} is Python2 library that unifies access to
3141 files available on web, FTP or locally. It supports HTTP, FTP and file://
3142 protocols, it supports features like HTTP keep-alive, reget, throttling and
3144 (license license:lgpl2.1+)))
3146 (define-public python-pycares
3148 (name "python-pycares")
3153 (uri (pypi-uri "pycares" version))
3156 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
3157 (build-system python-build-system)
3159 `(#:tests? #f)) ;tests require internet access
3160 (home-page "https://github.com/saghul/pycares")
3161 (synopsis "Python interface for @code{c-ares}")
3162 (description "@code{pycares} is a Python module which provides an
3163 interface to @code{c-ares}, a C library that performs DNS requests and
3164 name resolutions asynchronously.")
3165 (license license:expat)))
3167 (define-public python-yarl
3169 (name "python-yarl")
3174 (uri (pypi-uri "yarl" version))
3177 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
3178 (build-system python-build-system)
3180 `(("python-pytest" ,python-pytest)
3181 ("python-pytest-runner" ,python-pytest-runner)))
3183 `(("python-idna" ,python-idna)
3184 ("python-multidict" ,python-multidict)))
3185 (home-page "https://github.com/aio-libs/yarl/")
3186 (synopsis "Yet another URL library")
3187 (description "@code{yarl} module provides handy @code{URL} class
3188 for URL parsing and changing.")
3189 (license license:asl2.0)))
3191 (define-public python-google-api-client
3193 (name "python-google-api-client")
3198 (uri (pypi-uri "google-api-python-client" version))
3201 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
3202 (build-system python-build-system)
3204 '(#:tests? #f)) ; tests require internet access
3206 `(("python-httplib2" ,python-httplib2)
3207 ("python-six" ,python-six)
3208 ("python-oauth2client" ,python-oauth2client)
3209 ("python-uritemplate" ,python-uritemplate)))
3210 (home-page "https://github.com/google/google-api-python-client")
3211 (synopsis "Core Python library for accessing Google APIs")
3212 (description "Python client library for Google's discovery based APIs")
3213 (license license:asl2.0)))
3215 (define-public python2-google-api-client
3216 (package-with-python2 python-google-api-client))
3218 (define-public python-hawkauthlib
3220 (name "python-hawkauthlib")
3225 (uri (pypi-uri "hawkauthlib" version))
3228 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
3229 (build-system python-build-system)
3231 `(("python-requests" ,python-requests)
3232 ("python-webob" ,python-webob)))
3233 (home-page "https://github.com/mozilla-services/hawkauthlib")
3234 (synopsis "Hawk Access Authentication protocol")
3236 "This is a low-level Python library for implementing Hawk Access Authentication,
3237 a simple HTTP request-signing scheme.")
3238 (license license:mpl2.0)))
3240 (define-public python-pybrowserid
3242 (name "python-pybrowserid")
3247 (uri (pypi-uri "PyBrowserID" version))
3250 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
3251 (build-system python-build-system)
3253 `(("python-requests" ,python-requests)))
3255 `(("python-mock" ,python-mock)))
3256 (home-page "https://github.com/mozilla/PyBrowserID")
3257 (synopsis "Python library for the BrowserID protocol")
3259 "This is a Python client library for the BrowserID protocol that
3260 underlies Mozilla Persona.")
3261 (license license:mpl2.0)))
3263 (define-public python-pyfxa
3265 (name "python-pyfxa")
3270 (uri (pypi-uri "PyFxA" version))
3273 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
3274 (build-system python-build-system)
3275 (arguments '(#:tests? #f)) ; 17 tests require network access
3277 `(("python-cryptography" ,python-cryptography)
3278 ("python-hawkauthlib" ,python-hawkauthlib)
3279 ("python-pybrowserid" ,python-pybrowserid)
3280 ("python-requests" ,python-requests)
3281 ("python-six" ,python-six)))
3283 `(("python-grequests" ,python-grequests)
3284 ("python-mock" ,python-mock)
3285 ("python-responses" ,python-responses)
3286 ("python-unittest2" ,python-unittest2)))
3287 (home-page "https://github.com/mozilla/PyFxA")
3288 (synopsis "Firefox Accounts client library for Python")
3290 "This is a Python library for interacting with the Firefox Accounts
3292 (license license:mpl2.0)))
3294 (define-public python-hyperlink
3296 (name "python-hyperlink")
3301 (uri (pypi-uri "hyperlink" version))
3304 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
3305 (build-system python-build-system)
3307 `(("python-idna" ,python-idna)))
3308 (home-page "https://github.com/python-hyper/hyperlink")
3309 (synopsis "Python module to create immutable URLs according to spec")
3310 (description "This package provides a Python module to create immutable, and
3311 correct URLs for Python according to RFCs 3986 and 3987.")
3312 (license license:expat)))
3314 (define-public python-treq
3316 (name "python-treq")
3321 (uri (pypi-uri "treq" version))
3324 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
3325 (build-system python-build-system)
3327 `(("python-attrs" ,python-attrs)
3328 ("python-idna" ,python-idna)
3329 ("python-incremental" ,python-incremental)
3330 ("python-requests" ,python-requests)
3331 ("python-service-identity" ,python-service-identity)
3332 ("python-twisted" ,python-twisted)))
3333 (home-page "https://github.com/twisted/treq")
3334 (synopsis "Requests-like API built on top of twisted.web's Agent")
3335 (description "This package provides an HTTP library inspired by
3336 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3337 high level API for making HTTP requests when using Twisted.")
3338 (license license:expat)))
3340 (define-public python-autobahn
3342 (name "python-autobahn")
3347 (uri (pypi-uri "autobahn" version))
3350 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3351 (build-system python-build-system)
3353 ;; The tests fail to run:
3354 ;; https://github.com/crossbario/autobahn-python/issues/1117
3357 `(("python-cffi" ,python-cffi)
3358 ("python-twisted" ,python-twisted)
3359 ("python-txaio" ,python-txaio)))
3360 (home-page "https://crossbar.io/autobahn/")
3361 (synopsis "Web Application Messaging Protocol implementation")
3362 (description "This package provides an implementation of the @dfn{Web Application
3363 Messaging Protocol} (WAMP). WAMP connects components in distributed
3364 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3365 Calls (rRPC). It is ideal for distributed, multi-client and server applications
3366 such as IoT applications or multi-user database-driven business applications.")
3367 (license license:expat)))
3369 (define-public python-ws4py
3371 (name "python-ws4py")
3376 (uri (pypi-uri "ws4py" version))
3379 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3380 (build-system python-build-system)
3383 (modify-phases %standard-phases
3384 (add-after 'unpack 'python3.7-compatibility
3386 (substitute* '("ws4py/server/tulipserver.py"
3387 "ws4py/async_websocket.py")
3389 "asyncio.ensure_future"))
3391 ;; We don't have a package for cherrypy.
3392 (add-after 'unpack 'remove-cherrypy-support
3394 (delete-file "ws4py/server/cherrypyserver.py")
3397 `(("python-gevent" ,python-gevent)
3398 ("python-tornado" ,python-tornado)))
3399 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3400 (synopsis "WebSocket client and server library")
3402 "This package provides a WebSocket client and server library for
3404 (license license:bsd-3)))
3406 (define-public python-slugify
3408 (name "python-slugify")
3413 (uri (pypi-uri "python-slugify" version))
3415 (base32 "0dv97yi5fq074q5qyqbin09pmi8ixg36caf5nkpw2bqkd8jh6pap"))
3417 (search-patches "python-slugify-depend-on-unidecode.patch"))))
3419 `(("python-wheel" ,python-wheel)))
3421 `(("python-unidecode" ,python-unidecode)))
3424 (modify-phases %standard-phases
3427 (invoke "python" "test.py"))))))
3428 (build-system python-build-system)
3429 (home-page "https://github.com/un33k/python-slugify")
3430 (synopsis "Python Slugify application that handles Unicode")
3431 (description "This package provides a @command{slufigy} command and
3432 library to create slugs from unicode strings while keeping it DRY.")
3433 (license license:expat)))
3435 (define-public python-branca
3437 (name "python-branca")
3442 (uri (pypi-uri "branca" version))
3445 "0pmigd521j2228xf8x34vbx0niwvms7xl7za0lymywj0vydjqxiy"))))
3446 (build-system python-build-system)
3448 `(("python-jinja2" ,python-jinja2)
3449 ("python-six" ,python-six)))
3451 `(("python-pytest" ,python-pytest)))
3452 (home-page "https://github.com/python-visualization/branca")
3453 (synopsis "Generate complex HTML+JS pages with Python")
3454 (description "Generate complex HTML+JS pages with Python")
3455 (license license:expat)))
3457 (define-public python-tinycss2
3459 (name "python-tinycss2")
3464 (uri (pypi-uri "tinycss2" version))
3465 (patches (search-patches "python-tinycss2-flake8-compat.patch"))
3467 (base32 "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4"))))
3468 (build-system python-build-system)
3471 (modify-phases %standard-phases
3473 (lambda _ (invoke "pytest"))))))
3475 `(("python-webencodings" ,python-webencodings)))
3477 `(("python-pytest-flake8" ,python-pytest-flake8)
3478 ("python-pytest-isort" ,python-pytest-isort)
3479 ("python-pytest-runner" ,python-pytest-runner)))
3480 (home-page "https://tinycss2.readthedocs.io/")
3481 (synopsis "Low-level CSS parser for Python")
3482 (description "@code{tinycss2} can parse strings, return Python objects
3483 representing tokens and blocks, and generate CSS strings corresponding to
3486 Based on the CSS Syntax Level 3 specification, @code{tinycss2} knows the
3487 grammar of CSS but doesn’t know specific rules, properties or values supported
3488 in various CSS modules.")
3489 (license license:bsd-3)))
3491 (define-public python-cssselect2
3493 (name "python-cssselect2")
3498 (uri (pypi-uri "cssselect2" version))
3500 (base32 "0skymzb4ncrm2zdsy80f53vi0arf776lvbp51hzh4ayp1il5lj3h"))))
3501 (build-system python-build-system)
3504 (modify-phases %standard-phases
3506 (lambda _ (invoke "pytest"))))))
3508 `(("python-tinycss2" ,python-tinycss2)))
3510 `(("python-pytest-cov" ,python-pytest-cov)
3511 ("python-pytest-flake8" ,python-pytest-flake8)
3512 ("python-pytest-isort" ,python-pytest-isort)
3513 ("python-pytest-runner" ,python-pytest-runner)))
3514 (home-page "https://cssselect2.readthedocs.io/")
3515 (synopsis "CSS selectors for Python ElementTree")
3516 (description "@code{cssselect2} is a straightforward implementation of
3517 CSS3 Selectors for markup documents (HTML, XML, etc.) that can be read by
3518 ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.).
3520 Unlike the Python package @code{cssselect}, it does not translate selectors to
3521 XPath and therefore does not have all the correctness corner cases that are
3522 hard or impossible to fix in cssselect.")
3523 (license license:bsd-3)))
3525 (define-public gunicorn
3532 (uri (pypi-uri "gunicorn" version))
3535 "09n6fc019bgrvph1s5h1lwhn2avcsprw6ncd203qhra3i8mvn10r"))))
3536 (outputs '("out" "doc"))
3537 (build-system python-build-system)
3540 (modify-phases %standard-phases
3541 (add-after 'build 'build-doc
3543 (invoke "make" "-C" "docs" "PAPER=a4" "html" "info")
3544 (delete-file "docs/build/texinfo/Makefile")
3545 (delete-file "docs/build/texinfo/Gunicorn.texi")
3549 (setenv "PYTHONPATH"
3550 (string-append ".:" (getenv "PYTHONPATH")))
3552 (add-after 'install 'install-doc
3553 (lambda* (#:key outputs #:allow-other-keys)
3554 (let* ((doc (string-append (assoc-ref outputs "doc")
3555 "/share/doc/" ,name "-" ,version))
3556 (html (string-append doc "/html"))
3557 (info (string-append doc "/info"))
3558 (examples (string-append doc "/examples")))
3562 (copy-recursively "docs/build/html" html)
3563 (copy-recursively "docs/build/texinfo" info)
3564 (copy-recursively "examples" examples)
3565 (for-each (lambda (file)
3566 (copy-file file (string-append doc "/" file)))
3567 '("README.rst" "NOTICE" "LICENSE" "THANKS")))
3570 `(("binutils" ,binutils) ;; for ctypes.util.find_library()
3571 ("python-aiohttp", python-aiohttp)
3572 ("python-pytest" ,python-pytest)
3573 ("python-pytest-cov" ,python-pytest-cov)
3574 ("python-sphinx" ,python-sphinx)
3575 ("texinfo" ,texinfo)))
3576 (home-page "https://gunicorn.org/")
3577 (synopsis "Python WSGI HTTP Server for UNIX")
3578 (description "Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP
3579 Server for UNIX. It’s a pre-fork worker model ported from Ruby’s
3580 Unicorn project. The Gunicorn server is broadly compatible with
3581 various web frameworks, simply implemented, light on server resources,
3582 and fairly speedy.")
3583 (license license:expat)))
3585 ;; break cyclic dependency for python-aiohttp, which depends on gunicorn for
3587 (define-public gunicorn-bootstrap
3591 (arguments `(#:tests? #f))
3592 (properties '((hidden? . #t)))
3593 (native-inputs `())))
3595 (define-public python-translation-finder
3597 (name "python-translation-finder")
3602 (uri (pypi-uri "translation-finder" version))
3605 "1pcy9z8gmb8x41gjhw9x0lkr0d2mv5mdxcs2hwg6q8mxs857j589"))))
3606 (build-system python-build-system)
3609 (modify-phases %standard-phases
3610 (add-before 'build 'remove-failing-test
3612 (delete-file "translation_finder/test_api.py")
3615 `(("python-chardet" ,python-chardet)
3616 ("python-pathlib2" ,python-pathlib2)
3617 ("python-ruamel.yaml" ,python-ruamel.yaml)
3618 ("python-six" ,python-six)))
3620 `(("python-codecov" ,python-codecov)
3621 ("python-codacy-coverage" ,python-codacy-coverage)
3622 ("python-pytest-cov" ,python-pytest-cov)
3623 ("python-pytest-runner" ,python-pytest-runner)
3624 ("python-twine" ,python-twine)))
3625 (home-page "https://weblate.org/")
3626 (synopsis "Translation file finder for Weblate")
3627 (description "This package provides a function to find translation file in
3628 the source code of a project. It supports many translation file formats and
3629 is part of the Weblate translation platform.")
3630 (license license:gpl3+)))
3632 (define-public python-gitlab
3634 (name "python-gitlab")
3639 (uri (pypi-uri "python-gitlab" version))
3642 "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5"))))
3643 (build-system python-build-system)
3645 `(("python-requests" ,python-requests)
3646 ("python-six" ,python-six)))
3648 `(("python-httmock" ,python-httmock)
3649 ("python-mock" ,python-mock)))
3651 "https://github.com/python-gitlab/python-gitlab")
3652 (synopsis "Interact with GitLab API")
3653 (description "This package provides an extended library for interacting
3654 with GitLab instances through their API.")
3655 (license license:lgpl3+)))
3657 (define-public python-path-and-address
3659 (name "python-path-and-address")
3663 ;; The source distributed on PyPI doesn't include tests.
3666 (url "https://github.com/joeyespo/path-and-address")
3667 (commit (string-append "v" version))))
3668 (file-name (git-file-name name version))
3671 "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6"))))
3672 (build-system python-build-system)
3675 (modify-phases %standard-phases
3677 (lambda* (#:key inputs outputs #:allow-other-keys)
3678 (add-installed-pythonpath inputs outputs)
3679 (invoke "py.test"))))))
3681 `(("python-pytest" ,python-pytest)))
3682 (home-page "https://github.com/joeyespo/path-and-address")
3683 (synopsis "Functions for command-line server tools used by humans")
3684 (description "Path-and-address resolves ambiguities of command-line
3685 interfaces, inferring which argument is the path, and which is the address.")
3686 (license license:expat)))
3689 ;; No release by upstream for quite some time, some bugs fixed since. See:
3690 ;; https://github.com/joeyespo/grip/issues/304
3691 (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3"))
3694 (version (git-version "4.5.2" "1" commit))
3699 (url "https://github.com/joeyespo/grip")
3701 (file-name (git-file-name name version))
3704 "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w"))))
3705 (build-system python-build-system)
3707 `(("python-docopt" ,python-docopt)
3708 ("python-flask" ,python-flask)
3709 ("python-markdown" ,python-markdown)
3710 ("python-path-and-address" ,python-path-and-address)
3711 ("python-pygments" ,python-pygments)
3712 ("python-requests" ,python-requests)))
3714 `(("python-pytest" ,python-pytest)
3715 ("python-responses" ,python-responses)))
3718 (modify-phases %standard-phases
3720 (lambda* (#:key inputs outputs #:allow-other-keys)
3721 (add-installed-pythonpath inputs outputs)
3722 (setenv "PATH" (string-append
3724 (assoc-ref %outputs "out") "/bin"))
3725 (invoke "py.test" "-m" "not assumption"))))))
3726 (home-page "https://github.com/joeyespo/grip")
3727 (synopsis "Preview Markdown files using the GitHub API")
3728 (description "Grip is a command-line server application written in Python
3729 that uses the GitHub Markdown API to render a local Markdown file. The styles
3730 and rendering come directly from GitHub, so you'll know exactly how it will
3731 appear. Changes you make to the file will be instantly reflected in the browser
3732 without requiring a page refresh.")
3733 (license license:expat))))
3735 (define-public python-port-for
3737 (name "python-port-for")
3742 (uri (pypi-uri "port-for" version))
3745 "1pncxlj25ggw99r0ijfbkq70gd7cbhqdx5ivsxy4jdp0z14cpda7"))))
3746 (build-system python-build-system)
3749 (modify-phases %standard-phases
3750 (add-after 'unpack 'use-urllib3
3752 (substitute* "port_for/_download_ranges.py"
3753 (("urllib2") "urllib3"))
3756 `(("python-urllib3" ,python-urllib3)))
3758 `(("python-mock" ,python-mock)))
3759 (home-page "https://github.com/kmike/port-for/")
3760 (synopsis "TCP localhost port finder and association manager")
3762 "This package provides a utility that helps with local TCP ports
3763 management. It can find an unused TCP localhost port and remember the
3765 (license license:expat)))
3767 (define-public python-livereload
3769 (name "python-livereload")
3774 (uri (pypi-uri "livereload" version))
3777 "0rhggz185bxc3zjnfpmhcvibyzi86i624za1lfh7x7ajsxw4y9c9"))))
3778 (build-system python-build-system)
3780 `(("python-six" ,python-six)
3781 ("python-tornado" ,python-tornado)))
3782 (home-page "https://github.com/lepture/python-livereload")
3783 (synopsis "Python LiveReload")
3785 "Python LiveReload provides a command line utility, @command{livereload},
3786 for starting a web server in a directory. It can trigger arbitrary commands
3787 and serve updated contents upon changes to the directory.")
3788 (license license:bsd-3)))
3790 (define-public python-vf-1
3792 (name "python-vf-1")
3797 (uri (pypi-uri "VF-1" version))
3800 "0xlqsaxsiayk1sd07kpz8abbcnab582y29a1y4882fq6j4gma5xi"))))
3801 (build-system python-build-system)
3802 (home-page "https://github.com/solderpunk/VF-1")
3803 (synopsis "Command line gopher client")
3804 (description "@code{VF-1} is a command line gopher client with
3805 @acronym{TLS, Transport Layer Security} support.")
3806 (license license:bsd-2)))
3808 (define-public python-websockets
3810 (name "python-websockets")
3815 (uri (pypi-uri "websockets" version))
3818 "03s3ml6sbki24aajllf8aily0xzrn929zxi84p50zkkbikdd4raw"))))
3819 (build-system python-build-system)
3820 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
3821 (home-page "https://github.com/aaugustin/websockets")
3823 "Python implementation of the WebSocket Protocol (RFC 6455 & 7692)")
3825 "@code{websockets} is a library for building WebSocket servers and clients
3826 in Python with a focus on correctness and simplicity.
3828 Built on top of @code{asyncio}, Python's standard asynchronous I/O framework,
3829 it provides an elegant coroutine-based API.")
3830 (license license:bsd-3)))
3832 (define-public python-selenium
3834 (name "python-selenium")
3839 (uri (pypi-uri "selenium" version))
3842 "039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy"))))
3843 (build-system python-build-system)
3845 `(("python-urllib3" ,python-urllib3)))
3847 "https://github.com/SeleniumHQ/selenium/")
3848 (synopsis "Python bindings for Selenium")
3849 (description "Selenium enables web browser automation.
3850 Selenium specifically provides infrastructure for the W3C WebDriver specification
3851 — a platform and language-neutral coding interface compatible with all
3852 major web browsers.")
3853 (license license:asl2.0)))
3855 (define-public python-rapidjson
3857 (name "python-rapidjson")
3862 (uri (pypi-uri "python-rapidjson" version))
3865 "18cl2dhx3gds5vg52jxmh9wjlbiy8dx06c3n482rfpdi9dzbv05d"))
3866 (modules '((guix build utils)))
3868 '(begin (delete-file-recursively "rapidjson") #t))))
3869 (build-system python-build-system)
3872 (list (string-append "--rj-include-dir="
3873 (assoc-ref %build-inputs "rapidjson")
3874 "/include/rapidjson"))
3876 (modify-phases %standard-phases
3878 (lambda* (#:key inputs #:allow-other-keys)
3879 (invoke "python" "setup.py" "build"
3880 (string-append "--rj-include-dir="
3881 (assoc-ref %build-inputs "rapidjson")
3882 "/include/rapidjson"))))
3884 (lambda* (#:key inputs outputs #:allow-other-keys)
3885 (add-installed-pythonpath inputs outputs)
3886 ;; Some tests are broken.
3887 (delete-file "tests/test_base_types.py")
3888 (delete-file "tests/test_validator.py")
3889 (invoke "python" "-m" "pytest" "tests"))))))
3891 `(("rapidjson" ,rapidjson)
3892 ("python-pytest" ,python-pytest)
3893 ("python-pytz" ,python-pytz)))
3894 (home-page "https://github.com/python-rapidjson/python-rapidjson")
3895 (synopsis "Python wrapper around rapidjson")
3896 (description "This package provides a python wrapper around rapidjson.")
3897 (license license:expat)))
3899 (define-public python-venusian
3901 (name "python-venusian")
3906 (uri (pypi-uri "venusian" version))
3908 (base32 "0f7f67dkgxxcjfhpdd5frb9pszkf04lyzzpn5069q0xi89r2p17n"))))
3909 (build-system python-build-system)
3911 `(("python-pytest" ,python-pytest)
3912 ("python-runner" ,python-pytest-runner)
3913 ("python-pytest-cov" ,python-pytest-cov)))
3914 (arguments '(#:test-target "pytest"))
3915 (home-page "https://docs.pylonsproject.org/projects/venusian")
3916 (synopsis "Library for defering decorator actions")
3918 "Venusian is a library which allows framework authors to defer decorator
3919 actions. Instead of taking actions when a function (or class) decorator is
3920 executed at import time, you can defer the action usually taken by the
3921 decorator until a separate scan phase.")
3922 (license license:repoze)))
3924 (define-public python-zope-deprecation
3926 (name "python-zope-deprecation")
3930 (uri (pypi-uri "zope.deprecation" version))
3933 "1pz2cv7gv9y1r3m0bdv7ks1alagmrn5msm5spwdzkb2by0w36i8d"))))
3934 (build-system python-build-system)
3936 (propagated-inputs `())
3937 (home-page "https://zopedeprecation.readthedocs.io/")
3938 (synopsis "Function for marking deprecations")
3939 (description "The @code{zope.deprecation} module provides a function for
3940 marking modules, classes, functions, methods and properties as deprecated,
3941 displaying warnings when usaged in application code.")
3942 (license license:zpl2.1)))
3944 (define-public python-translationstring
3946 (name "python-translationstring")
3950 (uri (pypi-uri "translationstring" version))
3953 "0bdpcnd9pv0131dl08h4zbcwmgc45lyvq3pa224xwan5b3x4rr2f"))))
3954 (build-system python-build-system)
3955 (home-page "http://docs.pylonsproject.org/projects/translationstring")
3956 (synopsis "Internationalization tooling for the Pylons project")
3957 (description "This package provides a library used by various Pylons
3958 project packages for internationalization (i18n) duties related to
3960 (license license:repoze)))
3962 (define-public python-plaster
3964 (name "python-plaster")
3968 (uri (pypi-uri "plaster" version))
3971 "1hy8k0nv2mxq94y5aysk6hjk9ryb4bsd13g83m60hcyzxz3wflc3"))))
3972 (build-system python-build-system)
3974 `(("python-pytest" ,python-pytest)))
3975 (home-page "https://docs.pylonsproject.org/projects/plaster/en/latest/")
3976 (synopsis "Configuration loader for multiple config file formats")
3978 "Plaster is a loader interface around multiple config file formats. It
3979 exists to define a common API for applications to use when they wish to load
3980 configuration. The library itself does not aim to handle anything except a
3981 basic API that applications may use to find and load configuration settings.
3982 Any specific constraints should be implemented in a pluggable loader which can
3983 be registered via an entrypoint.")
3984 (license license:repoze)))
3986 (define-public python-plaster-pastedeploy
3988 (name "python-plaster-pastedeploy")
3992 (uri (pypi-uri "plaster_pastedeploy" version))
3995 "1zg7gcsvc1kzay1ry5p699rg2qavfsxqwl17mqxzr0gzw6j9679r"))))
3996 (build-system python-build-system)
3998 `(("python-pytest" ,python-pytest)))
4000 `(("python-plaster" ,python-plaster)
4001 ("python-pastedeploy" ,python-pastedeploy)))
4002 (home-page "https://github.com/Pylons/plaster_pastedeploy")
4003 (synopsis "Plugin for python-plaster adding PasteDeploy syntax")
4005 "This plugin for @code{python-plaster} adds support for PasteDeploy
4006 syntax, it provides a plaster @code{Loader} object that can parse ini files
4007 according to the standard set by PasteDeploy ")
4008 (license license:expat)))
4010 (define-public python-hupper
4012 (name "python-hupper")
4016 (uri (pypi-uri "hupper" version))
4019 "0am0p6g5cz6xmcaf04xq8q6dzdd9qz0phj6gcmpsckf2mcyza61q"))))
4020 (build-system python-build-system)
4021 (arguments '(#:test-target "pytest"))
4023 `(("python-pytest" ,python-pytest)
4024 ("python-pytest-runner" ,python-pytest-runner)
4025 ("python-watchdog" ,python-watchdog)
4026 ("python-mock" ,python-mock)
4027 ("python-pytest-cov" ,python-pytest-cov)))
4029 `(("python-pytz" ,python-pytz)))
4030 (home-page "https://readthedocs.org/projects/hupper")
4031 (synopsis "Integrated process monitor tracking changes to imported Python files")
4033 "Hupper is an integrated process monitor that will track changes to any
4034 imported Python files in sys.modules as well as custom paths. When files are
4035 changed the process is restarted.")
4036 (license license:expat)))
4038 (define-public python-pyramid
4040 (name "python-pyramid")
4044 (uri (pypi-uri "pyramid" version))
4047 "0rkxs1ajycg2zh1c94xlmls56mx5m161sn8112skj0amza6cn36q"))))
4048 (build-system python-build-system)
4050 `(("python-hupper" ,python-hupper)
4051 ("python-plaster-pastedeploy" ,python-plaster-pastedeploy)
4052 ("python-translationstring" ,python-translationstring)
4053 ("python-venusian" ,python-venusian)
4054 ("python-webob" ,python-webob)
4055 ("python-zope-deprecation" ,python-zope-deprecation)
4056 ("python-zope-interface" ,python-zope-interface)
4057 ("python-webtest" ,python-webtest)
4058 ("python-zope-component" ,python-zope-component)
4059 ("python-plaster" ,python-plaster)))
4060 (home-page "https://trypyramid.com/")
4061 (synopsis "Python web-framework suitable for small and large sites")
4063 "Pyramid makes it easy to write web applications. From minimal
4064 request/response web apps to larger, grown applications.")
4065 (license license:repoze)))
4067 (define-public python-random-user-agent
4069 (name "python-random-user-agent")
4074 (uri (pypi-uri "random_user_agent" version))
4077 "04nhzdh2ki7ybhjrmghxci6hcm6i03vvin2q2ynj87fbr1pa534g"))))
4078 (build-system python-build-system)
4079 (home-page "https://github.com/Luqman-Ud-Din/random_user_agent")
4080 (synopsis "List of user agents")
4082 "This package provides a list of user agents, from a collection of more
4083 than 326,000 known user-agents. Users can pick a random one, or select one
4085 (license license:expat)))
4087 (define-public python-flask-restx
4089 (name "python-flask-restx")
4092 ;; We fetch from the Git repo because there are no tests in the PyPI
4097 (url "https://github.com/python-restx/flask-restx")
4099 (file-name (git-file-name name version))
4101 (base32 "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7"))))
4102 (build-system python-build-system)
4104 `(("python-aniso8601" ,python-aniso8601)
4105 ("python-flask" ,python-flask)
4106 ("python-jsonschema" ,python-jsonschema)
4107 ("python-pytz" ,python-pytz)))
4109 `(("python-blinker" ,python-blinker)
4110 ("python-faker" ,python-faker)
4111 ("python-pytest" ,python-pytest)
4112 ("python-pytest-benchmark"
4113 ,python-pytest-benchmark)
4114 ("python-pytest-flask" ,python-pytest-flask)
4115 ("python-pytest-mock" ,python-pytest-mock)))
4118 (modify-phases %standard-phases
4121 (invoke "pytest" "--benchmark-skip" "-k"
4122 ;; Those tests need internet access
4123 "not test_check and not test_valid_value_check"))))))
4124 (home-page "https://github.com/python-restx/flask-restx")
4126 "Framework for fast, easy and documented API development with Flask")
4128 "Flask-RESTX is an extension for Flask that adds support for quickly building
4129 REST APIs. Flask-RESTX encourages best practices with minimal setup. If you are familiar
4130 with Flask, Flask-RESTX should be easy to pick up. It provides a coherent collection of
4131 decorators and tools to describe your API and expose its documentation properly using
4133 (license license:bsd-3)))
4135 (define-public python-manuel
4137 (name "python-manuel")
4142 (uri (pypi-uri "manuel" version))
4145 "1bdzay7j70fly5fy6wbdi8fbrxjrrlxnxnw226rwry1c8a351rpy"))))
4146 (build-system python-build-system)
4148 `(("python-six" ,python-six)))
4150 `(("python-zope-testing" ,python-zope-testing)))
4151 (home-page "https://pypi.org/project/manuel/")
4152 (synopsis "Build tested documentation")
4154 "Manuel lets you mix and match traditional doctests with custom test syntax.")
4155 (license license:asl2.0)))