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>
40 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
42 ;;; This file is part of GNU Guix.
44 ;;; GNU Guix is free software; you can redistribute it and/or modify it
45 ;;; under the terms of the GNU General Public License as published by
46 ;;; the Free Software Foundation; either version 3 of the License, or (at
47 ;;; your option) any later version.
49 ;;; GNU Guix is distributed in the hope that it will be useful, but
50 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
51 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52 ;;; GNU General Public License for more details.
54 ;;; You should have received a copy of the GNU General Public License
55 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
57 (define-module (gnu packages python-web)
58 #:use-module (guix packages)
59 #:use-module (guix download)
60 #:use-module (guix git-download)
61 #:use-module (guix build-system python)
62 #:use-module (guix utils)
63 #:use-module (gnu packages)
64 #:use-module (gnu packages base)
65 #:use-module (gnu packages check)
66 #:use-module (gnu packages compression)
67 #:use-module (gnu packages curl)
68 #:use-module (gnu packages databases)
69 #:use-module (gnu packages django)
70 #:use-module (gnu packages groff)
71 #:use-module (gnu packages libffi)
72 #:use-module (gnu packages pkg-config)
73 #:use-module (gnu packages python)
74 #:use-module (gnu packages python-check)
75 #:use-module (gnu packages python-crypto)
76 #:use-module (gnu packages python-xyz)
77 #:use-module (gnu packages serialization)
78 #:use-module (gnu packages sphinx)
79 #:use-module (gnu packages texinfo)
80 #:use-module (gnu packages tls)
81 #:use-module (gnu packages time)
82 #:use-module (gnu packages web)
83 #:use-module (gnu packages xml)
84 #:use-module ((guix licenses) #:prefix license:)
85 #:use-module (srfi srfi-1))
87 (define-public python-aiohttp
89 (name "python-aiohttp")
94 (uri (pypi-uri "aiohttp" version))
97 "09pkw6f1790prnrq0k8cqgnf1qy57ll8lpmc6kld09q7zw4vi6i5"))
98 (patches (search-patches "python-aiohttp-3.6.2-no-warning-fail.patch"))))
99 (build-system python-build-system)
102 (modify-phases %standard-phases
103 (add-after 'unpack 'fix-tests
105 ;; disable brotli tests, because we’re not providing that optional library
106 (substitute* "tests/test_http_parser.py"
107 ((" async def test_feed_eof_no_err_brotli")
108 " @pytest.mark.xfail\n async def test_feed_eof_no_err_brotli"))
109 ;; make sure the timestamp of this file is > 1990, because a few
110 ;; tests like test_static_file_if_modified_since_past_date depend on it
111 (invoke "touch" "-d" "2020-01-01" "tests/data.unknown_mime_type")
113 ;; FIXME: These tests are failing due to deprecation warnings
114 ;; in Python 3.8. Remove this when updating to aiohttp >= 3.7.
115 ;; https://github.com/aio-libs/aiohttp/issues/4477
116 ;; https://github.com/aio-libs/aiohttp/issues/4525
117 (with-directory-excursion "tests"
118 (for-each delete-file '("test_client_session.py"
120 "test_web_middleware.py"
121 "test_web_protocol.py"
122 "test_web_urldispatcher.py")))
125 `(("python-aiodns" ,python-aiodns)
126 ("python-async-timeout" ,python-async-timeout)
127 ("python-attrs" ,python-attrs)
128 ("python-chardet" ,python-chardet)
129 ("python-idna-ssl" ,python-idna-ssl)
130 ("python-multidict" ,python-multidict)
131 ("python-yarl" ,python-yarl)))
133 `(("python-pytest-runner" ,python-pytest-runner)
134 ("python-pytest-xdit" ,python-pytest-xdist)
135 ("python-pytest-timeout" ,python-pytest-timeout)
136 ("python-pytest-forked" ,python-pytest-forked)
137 ("python-pytest-mock" ,python-pytest-mock)
138 ("gunicorn" ,gunicorn-bootstrap)
139 ("python-freezegun" ,python-freezegun)
140 ("python-async-generator" ,python-async-generator)))
141 (home-page "https://github.com/aio-libs/aiohttp/")
142 (synopsis "Async HTTP client/server framework (asyncio)")
143 (description "@code{aiohttp} is an asynchronous HTTP client/server
146 Its main features are:
148 @item Supports both client and server side of HTTP protocol.
149 @item Supports both client and server Web-Sockets out-of-the-box without the
151 @item Web-server has middlewares and pluggable routing.
153 (license license:asl2.0)))
155 (define-public python-aiohttp-socks
157 (name "python-aiohttp-socks")
162 (uri (pypi-uri "aiohttp_socks" version))
165 "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
166 (build-system python-build-system)
168 `(("python-aiohttp" ,python-aiohttp)))
169 (home-page "https://github.com/romis2012/aiohttp-socks")
170 (synopsis "SOCKS proxy connector for aiohttp")
171 (description "This package provides a SOCKS proxy connector for
172 aiohttp. It supports SOCKS4(a) and SOCKS5.")
173 (license license:asl2.0)))
175 (define-public python-aiodns
177 (name "python-aiodns")
182 (uri (pypi-uri "aiodns" version))
185 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
186 (build-system python-build-system)
188 `(("python-pycares" ,python-pycares)))
190 `(#:tests? #f)) ;tests require internet access
191 (home-page "https://github.com/saghul/aiodns")
192 (synopsis "Simple DNS resolver for asyncio")
193 (description "@code{aiodns} provides a simple way for doing
194 asynchronous DNS resolutions with a synchronous looking interface by
195 using @url{https://github.com/saghul/pycares,pycares}.")
196 (license license:expat)))
198 (define-public python-aiorpcx
200 (name "python-aiorpcx")
205 (uri (pypi-uri "aiorpcX" version))
208 "0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp"))))
209 (build-system python-build-system)
211 `(("python-attrs" ,python-attrs)))
212 (home-page "https://github.com/kyuupichan/aiorpcX")
213 (synopsis "Generic asyncio RPC implementation")
215 "The aiorpcX library is a generic asyncio implementation of RPC suitable
216 for an application that is a client, server or both.
218 The package includes a module with full coverage of JSON RPC versions 1.0 and
219 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
220 comes with a SOCKS proxy client.")
221 (license (list license:expat license:bsd-2))))
223 (define-public python-falcon
225 (name "python-falcon")
230 (uri (pypi-uri "falcon" version))
233 "1z6mqfv574x6jiawf67ib52g4kk20c2x7xk7wrn1573b8v7r79gf"))
234 (modules '((guix build utils)))
237 (delete-file-recursively "falcon/vendor")
238 (substitute* "setup.py"
239 ((".*falcon\\.vendor\\.mimeparse.*") ""))
240 (substitute* '("falcon/media/handlers.py"
242 (("from falcon\\.vendor ") ""))
243 (substitute* "falcon.egg-info/SOURCES.txt"
244 (("falcon/vendor.*") ""))
246 (build-system python-build-system)
249 (modify-phases %standard-phases
251 (lambda* (#:key inputs outputs #:allow-other-keys)
252 ;; Skip orjson, which requires rust to build.
253 (substitute* "tests/test_media_handlers.py"
254 (("== 'CPython") "!= 'CPython"))
255 (add-installed-pythonpath inputs outputs)
256 (invoke "pytest" "--ignore" "falcon"))))))
258 `(("python-mimeparse" ,python-mimeparse)))
260 `(("python-cython" ,python-cython) ;for faster binaries
261 ("python-mujson" ,python-mujson)
262 ("python-msgpack" ,python-msgpack)
263 ("python-pytest" ,python-pytest)
264 ("python-pytest-runner" ,python-pytest-runner)
265 ("python-pyyaml" ,python-pyyaml)
266 ("python-rapidjson" ,python-rapidjson)
267 ("python-requests" ,python-requests)
268 ("python-testtools" ,python-testtools)
269 ("python-ujson" ,python-ujson)))
270 (home-page "https://falconframework.org")
272 "Web framework for building APIs and application backends")
274 "Falcon is a web API framework for building microservices, application
275 backends and higher-level frameworks. Among its features are:
277 @item Optimized and extensible code base
278 @item Routing via URI templates and REST-inspired resource
280 @item Access to headers and bodies through request and response
282 @item Request processing via middleware components and hooks
283 @item Idiomatic HTTP error responses
284 @item Straightforward exception handling
285 @item Unit testing support through WSGI helpers and mocks
286 @item Compatible with both CPython and PyPy
287 @item Cython support for better performance when used with CPython
289 (properties `((python2-variant . ,(delay python2-falcon))))
290 (license license:asl2.0)))
292 (define-public python2-falcon
293 (let ((falcon (package-with-python2 (strip-python2-variant python-falcon))))
297 (alist-delete "python-rapidjson" (package-native-inputs falcon))))))
299 (define-public python-falcon-cors
301 (name "python-falcon-cors")
306 (uri (pypi-uri "falcon-cors" version))
309 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
310 (build-system python-build-system)
312 `(("python-falcon" ,python-falcon)))
314 "https://github.com/lwcolton/falcon-cors")
315 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
316 (description "This middleware provides @dfn{cross-origin resource
317 sharing} (CORS) support for Falcon. It allows applying a specially crafted
318 CORS object to the incoming requests, enabling the ability to serve resources
319 over a different origin than that of the web application.")
320 (license license:asl2.0)))
322 (define-public python2-falcon-cors
323 (package-with-python2 python-falcon-cors))
325 (define-public python-furl
332 (uri (pypi-uri "furl" version))
335 "1v2lakx03d5w8954a39ki44xv5mllnq0a0avhxykv9hrzg0yvjpx"))))
336 (build-system python-build-system)
338 `(("python-six" ,python-six)
339 ("python-orderedmultidict" ,python-orderedmultidict)))
341 `(("python-flake8" ,python-flake8)))
342 (home-page "https://github.com/gruns/furl")
343 (synopsis "URL manipulation in Python")
344 (description "Furl provides an easy-to-use alternative to the
345 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
346 (license license:unlicense)))
348 (define-public python2-furl
349 (package-with-python2 python-furl))
351 (define-public python-httplib2
353 (name "python-httplib2")
358 (uri (pypi-uri "httplib2" version))
361 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
362 (build-system python-build-system)
363 (home-page "https://github.com/jcgregorio/httplib2")
364 (synopsis "Comprehensive HTTP client library")
366 "A comprehensive HTTP client library supporting many features left out of
367 other HTTP libraries.")
368 (license license:expat)))
370 (define-public python2-httplib2
371 (package-with-python2 python-httplib2))
373 (define-public httpie
380 (uri (pypi-uri "httpie" version))
383 "18058k0i3cc4ixvgzj882w693lf40283flvspbrvd876iq42ib1i"))))
384 (build-system python-build-system)
386 ;; The tests attempt to access external web servers, so we cannot run them.
389 `(("python-colorama" ,python-colorama)
390 ("python-pygments" ,python-pygments)
391 ("python-requests" ,python-requests)))
392 (home-page "https://httpie.org/")
393 (synopsis "cURL-like tool for humans")
395 "A command line HTTP client with an intuitive UI, JSON support,
396 syntax highlighting, wget-like downloads, plugins, and more. It consists of
397 a single http command designed for painless debugging and interaction with
398 HTTP servers, RESTful APIs, and web services.")
399 (license license:bsd-3)))
401 (define-public python-html2text
403 (name "python-html2text")
404 (version "2019.8.11")
408 (uri (pypi-uri "html2text" version))
411 "0ppgjplg06kmv9sj0x8p7acczcq2mcfgk1jdjwm4w5w40b0vj5pm"))))
412 (build-system python-build-system)
415 (modify-phases %standard-phases
418 (invoke "pytest" "test/"))))))
420 `(("python-pytest" ,python-pytest)))
421 (home-page "https://github.com/Alir3z4/html2text")
422 (synopsis "Convert HTML into plain text")
423 (description "html2text takes HTML and converts it into plain ASCII text
424 which is also valid markdown. html2text was originally written by Aaron
426 (license license:gpl3+)))
428 (define-public python2-html2text
429 (package-with-python2 python-html2text))
431 (define-public python-mechanicalsoup
433 (name "python-mechanicalsoup")
438 (uri (pypi-uri "MechanicalSoup" version))
440 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
441 (build-system python-build-system)
443 ;; TODO: Enable tests when python-flake8@3.5 hits master.
446 `(("python-beautifulsoup4" ,python-beautifulsoup4)
447 ("python-lxml" ,python-lxml)
448 ("python-requests" ,python-requests)
449 ("python-six" ,python-six)))
452 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
453 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
454 ;; ("python-pytest-mock" ,python-pytest-mock)
455 ;; ("python-pytest-runner" ,python-pytest-runner)
456 ;; ("python-requests-mock" ,python-requests-mock)))
457 (home-page "https://mechanicalsoup.readthedocs.io/")
458 (synopsis "Python library for automating website interaction")
460 "MechanicalSoup is a Python library for automating interaction with
461 websites. It automatically stores and sends cookies, follows redirects, and can
462 follow links and submit forms. It doesn’t do JavaScript.")
463 (license license:expat)))
465 (define-public python2-mechanicalsoup
466 (package-with-python2 python-mechanicalsoup))
468 (define-public python-hyperframe
470 (name "python-hyperframe")
475 (uri (pypi-uri "hyperframe" version))
477 (base32 "07xlf44l1cw0ghxx46sbmkgzil8vqv8kxwy42ywikiy35izw3xd9"))))
478 (build-system python-build-system)
481 (modify-phases %standard-phases
483 (lambda* (#:key inputs outputs #:allow-other-keys)
484 (add-installed-pythonpath inputs outputs)
485 (invoke "pytest" "-vv" "test"))))))
487 `(("python-pytest" ,python-pytest)))
488 (home-page "https://github.com/python-hyper/hyperframe")
489 (synopsis "HTTP/2 framing layer for Python")
491 "This library contains the HTTP/2 framing code used in the hyper project.
492 It provides a pure-Python codebase that is capable of decoding a binary stream
493 into HTTP/2 frames.")
494 (license license:expat)))
496 (define-public python-hpack
498 (name "python-hpack")
502 ;; PyPI tarball is missing some files necessary for the tests.
505 (url "https://github.com/python-hyper/hpack")
506 (commit (string-append "v" version))))
507 (file-name (git-file-name name version))
509 (base32 "0w8hkz50a6lzkmgi41ryicm0mh9ca9cx29pm3s0xlpn0vs29xrmd"))))
510 (build-system python-build-system)
513 (modify-phases %standard-phases
515 (lambda* (#:key inputs outputs #:allow-other-keys)
516 (add-installed-pythonpath inputs outputs)
517 (invoke "pytest" "-vv" "test" "-k"
518 ;; This test will be fixed in the next version. See:
519 ;; https://github.com/python-hyper/hpack/issues/168.
520 "not test_get_by_index_out_of_range"))))))
522 `(("python-pytest" ,python-pytest)))
523 (home-page "https://hyper.rtfd.org")
524 (synopsis "Pure-Python HPACK header compression")
526 "This module contains a pure-Python HTTP/2 header encoding (HPACK) logic
527 for use in Python programs that implement HTTP/2.")
528 (license license:expat)))
530 (define-public python-sockjs-tornado
532 (name "python-sockjs-tornado")
537 (uri (pypi-uri "sockjs-tornado" version))
540 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
541 (build-system python-build-system)
543 `(;; There are no tests, and running the test phase requires missing
547 `(("python-tornado" ,python-tornado)))
548 (home-page "https://github.com/mrjoes/sockjs-tornado/")
550 "SockJS Python server implementation on top of the Tornado framework")
552 "SockJS-tornado provides the server-side counterpart to a SockJS client
553 library, through the Tornado framework.
555 SockJS provides a low-latency, full-duplex, cross-domain communication channel
556 between a web browser and web server.")
557 (license license:expat)))
559 (define-public python2-sockjs-tornado
560 (package-with-python2 python-sockjs-tornado))
562 (define-public python-flask-babel
564 (name "python-flask-babel")
569 (uri (pypi-uri "Flask-Babel" version))
572 "0gmb165vkwv5v7dxsxa2i3zhafns0fh938m2zdcrv4d8z5l099yn"))))
573 (build-system python-build-system)
575 '(#:phases (modify-phases %standard-phases
578 (with-directory-excursion "tests"
579 (invoke "python" "tests.py")))))))
581 `(("python-flask" ,python-flask)
582 ("python-babel" ,python-babel)
583 ("python-jinja2" ,python-jinja2)
584 ("python-pytz" ,python-pytz)))
585 (home-page "https://github.com/python-babel/flask-babel")
586 (synopsis "Add i18n/l10n support to Flask applications")
587 (description "This package implements internationalization and localization
588 support for Flask. This is based on the Python babel module as well as pytz -
589 both of which are installed automatically if you install this library.")
590 (license license:bsd-3)))
592 (define-public python2-flask-babel
593 (package-with-python2 python-flask-babel))
595 (define-public python-html5lib
597 (name "python-html5lib")
602 (uri (pypi-uri "html5lib" version))
605 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
606 (build-system python-build-system)
608 `(("python-six" ,python-six)
609 ("python-webencodings" ,python-webencodings)))
611 `(#:test-target "check"))
613 "https://github.com/html5lib/html5lib-python")
615 "Python HTML parser based on the WHATWG HTML specifcation")
617 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
618 and written in Python.")
619 (license license:expat)))
621 (define-public python2-html5lib
622 (package-with-python2 python-html5lib))
624 ;; Needed for python-bleach, a dependency of python-notebook
625 (define-public python-html5lib-0.9
627 (inherit python-html5lib)
632 (uri (pypi-uri "html5lib" version))
635 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
637 (define-public python2-html5lib-0.9
638 (package-with-python2 python-html5lib-0.9))
640 (define-public python-html5-parser
642 (name "python-html5-parser")
646 (uri (pypi-uri "html5-parser" version))
649 "13yl3vnf3sxl05m0nhpngnrz3g1jvyahd33lys3m3hfb91l8zzi5"))))
650 (build-system python-build-system)
652 `(("pkg-config" ,pkg-config)))
654 `(("libxml2" ,libxml2)))
656 `(("python-lxml" ,python-lxml)
657 ("python-beautifulsoup4" ,python-beautifulsoup4)))
658 (home-page "https://html5-parser.readthedocs.io")
659 (synopsis "Fast C-based HTML5 parsing for Python")
660 (description "This package provides a fast implementation of the HTML5
661 parsing spec for Python. Parsing is done in C using a variant of the gumbo
662 parser. The gumbo parse tree is then transformed into an lxml tree, also in
663 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
664 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
665 ;; indicate ASL2.0, including the LICENSE file for the whole project.
666 (license (list license:asl2.0 license:gpl3))))
668 (define-public python2-html5-parser
669 (package-with-python2 python-html5-parser))
671 (define-public python-pycurl
673 (name "python-pycurl")
678 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
681 (base32 "1cwlb76vddqp2mxqvjbhf367caddzy82rhangddjjhjqaj8x4zgc"))))
682 (build-system python-build-system)
684 ;; The tests attempt to access external web servers, so we cannot run
685 ;; them. Furthermore, they are skipped altogether when using Python 2.
687 #:phases (modify-phases %standard-phases
688 (add-before 'build 'configure-tls-backend
690 ;; XXX: PycURL fails to automatically determine which TLS
691 ;; backend to use when cURL is built with --disable-static.
692 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
693 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
696 `(("python-nose" ,python-nose)
697 ("python-bottle" ,python-bottle)))
701 (home-page "http://pycurl.io/")
702 (synopsis "Lightweight Python wrapper around libcurl")
703 (description "Pycurl is a lightweight wrapper around libcurl. It provides
704 high-speed transfers via libcurl and frequently outperforms alternatives.")
706 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
707 ;; under the terms of LGPLv2.1+ or Expat.
708 (license (list license:lgpl2.1+ license:expat))))
710 (define-public python2-pycurl
711 (package-with-python2 python-pycurl))
713 (define-public python-webencodings
715 (name "python-webencodings")
719 (uri (pypi-uri "webencodings" version))
722 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
723 (build-system python-build-system)
726 (modify-phases %standard-phases
729 (invoke "py.test" "-v" "webencodings/tests.py")
732 `(("python-pytest" ,python-pytest)))
733 (home-page "https://github.com/SimonSapin/python-webencodings")
734 (synopsis "Character encoding aliases for legacy web content")
736 "In order to be compatible with legacy web content when interpreting
737 something like @code{Content-Type: text/html; charset=latin1}, tools need
738 to use a particular set of aliases for encoding labels as well as some
739 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
740 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
741 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
742 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
743 defines all such details so that implementations do not have to
744 reverse-engineer each other.
746 This module implements the Encoding standard and has encoding labels and
747 BOM detection, but the actual implementation for encoders and decoders
749 (license license:bsd-3)))
751 (define-public python2-webencodings
752 (package-with-python2 python-webencodings))
754 (define-public python-openid
756 (name "python-openid")
761 (uri (pypi-uri "python3-openid" version))
764 "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
765 (build-system python-build-system)
768 (modify-phases %standard-phases
771 (invoke "coverage" "run" "-m"
772 "unittest" "openid.test.test_suite"))))))
773 (properties `((python2-variant . ,(delay python2-openid))))
775 `(("python-defusedxml" ,python-defusedxml)))
777 `(("python-coverage" ,python-coverage)
778 ("python-psycopg2" ,python-psycopg2)
779 ("python-django" ,python-django)))
780 (home-page "https://github.com/necaris/python3-openid")
781 (synopsis "OpenID support for servers and consumers")
782 (description "This library provides OpenID authentication for Python, both
783 for clients and servers.")
784 (license license:asl2.0)))
786 (define-public python2-openid
788 (name "python2-openid")
793 (uri (pypi-uri "python-openid" version))
796 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
797 (build-system python-build-system)
799 ;; Python 3 support is in `python3-openid`, a separate package.
801 ;; Tests aren't initialized correctly.
803 (home-page "https://github.com/openid/python-openid")
804 (synopsis "OpenID support for servers and consumers")
805 (description "This library provides OpenID authentication for Python, both
806 for clients and servers.")
807 (license license:asl2.0)))
809 (define-public python-cssutils
811 (name "python-cssutils")
816 (uri (pypi-uri "cssutils" version))
819 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
820 (build-system python-build-system)
822 `(("unzip" ,unzip))) ; for unpacking the source
824 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
825 (home-page "http://cthedot.de/cssutils/")
827 "CSS Cascading Style Sheets library for Python")
829 "Cssutils is a Python package for parsing and building CSS
830 Cascading Style Sheets. Currently it provides a DOM only and no rendering
832 (license license:lgpl3+)))
834 (define-public python2-cssutils
835 (package-with-python2 python-cssutils))
837 (define-public python-css-parser
839 (inherit python-cssutils)
840 (name "python-css-parser")
845 (uri (pypi-uri "css-parser" version ".tar.gz"))
848 "0i4xfykiffxzr4f6y0m2ggqvx1rzam6pw6krlr5k6ldf29akbay7"))))
849 (home-page "https://github.com/ebook-utils/css-parser")
850 (synopsis "Fork of cssutils modified for parsing ebooks")
852 "Css-parser is a fork of cssutils 1.0.2, updated and modified for parsing
853 ebooks, due to cssutils not receiving updates as of 1.0.2.")
854 (license license:lgpl3+)))
856 (define-public python2-css-parser
857 (package-with-python2 python-css-parser))
859 (define-public python-cssselect
861 (name "python-cssselect")
864 ;; The PyPI release does not contain tests.
867 (url "https://github.com/scrapy/cssselect")
868 (commit (string-append "v" version))))
869 (file-name (git-file-name name version))
872 "0xslrnhbrmgakp4xg6k26qffay3kqffp3a2z2sk27c65rwxa79kc"))))
873 (build-system python-build-system)
875 `(#:phases (modify-phases %standard-phases
878 (invoke "pytest" "-vv"))))))
880 `(("python-lxml" ,python-lxml)
881 ("python-pytest" ,python-pytest)))
882 (home-page "https://github.com/scrapy/cssselect")
883 (synopsis "CSS3 selector parser and translator to XPath 1.0")
885 "Cssselect ia a Python module that parses CSS3 Selectors and translates
886 them to XPath 1.0 expressions. Such expressions can be used in lxml or
887 another XPath engine to find the matching elements in an XML or HTML document.")
888 (license license:bsd-3)))
890 (define-public python2-cssselect
891 (package-with-python2 python-cssselect))
893 (define-public python-openid-cla
895 (name "python-openid-cla")
900 (uri (pypi-uri "python-openid-cla" version))
903 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
904 (build-system python-build-system)
905 (arguments '(#:tests? #f)) ; No tests.
906 (home-page "https://github.com/puiterwijk/python-openid-cla/")
907 (synopsis "Implementation of the OpenID CLA extension for python-openid")
908 (description "@code{openid-cla} is an implementation of the OpenID
909 contributor license agreement extension for python-openid.")
910 (license license:bsd-3)))
912 (define-public python2-openid-cla
913 (package-with-python2 python-openid-cla))
915 (define-public python-openid-teams
917 (name "python-openid-teams")
922 (uri (pypi-uri "python-openid-teams" version))
925 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
926 (build-system python-build-system)
927 (arguments '(#:tests? #f)) ; No tests.
928 (home-page "https://github.com/puiterwijk/python-openid-teams/")
929 (synopsis "Implementation of the OpenID teams extension for python-openid")
931 "@code{openid-teams} is an implementation of the OpenID
932 teams extension for python-openid.")
933 (license license:bsd-3)))
935 (define-public python2-openid-teams
936 (package-with-python2 python-openid-teams))
938 (define-public python-tornado
940 (name "python-tornado")
945 (uri (pypi-uri "tornado" version))
948 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
949 (build-system python-build-system)
951 '(;; FIXME: Two tests error out with:
952 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
954 ;; (modify-phases %standard-phases
957 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
958 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
959 ;; (invoke "python" "-m" "tornado.test.runtests")
963 `(("python-certifi" ,python-certifi)))
964 (home-page "https://www.tornadoweb.org/")
965 (synopsis "Python web framework and asynchronous networking library")
967 "Tornado is a Python web framework and asynchronous networking library,
968 originally developed at FriendFeed. By using non-blocking network I/O,
969 Tornado can scale to tens of thousands of open connections, making it ideal
970 for long polling, WebSockets, and other applications that require a long-lived
971 connection to each user.")
972 (license license:asl2.0)
973 (properties `((python2-variant . ,(delay python2-tornado))))))
975 (define-public python-tornado-6
977 (name "python-tornado")
982 (uri (pypi-uri "tornado" version))
985 "1p5n7sw4580pkybywg93p8ddqdj9lhhy72rzswfa801vlidx9qhg"))))
986 (build-system python-build-system)
989 (modify-phases %standard-phases
992 (invoke "python" "-m" "tornado.test.runtests")
995 `(("python-certifi" ,python-certifi)))
996 (home-page "https://www.tornadoweb.org/")
997 (synopsis "Python web framework and asynchronous networking library")
999 "Tornado is a Python web framework and asynchronous networking library,
1000 originally developed at FriendFeed. By using non-blocking network I/O,
1001 Tornado can scale to tens of thousands of open connections, making it ideal
1002 for long polling, WebSockets, and other applications that require a long-lived
1003 connection to each user.")
1004 (license license:asl2.0)))
1006 (define-public python2-tornado
1007 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
1008 (package (inherit tornado)
1010 `(("python2-backport-ssl-match-hostname"
1011 ,python2-backport-ssl-match-hostname)
1012 ("python2-backports-abc" ,python2-backports-abc)
1013 ("python2-singledispatch" ,python2-singledispatch)
1014 ,@(package-propagated-inputs tornado))))))
1016 (define-public python-tornado-http-auth
1018 (name "python-tornado-http-auth")
1023 (uri (pypi-uri "tornado-http-auth" version))
1025 (base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x"))))
1026 (build-system python-build-system)
1028 `(("python-tornado" ,python-tornado)))
1029 (home-page "https://github.com/gvalkov/tornado-http-auth")
1030 (synopsis "Digest and basic authentication module for Tornado")
1032 "Provides support for adding authentication to services using the Tornado
1033 web framework, either via the basic or digest authentication schemes.")
1034 (license license:asl2.0)))
1036 (define-public python-terminado
1038 (name "python-terminado")
1043 (uri (pypi-uri "terminado" version))
1046 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
1047 (build-system python-build-system)
1049 `(("python-tornado" ,python-tornado)
1050 ("python-ptyprocess" ,python-ptyprocess)))
1052 `(("python-nose" ,python-nose)))
1055 (modify-phases %standard-phases
1057 (lambda _ (invoke "nosetests") #t)))))
1058 (home-page "https://github.com/takluyver/terminado")
1059 (synopsis "Terminals served to term.js using Tornado websockets")
1060 (description "This package provides a Tornado websocket backend for the
1061 term.js Javascript terminal emulator library.")
1062 (license license:bsd-2)
1063 (properties `((python2-variant . ,(delay python2-terminado))))))
1065 (define-public python2-terminado
1066 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
1067 (package (inherit terminado)
1069 `(("python2-backport-ssl-match-hostname"
1070 ,python2-backport-ssl-match-hostname)
1071 ("python2-futures" ,python2-futures)
1072 ,@(package-propagated-inputs terminado))))))
1074 (define-public python-wsgi-intercept
1076 (name "python-wsgi-intercept")
1080 (uri (pypi-uri "wsgi_intercept" version))
1083 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
1084 (build-system python-build-system)
1086 `(("python-six" ,python-six)))
1088 `(("python-pytest" ,python-pytest)
1089 ("python-httplib2" ,python-httplib2)
1090 ("python-requests" ,python-requests)
1091 ("python-urllib3" ,python-urllib3)))
1092 (synopsis "Puts a WSGI application in place of a real URI for testing")
1093 (description "Wsgi_intercept installs a WSGI application in place of a real
1094 URI for testing. Testing a WSGI application normally involves starting a
1095 server at a local host and port, then pointing your test code to that address.
1096 Instead, this library lets you intercept calls to any specific host/port
1097 combination and redirect them into a WSGI application importable by your test
1098 program. Thus, you can avoid spawning multiple processes or threads to test
1100 (home-page "https://github.com/cdent/wsgi-intercept")
1101 (license license:expat)))
1103 (define-public python-webob
1105 (name "python-webob")
1110 (uri (pypi-uri "WebOb" version))
1113 "026i3z99nr3px75isa9mbnky5i7rffiv4d124h5kxfjjsxz92fma"))))
1114 (build-system python-build-system)
1116 `(("python-nose" ,python-nose)))
1117 (home-page "https://webob.org/")
1118 (synopsis "WSGI request and response object")
1120 "WebOb provides wrappers around the WSGI request environment, and an
1121 object to help create WSGI responses.")
1122 (license license:expat)))
1124 (define-public python2-webob
1125 (package-with-python2 python-webob))
1127 (define-public python-zope-event
1129 (name "python-zope-event")
1134 (uri (pypi-uri "zope.event" version))
1137 "1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9"))))
1138 (build-system python-build-system)
1139 (home-page "https://pypi.org/project/zope.event/")
1140 (synopsis "Event publishing system for Python")
1141 (description "Zope.event provides an event publishing API, intended for
1142 use by applications which are unaware of any subscribers to their events. It
1143 is a simple event-dispatching system on which more sophisticated event
1144 dispatching systems can be built.")
1145 (license license:zpl2.1)))
1147 (define-public python2-zope-event
1148 (package-with-python2 python-zope-event))
1150 (define-public python-zope-interface
1152 (name "python-zope-interface")
1157 (uri (pypi-uri "zope.interface" version))
1160 "03nrl6b8cb600dnnh46y149awvrm0gxyqgwq5hdw3lvys8mw9r20"))))
1161 (build-system python-build-system)
1162 (arguments '(#:tests? #f)) ; test suite can't find python-zope-testing
1164 `(("python-coverage" ,python-coverage)
1165 ("python-nose" ,python-nose)
1166 ("python-zope-event" ,python-zope-event)
1167 ("python-zope-testing" ,python-zope-testing)))
1168 (home-page "https://github.com/zopefoundation/zope.interface")
1169 (synopsis "Python implementation of the \"design by contract\"
1171 (description "Zope.interface provides an implementation of \"object
1172 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
1173 conforming to a given API or contract.")
1174 (license license:zpl2.1)))
1176 (define-public python2-zope-interface
1177 (package-with-python2 python-zope-interface))
1179 (define-public python-zope-exceptions
1181 (name "python-zope-exceptions")
1186 (uri (pypi-uri "zope.exceptions" version))
1189 "1nkgfwawswmyc6i0b8g3ymvja4mb507m8yhid8s4rbxq3dmqhwhd"))))
1190 (build-system python-build-system)
1193 (modify-phases %standard-phases
1196 (invoke "zope-testrunner" "--test-path=src"))))))
1198 `(("python-zope-testrunner" ,python-zope-testrunner-bootstrap)))
1200 `(("python-zope-interface" ,python-zope-interface)))
1201 (home-page "https://pypi.org/project/zope.exceptions/")
1202 (synopsis "Zope exceptions")
1203 (description "Zope.exceptions provides general-purpose exception types
1204 that have uses outside of the Zope framework.")
1205 (license license:zpl2.1)))
1207 (define-public python-zope-exceptions-bootstrap
1209 (inherit python-zope-exceptions)
1210 (arguments `(#:tests? #f))
1211 (propagated-inputs `())
1213 (properties `((hidden? . #t)))))
1215 (define-public python2-zope-exceptions
1216 (package-with-python2 python-zope-exceptions))
1218 (define-public python-zope-testing
1220 (name "python-zope-testing")
1225 (uri (pypi-uri "zope.testing" version))
1228 "1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn"))))
1229 (build-system python-build-system)
1230 (home-page "https://pypi.org/project/zope.testing/")
1231 (synopsis "Zope testing helpers")
1232 (description "Zope.testing provides a number of testing utilities for HTML
1233 forms, HTTP servers, regular expressions, and more.")
1234 (license license:zpl2.1)))
1236 (define-public python2-zope-testing
1237 (package-with-python2 python-zope-testing))
1239 (define-public python-zope-testrunner
1241 (name "python-zope-testrunner")
1246 (uri (pypi-uri "zope.testrunner" version))
1249 "0jyyf1dcz156q95x2y7yw2v420q2xn3cff0c5aci7hmdmcbn0gc7"))))
1250 (build-system python-build-system)
1252 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1254 `(("python-zope-testing" ,python-zope-testing)))
1256 `(("python-six" ,python-six)
1257 ("python-zope-exceptions" ,python-zope-exceptions)
1258 ("python-zope-interface" ,python-zope-interface)))
1259 (home-page "https://pypi.org/project/zope.testrunner/")
1260 (synopsis "Zope testrunner script")
1261 (description "Zope.testrunner provides a script for running Python
1263 (license license:zpl2.1)))
1265 (define-public python-zope-testrunner-bootstrap
1267 (inherit python-zope-testrunner)
1268 (arguments `(#:tests? #f))
1270 `(("python-six" ,python-six)
1271 ("python-zope-exceptions" ,python-zope-exceptions-bootstrap)))
1272 (properties `((hidden? . #t)))))
1274 (define-public python2-zope-testrunner
1275 (package-with-python2 python-zope-testrunner))
1277 (define-public python-zope-i18nmessageid
1279 (name "python-zope-i18nmessageid")
1284 (uri (pypi-uri "zope.i18nmessageid" version))
1287 "0ndhn4w1qgwkfbwf9vm2bgq418z5g0wmfsgl0d9nz62cd0mi8d4m"))))
1288 (build-system python-build-system)
1290 `(("python-coverage" ,python-coverage)
1291 ("python-zope-testrunner" ,python-zope-testrunner)))
1293 `(("python-six" ,python-six)))
1294 (home-page "https://pypi.org/project/zope.i18nmessageid/")
1295 (synopsis "Message identifiers for internationalization")
1296 (description "Zope.i18nmessageid provides facilities for declaring
1297 internationalized messages within program source text.")
1298 (license license:zpl2.1)))
1300 (define-public python2-zope-i18nmessageid
1301 (package-with-python2 python-zope-i18nmessageid))
1303 (define-public python-zope-schema
1305 (name "python-zope-schema")
1310 (uri (pypi-uri "zope.schema" version))
1313 "09jg47bxhfg1ahr1jxb5y0cbiszyk1j6fn1r1r7s6svjl3lbryr0"))))
1314 (build-system python-build-system)
1317 (modify-phases %standard-phases
1319 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
1320 (add-installed-pythonpath inputs outputs)
1322 (invoke "zope-testrunner" "--test-path=src")
1325 `(("python-zope-event" ,python-zope-event)
1326 ("python-zope-interface" ,python-zope-interface)))
1328 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1329 ("python-zope-testing" ,python-zope-testing)
1330 ("python-zope-testrunner" ,python-zope-testrunner)))
1331 (home-page "https://pypi.org/project/zope.schema/")
1332 (synopsis "Zope data schemas")
1333 (description "Zope.scheme provides extensions to zope.interface for
1334 defining data schemas.")
1335 (license license:zpl2.1)))
1337 (define-public python2-zope-schema
1338 (package-with-python2 python-zope-schema))
1340 (define-public python-zope-configuration
1342 (name "python-zope-configuration")
1346 (uri (pypi-uri "zope.configuration" version))
1349 "0g6vrl7y27z9cj5xyrww9xlzk4npj55mgmlrcd9d2nj08jn2pw79"))))
1350 (build-system python-build-system)
1352 `(("python-manuel" ,python-manuel)
1353 ("python-zope-testing" ,python-zope-testing)
1354 ("python-zope-testrunner" ,python-zope-testrunner)))
1356 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1357 ("python-zope-interface" ,python-zope-interface)
1358 ("python-zope-schema" ,python-zope-schema)))
1359 (home-page "https://pypi.org/project/zope.configuration/")
1360 (synopsis "Zope Configuration Markup Language")
1361 (description "Zope.configuration implements ZCML, the Zope Configuration
1363 (license license:zpl2.1)))
1365 (define-public python-zope-configuration-bootstrap
1367 (inherit python-zope-configuration)
1368 (arguments `(#:tests? #f))
1370 (properties `((hidden? . #t)))))
1372 (define-public python2-zope-configuration
1373 (package-with-python2 python-zope-configuration))
1375 (define-public python-zope-copy
1377 (name "python-zope-copy")
1382 (uri (pypi-uri "zope.copy" version))
1385 "06m75434krl57n6p73c2qj55k5i3fixg887j8ss01ih6zw4rvfs7"))))
1386 (build-system python-build-system)
1389 (modify-phases %standard-phases
1392 (invoke "zope-testrunner" "--test-path=src" "\\[]"))))))
1394 `(("python-zope-interface" ,python-zope-interface)))
1396 `(("python-zope-component" ,python-zope-component-bootstrap)
1397 ("python-zope-location" ,python-zope-location-bootstrap)
1398 ("python-zope-testing" ,python-zope-testing)
1399 ("python-zope-testrunner" ,python-zope-testrunner)))
1400 (home-page "https://github.com/zopefoundation/zope.copy")
1401 (synopsis "Pluggable object copying mechanism")
1403 "This package provides a pluggable mechanism for copying persistent objects.")
1404 (license license:zpl2.1)))
1406 (define-public python-zope-proxy
1408 (name "python-zope-proxy")
1413 (uri (pypi-uri "zope.proxy" version))
1416 "14h7nyfbl5vpfk0rbviy4ygdfx0yx5kncvg6jpbdb0dhwna0ssm6"))))
1417 (build-system python-build-system)
1419 `(("python-zope-security" ,python-zope-security-bootstrap)
1420 ("python-zope-testrunner" ,python-zope-testrunner)))
1422 `(("python-zope-interface" ,python-zope-interface)))
1423 (home-page "https://pypi.org/project/zope.proxy/")
1424 (synopsis "Generic, transparent proxies")
1425 (description "Zope.proxy provides generic, transparent proxies for Python.
1426 Proxies are special objects which serve as mostly-transparent wrappers around
1427 another object, intervening in the apparent behavior of the wrapped object
1428 only when necessary to apply the policy (e.g., access checking, location
1429 brokering, etc.) for which the proxy is responsible.")
1430 (license license:zpl2.1)))
1432 (define-public python-zope-proxy-bootstrap
1434 (inherit python-zope-proxy)
1435 (arguments `(#:tests? #f))
1437 (properties `((hidden? . #t)))))
1439 (define-public python2-zope-proxy
1440 (package-with-python2 python-zope-proxy))
1442 (define-public python-zope-hookable
1444 (name "python-zope-hookable")
1449 (uri (pypi-uri "zope.hookable" version))
1452 "0hc82lfr7bk53nvbxvjkibkarngyrzgfk2i6bg8wshl0ly0pdl19"))))
1453 (build-system python-build-system)
1455 `(("python-coverage" ,python-coverage)
1456 ("python-zope-testing" ,python-zope-testing)))
1457 (home-page "https://github.com/zopefoundation/zope.hookable")
1458 (synopsis "Zope hookable")
1459 (description "This package supports the efficient creation of hookable
1460 objects, which are callable objects that are meant to be optionally replaced.
1461 The idea is that you create a function that does some default thing and make i
1462 hookable. Later, someone can modify what it does by calling its sethook method
1463 and changing its implementation. All users of the function, including those
1464 that imported it, will see the change.")
1465 (license license:zpl2.1)))
1467 (define-public python-zope-location
1469 (name "python-zope-location")
1474 (uri (pypi-uri "zope.location" version))
1477 "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857"))))
1478 (build-system python-build-system)
1480 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1482 `(("python-zope-testrunner" ,python-zope-testrunner)))
1484 `(("python-zope-interface" ,python-zope-interface)
1485 ("python-zope-proxy" ,python-zope-proxy)
1486 ("python-zope-schema" ,python-zope-schema)))
1487 (home-page "https://pypi.org/project/zope.location/")
1488 (synopsis "Zope location library")
1489 (description "Zope.location implements the concept of \"locations\" in
1490 Zope3, which are are special objects that have a structural location.")
1491 (license license:zpl2.1)))
1493 (define-public python-zope-location-bootstrap
1495 (inherit python-zope-location)
1496 (arguments `(#:tests? #f))
1498 (properties `((hidden? . #t)))))
1500 (define-public python2-zope-location
1501 (package-with-python2 python-zope-location))
1503 (define-public python-zope-security
1505 (name "python-zope-security")
1510 (uri (pypi-uri "zope.security" version))
1513 "11lfw67cigscfax9c5j63xcvz2qcj724zx5fcdqyc94am2glim0h"))))
1514 (build-system python-build-system)
1516 `(("python-zope-component" ,python-zope-component)
1517 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1518 ("python-zope-interface" ,python-zope-interface)
1519 ("python-zope-location" ,python-zope-location)
1520 ("python-zope-proxy" ,python-zope-proxy)
1521 ("python-zope-schema" ,python-zope-schema)))
1523 `(("python-btrees" ,python-btrees)
1524 ("python-zope-component" ,python-zope-component-bootstrap)
1525 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
1526 ("python-zope-location" ,python-zope-location-bootstrap)
1527 ("python-zope-testing" ,python-zope-testing)
1528 ("python-zope-testrunner" ,python-zope-testrunner)))
1529 (home-page "https://pypi.org/project/zope.security/")
1530 (synopsis "Zope security framework")
1531 (description "Zope.security provides a generic mechanism to implement
1532 security policies on Python objects.")
1533 (license license:zpl2.1)))
1535 (define-public python-zope-security-bootstrap
1537 (inherit python-zope-security)
1538 (arguments `(#:tests? #f))
1540 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1541 ("python-zope-interface" ,python-zope-interface)
1542 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
1543 ("python-zope-schema" ,python-zope-schema)))
1545 (properties `((hidden? . #t)))))
1547 (define-public python2-zope-security
1548 (package-with-python2 python-zope-security))
1550 (define-public python-zope-component
1552 (name "python-zope-component")
1557 (uri (pypi-uri "zope.component" version))
1560 "14iwp95hh6q5dj4k9h1iw75cbp89bs27nany4dinyglb44c8jqli"))))
1561 (build-system python-build-system)
1564 (modify-phases %standard-phases
1566 (lambda* (#:key inputs outputs #:allow-other-keys)
1567 (add-installed-pythonpath inputs outputs)
1568 (invoke "python" "setup.py" "test"))))))
1570 `(("python-persistent" ,python-persistent)
1571 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
1572 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1573 ("python-zope-location" ,python-zope-location-bootstrap)
1574 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
1575 ("python-zope-security" ,python-zope-security-bootstrap)
1576 ("python-zope-testing" ,python-zope-testing)
1577 ("python-zope-testrunner" ,python-zope-testrunner)))
1579 `(("python-zope-deferredimport" ,python-zope-deferredimport)
1580 ("python-zope-deprecation" ,python-zope-deprecation)
1581 ("python-zope-event" ,python-zope-event)
1582 ("python-zope-hookable" ,python-zope-hookable)
1583 ("python-zope-interface" ,python-zope-interface)))
1584 (home-page "https://github.com/zopefoundation/zope.component")
1585 (synopsis "Zope Component Architecture")
1586 (description "Zope.component represents the core of the Zope Component
1587 Architecture. Together with the zope.interface package, it provides
1588 facilities for defining, registering and looking up components.")
1589 (license license:zpl2.1)))
1591 (define-public python-zope-component-bootstrap
1593 (inherit python-zope-component)
1594 (arguments `(#:tests? #f))
1596 (properties `((hidden? . #t)))))
1598 (define-public python2-zope-component
1599 (package-with-python2 python-zope-component))
1601 (define-public python-zope-deferredimport
1603 (name "python-zope-deferredimport")
1608 (uri (pypi-uri "zope.deferredimport" version))
1611 "1q89v54dwniiqypjbwywwdfjdr4kdkqlyqsgrpplgvsygdg39cjp"))))
1612 (build-system python-build-system)
1614 `(("python-zope-proxy" ,python-zope-proxy)))
1616 `(("python-zope-testrunner" ,python-zope-testrunner)))
1617 (home-page "https://github.com/zopefoundation/zope.deferredimport")
1618 (synopsis "Defer imports until used by code")
1620 "Often, especially for package modules, you want to import names for
1621 convenience, but not actually perform the imports until necessary. The
1622 @code{zope.deferredimport} package provided facilities for defining names in
1623 modules that will be imported from somewhere else when used. You can also cause
1624 deprecation warnings to be issued when a variable is used.")
1625 (license license:zpl2.1)))
1627 (define-public python-ndg-httpsclient
1629 (name "python-ndg-httpsclient")
1633 (uri (pypi-uri "ndg_httpsclient" version))
1636 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1637 (build-system python-build-system)
1639 '(;; The tests appear to require networking.
1642 `(("python-pyopenssl" ,python-pyopenssl)))
1643 (synopsis "HTTPS support for Python's httplib and urllib2")
1644 (description "This is a HTTPS client implementation for httplib and urllib2
1645 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1646 over the default provided with Python and, importantly, enables full
1647 verification of the SSL peer.")
1648 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1649 (license license:bsd-3)))
1651 ;; python2-openssl requires special care, so package-with-python2 is
1653 (define-public python2-ndg-httpsclient
1654 (package (inherit python-ndg-httpsclient)
1655 (name "python2-ndg-httpsclient")
1657 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1658 ((#:python _) python-2)))
1660 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1662 (define-public python-websocket-client
1664 (name "python-websocket-client")
1669 (uri (pypi-uri "websocket_client" version))
1672 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
1673 (build-system python-build-system)
1675 `(("python-six" ,python-six)))
1676 (home-page "https://github.com/liris/websocket-client")
1677 (synopsis "WebSocket client for Python")
1678 (description "The Websocket-client module provides the low level APIs for
1679 WebSocket usage in Python programs.")
1680 (properties `((python2-variant . ,(delay python2-websocket-client))))
1681 (license license:lgpl2.1+)))
1683 (define-public python2-websocket-client
1684 (let ((base (package-with-python2
1685 (strip-python2-variant python-websocket-client))))
1689 `(("python2-backport-ssl-match-hostname"
1690 ,python2-backport-ssl-match-hostname)
1691 ,@(package-native-inputs base))))))
1693 (define-public python-requests
1695 (name "python-requests")
1699 (uri (pypi-uri "requests" version))
1702 "1rhpg0jb08v0gd7f19jjiwlcdnxpmqi1fhvw7r4s9avddi4kvx5k"))))
1703 (build-system python-build-system)
1705 `(("python-certifi" ,python-certifi)
1706 ("python-chardet" ,python-chardet)
1707 ("python-idna" ,python-idna)
1708 ("python-urllib3" ,python-urllib3)))
1710 ;; FIXME: Some tests require network access.
1712 (home-page "http://python-requests.org/")
1713 (synopsis "Python HTTP library")
1715 "Requests is a Python HTTP client library. It aims to be easier to use
1716 than Python’s urllib2 library.")
1717 (license license:asl2.0)))
1719 ;; Some software requires an older version of Requests, notably Docker/Docker
1721 (define-public python-requests-2.20
1722 (package (inherit python-requests)
1726 (uri (pypi-uri "requests" version))
1729 "0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
1731 `(("python-urllib3" ,python-urllib3-1.24)
1732 ("python-idna" ,python-idna-2.7)
1733 ,@(package-propagated-inputs python-requests)))))
1735 ;; Some software requires an older version of Requests, notably Docker
1737 (define-public python-requests-2.7
1738 (package (inherit python-requests)
1742 (uri (pypi-uri "requests" version))
1745 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1747 (define-public python2-requests
1748 (package-with-python2 python-requests))
1750 (define-public python-requests_ntlm
1752 (name "python-requests_ntlm")
1757 (uri (pypi-uri "requests_ntlm" version))
1760 "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
1761 (build-system python-build-system)
1763 `(("python-cryptography" ,python-cryptography)
1764 ("python-ntlm-auth" ,python-ntlm-auth)
1765 ("python-requests" ,python-requests)))
1766 (home-page "https://github.com/requests/requests-ntlm")
1768 "NTLM authentication support for Requests")
1770 "This package allows for HTTP NTLM authentication using the requests
1772 (license license:isc)))
1774 (define-public python-requests-mock
1776 (name "python-requests-mock")
1781 (uri (pypi-uri "requests-mock" version))
1784 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1785 (build-system python-build-system)
1787 `(("python-requests" ,python-requests)
1788 ("python-six" ,python-six)))
1790 `(("python-pbr" ,python-pbr)
1791 ("python-discover" ,python-discover)
1792 ("python-docutils" ,python-docutils)
1793 ("python-fixtures" ,python-fixtures)
1794 ("python-mock" ,python-mock)
1795 ("python-sphinx" ,python-sphinx)
1796 ("python-testrepository" ,python-testrepository)
1797 ("python-testtools" ,python-testtools)))
1798 (home-page "https://requests-mock.readthedocs.org/")
1799 (synopsis "Mock out responses from the requests package")
1801 "This module provides a building block to stub out the HTTP requests
1802 portions of your testing code.")
1803 (properties `((python2-variant . ,(delay python2-requests-mock))))
1804 (license license:asl2.0)))
1806 (define-public python2-requests-mock
1807 (package (inherit (package-with-python2
1808 (strip-python2-variant python-requests-mock)))
1810 `(#:python ,python-2
1811 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1814 (define-public python-requests-toolbelt
1816 (name "python-requests-toolbelt")
1820 (uri (pypi-uri "requests-toolbelt" version))
1823 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1824 (build-system python-build-system)
1826 `(("python-betamax" ,python-betamax)
1827 ("python-mock" ,python-mock)
1828 ("python-pytest" ,python-pytest)))
1830 `(("python-requests" ,python-requests)))
1831 (synopsis "Extensions to python-requests")
1832 (description "This is a toolbelt of useful classes and functions to be used
1833 with python-requests.")
1834 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1835 (license license:asl2.0)))
1837 (define-public python2-requests-toolbelt
1838 (package-with-python2 python-requests-toolbelt))
1840 (define-public python-oauthlib
1842 (name "python-oauthlib")
1846 (uri (pypi-uri "oauthlib" version))
1849 "163jg4a8f7c5ki655grrr47kgljy12wri3qly7ijf64sk1fjrqqc"))))
1850 (build-system python-build-system)
1852 `(#:phases (modify-phases %standard-phases
1855 (invoke "pytest" "-vv"))))))
1857 `(("python-pytest" ,python-pytest)
1858 ("python-pytest-cov" ,python-pytest-cov)
1859 ("python-mock" ,python-mock)))
1861 `(("python-cryptography" ,python-cryptography)
1862 ("python-pyjwt" ,python-pyjwt)
1863 ("python-blinker" ,python-blinker)))
1864 (home-page "https://github.com/oauthlib/oauthlib")
1865 (synopsis "OAuth implementation for Python")
1867 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1868 OAuth request-signing logic.")
1869 (license license:bsd-3)))
1871 (define-public python2-oauthlib
1872 (package-with-python2 python-oauthlib))
1874 (define-public python-rauth
1876 (name "python-rauth")
1881 (uri (pypi-uri "rauth" version))
1884 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1885 (build-system python-build-system)
1887 `(#:test-target "check"))
1889 `(("python-requests" ,python-requests)))
1890 (home-page "https://github.com/litl/rauth")
1891 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1893 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1894 provides service wrappers for convenient connection initialization and
1895 authenticated session objects providing things like keep-alive.")
1896 (license license:expat)
1897 (properties `((python2-variant . ,(delay python2-rauth))))))
1899 (define-public python2-rauth
1900 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1903 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1904 ,@(package-native-inputs base))))))
1906 (define-public python-urllib3
1908 (name "python-urllib3")
1913 (uri (pypi-uri "urllib3" version))
1916 "09rmjqm5syhhc8fx3v06h3yv6cqy0b1081jg8wm5grpwpr72j61h"))))
1917 (build-system python-build-system)
1918 (arguments `(#:tests? #f))
1920 `(;; These 5 inputs are used to build urrlib3[secure]
1921 ("python-certifi" ,python-certifi)
1922 ("python-cryptography" ,python-cryptography)
1923 ("python-idna" ,python-idna)
1924 ("python-ipaddress" ,python-ipaddress)
1925 ("python-pyopenssl" ,python-pyopenssl)
1926 ("python-pysocks" ,python-pysocks)))
1927 (home-page "https://urllib3.readthedocs.io/")
1928 (synopsis "HTTP library with thread-safe connection pooling")
1930 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1931 can reuse the same socket connection for multiple requests, it can POST files,
1932 supports url redirection and retries, and also gzip and deflate decoding.")
1933 (license license:expat)))
1935 ;; Some software requires an older version of urllib3, notably Docker.
1936 (define-public python-urllib3-1.24
1937 (package (inherit python-urllib3)
1941 (uri (pypi-uri "urllib3" version))
1944 "1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
1947 (define-public python2-urllib3
1948 (package-with-python2 python-urllib3))
1950 (define-public awscli
1957 (uri (pypi-uri name version))
1960 "0p479mfs9r0m82a217pap8156ijwvhv6r3kqa4k267gd05wgvygm"))))
1961 (build-system python-build-system)
1963 ;; FIXME: The 'pypi' release does not contain tests.
1966 (modify-phases %standard-phases
1967 (add-after 'unpack 'fix-reference-to-groff
1969 (substitute* "awscli/help.py"
1970 (("if not self._exists_on_path\\('groff'\\):") "")
1971 (("raise ExecutableNotFoundError\\('groff'\\)") "")
1972 (("cmdline = \\['groff'")
1973 (string-append "cmdline = ['" (which "groff") "'")))
1976 `(("python-colorama" ,python-colorama)
1977 ("python-botocore" ,python-botocore)
1978 ("python-s3transfer" ,python-s3transfer)
1979 ("python-docutils" ,python-docutils)
1980 ("python-pyyaml" ,python-pyyaml)
1981 ("python-rsa" ,python-rsa)))
1983 `(("groff" ,groff)))
1984 (home-page "https://aws.amazon.com/cli/")
1985 (synopsis "Command line client for AWS")
1986 (description "AWS CLI provides a unified command line interface to the
1987 Amazon Web Services (AWS) API.")
1988 (license license:asl2.0)))
1990 (define-public python-wsgiproxy2
1992 (name "python-wsgiproxy2")
1997 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
1999 (base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf"))))
2000 (build-system python-build-system)
2002 `(("python-webtest" ,python-webtest)))
2004 `(("python-requests" ,python-requests)
2005 ("python-six" ,python-six)
2006 ("python-urllib3" ,python-urllib3)
2007 ("python-webob" ,python-webob)))
2008 (home-page "https://github.com/gawel/WSGIProxy2/")
2009 (synopsis "WSGI Proxy with various http client backends")
2010 (description "WSGI turns HTTP requests into WSGI function calls.
2011 WSGIProxy turns WSGI function calls into HTTP requests.
2012 It also includes code to sign requests and pass private data,
2013 and to spawn subprocesses to handle requests.")
2014 (license license:expat)))
2016 (define-public python2-wsgiproxy2
2017 (package-with-python2 python-wsgiproxy2))
2019 (define-public python-pastedeploy
2021 (name "python-pastedeploy")
2026 (uri (pypi-uri "PasteDeploy" version))
2028 (base32 "16qsq5y6mryslmbp5pn35x4z8z3ndp5rpgl42h226879nrw9hmg7"))))
2029 (build-system python-build-system)
2031 '(#:test-target "pytest"))
2033 `(("python-pytest" ,python-pytest)
2034 ("python-pytest-runner" ,python-pytest-runner)))
2035 (home-page "https://pylonsproject.org/")
2037 "Load, configure, and compose WSGI applications and servers")
2039 "This tool provides code to load WSGI applications and servers from URIs;
2040 these URIs can refer to Python Eggs for INI-style configuration files. Paste
2041 Script provides commands to serve applications based on this configuration
2043 (license license:expat)))
2045 (define-public python2-pastedeploy
2046 (package-with-python2 python-pastedeploy))
2048 (define-public python-webtest
2050 (name "python-webtest")
2055 (uri (pypi-uri "WebTest" version))
2058 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
2059 (build-system python-build-system)
2061 ;; Tests require python-pyquery, which creates a circular dependency.
2064 `(("python-waitress" ,python-waitress)
2065 ("python-webob" ,python-webob)
2066 ("python-six" ,python-six)
2067 ("python-beautifulsoup4" ,python-beautifulsoup4)))
2068 (home-page "https://docs.pylonsproject.org/projects/webtest/")
2069 (synopsis "Helper to test WSGI applications")
2070 (description "Webtest allows you to test your Python web applications
2071 without starting an HTTP server. It supports anything that supports the
2073 (license license:expat)))
2075 (define-public python2-webtest
2076 (package-with-python2 python-webtest))
2078 (define-public python-flask
2080 (name "python-flask")
2084 (uri (pypi-uri "Flask" version))
2087 "0q3h295izcil7lswkzfnyg3k5gq4hpmqmpl6i7s5m1n9szi1myjf"))))
2088 (build-system python-build-system)
2091 (modify-phases %standard-phases
2094 (setenv "PYTHONPATH" (string-append "./build/lib:"
2095 (getenv "PYTHONPATH")))
2096 (invoke "pytest" "-vv" "tests"))))))
2098 `(("python-pytest" ,python-pytest)))
2100 `(("python-itsdangerous" ,python-itsdangerous)
2101 ("python-jinja2" ,python-jinja2)
2102 ("python-click" ,python-click)
2103 ("python-werkzeug" ,python-werkzeug)))
2104 (home-page "https://www.palletsprojects.com/p/flask/")
2105 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
2106 (description "Flask is a micro web framework based on the Werkzeug toolkit
2107 and Jinja2 template engine. It is called a micro framework because it does not
2108 presume or force a developer to use a particular tool or library.")
2109 (license license:bsd-3)))
2111 (define-public python2-flask
2112 (package-with-python2 python-flask))
2114 (define-public python-flask-wtf
2116 (name "python-flask-wtf")
2121 (uri (pypi-uri "Flask-WTF" version))
2124 "086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl"))))
2125 (build-system python-build-system)
2128 (modify-phases %standard-phases
2131 (setenv "PYTHONPATH" (string-append "./build/lib:"
2132 (getenv "PYTHONPATH")))
2133 (invoke "pytest" "-vv"))))))
2135 `(("python-flask-babel" ,python-flask-babel)
2136 ("python-babel" ,python-babel)
2137 ("python-wtforms" ,python-wtforms)))
2139 `(("python-pytest" ,python-pytest)))
2140 (home-page "https://github.com/lepture/flask-wtf")
2141 (synopsis "Simple integration of Flask and WTForms")
2142 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
2143 upload, and reCAPTCHA.")
2144 (license license:bsd-3)))
2146 (define-public python2-flask-wtf
2147 (package-with-python2 python-flask-wtf))
2149 (define-public python-flask-multistatic
2151 (name "python-flask-multistatic")
2156 (uri (pypi-uri "flask-multistatic" version))
2159 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
2160 (build-system python-build-system)
2162 `(("python-flask" ,python-flask)))
2163 (home-page "https://pagure.io/flask-multistatic")
2164 (synopsis "Flask plugin to allow overriding static files")
2165 (description "@code{flask-multistatic} is a flask plugin that adds support
2166 for overriding static files.")
2167 (license license:gpl3+)))
2169 (define-public python2-flask-multistatic
2170 (package-with-python2 python-flask-multistatic))
2172 (define-public python-cookies
2174 (name "python-cookies")
2178 (uri (pypi-uri "cookies" version))
2181 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
2182 (build-system python-build-system)
2184 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
2187 `(("python-pytest" ,python-pytest)))
2188 (synopsis "HTTP cookie parser and renderer")
2189 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
2191 (home-page "https://gitlab.com/sashahart/cookies")
2192 (license license:expat)))
2194 (define-public python2-cookies
2195 (package-with-python2 python-cookies))
2197 (define-public python-responses
2199 (name "python-responses")
2203 (uri (pypi-uri "responses" version))
2206 "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah"))))
2207 (build-system python-build-system)
2209 `(;; Test suite is not distributed:
2210 ;; https://github.com/getsentry/responses/issues/38
2213 `(("python-mock" ,python-mock)))
2215 `(("python-requests" ,python-requests)
2216 ("python-cookies" ,python-cookies)
2217 ("python-six" ,python-six)))
2218 (home-page "https://github.com/getsentry/responses")
2219 (synopsis "Utility for mocking out the `requests` Python library")
2220 (description "A utility library for mocking out the `requests` Python
2222 (license license:asl2.0)))
2224 (define-public python2-responses
2225 (package-with-python2 python-responses))
2227 (define-public python-grequests
2229 (name "python-grequests")
2234 (uri (pypi-uri "grequests" version))
2237 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
2238 (build-system python-build-system)
2240 `(("python-gevent" ,python-gevent)
2241 ("python-requests" ,python-requests)))
2243 `(("python-nose" ,python-nose)
2244 ("python-zope.interface" ,python-zope-interface)
2245 ("python-zope.event" ,python-zope-event)))
2246 (home-page "https://github.com/kennethreitz/grequests")
2247 (synopsis "Python library for asynchronous HTTP requests")
2248 (description "GRequests is a Python library that allows you to use
2249 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
2250 (license license:bsd-2)))
2252 (define-public python-geventhttpclient
2254 (name "python-geventhttpclient")
2258 (uri (pypi-uri "geventhttpclient" version))
2261 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
2262 (modules '((guix build utils)))
2265 ;; Delete pre-compiled files.
2266 (for-each delete-file (find-files "src/geventhttpclient"
2269 (build-system python-build-system)
2272 (modify-phases %standard-phases
2273 (add-after 'unpack 'delete-network-tests
2275 (delete-file "src/geventhttpclient/tests/test_client.py")
2278 (lambda* (#:key inputs outputs #:allow-other-keys)
2279 (add-installed-pythonpath inputs outputs)
2280 (invoke "py.test" "src/geventhttpclient/tests" "-v"
2281 ;; Append the test modules to sys.path to avoid
2282 ;; namespace conflict which breaks SSL tests.
2283 "--import-mode=append"
2284 ;; XXX: Disable test fails with Python 3.8:
2285 ;; https://github.com/gwik/geventhttpclient/issues/119
2286 "-k" (string-append "not test_cookielib_compatibility"))
2289 `(("python-pytest" ,python-pytest)))
2291 `(("python-certifi" ,python-certifi)
2292 ("python-gevent" ,python-gevent)
2293 ("python-six" ,python-six)))
2294 (home-page "https://github.com/gwik/geventhttpclient")
2295 (synopsis "HTTP client library for gevent")
2296 (description "@code{python-geventhttpclient} is a high performance,
2297 concurrent HTTP client library for python using @code{gevent}.")
2298 (license license:expat)))
2300 (define-public python2-geventhttpclient
2301 (package-with-python2 python-geventhttpclient))
2303 (define-public python-requests-oauthlib
2305 (name "python-requests-oauthlib")
2310 (uri (pypi-uri "requests-oauthlib" version))
2313 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
2314 (build-system python-build-system)
2317 (modify-phases %standard-phases
2318 ;; removes tests that require network access
2319 (add-before 'check 'pre-check
2321 (delete-file "tests/test_core.py")
2324 `(("python-pyjwt" ,python-pyjwt)
2325 ("python-requests-mock" ,python-requests-mock)
2326 ("python-mock" ,python-mock)))
2328 `(("python-oauthlib" ,python-oauthlib)
2329 ("python-requests" ,python-requests)))
2331 "https://github.com/requests/requests-oauthlib")
2333 "OAuthlib authentication support for Requests")
2335 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
2336 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
2337 (license license:isc)))
2339 (define-public python2-requests-oauthlib
2340 (package-with-python2 python-requests-oauthlib))
2342 (define-public python-url
2348 (uri (pypi-uri "url" version))
2351 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
2352 (build-system python-build-system)
2354 `(("python-publicsuffix" ,python-publicsuffix)))
2356 `(("python-coverage" ,python-coverage)
2357 ("python-nose" ,python-nose)))
2359 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
2360 (home-page "https://github.com/seomoz/url-py")
2361 (synopsis "URL Parsing")
2362 (description "Library for parsing urls.")
2363 (license license:expat)
2364 (properties `((python2-variant . ,(delay python2-url))))))
2366 (define-public python2-url
2367 (let ((base (package-with-python2 (strip-python2-variant python-url))))
2368 (package (inherit base)
2370 `(("python2-publicsuffix" ,python2-publicsuffix))))))
2372 (define-public python-cachecontrol
2374 (name "python-cachecontrol")
2379 ;; Pypi does not have tests.
2381 (url "https://github.com/ionrock/cachecontrol")
2382 (commit (string-append "v" version))))
2383 (file-name (git-file-name name version))
2386 "03lgc65sl04n0cgzmmgg99bk83f9i6k8yrmcd4hpl46q1pymn0kz"))))
2387 (build-system python-build-system)
2389 ;; Versions > 0.11.6 depend on CherryPy for testing.
2390 ;; It's too much work to package CherryPy for now.
2393 `(("python-requests" ,python-requests)
2394 ("python-msgpack" ,python-msgpack)
2395 ("python-lockfile" ,python-lockfile)))
2396 (home-page "https://github.com/ionrock/cachecontrol")
2397 (synopsis "The httplib2 caching algorithms for use with requests")
2398 (description "CacheControl is a port of the caching algorithms in
2399 @code{httplib2} for use with @code{requests} session objects.")
2400 (license license:asl2.0)))
2402 (define-public python2-cachecontrol
2403 (package-with-python2 python-cachecontrol))
2405 (define-public python-betamax
2407 (name "python-betamax")
2412 (uri (pypi-uri "betamax" version))
2415 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
2416 (build-system python-build-system)
2418 '(;; Many tests fail because they require networking.
2421 `(("python-requests" ,python-requests)))
2422 (home-page "https://github.com/sigmavirus24/betamax")
2423 (synopsis "Record HTTP interactions with python-requests")
2424 (description "Betamax will record your test suite's HTTP interactions and
2425 replay them during future tests. It is designed to work with python-requests.")
2426 (license license:expat)))
2428 (define-public python2-betamax
2429 (package-with-python2 python-betamax))
2431 (define-public python-betamax-matchers
2433 (name "python-betamax-matchers")
2438 (uri (pypi-uri "betamax-matchers" version))
2441 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
2442 (build-system python-build-system)
2444 `(("python-betamax" ,python-betamax)
2445 ("python-requests-toolbelt" ,python-requests-toolbelt)))
2446 (home-page "https://github.com/sigmavirus24/betamax_matchers")
2447 (synopsis "VCR imitation for python-requests")
2448 (description "@code{betamax-matchers} provides a set of Matchers for
2450 (license license:asl2.0)))
2452 (define-public python2-betamax-matchers
2453 (package-with-python2 python-betamax-matchers))
2455 (define-public python-s3transfer
2457 (name "python-s3transfer")
2461 (uri (pypi-uri "s3transfer" version))
2464 "08fhj73b1ai52hrs2q3nggshq3pswn1gq8ch3m009cb2v2vmqggj"))))
2465 (build-system python-build-system)
2468 (modify-phases %standard-phases
2469 (add-after 'unpack 'patch
2471 ;; There's a small issue with one test with Python 3.8, this
2472 ;; change has been suggested upstream:
2473 ;; https://github.com/boto/s3transfer/pull/164
2474 (substitute* "tests/unit/test_s3transfer.py"
2475 (("super\\(FailedDownloadParts, self\\)\\.submit\\(function\\)")
2476 "futures.Future()"))
2480 ;; Some of the 'integration' tests require network access or
2481 ;; login credentials.
2482 (invoke "nosetests" "--exclude=integration")
2485 `(("python-docutils" ,python-docutils)
2486 ("python-mock" ,python-mock)
2487 ("python-nose" ,python-nose)))
2489 `(("python-botocore" ,python-botocore)
2490 ("python-urllib3" ,python-urllib3)))
2491 (synopsis "Amazon S3 Transfer Manager")
2492 (description "S3transfer is a Python library for managing Amazon S3
2494 (home-page "https://github.com/boto/s3transfer")
2495 (license license:asl2.0)
2496 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2498 (define-public python2-s3transfer
2499 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2503 `(("python2-futures" ,python2-futures)
2504 ,@(package-native-inputs base))))))
2506 (define-public python-slimit
2508 (name "python-slimit")
2513 (uri (pypi-uri "slimit" version ".zip"))
2516 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2517 (build-system python-build-system)
2519 `(("unzip" ,unzip)))
2521 `(("python-ply" ,python-ply)))
2522 (home-page "https://slimit.readthedocs.io/")
2523 (synopsis "JavaScript minifier, parser and lexer written in Python")
2525 "SlimIt is a JavaScript minifier written in Python. It compiles
2526 JavaScript into more compact code so that it downloads and runs faster.
2527 SlimIt also provides a library that includes a JavaScript parser, lexer,
2528 pretty printer and a tree visitor.")
2529 (license license:expat)))
2531 (define-public python-flask-restful
2533 (name "python-flask-restful")
2538 (uri (pypi-uri "Flask-RESTful" version))
2539 (patches (search-patches "python-flask-restful-werkzeug-compat.patch"))
2542 "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
2543 (build-system python-build-system)
2545 `(("python-aniso8601" ,python-aniso8601)
2546 ("python-flask" ,python-flask)
2547 ("python-pycrypto" ,python-pycrypto)
2548 ("python-pytz" ,python-pytz)))
2550 `(;; Optional dependency of Flask. Tests need it.
2551 ("python-blinker" ,python-blinker)
2552 ("python-mock" ,python-mock) ; For tests
2553 ("python-nose" ,python-nose))) ;for tests
2555 "https://www.github.com/flask-restful/flask-restful/")
2557 "Flask module for creating REST APIs")
2559 "This package contains a Flask module for creating REST APIs.")
2560 (license license:bsd-3)))
2562 (define-public python-flask-basicauth
2564 (name "python-flask-basicauth")
2569 (uri (pypi-uri "Flask-BasicAuth" version))
2572 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2573 (build-system python-build-system)
2575 `(("python-flask" ,python-flask)))
2577 "https://github.com/jpvanhal/flask-basicauth")
2579 "HTTP basic access authentication for Flask")
2581 "This package provides HTTP basic access authentication for Flask.")
2582 (license license:bsd-3)))
2584 (define-public python-flask-htpasswd
2586 (name "python-flask-htpasswd")
2591 (uri (pypi-uri "flask-htpasswd" version))
2594 "14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra"))))
2595 (build-system python-build-system)
2597 `(("python-flask" ,python-flask)
2598 ("python-itsdangerous" ,python-itsdangerous)
2599 ("python-passlib" ,python-passlib)
2600 ("python-tox" ,python-tox)))
2601 (home-page "https://github.com/carsongee/flask-htpasswd")
2602 (synopsis "Basic authentication via htpasswd files in Flask applications")
2603 (description "This package provides Basic authentication via
2604 @file{htpasswd} files and access_token authentication in Flask
2606 (license license:bsd-3)))
2608 (define-public python-flask-sqlalchemy
2610 (name "python-flask-sqlalchemy")
2614 (uri (pypi-uri "Flask-SQLAlchemy" version))
2617 "1rgsj49gnx361hnb3vn6c1h17497qh22yc3r70l1r6w0mw71bixz"))))
2618 (build-system python-build-system)
2620 `(("python-flask" ,python-flask)
2621 ("python-sqlalchemy" ,python-sqlalchemy)))
2622 (home-page "https://github.com/mitsuhiko/flask-sqlalchemy")
2623 (synopsis "Module adding SQLAlchemy support to your Flask application")
2625 "This package adds SQLAlchemy support to your Flask application.")
2626 (license license:bsd-3)))
2628 (define-public python-flask-restplus
2630 (name "python-flask-restplus")
2635 (uri (pypi-uri "flask-restplus" version))
2638 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2639 (build-system python-build-system)
2641 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2643 ;; (modify-phases %standard-phases
2646 ;; (invoke "nosetests")
2649 `(("python-aniso8601" ,python-aniso8601)
2650 ("python-flask" ,python-flask)
2651 ("python-jsonschema" ,python-jsonschema)
2652 ("python-pytz" ,python-pytz)
2653 ("python-six" ,python-six)))
2655 `(("python-tzlocal" ,python-tzlocal)
2656 ("python-blinker" ,python-blinker)
2657 ("python-nose" ,python-nose)
2658 ("python-rednose" ,python-rednose)))
2659 (home-page "https://github.com/noirbizarre/flask-restplus")
2660 (synopsis "Framework for documented API development with Flask")
2661 (description "This package provides a framework for API development with
2662 the Flask web framework in Python. It is similar to package
2663 @code{python-flask-restful} but supports the @code{python-swagger}
2664 documentation builder.")
2665 (license license:expat)))
2667 (define-public python-flask-restful-swagger
2669 (name "python-flask-restful-swagger")
2674 (uri (pypi-uri "flask-restful-swagger" version))
2677 "1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq"))))
2678 (build-system python-build-system)
2679 (arguments '(#:tests? #f)) ;no tests
2681 `(("python-flask-restful" ,python-flask-restful)))
2682 (home-page "https://github.com/rantav/flask-restful-swagger")
2683 (synopsis "Extract Swagger specs from Flask-Restful projects")
2684 (description "This package lets you extract Swagger API documentation
2685 specs from your Flask-Restful projects.")
2686 (license license:expat)))
2688 (define-public python2-flask-restful-swagger
2689 (package-with-python2 python-flask-restful-swagger))
2691 (define-public python-htmlmin
2693 (name "python-htmlmin")
2698 (uri (pypi-uri "htmlmin" version))
2701 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2703 `(#:tests? #f)) ; no tests
2704 (build-system python-build-system)
2705 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2706 (synopsis "HTML minifier")
2707 (description "@code{htmlmin} is an HTML minifier that just works.
2708 It comes with safe defaults and easily configurable options.")
2709 (license license:bsd-3)))
2711 (define-public python2-htmlmin
2712 (package-with-python2 python-htmlmin))
2714 (define-public python-flask-htmlmin
2716 (name "python-flask-htmlmin")
2721 (uri (pypi-uri "Flask-HTMLmin" version))
2724 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2726 `(("python-flask" ,python-flask)
2727 ("python-htmlmin" ,python-htmlmin)))
2728 (build-system python-build-system)
2729 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2730 (synopsis "HTML response minifier for Flask")
2732 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2733 (license license:bsd-3)))
2735 (define-public python2-flask-htmlmin
2736 (package-with-python2 python-flask-htmlmin))
2738 (define-public python-jsmin
2740 (name "python-jsmin")
2745 (uri (pypi-uri "jsmin" version))
2748 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2749 (build-system python-build-system)
2750 (home-page "https://github.com/tikitu/jsmin/")
2751 (synopsis "Python JavaScript minifier")
2753 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2754 on the command line.")
2755 (license license:expat)))
2757 (define-public python-flask-login
2759 (name "python-flask-login")
2765 (url "https://github.com/maxcountryman/flask-login")
2767 (file-name (git-file-name name version))
2769 (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
2770 (build-system python-build-system)
2772 `(("python-flask" ,python-flask)))
2775 `(("python-blinker" ,python-blinker)
2776 ("python-coverage" ,python-coverage)
2777 ("python-mock" ,python-mock)
2778 ("python-pycodestyle" ,python-pycodestyle)
2779 ("python-pyflakes" ,python-pyflakes)
2780 ("python-pytest" ,python-pytest)
2781 ("python-semantic-version" ,python-semantic-version)
2782 ("python-werkzeug" ,python-werkzeug)))
2783 (home-page "https://github.com/maxcountryman/flask-login")
2784 (synopsis "User session management for Flask")
2786 "@code{Flask-Login} provides user session management for Flask. It
2787 handles the common tasks of logging in, logging out, and remembering your
2788 users' sessions over extended periods of time.")
2789 (license license:expat)))
2791 (define-public python2-flask-login
2792 (package-with-python2 python-flask-login))
2794 (define-public python-oauth2client
2796 (name "python-oauth2client")
2801 (uri (pypi-uri "oauth2client" version))
2804 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2805 (build-system python-build-system)
2809 `(("python-httplib2" ,python-httplib2)
2810 ("python-pyasn1" ,python-pyasn1)
2811 ("python-pyasn1-modules" ,python-pyasn1-modules)
2812 ("python-rsa" ,python-rsa)
2813 ("python-six" ,python-six)))
2814 (home-page "https://github.com/google/oauth2client/")
2815 (synopsis "OAuth 2.0 client library")
2816 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2817 library for Python")
2818 (license license:asl2.0)))
2820 (define-public python2-oauth2client
2821 (package-with-python2 python-oauth2client))
2823 (define-public python-flask-oidc
2825 (name "python-flask-oidc")
2830 (uri (pypi-uri "flask-oidc" version))
2833 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
2834 (build-system python-build-system)
2836 `(("python-flask" ,python-flask)
2837 ("python-itsdangerous" ,python-itsdangerous)
2838 ("python-oauth2client" ,python-oauth2client)
2839 ("python-six" ,python-six)))
2841 `(("python-nose" ,python-nose)
2842 ("python-mock" ,python-mock)))
2843 (home-page "https://github.com/puiterwijk/flask-oidc")
2844 (synopsis "OpenID Connect extension for Flask")
2845 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2847 (license license:bsd-2)))
2849 (define-public python-webassets
2851 (name "python-webassets")
2856 (uri (pypi-uri "webassets" version))
2859 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2860 (build-system python-build-system)
2862 `(("python-jinja2" ,python-jinja2)
2863 ("python-mock" ,python-mock)
2864 ("python-nose" ,python-nose)
2865 ("python-pytest" ,python-pytest)))
2866 (home-page "https://github.com/miracle2k/webassets")
2867 (synopsis "Media asset management")
2868 (description "Merges, minifies and compresses Javascript and CSS files,
2869 supporting a variety of different filters, including YUI, jsmin, jspacker or
2870 CSS tidy. Also supports URL rewriting in CSS files.")
2871 (license license:bsd-2)))
2873 (define-public python-cssmin
2875 (name "python-cssmin")
2880 (uri (pypi-uri "cssmin" version))
2883 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2884 (build-system python-build-system)
2885 (home-page "https://github.com/zacharyvoase/cssmin")
2886 (synopsis "Python port of the YUI CSS Compressor")
2887 (description "Python port of the YUI CSS Compressor.")
2888 (license (list license:expat license:bsd-3))))
2890 (define-public python2-cssmin
2891 (package-with-python2 python-cssmin))
2893 (define-public python-elasticsearch
2895 (name "python-elasticsearch")
2900 (uri (pypi-uri "elasticsearch" version))
2903 "0rnjvlhw4v3vg14l519qliy1s1zpmx3827q0xfviwvk42rr7hh01"))))
2904 (build-system python-build-system)
2906 `(("python-mock" ,python-mock)
2907 ("python-nosexcover" ,python-nosexcover)
2908 ("python-pyaml" ,python-pyaml)
2909 ("python-requests" ,python-requests)))
2911 `(("urllib3" ,python-urllib3)))
2913 ;; tests require the test_elasticsearch module but it is not distributed.
2915 (home-page "https://github.com/elastic/elasticsearch-py")
2916 (synopsis "Low-level client for Elasticsearch")
2917 (description "Official low-level client for Elasticsearch. Its goal is to
2918 provide common ground for all Elasticsearch-related code in Python; because of
2919 this it tries to be opinion-free and very extendable.")
2920 (license license:expat)))
2922 (define-public python2-elasticsearch
2923 (package-with-python2 python-elasticsearch))
2925 (define-public python-flask-script
2927 (name "python-flask-script")
2932 (uri (pypi-uri "Flask-Script" version))
2935 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
2936 (build-system python-build-system)
2939 (modify-phases %standard-phases
2940 (add-after 'unpack 'patch-tests
2942 (substitute* "tests.py"
2943 (("flask\\.ext\\.script") "flask_script"))
2946 `(("python-flask" ,python-flask)
2947 ("python-argcomplete" ,python-argcomplete)
2948 ("python-werkzeug" ,python-werkzeug)))
2950 `(("python-pytest" ,python-pytest)))
2952 "https://github.com/smurfix/flask-script")
2953 (synopsis "Scripting support for Flask")
2954 (description "The Flask-Script extension provides support for writing
2955 external scripts in Flask. This includes running a development server,
2956 a customised Python shell, scripts to set up your database, cronjobs,
2957 and other command-line tasks that belong outside the web application
2959 (license license:bsd-3)))
2961 (define-public python2-flask-script
2962 (package-with-python2 python-flask-script))
2964 (define-public python-flask-migrate
2966 (name "python-flask-migrate")
2971 (uri (pypi-uri "Flask-Migrate" version))
2974 "1vip9ww6l18dxffjsggm83k71zkvihxpnhaswpv8klh95s6517d6"))))
2975 (build-system python-build-system)
2977 `(("python-flask" ,python-flask)
2978 ("python-alembic" ,python-alembic)
2979 ("python-sqlalchemy" ,python-sqlalchemy)
2980 ("python-flask-script" ,python-flask-script)
2981 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2982 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2983 (synopsis "SQLAlchemy database migrations for Flask programs using
2985 (description "This package contains SQLAlchemy database migration tools
2986 for Flask programs that are using @code{python-alembic}.")
2987 (license license:expat)))
2989 (define-public python-genshi
2991 (name "python-genshi")
2997 (url "https://github.com/edgewall/genshi")
2999 (file-name (git-file-name name version))
3001 (base32 "04bw7nd4wyn8ixnhik57hny2xpjjpn80k5hp6691inix5gc6rxaf"))))
3002 (build-system python-build-system)
3003 (home-page "https://genshi.edgewall.org/")
3004 (synopsis "Toolkit for generation of output for the web")
3005 (description "Genshi is a Python library that provides an integrated set
3006 of components for parsing, generating, and processing HTML, XML or other
3007 textual content for output generation on the web.")
3008 (license license:bsd-3)))
3010 (define-public python2-genshi
3011 (package-with-python2 python-genshi))
3013 (define-public python-flask-principal
3015 (name "python-flask-principal")
3020 (uri (pypi-uri "Flask-Principal" version))
3023 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
3024 (build-system python-build-system)
3026 `(("python-blinker" ,python-blinker)))
3028 `(("python-flask" ,python-flask)
3029 ("python-nose" ,python-nose)))
3030 (home-page "https://pythonhosted.org/Flask-Principal/")
3031 (synopsis "Identity management for Flask")
3032 (description "@code{flask_principal} is a identity management library for
3033 Flask. It supports managing both authentication and authorization data in a
3034 thread-local variable.")
3035 (license license:expat)))
3037 (define-public python2-flask-principal
3038 (package-with-python2 python-flask-principal))
3040 (define-public python-flask-httpauth
3042 (name "python-flask-httpauth")
3047 (uri (pypi-uri "Flask-HTTPAuth" version))
3050 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
3051 (build-system python-build-system)
3053 `(("python-flask" ,python-flask)))
3054 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
3055 (synopsis "Basic and Digest HTTP authentication for Flask routes")
3056 (description "@code{flask_httpauth} provides Basic and Digest HTTP
3057 authentication for Flask routes.")
3058 (license license:expat)))
3060 (define-public python2-flask-httpauth
3061 (package-with-python2 python-flask-httpauth))
3063 (define-public python-uritemplate
3065 (name "python-uritemplate")
3070 (uri (pypi-uri "uritemplate" version))
3073 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
3074 (build-system python-build-system)
3075 (home-page "https://uritemplate.readthedocs.org")
3076 (synopsis "Library to deal with URI Templates")
3077 (description "@code{uritemplate} provides Python library to deal with URI
3079 (license license:bsd-2)))
3081 (define-public python2-uritemplate
3082 (package-with-python2 python-uritemplate))
3084 (define-public python-publicsuffix
3086 (name "python-publicsuffix")
3090 (uri (pypi-uri "publicsuffix" version))
3093 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
3094 (build-system python-build-system)
3096 `(#:tests? #f)) ; tests use the internet
3097 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
3098 (synopsis "Get suffix for a domain name")
3099 (description "Get a public suffix for a domain name using the Public Suffix
3101 (license license:expat)))
3103 (define-public python2-publicsuffix
3104 (package-with-python2 python-publicsuffix))
3106 (define-public python-publicsuffix2
3108 (name "python-publicsuffix2")
3109 (version "2.20191221")
3113 (uri (pypi-uri "publicsuffix2" version))
3115 (base32 "0yzysvfj1najr1mb4pcqrbmjir3xpb69rlffln95a3cdm8qwry00"))))
3116 (build-system python-build-system)
3119 (modify-phases %standard-phases
3120 (add-after 'unpack 'ignore-maintainer-inputs
3122 ;; Comment out a demand for python-requests, which is used only by
3123 ;; the unused ‘update_psl’ helper command.
3124 (substitute* "setup.py"
3125 (("'requests " match)
3126 (format #f "# ~a" match)))
3128 #:tests? #f)) ; the test suite requires network access
3129 (home-page "https://github.com/pombredanne/python-publicsuffix2")
3130 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
3131 (description "Get a public suffix for a domain name using the Public Suffix
3132 List. Forked from and using the same API as the publicsuffix package.")
3133 (license (list license:expat license:mpl2.0))))
3135 (define-public python2-publicsuffix2
3136 (package-with-python2 python-publicsuffix2))
3138 (define-public python-werkzeug
3140 (name "python-werkzeug")
3145 (uri (pypi-uri "Werkzeug" version))
3148 "15kh0z61klp62mrc1prka13xsshxn0rsp1j1s2964iw86yisi6qn"))))
3149 (build-system python-build-system)
3152 (modify-phases %standard-phases
3154 (add-after 'install 'check
3155 (lambda* (#:key inputs outputs #:allow-other-keys)
3156 (add-installed-pythonpath inputs outputs)
3157 (invoke "python" "-m" "pytest"))))))
3159 `(("python-requests" ,python-requests)))
3161 `(("python-pytest" ,python-pytest)
3162 ("python-pytest-timeout" ,python-pytest-timeout)))
3163 (home-page "https://www.palletsprojects.org/p/werkzeug/")
3164 (synopsis "Utilities for WSGI applications")
3165 (description "One of the most advanced WSGI utility modules. It includes a
3166 powerful debugger, full-featured request and response objects, HTTP utilities to
3167 handle entity tags, cache control headers, HTTP dates, cookie handling, file
3168 uploads, a powerful URL routing system and a bunch of community-contributed
3170 (license license:x11)))
3172 (define-public python2-werkzeug
3173 (package-with-python2 python-werkzeug))
3175 (define-public python-bottle
3177 (name "python-bottle")
3182 (uri (pypi-uri "bottle" version))
3185 "17pn43kzr7m6czjbm4nda7kzs4ap9mmb30qfbhifyzas2i5vf688"))))
3186 (build-system python-build-system)
3187 (home-page "http://bottlepy.org/")
3188 (synopsis "WSGI framework for small web-applications.")
3189 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
3190 (license license:expat)))
3192 (define-public python2-bottle
3193 (package-with-python2 python-bottle))
3195 (define-public python-wtforms
3197 (name "python-wtforms")
3202 (uri (pypi-uri "WTForms" version ".zip"))
3205 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
3206 (build-system python-build-system)
3209 (modify-phases %standard-phases
3210 (add-after 'unpack 'remove-django-test
3211 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
3215 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
3216 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
3219 `(("unzip" ,unzip)))
3220 (home-page "http://wtforms.simplecodes.com/")
3222 "Form validation and rendering library for Python web development")
3224 "WTForms is a flexible forms validation and rendering library
3225 for Python web development. It is very similar to the web form API
3226 available in Django, but is a standalone package.")
3227 (license license:bsd-3)))
3229 (define-public python2-wtforms
3230 (package-with-python2 python-wtforms))
3232 (define-public python-paste
3234 (name "python-paste")
3239 (uri (pypi-uri "Paste" version))
3242 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
3243 (patches (search-patches "python-paste-remove-timing-test.patch"))
3244 (modules '((guix build utils)))
3247 ;; This test calls out to the internet.
3248 (delete-file "tests/test_proxy.py") #t))))
3249 (build-system python-build-system)
3251 `(("python-pytest" ,python-pytest)
3252 ("python-pytest-runner" ,python-pytest-runner)
3253 ("python-nose" ,python-nose)))
3255 `(("python-six" ,python-six)))
3256 (home-page "https://pythonpaste.readthedocs.io/")
3258 "Python web development tools, focusing on WSGI")
3260 "Paste provides a variety of web development tools and middleware which
3261 can be nested together to build web applications. Paste's design closely
3262 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
3263 (license license:expat)))
3265 (define-public python2-paste
3266 (package-with-python2 python-paste))
3268 (define-public python-pastescript
3270 (name "python-pastescript")
3275 (uri (pypi-uri "PasteScript" version))
3278 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
3279 (build-system python-build-system)
3281 `(("python-nose" ,python-nose)))
3283 `(("python-paste" ,python-paste)
3284 ("python-pastedeploy" ,python-pastedeploy)))
3285 (home-page (string-append "https://web.archive.org/web/20161025192515/"
3286 "http://pythonpaste.org/script/"))
3288 '(;; Unfortunately, this requires the latest unittest2,
3289 ;; but that requires traceback2 which requires linecache2 which requires
3290 ;; unittest2. So we're skipping tests for now.
3291 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
3292 ;; so in theory we could get around this situation somehow.)
3295 "Pluggable command line tool for serving web applications and more")
3297 "PasteScript is a plugin-friendly command line tool which provides a
3298 variety of features, from launching web applications to bootstrapping project
3300 (license license:expat)))
3302 (define-public python2-pastescript
3303 (package-with-python2 python-pastescript))
3305 (define-public python2-urlgrabber
3307 (name "python2-urlgrabber")
3312 (uri (pypi-uri "urlgrabber" version))
3314 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
3315 (build-system python-build-system)
3316 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
3317 (home-page "http://urlgrabber.baseurl.org")
3318 (synopsis "High-level cross protocol url-grabber")
3319 (description "@code{urlgrabber} is Python2 library that unifies access to
3320 files available on web, FTP or locally. It supports HTTP, FTP and file://
3321 protocols, it supports features like HTTP keep-alive, reget, throttling and
3323 (license license:lgpl2.1+)))
3325 (define-public python-pycares
3327 (name "python-pycares")
3332 (uri (pypi-uri "pycares" version))
3335 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
3336 (build-system python-build-system)
3338 `(#:tests? #f)) ;tests require internet access
3339 (home-page "https://github.com/saghul/pycares")
3340 (synopsis "Python interface for @code{c-ares}")
3341 (description "@code{pycares} is a Python module which provides an
3342 interface to @code{c-ares}, a C library that performs DNS requests and
3343 name resolutions asynchronously.")
3344 (license license:expat)))
3346 (define-public python-yarl
3348 (name "python-yarl")
3353 (uri (pypi-uri "yarl" version))
3356 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
3357 (build-system python-build-system)
3359 `(("python-pytest" ,python-pytest)
3360 ("python-pytest-runner" ,python-pytest-runner)))
3362 `(("python-idna" ,python-idna)
3363 ("python-multidict" ,python-multidict)))
3364 (home-page "https://github.com/aio-libs/yarl/")
3365 (synopsis "Yet another URL library")
3366 (description "@code{yarl} module provides handy @code{URL} class
3367 for URL parsing and changing.")
3368 (license license:asl2.0)))
3370 (define-public python-google-api-client
3372 (name "python-google-api-client")
3377 (uri (pypi-uri "google-api-python-client" version))
3380 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
3381 (build-system python-build-system)
3383 '(#:tests? #f)) ; tests require internet access
3385 `(("python-httplib2" ,python-httplib2)
3386 ("python-six" ,python-six)
3387 ("python-oauth2client" ,python-oauth2client)
3388 ("python-uritemplate" ,python-uritemplate)))
3389 (home-page "https://github.com/google/google-api-python-client")
3390 (synopsis "Core Python library for accessing Google APIs")
3391 (description "Python client library for Google's discovery based APIs")
3392 (license license:asl2.0)))
3394 (define-public python2-google-api-client
3395 (package-with-python2 python-google-api-client))
3397 (define-public python-hawkauthlib
3399 (name "python-hawkauthlib")
3404 (uri (pypi-uri "hawkauthlib" version))
3407 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
3408 (build-system python-build-system)
3410 `(("python-requests" ,python-requests)
3411 ("python-webob" ,python-webob)))
3412 (home-page "https://github.com/mozilla-services/hawkauthlib")
3413 (synopsis "Hawk Access Authentication protocol")
3415 "This is a low-level Python library for implementing Hawk Access Authentication,
3416 a simple HTTP request-signing scheme.")
3417 (license license:mpl2.0)))
3419 (define-public python-pybrowserid
3421 (name "python-pybrowserid")
3426 (uri (pypi-uri "PyBrowserID" version))
3429 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
3430 (build-system python-build-system)
3432 `(("python-requests" ,python-requests)))
3434 `(("python-mock" ,python-mock)))
3435 (home-page "https://github.com/mozilla/PyBrowserID")
3436 (synopsis "Python library for the BrowserID protocol")
3438 "This is a Python client library for the BrowserID protocol that
3439 underlies Mozilla Persona.")
3440 (license license:mpl2.0)))
3442 (define-public python-pyfxa
3444 (name "python-pyfxa")
3449 (uri (pypi-uri "PyFxA" version))
3452 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
3453 (build-system python-build-system)
3454 (arguments '(#:tests? #f)) ; 17 tests require network access
3456 `(("python-cryptography" ,python-cryptography)
3457 ("python-hawkauthlib" ,python-hawkauthlib)
3458 ("python-pybrowserid" ,python-pybrowserid)
3459 ("python-requests" ,python-requests)
3460 ("python-six" ,python-six)))
3462 `(("python-grequests" ,python-grequests)
3463 ("python-mock" ,python-mock)
3464 ("python-responses" ,python-responses)
3465 ("python-unittest2" ,python-unittest2)))
3466 (home-page "https://github.com/mozilla/PyFxA")
3467 (synopsis "Firefox Accounts client library for Python")
3469 "This is a Python library for interacting with the Firefox Accounts
3471 (license license:mpl2.0)))
3473 (define-public python-hyperlink
3475 (name "python-hyperlink")
3480 (uri (pypi-uri "hyperlink" version))
3483 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
3484 (build-system python-build-system)
3486 `(("python-idna" ,python-idna)))
3487 (home-page "https://github.com/python-hyper/hyperlink")
3488 (synopsis "Python module to create immutable URLs according to spec")
3489 (description "This package provides a Python module to create immutable, and
3490 correct URLs for Python according to RFCs 3986 and 3987.")
3491 (license license:expat)))
3493 (define-public python-treq
3495 (name "python-treq")
3500 (uri (pypi-uri "treq" version))
3503 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
3504 (build-system python-build-system)
3506 `(("python-attrs" ,python-attrs)
3507 ("python-idna" ,python-idna)
3508 ("python-incremental" ,python-incremental)
3509 ("python-requests" ,python-requests)
3510 ("python-service-identity" ,python-service-identity)
3511 ("python-twisted" ,python-twisted)))
3512 (home-page "https://github.com/twisted/treq")
3513 (synopsis "Requests-like API built on top of twisted.web's Agent")
3514 (description "This package provides an HTTP library inspired by
3515 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3516 high level API for making HTTP requests when using Twisted.")
3517 (license license:expat)))
3519 (define-public python-autobahn
3521 (name "python-autobahn")
3526 (uri (pypi-uri "autobahn" version))
3529 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3530 (build-system python-build-system)
3532 ;; The tests fail to run:
3533 ;; https://github.com/crossbario/autobahn-python/issues/1117
3536 `(("python-cffi" ,python-cffi)
3537 ("python-twisted" ,python-twisted)
3538 ("python-txaio" ,python-txaio)))
3539 (home-page "https://crossbar.io/autobahn/")
3540 (synopsis "Web Application Messaging Protocol implementation")
3541 (description "This package provides an implementation of the @dfn{Web Application
3542 Messaging Protocol} (WAMP). WAMP connects components in distributed
3543 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3544 Calls (rRPC). It is ideal for distributed, multi-client and server applications
3545 such as IoT applications or multi-user database-driven business applications.")
3546 (license license:expat)))
3548 (define-public python-ws4py
3550 (name "python-ws4py")
3555 (uri (pypi-uri "ws4py" version))
3558 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3559 (build-system python-build-system)
3562 (modify-phases %standard-phases
3563 (add-after 'unpack 'python3.7-compatibility
3565 (substitute* '("ws4py/server/tulipserver.py"
3566 "ws4py/async_websocket.py")
3568 "asyncio.ensure_future"))
3570 ;; We don't have a package for cherrypy.
3571 (add-after 'unpack 'remove-cherrypy-support
3573 (delete-file "ws4py/server/cherrypyserver.py")
3576 `(("python-gevent" ,python-gevent)
3577 ("python-tornado" ,python-tornado)))
3578 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3579 (synopsis "WebSocket client and server library")
3581 "This package provides a WebSocket client and server library for
3583 (license license:bsd-3)))
3585 (define-public python-slugify
3587 (name "python-slugify")
3592 (uri (pypi-uri "python-slugify" version))
3594 (base32 "0w22fapghmzk3xdasc4dn7h8sl58l08d1h5zbf72dh80drv1g9b9"))))
3596 `(("python-unidecode" ,python-unidecode)))
3599 (modify-phases %standard-phases
3602 (invoke "python" "test.py"))))))
3603 (build-system python-build-system)
3604 (home-page "https://github.com/un33k/python-slugify")
3605 (synopsis "Python Slugify application that handles Unicode")
3606 (description "This package provides a @command{slufigy} command and
3607 library to create slugs from unicode strings while keeping it DRY.")
3608 (license license:expat)))
3610 (define-public python-branca
3612 (name "python-branca")
3617 (uri (pypi-uri "branca" version))
3620 "0pmigd521j2228xf8x34vbx0niwvms7xl7za0lymywj0vydjqxiy"))))
3621 (build-system python-build-system)
3623 `(("python-jinja2" ,python-jinja2)
3624 ("python-six" ,python-six)))
3626 `(("python-pytest" ,python-pytest)))
3627 (home-page "https://github.com/python-visualization/branca")
3628 (synopsis "Generate complex HTML+JS pages with Python")
3629 (description "Generate complex HTML+JS pages with Python")
3630 (license license:expat)))
3632 (define-public python-tinycss2
3634 (name "python-tinycss2")
3639 (uri (pypi-uri "tinycss2" version))
3640 (patches (search-patches "python-tinycss2-flake8-compat.patch"))
3642 (base32 "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4"))))
3643 (build-system python-build-system)
3646 (modify-phases %standard-phases
3648 (lambda _ (invoke "pytest"))))))
3650 `(("python-webencodings" ,python-webencodings)))
3652 `(("python-pytest-flake8" ,python-pytest-flake8)
3653 ("python-pytest-isort" ,python-pytest-isort)
3654 ("python-pytest-runner" ,python-pytest-runner)))
3655 (home-page "https://tinycss2.readthedocs.io/")
3656 (synopsis "Low-level CSS parser for Python")
3657 (description "@code{tinycss2} can parse strings, return Python objects
3658 representing tokens and blocks, and generate CSS strings corresponding to
3661 Based on the CSS Syntax Level 3 specification, @code{tinycss2} knows the
3662 grammar of CSS but doesn’t know specific rules, properties or values supported
3663 in various CSS modules.")
3664 (license license:bsd-3)))
3666 (define-public python-cssselect2
3668 (name "python-cssselect2")
3673 (uri (pypi-uri "cssselect2" version))
3675 (base32 "0skymzb4ncrm2zdsy80f53vi0arf776lvbp51hzh4ayp1il5lj3h"))))
3676 (build-system python-build-system)
3679 (modify-phases %standard-phases
3681 (lambda _ (invoke "pytest"))))))
3683 `(("python-tinycss2" ,python-tinycss2)))
3685 `(("python-pytest-cov" ,python-pytest-cov)
3686 ("python-pytest-flake8" ,python-pytest-flake8)
3687 ("python-pytest-isort" ,python-pytest-isort)
3688 ("python-pytest-runner" ,python-pytest-runner)))
3689 (home-page "https://cssselect2.readthedocs.io/")
3690 (synopsis "CSS selectors for Python ElementTree")
3691 (description "@code{cssselect2} is a straightforward implementation of
3692 CSS3 Selectors for markup documents (HTML, XML, etc.) that can be read by
3693 ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.).
3695 Unlike the Python package @code{cssselect}, it does not translate selectors to
3696 XPath and therefore does not have all the correctness corner cases that are
3697 hard or impossible to fix in cssselect.")
3698 (license license:bsd-3)))
3700 (define-public gunicorn
3707 (uri (pypi-uri "gunicorn" version))
3710 "09n6fc019bgrvph1s5h1lwhn2avcsprw6ncd203qhra3i8mvn10r"))))
3711 (outputs '("out" "doc"))
3712 (build-system python-build-system)
3715 (modify-phases %standard-phases
3716 (add-after 'build 'build-doc
3718 (invoke "make" "-C" "docs" "PAPER=a4" "html" "info")
3719 (delete-file "docs/build/texinfo/Makefile")
3720 (delete-file "docs/build/texinfo/Gunicorn.texi")
3724 (setenv "PYTHONPATH"
3725 (string-append ".:" (getenv "PYTHONPATH")))
3727 (add-after 'install 'install-doc
3728 (lambda* (#:key outputs #:allow-other-keys)
3729 (let* ((doc (string-append (assoc-ref outputs "doc")
3730 "/share/doc/" ,name "-" ,version))
3731 (html (string-append doc "/html"))
3732 (info (string-append doc "/info"))
3733 (examples (string-append doc "/examples")))
3737 (copy-recursively "docs/build/html" html)
3738 (copy-recursively "docs/build/texinfo" info)
3739 (copy-recursively "examples" examples)
3740 (for-each (lambda (file)
3741 (copy-file file (string-append doc "/" file)))
3742 '("README.rst" "NOTICE" "LICENSE" "THANKS")))
3745 `(("binutils" ,binutils) ;; for ctypes.util.find_library()
3746 ("python-aiohttp", python-aiohttp)
3747 ("python-pytest" ,python-pytest)
3748 ("python-pytest-cov" ,python-pytest-cov)
3749 ("python-sphinx" ,python-sphinx)
3750 ("texinfo" ,texinfo)))
3751 (home-page "https://gunicorn.org/")
3752 (synopsis "Python WSGI HTTP Server for UNIX")
3753 (description "Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP
3754 Server for UNIX. It’s a pre-fork worker model ported from Ruby’s
3755 Unicorn project. The Gunicorn server is broadly compatible with
3756 various web frameworks, simply implemented, light on server resources,
3757 and fairly speedy.")
3758 (license license:expat)))
3760 ;; break cyclic dependency for python-aiohttp, which depends on gunicorn for
3762 (define-public gunicorn-bootstrap
3766 (arguments `(#:tests? #f))
3767 (properties '((hidden? . #t)))
3768 (native-inputs `())))
3770 (define-public python-translation-finder
3772 (name "python-translation-finder")
3777 (uri (pypi-uri "translation-finder" version))
3780 "1pcy9z8gmb8x41gjhw9x0lkr0d2mv5mdxcs2hwg6q8mxs857j589"))))
3781 (build-system python-build-system)
3784 (modify-phases %standard-phases
3785 (add-before 'build 'remove-failing-test
3787 (delete-file "translation_finder/test_api.py")
3790 `(("python-chardet" ,python-chardet)
3791 ("python-pathlib2" ,python-pathlib2)
3792 ("python-ruamel.yaml" ,python-ruamel.yaml)
3793 ("python-six" ,python-six)))
3795 `(("python-codecov" ,python-codecov)
3796 ("python-codacy-coverage" ,python-codacy-coverage)
3797 ("python-pytest-cov" ,python-pytest-cov)
3798 ("python-pytest-runner" ,python-pytest-runner)
3799 ("python-twine" ,python-twine)))
3800 (home-page "https://weblate.org/")
3801 (synopsis "Translation file finder for Weblate")
3802 (description "This package provides a function to find translation file in
3803 the source code of a project. It supports many translation file formats and
3804 is part of the Weblate translation platform.")
3805 (license license:gpl3+)))
3807 (define-public python-gitlab
3809 (name "python-gitlab")
3814 (uri (pypi-uri "python-gitlab" version))
3817 "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5"))))
3818 (build-system python-build-system)
3820 `(("python-requests" ,python-requests)
3821 ("python-six" ,python-six)))
3823 `(("python-httmock" ,python-httmock)
3824 ("python-mock" ,python-mock)))
3826 "https://github.com/python-gitlab/python-gitlab")
3827 (synopsis "Interact with GitLab API")
3828 (description "This package provides an extended library for interacting
3829 with GitLab instances through their API.")
3830 (license license:lgpl3+)))
3832 (define-public python-path-and-address
3834 (name "python-path-and-address")
3838 ;; The source distributed on PyPI doesn't include tests.
3841 (url "https://github.com/joeyespo/path-and-address")
3842 (commit (string-append "v" version))))
3843 (file-name (git-file-name name version))
3846 "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6"))))
3847 (build-system python-build-system)
3850 (modify-phases %standard-phases
3852 (lambda* (#:key inputs outputs #:allow-other-keys)
3853 (add-installed-pythonpath inputs outputs)
3854 (invoke "py.test"))))))
3856 `(("python-pytest" ,python-pytest)))
3857 (home-page "https://github.com/joeyespo/path-and-address")
3858 (synopsis "Functions for command-line server tools used by humans")
3859 (description "Path-and-address resolves ambiguities of command-line
3860 interfaces, inferring which argument is the path, and which is the address.")
3861 (license license:expat)))
3864 ;; No release by upstream for quite some time, some bugs fixed since. See:
3865 ;; https://github.com/joeyespo/grip/issues/304
3866 (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3"))
3869 (version (git-version "4.5.2" "1" commit))
3874 (url "https://github.com/joeyespo/grip")
3876 (file-name (git-file-name name version))
3879 "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w"))))
3880 (build-system python-build-system)
3882 `(("python-docopt" ,python-docopt)
3883 ("python-flask" ,python-flask)
3884 ("python-markdown" ,python-markdown)
3885 ("python-path-and-address" ,python-path-and-address)
3886 ("python-pygments" ,python-pygments)
3887 ("python-requests" ,python-requests)))
3889 `(("python-pytest" ,python-pytest)
3890 ("python-responses" ,python-responses)))
3893 (modify-phases %standard-phases
3895 (lambda* (#:key inputs outputs #:allow-other-keys)
3896 (add-installed-pythonpath inputs outputs)
3897 (setenv "PATH" (string-append
3899 (assoc-ref %outputs "out") "/bin"))
3900 (invoke "py.test" "-m" "not assumption"))))))
3901 (home-page "https://github.com/joeyespo/grip")
3902 (synopsis "Preview Markdown files using the GitHub API")
3903 (description "Grip is a command-line server application written in Python
3904 that uses the GitHub Markdown API to render a local Markdown file. The styles
3905 and rendering come directly from GitHub, so you'll know exactly how it will
3906 appear. Changes you make to the file will be instantly reflected in the browser
3907 without requiring a page refresh.")
3908 (license license:expat))))
3910 (define-public python-port-for
3912 (name "python-port-for")
3917 (uri (pypi-uri "port-for" version))
3920 "1pncxlj25ggw99r0ijfbkq70gd7cbhqdx5ivsxy4jdp0z14cpda7"))))
3921 (build-system python-build-system)
3924 (modify-phases %standard-phases
3925 (add-after 'unpack 'use-urllib3
3927 (substitute* "port_for/_download_ranges.py"
3928 (("urllib2") "urllib3"))
3931 `(("python-urllib3" ,python-urllib3)))
3933 `(("python-mock" ,python-mock)))
3934 (home-page "https://github.com/kmike/port-for/")
3935 (synopsis "TCP localhost port finder and association manager")
3937 "This package provides a utility that helps with local TCP ports
3938 management. It can find an unused TCP localhost port and remember the
3940 (license license:expat)))
3942 (define-public python-livereload
3944 (name "python-livereload")
3949 (uri (pypi-uri "livereload" version))
3952 "0rhggz185bxc3zjnfpmhcvibyzi86i624za1lfh7x7ajsxw4y9c9"))))
3953 (build-system python-build-system)
3955 `(("python-six" ,python-six)
3956 ("python-tornado" ,python-tornado)))
3957 (home-page "https://github.com/lepture/python-livereload")
3958 (synopsis "Python LiveReload")
3960 "Python LiveReload provides a command line utility, @command{livereload},
3961 for starting a web server in a directory. It can trigger arbitrary commands
3962 and serve updated contents upon changes to the directory.")
3963 (license license:bsd-3)))
3965 (define-public python-vf-1
3967 (name "python-vf-1")
3972 (uri (pypi-uri "VF-1" version))
3975 "0xlqsaxsiayk1sd07kpz8abbcnab582y29a1y4882fq6j4gma5xi"))))
3976 (build-system python-build-system)
3977 (home-page "https://github.com/solderpunk/VF-1")
3978 (synopsis "Command line gopher client")
3979 (description "@code{VF-1} is a command line gopher client with
3980 @acronym{TLS, Transport Layer Security} support.")
3981 (license license:bsd-2)))
3983 (define-public python-websockets
3985 (name "python-websockets")
3990 (uri (pypi-uri "websockets" version))
3993 "03s3ml6sbki24aajllf8aily0xzrn929zxi84p50zkkbikdd4raw"))))
3994 (build-system python-build-system)
3995 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
3996 (home-page "https://github.com/aaugustin/websockets")
3998 "Python implementation of the WebSocket Protocol (RFC 6455 & 7692)")
4000 "@code{websockets} is a library for building WebSocket servers and clients
4001 in Python with a focus on correctness and simplicity.
4003 Built on top of @code{asyncio}, Python's standard asynchronous I/O framework,
4004 it provides an elegant coroutine-based API.")
4005 (license license:bsd-3)))
4007 (define-public python-selenium
4009 (name "python-selenium")
4014 (uri (pypi-uri "selenium" version))
4017 "039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy"))))
4018 (build-system python-build-system)
4020 `(("python-urllib3" ,python-urllib3)))
4022 "https://github.com/SeleniumHQ/selenium/")
4023 (synopsis "Python bindings for Selenium")
4024 (description "Selenium enables web browser automation.
4025 Selenium specifically provides infrastructure for the W3C WebDriver specification
4026 — a platform and language-neutral coding interface compatible with all
4027 major web browsers.")
4028 (license license:asl2.0)))
4030 (define-public python-rapidjson
4032 (name "python-rapidjson")
4037 (uri (pypi-uri "python-rapidjson" version))
4040 "18cl2dhx3gds5vg52jxmh9wjlbiy8dx06c3n482rfpdi9dzbv05d"))
4041 (modules '((guix build utils)))
4043 '(begin (delete-file-recursively "rapidjson") #t))))
4044 (build-system python-build-system)
4047 (list (string-append "--rj-include-dir="
4048 (assoc-ref %build-inputs "rapidjson")
4049 "/include/rapidjson"))
4051 (modify-phases %standard-phases
4053 (lambda* (#:key inputs #:allow-other-keys)
4054 (invoke "python" "setup.py" "build"
4055 (string-append "--rj-include-dir="
4056 (assoc-ref %build-inputs "rapidjson")
4057 "/include/rapidjson"))))
4059 (lambda* (#:key inputs outputs #:allow-other-keys)
4060 (add-installed-pythonpath inputs outputs)
4061 ;; Some tests are broken.
4062 (delete-file "tests/test_base_types.py")
4063 (delete-file "tests/test_validator.py")
4064 (invoke "python" "-m" "pytest" "tests"))))))
4066 `(("rapidjson" ,rapidjson)
4067 ("python-pytest" ,python-pytest)
4068 ("python-pytz" ,python-pytz)))
4069 (home-page "https://github.com/python-rapidjson/python-rapidjson")
4070 (synopsis "Python wrapper around rapidjson")
4071 (description "This package provides a python wrapper around rapidjson.")
4072 (license license:expat)))
4074 (define-public python-venusian
4076 (name "python-venusian")
4081 (uri (pypi-uri "venusian" version))
4083 (base32 "0f7f67dkgxxcjfhpdd5frb9pszkf04lyzzpn5069q0xi89r2p17n"))))
4084 (build-system python-build-system)
4086 `(("python-pytest" ,python-pytest)
4087 ("python-runner" ,python-pytest-runner)
4088 ("python-pytest-cov" ,python-pytest-cov)))
4089 (arguments '(#:test-target "pytest"))
4090 (home-page "https://docs.pylonsproject.org/projects/venusian")
4091 (synopsis "Library for defering decorator actions")
4093 "Venusian is a library which allows framework authors to defer decorator
4094 actions. Instead of taking actions when a function (or class) decorator is
4095 executed at import time, you can defer the action usually taken by the
4096 decorator until a separate scan phase.")
4097 (license license:repoze)))
4099 (define-public python-zope-deprecation
4101 (name "python-zope-deprecation")
4105 (uri (pypi-uri "zope.deprecation" version))
4108 "1pz2cv7gv9y1r3m0bdv7ks1alagmrn5msm5spwdzkb2by0w36i8d"))))
4109 (build-system python-build-system)
4111 (propagated-inputs `())
4112 (home-page "https://zopedeprecation.readthedocs.io/")
4113 (synopsis "Function for marking deprecations")
4114 (description "The @code{zope.deprecation} module provides a function for
4115 marking modules, classes, functions, methods and properties as deprecated,
4116 displaying warnings when usaged in application code.")
4117 (license license:zpl2.1)))
4119 (define-public python-translationstring
4121 (name "python-translationstring")
4125 (uri (pypi-uri "translationstring" version))
4128 "0bdpcnd9pv0131dl08h4zbcwmgc45lyvq3pa224xwan5b3x4rr2f"))))
4129 (build-system python-build-system)
4130 (home-page "http://docs.pylonsproject.org/projects/translationstring")
4131 (synopsis "Internationalization tooling for the Pylons project")
4132 (description "This package provides a library used by various Pylons
4133 project packages for internationalization (i18n) duties related to
4135 (license license:repoze)))
4137 (define-public python-plaster
4139 (name "python-plaster")
4143 (uri (pypi-uri "plaster" version))
4146 "1hy8k0nv2mxq94y5aysk6hjk9ryb4bsd13g83m60hcyzxz3wflc3"))))
4147 (build-system python-build-system)
4149 `(("python-pytest" ,python-pytest)))
4150 (home-page "https://docs.pylonsproject.org/projects/plaster/en/latest/")
4151 (synopsis "Configuration loader for multiple config file formats")
4153 "Plaster is a loader interface around multiple config file formats. It
4154 exists to define a common API for applications to use when they wish to load
4155 configuration. The library itself does not aim to handle anything except a
4156 basic API that applications may use to find and load configuration settings.
4157 Any specific constraints should be implemented in a pluggable loader which can
4158 be registered via an entrypoint.")
4159 (license license:repoze)))
4161 (define-public python-plaster-pastedeploy
4163 (name "python-plaster-pastedeploy")
4167 (uri (pypi-uri "plaster_pastedeploy" version))
4170 "1zg7gcsvc1kzay1ry5p699rg2qavfsxqwl17mqxzr0gzw6j9679r"))))
4171 (build-system python-build-system)
4173 `(("python-pytest" ,python-pytest)))
4175 `(("python-plaster" ,python-plaster)
4176 ("python-pastedeploy" ,python-pastedeploy)))
4177 (home-page "https://github.com/Pylons/plaster_pastedeploy")
4178 (synopsis "Plugin for python-plaster adding PasteDeploy syntax")
4180 "This plugin for @code{python-plaster} adds support for PasteDeploy
4181 syntax, it provides a plaster @code{Loader} object that can parse ini files
4182 according to the standard set by PasteDeploy ")
4183 (license license:expat)))
4185 (define-public python-hupper
4187 (name "python-hupper")
4191 (uri (pypi-uri "hupper" version))
4194 "0am0p6g5cz6xmcaf04xq8q6dzdd9qz0phj6gcmpsckf2mcyza61q"))))
4195 (build-system python-build-system)
4196 (arguments '(#:test-target "pytest"))
4198 `(("python-pytest" ,python-pytest)
4199 ("python-pytest-runner" ,python-pytest-runner)
4200 ("python-watchdog" ,python-watchdog)
4201 ("python-mock" ,python-mock)
4202 ("python-pytest-cov" ,python-pytest-cov)))
4204 `(("python-pytz" ,python-pytz)))
4205 (home-page "https://readthedocs.org/projects/hupper")
4206 (synopsis "Integrated process monitor tracking changes to imported Python files")
4208 "Hupper is an integrated process monitor that will track changes to any
4209 imported Python files in sys.modules as well as custom paths. When files are
4210 changed the process is restarted.")
4211 (license license:expat)))
4213 (define-public python-pyramid
4215 (name "python-pyramid")
4219 (uri (pypi-uri "pyramid" version))
4222 "0rkxs1ajycg2zh1c94xlmls56mx5m161sn8112skj0amza6cn36q"))))
4223 (build-system python-build-system)
4225 `(("python-hupper" ,python-hupper)
4226 ("python-plaster-pastedeploy" ,python-plaster-pastedeploy)
4227 ("python-translationstring" ,python-translationstring)
4228 ("python-venusian" ,python-venusian)
4229 ("python-webob" ,python-webob)
4230 ("python-zope-deprecation" ,python-zope-deprecation)
4231 ("python-zope-interface" ,python-zope-interface)
4232 ("python-webtest" ,python-webtest)
4233 ("python-zope-component" ,python-zope-component)
4234 ("python-plaster" ,python-plaster)))
4235 (home-page "https://trypyramid.com/")
4236 (synopsis "Python web-framework suitable for small and large sites")
4238 "Pyramid makes it easy to write web applications. From minimal
4239 request/response web apps to larger, grown applications.")
4240 (license license:repoze)))
4242 (define-public python-random-user-agent
4244 (name "python-random-user-agent")
4249 (uri (pypi-uri "random_user_agent" version))
4252 "04nhzdh2ki7ybhjrmghxci6hcm6i03vvin2q2ynj87fbr1pa534g"))))
4253 (build-system python-build-system)
4254 (home-page "https://github.com/Luqman-Ud-Din/random_user_agent")
4255 (synopsis "List of user agents")
4257 "This package provides a list of user agents, from a collection of more
4258 than 326,000 known user-agents. Users can pick a random one, or select one
4260 (license license:expat)))
4262 (define-public python-flask-restx
4264 (name "python-flask-restx")
4267 ;; We fetch from the Git repo because there are no tests in the PyPI
4272 (url "https://github.com/python-restx/flask-restx")
4274 (file-name (git-file-name name version))
4276 (base32 "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7"))))
4277 (build-system python-build-system)
4279 `(("python-aniso8601" ,python-aniso8601)
4280 ("python-flask" ,python-flask)
4281 ("python-jsonschema" ,python-jsonschema)
4282 ("python-pytz" ,python-pytz)))
4284 `(("python-blinker" ,python-blinker)
4285 ("python-faker" ,python-faker)
4286 ("python-pytest" ,python-pytest)
4287 ("python-pytest-benchmark"
4288 ,python-pytest-benchmark)
4289 ("python-pytest-flask" ,python-pytest-flask)
4290 ("python-pytest-mock" ,python-pytest-mock)))
4293 (modify-phases %standard-phases
4296 (invoke "pytest" "--benchmark-skip" "-k"
4297 ;; Those tests need internet access
4298 "not test_check and not test_valid_value_check"))))))
4299 (home-page "https://github.com/python-restx/flask-restx")
4301 "Framework for fast, easy and documented API development with Flask")
4303 "Flask-RESTX is an extension for Flask that adds support for quickly building
4304 REST APIs. Flask-RESTX encourages best practices with minimal setup. If you are familiar
4305 with Flask, Flask-RESTX should be easy to pick up. It provides a coherent collection of
4306 decorators and tools to describe your API and expose its documentation properly using
4308 (license license:bsd-3)))
4310 (define-public python-manuel
4312 (name "python-manuel")
4317 (uri (pypi-uri "manuel" version))
4320 "1bdzay7j70fly5fy6wbdi8fbrxjrrlxnxnw226rwry1c8a351rpy"))))
4321 (build-system python-build-system)
4323 `(("python-six" ,python-six)))
4325 `(("python-zope-testing" ,python-zope-testing)))
4326 (home-page "https://pypi.org/project/manuel/")
4327 (synopsis "Build tested documentation")
4329 "Manuel lets you mix and match traditional doctests with custom test syntax.")
4330 (license license:asl2.0)))
4332 (define-public python-persistent
4334 (name "python-persistent")
4339 (uri (pypi-uri "persistent" version))
4342 "0imm9ji03lhkpcfmhid7x5209ix8g2rlgki9ik1qxks4b8sm8gzq"))))
4343 (build-system python-build-system)
4345 `(("python-cffi" ,python-cffi)
4346 ("python-zope-interface" ,python-zope-interface)))
4348 `(("python-manuel" ,python-manuel)
4349 ("python-zope-testrunner" ,python-zope-testrunner)))
4350 (home-page "https://github.com/zopefoundation/persistent/")
4351 (synopsis "Translucent persistent objects")
4352 (description "This package contains a generic persistence implementation for
4353 Python. It forms the core protocol for making objects interact
4354 \"transparently\" with a database such as the ZODB.")
4355 (license license:zpl2.1)))
4357 (define-public python-btrees
4359 (name "python-btrees")
4364 (uri (pypi-uri "BTrees" version))
4367 "0iiq0g9k1g6qgqq84q9h6639vlvzznk1rgdm0rfcnnqkbkmsbr3w"))))
4368 (build-system python-build-system)
4370 `(("python-persistent" ,python-persistent)
4371 ("python-zope-interface" ,python-zope-interface)))
4373 `(("python-persistent" ,python-persistent)
4374 ("python-transaction" ,python-transaction)
4375 ("python-zope-testrunner" ,python-zope-testrunner)))
4376 (home-page "https://github.com/zopefoundation/BTrees")
4377 (synopsis "Scalable persistent object containers")
4379 "This package contains a set of persistent object containers built around a
4380 modified BTree data structure. The trees are optimized for use inside ZODB's
4381 \"optimistic concurrency\" paradigm, and include explicit resolution of
4382 conflicts detected by that mechanism.")
4383 (license license:zpl2.1)))
4385 (define-public python-transaction
4387 (name "python-transaction")
4392 (uri (pypi-uri "transaction" version))
4395 "0bdaks31bgfh78wnj3sij24bfysmqk25crsis6amz8kzrc0d82iv"))))
4396 (build-system python-build-system)
4398 `(("python-zope-interface" ,python-zope-interface)))
4400 `(("python-coverage" ,python-coverage)
4401 ("python-mock" ,python-mock)
4402 ("python-nose" ,python-nose)))
4403 (home-page "https://github.com/zopefoundation/transaction")
4404 (synopsis "Transaction management for Python")
4405 (description "This package contains a generic transaction implementation
4406 for Python. It is mainly used by the ZODB.")
4407 (license license:zpl2.1)))
4409 (define-public python-robot-detection
4411 (name "python-robot-detection")
4416 (uri (pypi-uri "robot-detection" version))
4419 "1xd2jm3yn31bnk1kqzggils2rxj26ylxsfz3ap7bhr3ilhnbg3rx"))))
4420 (build-system python-build-system)
4421 (arguments '(#:tests? #f)) ; Tests not shipped in pypi release.
4422 (propagated-inputs `(("python-six" ,python-six)))
4423 (home-page "https://github.com/rory/robot-detection")
4424 (synopsis "Detect web crawlers")
4426 "@code{robot_detection} is a python module to detect if a given HTTP User
4427 Agent is a web crawler. It uses the list of registered robots from
4428 @url{http://www.robotstxt.org}.")
4429 (license license:gpl3+)))
4431 (define-public python-pysolr
4433 (name "python-pysolr")
4438 (uri (pypi-uri "pysolr" version))
4441 "1rj5jmscvxjwcmlfi6hmkj44l4x6n3ln5p7d8d18j566hzmmzw3f"))))
4442 (build-system python-build-system)
4444 '(#:tests? #f)) ; Tests require network access.
4446 `(("python-requests" ,python-requests)))
4448 `(("python-setuptools-scm" ,python-setuptools-scm)))
4449 (home-page "https://github.com/django-haystack/pysolr/")
4450 (synopsis "Lightweight python wrapper for Apache Solr")
4452 "This module provides an interface that queries the Apache Solr server
4453 using a pure Python implementation.")
4454 (license license:bsd-3)))
4456 (define-public python-http-ece
4458 (name "python-http-ece")
4464 (url "https://github.com/web-push-libs/encrypted-content-encoding")
4465 (commit (string-append "v" version))))
4466 (file-name (git-file-name name version))
4469 "0bp4cc0xc123i72h80ax3qz3ixfwx3j7pw343kc7i6kdvfi8klx7"))))
4470 (build-system python-build-system)
4473 (modify-phases %standard-phases
4474 (add-after 'unpack 'change-directory
4475 (lambda _ (chdir "python") #t)))))
4477 `(("python-cryptography" ,python-cryptography)))
4479 `(("python-coverage" ,python-coverage)
4480 ("python-flake8" ,python-flake8)
4481 ("python-mock" ,python-mock)
4482 ("python-nose" ,python-nose)))
4483 (home-page "https://github.com/web-push-libs/encrypted-content-encoding")
4484 (synopsis "Encrypted Content Encoding for HTTP")
4486 "This package provices a simple implementation of Encrypted Content
4487 Encoding for HTTP.")
4488 (license license:expat)))