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-h11
537 (uri (pypi-uri "h11" version))
539 (base32 "1qfad70h59hya21vrzz8dqyyaiqhac0anl2dx3s3k80gpskvrm1k"))))
540 (build-system python-build-system)
543 (modify-phases %standard-phases
546 (invoke "pytest" "-vv"))))))
548 `(("python-pytest" ,python-pytest)))
549 (home-page "https://github.com/python-hyper/h11")
550 (synopsis "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1")
552 "This is a little HTTP/1.1 library written from scratch in Python, heavily
553 inspired by hyper-h2. It's a bring-your-own-I/O library; h11 contains no IO
554 code whatsoever. This means you can hook h11 up to your favorite network API,
555 and that could be anything you want.")
556 (license license:expat)))
558 (define-public python-h2
565 (uri (pypi-uri "h2" version))
567 (base32 "051gg30aca26rdxsmr9svwqm06pdz9bv21ch4n0lgi7jsvml2pw7"))))
568 (build-system python-build-system)
571 (modify-phases %standard-phases
573 (lambda* (#:key inputs outputs #:allow-other-keys)
574 (add-installed-pythonpath inputs outputs)
575 (invoke "pytest" "-vv" "test"))))))
577 `(("python-pytest" ,python-pytest)))
579 `(("python-hpack" ,python-hpack)
580 ("python-hyperframe" ,python-hyperframe)))
581 (home-page "https://github.com/python-hyper/hyper-h2")
582 (synopsis "HTTP/2 State-Machine based protocol implementation")
584 "This module contains a pure-Python implementation of a HTTP/2 protocol
585 stack. It does not provide a parsing layer, a network layer, or any rules
586 about concurrency. Instead, it's a purely in-memory solution, defined in
587 terms of data actions and HTTP/2 frames. This is one building block of a full
588 Python HTTP implementation.")
589 (license license:expat)))
591 (define-public python-sockjs-tornado
593 (name "python-sockjs-tornado")
598 (uri (pypi-uri "sockjs-tornado" version))
601 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
602 (build-system python-build-system)
604 `(;; There are no tests, and running the test phase requires missing
608 `(("python-tornado" ,python-tornado)))
609 (home-page "https://github.com/mrjoes/sockjs-tornado/")
611 "SockJS Python server implementation on top of the Tornado framework")
613 "SockJS-tornado provides the server-side counterpart to a SockJS client
614 library, through the Tornado framework.
616 SockJS provides a low-latency, full-duplex, cross-domain communication channel
617 between a web browser and web server.")
618 (license license:expat)))
620 (define-public python2-sockjs-tornado
621 (package-with-python2 python-sockjs-tornado))
623 (define-public python-flask-babel
625 (name "python-flask-babel")
630 (uri (pypi-uri "Flask-Babel" version))
633 "0gmb165vkwv5v7dxsxa2i3zhafns0fh938m2zdcrv4d8z5l099yn"))))
634 (build-system python-build-system)
636 '(#:phases (modify-phases %standard-phases
639 (with-directory-excursion "tests"
640 (invoke "python" "tests.py")))))))
642 `(("python-flask" ,python-flask)
643 ("python-babel" ,python-babel)
644 ("python-jinja2" ,python-jinja2)
645 ("python-pytz" ,python-pytz)))
646 (home-page "https://github.com/python-babel/flask-babel")
647 (synopsis "Add i18n/l10n support to Flask applications")
648 (description "This package implements internationalization and localization
649 support for Flask. This is based on the Python babel module as well as pytz -
650 both of which are installed automatically if you install this library.")
651 (license license:bsd-3)))
653 (define-public python2-flask-babel
654 (package-with-python2 python-flask-babel))
656 (define-public python-html5lib
658 (name "python-html5lib")
663 (uri (pypi-uri "html5lib" version))
666 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
667 (build-system python-build-system)
669 `(("python-six" ,python-six)
670 ("python-webencodings" ,python-webencodings)))
672 `(#:test-target "check"))
674 "https://github.com/html5lib/html5lib-python")
676 "Python HTML parser based on the WHATWG HTML specifcation")
678 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
679 and written in Python.")
680 (license license:expat)))
682 (define-public python2-html5lib
683 (package-with-python2 python-html5lib))
685 ;; Needed for python-bleach, a dependency of python-notebook
686 (define-public python-html5lib-0.9
688 (inherit python-html5lib)
693 (uri (pypi-uri "html5lib" version))
696 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
698 (define-public python2-html5lib-0.9
699 (package-with-python2 python-html5lib-0.9))
701 (define-public python-html5-parser
703 (name "python-html5-parser")
707 (uri (pypi-uri "html5-parser" version))
710 "13yl3vnf3sxl05m0nhpngnrz3g1jvyahd33lys3m3hfb91l8zzi5"))))
711 (build-system python-build-system)
713 `(("pkg-config" ,pkg-config)))
715 `(("libxml2" ,libxml2)))
717 `(("python-lxml" ,python-lxml)
718 ("python-beautifulsoup4" ,python-beautifulsoup4)))
719 (home-page "https://html5-parser.readthedocs.io")
720 (synopsis "Fast C-based HTML5 parsing for Python")
721 (description "This package provides a fast implementation of the HTML5
722 parsing spec for Python. Parsing is done in C using a variant of the gumbo
723 parser. The gumbo parse tree is then transformed into an lxml tree, also in
724 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
725 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
726 ;; indicate ASL2.0, including the LICENSE file for the whole project.
727 (license (list license:asl2.0 license:gpl3))))
729 (define-public python2-html5-parser
730 (package-with-python2 python-html5-parser))
732 (define-public python-pycurl
734 (name "python-pycurl")
739 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
742 (base32 "1cwlb76vddqp2mxqvjbhf367caddzy82rhangddjjhjqaj8x4zgc"))))
743 (build-system python-build-system)
745 ;; The tests attempt to access external web servers, so we cannot run
746 ;; them. Furthermore, they are skipped altogether when using Python 2.
748 #:phases (modify-phases %standard-phases
749 (add-before 'build 'configure-tls-backend
751 ;; XXX: PycURL fails to automatically determine which TLS
752 ;; backend to use when cURL is built with --disable-static.
753 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
754 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
757 `(("python-nose" ,python-nose)
758 ("python-bottle" ,python-bottle)))
762 (home-page "http://pycurl.io/")
763 (synopsis "Lightweight Python wrapper around libcurl")
764 (description "Pycurl is a lightweight wrapper around libcurl. It provides
765 high-speed transfers via libcurl and frequently outperforms alternatives.")
767 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
768 ;; under the terms of LGPLv2.1+ or Expat.
769 (license (list license:lgpl2.1+ license:expat))))
771 (define-public python2-pycurl
772 (package-with-python2 python-pycurl))
774 (define-public python-webencodings
776 (name "python-webencodings")
780 (uri (pypi-uri "webencodings" version))
783 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
784 (build-system python-build-system)
787 (modify-phases %standard-phases
790 (invoke "py.test" "-v" "webencodings/tests.py")
793 `(("python-pytest" ,python-pytest)))
794 (home-page "https://github.com/SimonSapin/python-webencodings")
795 (synopsis "Character encoding aliases for legacy web content")
797 "In order to be compatible with legacy web content when interpreting
798 something like @code{Content-Type: text/html; charset=latin1}, tools need
799 to use a particular set of aliases for encoding labels as well as some
800 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
801 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
802 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
803 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
804 defines all such details so that implementations do not have to
805 reverse-engineer each other.
807 This module implements the Encoding standard and has encoding labels and
808 BOM detection, but the actual implementation for encoders and decoders
810 (license license:bsd-3)))
812 (define-public python2-webencodings
813 (package-with-python2 python-webencodings))
815 (define-public python-openid
817 (name "python-openid")
822 (uri (pypi-uri "python3-openid" version))
825 "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
826 (build-system python-build-system)
829 (modify-phases %standard-phases
832 (invoke "coverage" "run" "-m"
833 "unittest" "openid.test.test_suite"))))))
834 (properties `((python2-variant . ,(delay python2-openid))))
836 `(("python-defusedxml" ,python-defusedxml)))
838 `(("python-coverage" ,python-coverage)
839 ("python-psycopg2" ,python-psycopg2)
840 ("python-django" ,python-django)))
841 (home-page "https://github.com/necaris/python3-openid")
842 (synopsis "OpenID support for servers and consumers")
843 (description "This library provides OpenID authentication for Python, both
844 for clients and servers.")
845 (license license:asl2.0)))
847 (define-public python2-openid
849 (name "python2-openid")
854 (uri (pypi-uri "python-openid" version))
857 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
858 (build-system python-build-system)
860 ;; Python 3 support is in `python3-openid`, a separate package.
862 ;; Tests aren't initialized correctly.
864 (home-page "https://github.com/openid/python-openid")
865 (synopsis "OpenID support for servers and consumers")
866 (description "This library provides OpenID authentication for Python, both
867 for clients and servers.")
868 (license license:asl2.0)))
870 (define-public python-cssutils
872 (name "python-cssutils")
877 (uri (pypi-uri "cssutils" version))
880 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
881 (build-system python-build-system)
883 `(("unzip" ,unzip))) ; for unpacking the source
885 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
886 (home-page "http://cthedot.de/cssutils/")
888 "CSS Cascading Style Sheets library for Python")
890 "Cssutils is a Python package for parsing and building CSS
891 Cascading Style Sheets. Currently it provides a DOM only and no rendering
893 (license license:lgpl3+)))
895 (define-public python2-cssutils
896 (package-with-python2 python-cssutils))
898 (define-public python-css-parser
900 (inherit python-cssutils)
901 (name "python-css-parser")
906 (uri (pypi-uri "css-parser" version ".tar.gz"))
909 "0i4xfykiffxzr4f6y0m2ggqvx1rzam6pw6krlr5k6ldf29akbay7"))))
910 (home-page "https://github.com/ebook-utils/css-parser")
911 (synopsis "Fork of cssutils modified for parsing ebooks")
913 "Css-parser is a fork of cssutils 1.0.2, updated and modified for parsing
914 ebooks, due to cssutils not receiving updates as of 1.0.2.")
915 (license license:lgpl3+)))
917 (define-public python2-css-parser
918 (package-with-python2 python-css-parser))
920 (define-public python-cssselect
922 (name "python-cssselect")
925 ;; The PyPI release does not contain tests.
928 (url "https://github.com/scrapy/cssselect")
929 (commit (string-append "v" version))))
930 (file-name (git-file-name name version))
933 "0xslrnhbrmgakp4xg6k26qffay3kqffp3a2z2sk27c65rwxa79kc"))))
934 (build-system python-build-system)
936 `(#:phases (modify-phases %standard-phases
939 (invoke "pytest" "-vv"))))))
941 `(("python-lxml" ,python-lxml)
942 ("python-pytest" ,python-pytest)))
943 (home-page "https://github.com/scrapy/cssselect")
944 (synopsis "CSS3 selector parser and translator to XPath 1.0")
946 "Cssselect ia a Python module that parses CSS3 Selectors and translates
947 them to XPath 1.0 expressions. Such expressions can be used in lxml or
948 another XPath engine to find the matching elements in an XML or HTML document.")
949 (license license:bsd-3)))
951 (define-public python2-cssselect
952 (package-with-python2 python-cssselect))
954 (define-public python-openid-cla
956 (name "python-openid-cla")
961 (uri (pypi-uri "python-openid-cla" version))
964 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
965 (build-system python-build-system)
966 (arguments '(#:tests? #f)) ; No tests.
967 (home-page "https://github.com/puiterwijk/python-openid-cla/")
968 (synopsis "Implementation of the OpenID CLA extension for python-openid")
969 (description "@code{openid-cla} is an implementation of the OpenID
970 contributor license agreement extension for python-openid.")
971 (license license:bsd-3)))
973 (define-public python2-openid-cla
974 (package-with-python2 python-openid-cla))
976 (define-public python-openid-teams
978 (name "python-openid-teams")
983 (uri (pypi-uri "python-openid-teams" version))
986 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
987 (build-system python-build-system)
988 (arguments '(#:tests? #f)) ; No tests.
989 (home-page "https://github.com/puiterwijk/python-openid-teams/")
990 (synopsis "Implementation of the OpenID teams extension for python-openid")
992 "@code{openid-teams} is an implementation of the OpenID
993 teams extension for python-openid.")
994 (license license:bsd-3)))
996 (define-public python2-openid-teams
997 (package-with-python2 python-openid-teams))
999 (define-public python-priority
1001 (name "python-priority")
1006 (uri (pypi-uri "priority" version))
1008 (base32 "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb"))))
1009 (build-system python-build-system)
1012 (modify-phases %standard-phases
1014 (lambda* (#:key inputs outputs #:allow-other-keys)
1015 (add-installed-pythonpath inputs outputs)
1016 (invoke "pytest" "-vv" "test" "-k"
1017 ;; This test exceeded the Hypothesis deadline.
1018 "not test_period_of_repetition"))))))
1020 `(("python-hypothesis" ,python-hypothesis)
1021 ("python-pytest" ,python-pytest)
1022 ("python-pytest-cov" ,python-pytest-cov)
1023 ("python-pytest-xdist" ,python-pytest-xdist)))
1024 (home-page "https://python-hyper.org/projects/priority/en/latest/")
1025 (synopsis "Pure-Python implementation of the HTTP/2 priority tree")
1027 "Priority is a pure-Python implementation of the priority logic for HTTP/2,
1028 set out in RFC 7540 Section 5.3 (Stream Priority).")
1029 (license license:expat)))
1031 (define-public python-wsproto
1033 (name "python-wsproto")
1038 (uri (pypi-uri "wsproto" version))
1040 (base32 "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1"))))
1041 (build-system python-build-system)
1044 (modify-phases %standard-phases
1046 (lambda* (#:key inputs outputs #:allow-other-keys)
1047 (add-installed-pythonpath inputs outputs)
1048 (invoke "pytest" "-vv" "test"))))))
1050 `(("python-pytest" ,python-pytest)))
1052 `(("python-h11" ,python-h11)))
1053 (home-page "https://github.com/python-hyper/wsproto/")
1054 (synopsis "WebSockets state-machine based protocol implementation")
1056 "@code{wsproto} is a pure-Python implementation of a WebSocket protocol
1057 stack. It's written from the ground up to be embeddable in whatever program you
1058 choose to use, ensuring that you can communicate via WebSockets, as defined in
1059 RFC6455, regardless of your programming paradigm.")
1060 (license license:expat)))
1062 (define-public python-hypercorn
1064 (name "python-hypercorn")
1069 (uri (pypi-uri "Hypercorn" version))
1071 (base32 "15dgy47a18w2ls3hwykra1cyf7yzxmfjqnsqml482p12cxr2xwqr"))))
1072 (build-system python-build-system)
1075 (modify-phases %standard-phases
1077 (lambda* (#:key inputs outputs #:allow-other-keys)
1078 (add-installed-pythonpath inputs outputs)
1079 (invoke "pytest" "-vv"))))))
1081 `(("python-h11" ,python-h11)
1082 ("python-h2" ,python-h2)
1083 ("python-priority" ,python-priority)
1084 ("python-toml" ,python-toml)
1085 ("python-typing-extensions" ,python-typing-extensions)
1086 ("python-wsproto" ,python-wsproto)))
1088 `(("python-hypothesis" ,python-hypothesis)
1089 ("python-mock" ,python-mock)
1090 ("python-pytest" ,python-pytest)
1091 ("python-pytest-asyncio" ,python-pytest-asyncio)
1092 ("python-pytest-cov" ,python-pytest-cov)
1093 ("python-pytest-trio" ,python-pytest-trio)
1094 ("python-trio" ,python-trio)))
1095 (home-page "https://gitlab.com/pgjones/hypercorn/")
1096 (synopsis "ASGI Server based on Hyper libraries")
1098 "Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and
1099 wsproto libraries and inspired by Gunicorn. It supports HTTP/1, HTTP/2,
1100 WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications. It can
1101 utilise asyncio, uvloop, or trio worker types.")
1102 (license license:expat)))
1104 (define-public python-tornado
1106 (name "python-tornado")
1111 (uri (pypi-uri "tornado" version))
1114 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
1115 (build-system python-build-system)
1117 '(;; FIXME: Two tests error out with:
1118 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
1120 ;; (modify-phases %standard-phases
1123 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
1124 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
1125 ;; (invoke "python" "-m" "tornado.test.runtests")
1129 `(("python-certifi" ,python-certifi)))
1130 (home-page "https://www.tornadoweb.org/")
1131 (synopsis "Python web framework and asynchronous networking library")
1133 "Tornado is a Python web framework and asynchronous networking library,
1134 originally developed at FriendFeed. By using non-blocking network I/O,
1135 Tornado can scale to tens of thousands of open connections, making it ideal
1136 for long polling, WebSockets, and other applications that require a long-lived
1137 connection to each user.")
1138 (license license:asl2.0)
1139 (properties `((python2-variant . ,(delay python2-tornado))))))
1141 (define-public python-tornado-6
1143 (name "python-tornado")
1148 (uri (pypi-uri "tornado" version))
1151 "1p5n7sw4580pkybywg93p8ddqdj9lhhy72rzswfa801vlidx9qhg"))))
1152 (build-system python-build-system)
1155 (modify-phases %standard-phases
1158 (invoke "python" "-m" "tornado.test.runtests")
1161 `(("python-certifi" ,python-certifi)))
1162 (home-page "https://www.tornadoweb.org/")
1163 (synopsis "Python web framework and asynchronous networking library")
1165 "Tornado is a Python web framework and asynchronous networking library,
1166 originally developed at FriendFeed. By using non-blocking network I/O,
1167 Tornado can scale to tens of thousands of open connections, making it ideal
1168 for long polling, WebSockets, and other applications that require a long-lived
1169 connection to each user.")
1170 (license license:asl2.0)))
1172 (define-public python2-tornado
1173 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
1174 (package (inherit tornado)
1176 `(("python2-backport-ssl-match-hostname"
1177 ,python2-backport-ssl-match-hostname)
1178 ("python2-backports-abc" ,python2-backports-abc)
1179 ("python2-singledispatch" ,python2-singledispatch)
1180 ,@(package-propagated-inputs tornado))))))
1182 (define-public python-tornado-http-auth
1184 (name "python-tornado-http-auth")
1189 (uri (pypi-uri "tornado-http-auth" version))
1191 (base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x"))))
1192 (build-system python-build-system)
1194 `(("python-tornado" ,python-tornado)))
1195 (home-page "https://github.com/gvalkov/tornado-http-auth")
1196 (synopsis "Digest and basic authentication module for Tornado")
1198 "Provides support for adding authentication to services using the Tornado
1199 web framework, either via the basic or digest authentication schemes.")
1200 (license license:asl2.0)))
1202 (define-public python-terminado
1204 (name "python-terminado")
1209 (uri (pypi-uri "terminado" version))
1212 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
1213 (build-system python-build-system)
1215 `(("python-tornado" ,python-tornado)
1216 ("python-ptyprocess" ,python-ptyprocess)))
1218 `(("python-nose" ,python-nose)))
1221 (modify-phases %standard-phases
1223 (lambda _ (invoke "nosetests") #t)))))
1224 (home-page "https://github.com/takluyver/terminado")
1225 (synopsis "Terminals served to term.js using Tornado websockets")
1226 (description "This package provides a Tornado websocket backend for the
1227 term.js Javascript terminal emulator library.")
1228 (license license:bsd-2)
1229 (properties `((python2-variant . ,(delay python2-terminado))))))
1231 (define-public python2-terminado
1232 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
1233 (package (inherit terminado)
1235 `(("python2-backport-ssl-match-hostname"
1236 ,python2-backport-ssl-match-hostname)
1237 ("python2-futures" ,python2-futures)
1238 ,@(package-propagated-inputs terminado))))))
1240 (define-public python-wsgi-intercept
1242 (name "python-wsgi-intercept")
1246 (uri (pypi-uri "wsgi_intercept" version))
1249 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
1250 (build-system python-build-system)
1252 `(("python-six" ,python-six)))
1254 `(("python-pytest" ,python-pytest)
1255 ("python-httplib2" ,python-httplib2)
1256 ("python-requests" ,python-requests)
1257 ("python-urllib3" ,python-urllib3)))
1258 (synopsis "Puts a WSGI application in place of a real URI for testing")
1259 (description "Wsgi_intercept installs a WSGI application in place of a real
1260 URI for testing. Testing a WSGI application normally involves starting a
1261 server at a local host and port, then pointing your test code to that address.
1262 Instead, this library lets you intercept calls to any specific host/port
1263 combination and redirect them into a WSGI application importable by your test
1264 program. Thus, you can avoid spawning multiple processes or threads to test
1266 (home-page "https://github.com/cdent/wsgi-intercept")
1267 (license license:expat)))
1269 (define-public python-webob
1271 (name "python-webob")
1276 (uri (pypi-uri "WebOb" version))
1279 "026i3z99nr3px75isa9mbnky5i7rffiv4d124h5kxfjjsxz92fma"))))
1280 (build-system python-build-system)
1282 `(("python-nose" ,python-nose)))
1283 (home-page "https://webob.org/")
1284 (synopsis "WSGI request and response object")
1286 "WebOb provides wrappers around the WSGI request environment, and an
1287 object to help create WSGI responses.")
1288 (license license:expat)))
1290 (define-public python2-webob
1291 (package-with-python2 python-webob))
1293 (define-public python-zope-event
1295 (name "python-zope-event")
1300 (uri (pypi-uri "zope.event" version))
1303 "1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9"))))
1304 (build-system python-build-system)
1305 (home-page "https://pypi.org/project/zope.event/")
1306 (synopsis "Event publishing system for Python")
1307 (description "Zope.event provides an event publishing API, intended for
1308 use by applications which are unaware of any subscribers to their events. It
1309 is a simple event-dispatching system on which more sophisticated event
1310 dispatching systems can be built.")
1311 (license license:zpl2.1)))
1313 (define-public python2-zope-event
1314 (package-with-python2 python-zope-event))
1316 (define-public python-zope-interface
1318 (name "python-zope-interface")
1323 (uri (pypi-uri "zope.interface" version))
1326 "03nrl6b8cb600dnnh46y149awvrm0gxyqgwq5hdw3lvys8mw9r20"))))
1327 (build-system python-build-system)
1328 (arguments '(#:tests? #f)) ; test suite can't find python-zope-testing
1330 `(("python-coverage" ,python-coverage)
1331 ("python-nose" ,python-nose)
1332 ("python-zope-event" ,python-zope-event)
1333 ("python-zope-testing" ,python-zope-testing)))
1334 (home-page "https://github.com/zopefoundation/zope.interface")
1335 (synopsis "Python implementation of the \"design by contract\"
1337 (description "Zope.interface provides an implementation of \"object
1338 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
1339 conforming to a given API or contract.")
1340 (license license:zpl2.1)))
1342 (define-public python2-zope-interface
1343 (package-with-python2 python-zope-interface))
1345 (define-public python-zope-exceptions
1347 (name "python-zope-exceptions")
1352 (uri (pypi-uri "zope.exceptions" version))
1355 "1nkgfwawswmyc6i0b8g3ymvja4mb507m8yhid8s4rbxq3dmqhwhd"))))
1356 (build-system python-build-system)
1359 (modify-phases %standard-phases
1362 (invoke "zope-testrunner" "--test-path=src"))))))
1364 `(("python-zope-testrunner" ,python-zope-testrunner-bootstrap)))
1366 `(("python-zope-interface" ,python-zope-interface)))
1367 (home-page "https://pypi.org/project/zope.exceptions/")
1368 (synopsis "Zope exceptions")
1369 (description "Zope.exceptions provides general-purpose exception types
1370 that have uses outside of the Zope framework.")
1371 (license license:zpl2.1)))
1373 (define-public python-zope-exceptions-bootstrap
1375 (inherit python-zope-exceptions)
1376 (arguments `(#:tests? #f))
1377 (propagated-inputs `())
1379 (properties `((hidden? . #t)))))
1381 (define-public python2-zope-exceptions
1382 (package-with-python2 python-zope-exceptions))
1384 (define-public python-zope-testing
1386 (name "python-zope-testing")
1391 (uri (pypi-uri "zope.testing" version))
1394 "1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn"))))
1395 (build-system python-build-system)
1396 (home-page "https://pypi.org/project/zope.testing/")
1397 (synopsis "Zope testing helpers")
1398 (description "Zope.testing provides a number of testing utilities for HTML
1399 forms, HTTP servers, regular expressions, and more.")
1400 (license license:zpl2.1)))
1402 (define-public python2-zope-testing
1403 (package-with-python2 python-zope-testing))
1405 (define-public python-zope-testrunner
1407 (name "python-zope-testrunner")
1412 (uri (pypi-uri "zope.testrunner" version))
1415 "0jyyf1dcz156q95x2y7yw2v420q2xn3cff0c5aci7hmdmcbn0gc7"))))
1416 (build-system python-build-system)
1418 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1420 `(("python-zope-testing" ,python-zope-testing)))
1422 `(("python-six" ,python-six)
1423 ("python-zope-exceptions" ,python-zope-exceptions)
1424 ("python-zope-interface" ,python-zope-interface)))
1425 (home-page "https://pypi.org/project/zope.testrunner/")
1426 (synopsis "Zope testrunner script")
1427 (description "Zope.testrunner provides a script for running Python
1429 (license license:zpl2.1)))
1431 (define-public python-zope-testrunner-bootstrap
1433 (inherit python-zope-testrunner)
1434 (arguments `(#:tests? #f))
1436 `(("python-six" ,python-six)
1437 ("python-zope-exceptions" ,python-zope-exceptions-bootstrap)))
1438 (properties `((hidden? . #t)))))
1440 (define-public python2-zope-testrunner
1441 (package-with-python2 python-zope-testrunner))
1443 (define-public python-zope-i18nmessageid
1445 (name "python-zope-i18nmessageid")
1450 (uri (pypi-uri "zope.i18nmessageid" version))
1453 "0ndhn4w1qgwkfbwf9vm2bgq418z5g0wmfsgl0d9nz62cd0mi8d4m"))))
1454 (build-system python-build-system)
1456 `(("python-coverage" ,python-coverage)
1457 ("python-zope-testrunner" ,python-zope-testrunner)))
1459 `(("python-six" ,python-six)))
1460 (home-page "https://pypi.org/project/zope.i18nmessageid/")
1461 (synopsis "Message identifiers for internationalization")
1462 (description "Zope.i18nmessageid provides facilities for declaring
1463 internationalized messages within program source text.")
1464 (license license:zpl2.1)))
1466 (define-public python2-zope-i18nmessageid
1467 (package-with-python2 python-zope-i18nmessageid))
1469 (define-public python-zope-schema
1471 (name "python-zope-schema")
1476 (uri (pypi-uri "zope.schema" version))
1479 "09jg47bxhfg1ahr1jxb5y0cbiszyk1j6fn1r1r7s6svjl3lbryr0"))))
1480 (build-system python-build-system)
1483 (modify-phases %standard-phases
1485 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
1486 (add-installed-pythonpath inputs outputs)
1488 (invoke "zope-testrunner" "--test-path=src")
1491 `(("python-zope-event" ,python-zope-event)
1492 ("python-zope-interface" ,python-zope-interface)))
1494 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1495 ("python-zope-testing" ,python-zope-testing)
1496 ("python-zope-testrunner" ,python-zope-testrunner)))
1497 (home-page "https://pypi.org/project/zope.schema/")
1498 (synopsis "Zope data schemas")
1499 (description "Zope.scheme provides extensions to zope.interface for
1500 defining data schemas.")
1501 (license license:zpl2.1)))
1503 (define-public python2-zope-schema
1504 (package-with-python2 python-zope-schema))
1506 (define-public python-zope-configuration
1508 (name "python-zope-configuration")
1512 (uri (pypi-uri "zope.configuration" version))
1515 "0g6vrl7y27z9cj5xyrww9xlzk4npj55mgmlrcd9d2nj08jn2pw79"))))
1516 (build-system python-build-system)
1518 `(("python-manuel" ,python-manuel)
1519 ("python-zope-testing" ,python-zope-testing)
1520 ("python-zope-testrunner" ,python-zope-testrunner)))
1522 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1523 ("python-zope-interface" ,python-zope-interface)
1524 ("python-zope-schema" ,python-zope-schema)))
1525 (home-page "https://pypi.org/project/zope.configuration/")
1526 (synopsis "Zope Configuration Markup Language")
1527 (description "Zope.configuration implements ZCML, the Zope Configuration
1529 (license license:zpl2.1)))
1531 (define-public python-zope-configuration-bootstrap
1533 (inherit python-zope-configuration)
1534 (arguments `(#:tests? #f))
1536 (properties `((hidden? . #t)))))
1538 (define-public python2-zope-configuration
1539 (package-with-python2 python-zope-configuration))
1541 (define-public python-zope-copy
1543 (name "python-zope-copy")
1548 (uri (pypi-uri "zope.copy" version))
1551 "06m75434krl57n6p73c2qj55k5i3fixg887j8ss01ih6zw4rvfs7"))))
1552 (build-system python-build-system)
1555 (modify-phases %standard-phases
1558 (invoke "zope-testrunner" "--test-path=src" "\\[]"))))))
1560 `(("python-zope-interface" ,python-zope-interface)))
1562 `(("python-zope-component" ,python-zope-component-bootstrap)
1563 ("python-zope-location" ,python-zope-location-bootstrap)
1564 ("python-zope-testing" ,python-zope-testing)
1565 ("python-zope-testrunner" ,python-zope-testrunner)))
1566 (home-page "https://github.com/zopefoundation/zope.copy")
1567 (synopsis "Pluggable object copying mechanism")
1569 "This package provides a pluggable mechanism for copying persistent objects.")
1570 (license license:zpl2.1)))
1572 (define-public python-zope-proxy
1574 (name "python-zope-proxy")
1579 (uri (pypi-uri "zope.proxy" version))
1582 "14h7nyfbl5vpfk0rbviy4ygdfx0yx5kncvg6jpbdb0dhwna0ssm6"))))
1583 (build-system python-build-system)
1585 `(("python-zope-security" ,python-zope-security-bootstrap)
1586 ("python-zope-testrunner" ,python-zope-testrunner)))
1588 `(("python-zope-interface" ,python-zope-interface)))
1589 (home-page "https://pypi.org/project/zope.proxy/")
1590 (synopsis "Generic, transparent proxies")
1591 (description "Zope.proxy provides generic, transparent proxies for Python.
1592 Proxies are special objects which serve as mostly-transparent wrappers around
1593 another object, intervening in the apparent behavior of the wrapped object
1594 only when necessary to apply the policy (e.g., access checking, location
1595 brokering, etc.) for which the proxy is responsible.")
1596 (license license:zpl2.1)))
1598 (define-public python-zope-proxy-bootstrap
1600 (inherit python-zope-proxy)
1601 (arguments `(#:tests? #f))
1603 (properties `((hidden? . #t)))))
1605 (define-public python2-zope-proxy
1606 (package-with-python2 python-zope-proxy))
1608 (define-public python-zope-hookable
1610 (name "python-zope-hookable")
1615 (uri (pypi-uri "zope.hookable" version))
1618 "0hc82lfr7bk53nvbxvjkibkarngyrzgfk2i6bg8wshl0ly0pdl19"))))
1619 (build-system python-build-system)
1621 `(("python-coverage" ,python-coverage)
1622 ("python-zope-testing" ,python-zope-testing)))
1623 (home-page "https://github.com/zopefoundation/zope.hookable")
1624 (synopsis "Zope hookable")
1625 (description "This package supports the efficient creation of hookable
1626 objects, which are callable objects that are meant to be optionally replaced.
1627 The idea is that you create a function that does some default thing and make i
1628 hookable. Later, someone can modify what it does by calling its sethook method
1629 and changing its implementation. All users of the function, including those
1630 that imported it, will see the change.")
1631 (license license:zpl2.1)))
1633 (define-public python-zope-location
1635 (name "python-zope-location")
1640 (uri (pypi-uri "zope.location" version))
1643 "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857"))))
1644 (build-system python-build-system)
1646 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1648 `(("python-zope-testrunner" ,python-zope-testrunner)))
1650 `(("python-zope-interface" ,python-zope-interface)
1651 ("python-zope-proxy" ,python-zope-proxy)
1652 ("python-zope-schema" ,python-zope-schema)))
1653 (home-page "https://pypi.org/project/zope.location/")
1654 (synopsis "Zope location library")
1655 (description "Zope.location implements the concept of \"locations\" in
1656 Zope3, which are are special objects that have a structural location.")
1657 (license license:zpl2.1)))
1659 (define-public python-zope-location-bootstrap
1661 (inherit python-zope-location)
1662 (arguments `(#:tests? #f))
1664 (properties `((hidden? . #t)))))
1666 (define-public python2-zope-location
1667 (package-with-python2 python-zope-location))
1669 (define-public python-zope-security
1671 (name "python-zope-security")
1676 (uri (pypi-uri "zope.security" version))
1679 "11lfw67cigscfax9c5j63xcvz2qcj724zx5fcdqyc94am2glim0h"))))
1680 (build-system python-build-system)
1682 `(("python-zope-component" ,python-zope-component)
1683 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1684 ("python-zope-interface" ,python-zope-interface)
1685 ("python-zope-location" ,python-zope-location)
1686 ("python-zope-proxy" ,python-zope-proxy)
1687 ("python-zope-schema" ,python-zope-schema)))
1689 `(("python-btrees" ,python-btrees)
1690 ("python-zope-component" ,python-zope-component-bootstrap)
1691 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
1692 ("python-zope-location" ,python-zope-location-bootstrap)
1693 ("python-zope-testing" ,python-zope-testing)
1694 ("python-zope-testrunner" ,python-zope-testrunner)))
1695 (home-page "https://pypi.org/project/zope.security/")
1696 (synopsis "Zope security framework")
1697 (description "Zope.security provides a generic mechanism to implement
1698 security policies on Python objects.")
1699 (license license:zpl2.1)))
1701 (define-public python-zope-security-bootstrap
1703 (inherit python-zope-security)
1704 (arguments `(#:tests? #f))
1706 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1707 ("python-zope-interface" ,python-zope-interface)
1708 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
1709 ("python-zope-schema" ,python-zope-schema)))
1711 (properties `((hidden? . #t)))))
1713 (define-public python2-zope-security
1714 (package-with-python2 python-zope-security))
1716 (define-public python-zope-component
1718 (name "python-zope-component")
1723 (uri (pypi-uri "zope.component" version))
1726 "14iwp95hh6q5dj4k9h1iw75cbp89bs27nany4dinyglb44c8jqli"))))
1727 (build-system python-build-system)
1730 (modify-phases %standard-phases
1732 (lambda* (#:key inputs outputs #:allow-other-keys)
1733 (add-installed-pythonpath inputs outputs)
1734 (invoke "python" "setup.py" "test"))))))
1736 `(("python-persistent" ,python-persistent)
1737 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
1738 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1739 ("python-zope-location" ,python-zope-location-bootstrap)
1740 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
1741 ("python-zope-security" ,python-zope-security-bootstrap)
1742 ("python-zope-testing" ,python-zope-testing)
1743 ("python-zope-testrunner" ,python-zope-testrunner)))
1745 `(("python-zope-deferredimport" ,python-zope-deferredimport)
1746 ("python-zope-deprecation" ,python-zope-deprecation)
1747 ("python-zope-event" ,python-zope-event)
1748 ("python-zope-hookable" ,python-zope-hookable)
1749 ("python-zope-interface" ,python-zope-interface)))
1750 (home-page "https://github.com/zopefoundation/zope.component")
1751 (synopsis "Zope Component Architecture")
1752 (description "Zope.component represents the core of the Zope Component
1753 Architecture. Together with the zope.interface package, it provides
1754 facilities for defining, registering and looking up components.")
1755 (license license:zpl2.1)))
1757 (define-public python-zope-component-bootstrap
1759 (inherit python-zope-component)
1760 (arguments `(#:tests? #f))
1762 (properties `((hidden? . #t)))))
1764 (define-public python2-zope-component
1765 (package-with-python2 python-zope-component))
1767 (define-public python-zope-deferredimport
1769 (name "python-zope-deferredimport")
1774 (uri (pypi-uri "zope.deferredimport" version))
1777 "1q89v54dwniiqypjbwywwdfjdr4kdkqlyqsgrpplgvsygdg39cjp"))))
1778 (build-system python-build-system)
1780 `(("python-zope-proxy" ,python-zope-proxy)))
1782 `(("python-zope-testrunner" ,python-zope-testrunner)))
1783 (home-page "https://github.com/zopefoundation/zope.deferredimport")
1784 (synopsis "Defer imports until used by code")
1786 "Often, especially for package modules, you want to import names for
1787 convenience, but not actually perform the imports until necessary. The
1788 @code{zope.deferredimport} package provided facilities for defining names in
1789 modules that will be imported from somewhere else when used. You can also cause
1790 deprecation warnings to be issued when a variable is used.")
1791 (license license:zpl2.1)))
1793 (define-public python-ndg-httpsclient
1795 (name "python-ndg-httpsclient")
1799 (uri (pypi-uri "ndg_httpsclient" version))
1802 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1803 (build-system python-build-system)
1805 '(;; The tests appear to require networking.
1808 `(("python-pyopenssl" ,python-pyopenssl)))
1809 (synopsis "HTTPS support for Python's httplib and urllib2")
1810 (description "This is a HTTPS client implementation for httplib and urllib2
1811 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1812 over the default provided with Python and, importantly, enables full
1813 verification of the SSL peer.")
1814 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1815 (license license:bsd-3)))
1817 ;; python2-openssl requires special care, so package-with-python2 is
1819 (define-public python2-ndg-httpsclient
1820 (package (inherit python-ndg-httpsclient)
1821 (name "python2-ndg-httpsclient")
1823 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1824 ((#:python _) python-2)))
1826 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1828 (define-public python-websocket-client
1830 (name "python-websocket-client")
1835 (uri (pypi-uri "websocket_client" version))
1838 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
1839 (build-system python-build-system)
1841 `(("python-six" ,python-six)))
1842 (home-page "https://github.com/liris/websocket-client")
1843 (synopsis "WebSocket client for Python")
1844 (description "The Websocket-client module provides the low level APIs for
1845 WebSocket usage in Python programs.")
1846 (properties `((python2-variant . ,(delay python2-websocket-client))))
1847 (license license:lgpl2.1+)))
1849 (define-public python2-websocket-client
1850 (let ((base (package-with-python2
1851 (strip-python2-variant python-websocket-client))))
1855 `(("python2-backport-ssl-match-hostname"
1856 ,python2-backport-ssl-match-hostname)
1857 ,@(package-native-inputs base))))))
1859 (define-public python-requests
1861 (name "python-requests")
1865 (uri (pypi-uri "requests" version))
1868 "1rhpg0jb08v0gd7f19jjiwlcdnxpmqi1fhvw7r4s9avddi4kvx5k"))))
1869 (build-system python-build-system)
1871 `(("python-certifi" ,python-certifi)
1872 ("python-chardet" ,python-chardet)
1873 ("python-idna" ,python-idna)
1874 ("python-urllib3" ,python-urllib3)))
1876 ;; FIXME: Some tests require network access.
1878 (home-page "http://python-requests.org/")
1879 (synopsis "Python HTTP library")
1881 "Requests is a Python HTTP client library. It aims to be easier to use
1882 than Python’s urllib2 library.")
1883 (license license:asl2.0)))
1885 ;; Some software requires an older version of Requests, notably Docker/Docker
1887 (define-public python-requests-2.20
1888 (package (inherit python-requests)
1892 (uri (pypi-uri "requests" version))
1895 "0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
1897 `(("python-urllib3" ,python-urllib3-1.24)
1898 ("python-idna" ,python-idna-2.7)
1899 ,@(package-propagated-inputs python-requests)))))
1901 (define-public python2-requests
1902 (package-with-python2 python-requests))
1904 (define-public python-requests_ntlm
1906 (name "python-requests_ntlm")
1911 (uri (pypi-uri "requests_ntlm" version))
1914 "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
1915 (build-system python-build-system)
1917 `(("python-cryptography" ,python-cryptography)
1918 ("python-ntlm-auth" ,python-ntlm-auth)
1919 ("python-requests" ,python-requests)))
1920 (home-page "https://github.com/requests/requests-ntlm")
1922 "NTLM authentication support for Requests")
1924 "This package allows for HTTP NTLM authentication using the requests
1926 (license license:isc)))
1928 (define-public python-requests-mock
1930 (name "python-requests-mock")
1935 (uri (pypi-uri "requests-mock" version))
1938 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1939 (build-system python-build-system)
1941 `(("python-requests" ,python-requests)
1942 ("python-six" ,python-six)))
1944 `(("python-pbr" ,python-pbr)
1945 ("python-discover" ,python-discover)
1946 ("python-docutils" ,python-docutils)
1947 ("python-fixtures" ,python-fixtures)
1948 ("python-mock" ,python-mock)
1949 ("python-sphinx" ,python-sphinx)
1950 ("python-testrepository" ,python-testrepository)
1951 ("python-testtools" ,python-testtools)))
1952 (home-page "https://requests-mock.readthedocs.org/")
1953 (synopsis "Mock out responses from the requests package")
1955 "This module provides a building block to stub out the HTTP requests
1956 portions of your testing code.")
1957 (properties `((python2-variant . ,(delay python2-requests-mock))))
1958 (license license:asl2.0)))
1960 (define-public python2-requests-mock
1961 (package (inherit (package-with-python2
1962 (strip-python2-variant python-requests-mock)))
1964 `(#:python ,python-2
1965 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1968 (define-public python-requests-toolbelt
1970 (name "python-requests-toolbelt")
1974 (uri (pypi-uri "requests-toolbelt" version))
1977 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1978 (build-system python-build-system)
1980 `(("python-betamax" ,python-betamax)
1981 ("python-mock" ,python-mock)
1982 ("python-pytest" ,python-pytest)))
1984 `(("python-requests" ,python-requests)))
1985 (synopsis "Extensions to python-requests")
1986 (description "This is a toolbelt of useful classes and functions to be used
1987 with python-requests.")
1988 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1989 (license license:asl2.0)))
1991 (define-public python2-requests-toolbelt
1992 (package-with-python2 python-requests-toolbelt))
1994 (define-public python-requests-toolbelt-0.9.1
1996 (inherit python-requests-toolbelt)
2000 (uri (pypi-uri "requests-toolbelt" version))
2003 "1h3gm88dcjbd7gm229a7x5qkkhnsqsjz0m0l2xyavm2ab3a8k04n"))))
2005 `(;; FIXME: Some tests require network access.
2008 (define-public python-oauthlib
2010 (name "python-oauthlib")
2014 (uri (pypi-uri "oauthlib" version))
2017 "163jg4a8f7c5ki655grrr47kgljy12wri3qly7ijf64sk1fjrqqc"))))
2018 (build-system python-build-system)
2020 `(#:phases (modify-phases %standard-phases
2023 (invoke "pytest" "-vv"))))))
2025 `(("python-pytest" ,python-pytest)
2026 ("python-pytest-cov" ,python-pytest-cov)
2027 ("python-mock" ,python-mock)))
2029 `(("python-cryptography" ,python-cryptography)
2030 ("python-pyjwt" ,python-pyjwt)
2031 ("python-blinker" ,python-blinker)))
2032 (home-page "https://github.com/oauthlib/oauthlib")
2033 (synopsis "OAuth implementation for Python")
2035 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2036 OAuth request-signing logic.")
2037 (license license:bsd-3)))
2039 (define-public python2-oauthlib
2040 (package-with-python2 python-oauthlib))
2042 (define-public python-rauth
2044 (name "python-rauth")
2049 (uri (pypi-uri "rauth" version))
2052 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
2053 (build-system python-build-system)
2055 `(#:test-target "check"))
2057 `(("python-requests" ,python-requests)))
2058 (home-page "https://github.com/litl/rauth")
2059 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
2061 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
2062 provides service wrappers for convenient connection initialization and
2063 authenticated session objects providing things like keep-alive.")
2064 (license license:expat)
2065 (properties `((python2-variant . ,(delay python2-rauth))))))
2067 (define-public python2-rauth
2068 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
2071 (native-inputs `(("python2-unittest2" ,python2-unittest2)
2072 ,@(package-native-inputs base))))))
2074 (define-public python-urllib3
2076 (name "python-urllib3")
2081 (uri (pypi-uri "urllib3" version))
2084 "09rmjqm5syhhc8fx3v06h3yv6cqy0b1081jg8wm5grpwpr72j61h"))))
2085 (build-system python-build-system)
2086 (arguments `(#:tests? #f))
2088 `(;; These 5 inputs are used to build urrlib3[secure]
2089 ("python-certifi" ,python-certifi)
2090 ("python-cryptography" ,python-cryptography)
2091 ("python-idna" ,python-idna)
2092 ("python-ipaddress" ,python-ipaddress)
2093 ("python-pyopenssl" ,python-pyopenssl)
2094 ("python-pysocks" ,python-pysocks)))
2095 (home-page "https://urllib3.readthedocs.io/")
2096 (synopsis "HTTP library with thread-safe connection pooling")
2098 "Urllib3 supports features left out of urllib and urllib2 libraries. It
2099 can reuse the same socket connection for multiple requests, it can POST files,
2100 supports url redirection and retries, and also gzip and deflate decoding.")
2101 (license license:expat)))
2103 ;; Some software requires an older version of urllib3, notably Docker.
2104 (define-public python-urllib3-1.24
2105 (package (inherit python-urllib3)
2109 (uri (pypi-uri "urllib3" version))
2112 "1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
2115 (define-public python2-urllib3
2116 (package-with-python2 python-urllib3))
2118 (define-public awscli
2125 (uri (pypi-uri name version))
2128 "0p479mfs9r0m82a217pap8156ijwvhv6r3kqa4k267gd05wgvygm"))))
2129 (build-system python-build-system)
2131 ;; FIXME: The 'pypi' release does not contain tests.
2134 (modify-phases %standard-phases
2135 (add-after 'unpack 'fix-reference-to-groff
2137 (substitute* "awscli/help.py"
2138 (("if not self._exists_on_path\\('groff'\\):") "")
2139 (("raise ExecutableNotFoundError\\('groff'\\)") "")
2140 (("cmdline = \\['groff'")
2141 (string-append "cmdline = ['" (which "groff") "'")))
2144 `(("python-colorama" ,python-colorama)
2145 ("python-botocore" ,python-botocore)
2146 ("python-s3transfer" ,python-s3transfer)
2147 ("python-docutils" ,python-docutils)
2148 ("python-pyyaml" ,python-pyyaml)
2149 ("python-rsa" ,python-rsa)))
2151 `(("groff" ,groff)))
2152 (home-page "https://aws.amazon.com/cli/")
2153 (synopsis "Command line client for AWS")
2154 (description "AWS CLI provides a unified command line interface to the
2155 Amazon Web Services (AWS) API.")
2156 (license license:asl2.0)))
2158 (define-public python-wsgiproxy2
2160 (name "python-wsgiproxy2")
2165 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
2167 (base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf"))))
2168 (build-system python-build-system)
2170 `(("python-webtest" ,python-webtest)))
2172 `(("python-requests" ,python-requests)
2173 ("python-six" ,python-six)
2174 ("python-urllib3" ,python-urllib3)
2175 ("python-webob" ,python-webob)))
2176 (home-page "https://github.com/gawel/WSGIProxy2/")
2177 (synopsis "WSGI Proxy with various http client backends")
2178 (description "WSGI turns HTTP requests into WSGI function calls.
2179 WSGIProxy turns WSGI function calls into HTTP requests.
2180 It also includes code to sign requests and pass private data,
2181 and to spawn subprocesses to handle requests.")
2182 (license license:expat)))
2184 (define-public python2-wsgiproxy2
2185 (package-with-python2 python-wsgiproxy2))
2187 (define-public python-pastedeploy
2189 (name "python-pastedeploy")
2194 (uri (pypi-uri "PasteDeploy" version))
2196 (base32 "16qsq5y6mryslmbp5pn35x4z8z3ndp5rpgl42h226879nrw9hmg7"))))
2197 (build-system python-build-system)
2199 '(#:test-target "pytest"))
2201 `(("python-pytest" ,python-pytest)
2202 ("python-pytest-runner" ,python-pytest-runner)))
2203 (home-page "https://pylonsproject.org/")
2205 "Load, configure, and compose WSGI applications and servers")
2207 "This tool provides code to load WSGI applications and servers from URIs;
2208 these URIs can refer to Python Eggs for INI-style configuration files. Paste
2209 Script provides commands to serve applications based on this configuration
2211 (license license:expat)))
2213 (define-public python2-pastedeploy
2214 (package-with-python2 python-pastedeploy))
2216 (define-public python-webtest
2218 (name "python-webtest")
2223 (uri (pypi-uri "WebTest" version))
2226 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
2227 (build-system python-build-system)
2229 ;; Tests require python-pyquery, which creates a circular dependency.
2232 `(("python-waitress" ,python-waitress)
2233 ("python-webob" ,python-webob)
2234 ("python-six" ,python-six)
2235 ("python-beautifulsoup4" ,python-beautifulsoup4)))
2236 (home-page "https://docs.pylonsproject.org/projects/webtest/")
2237 (synopsis "Helper to test WSGI applications")
2238 (description "Webtest allows you to test your Python web applications
2239 without starting an HTTP server. It supports anything that supports the
2241 (license license:expat)))
2243 (define-public python2-webtest
2244 (package-with-python2 python-webtest))
2246 (define-public python-flask
2248 (name "python-flask")
2252 (uri (pypi-uri "Flask" version))
2255 "0q3h295izcil7lswkzfnyg3k5gq4hpmqmpl6i7s5m1n9szi1myjf"))))
2256 (build-system python-build-system)
2259 (modify-phases %standard-phases
2262 (setenv "PYTHONPATH" (string-append "./build/lib:"
2263 (getenv "PYTHONPATH")))
2264 (invoke "pytest" "-vv" "tests"))))))
2266 `(("python-pytest" ,python-pytest)))
2268 `(("python-itsdangerous" ,python-itsdangerous)
2269 ("python-jinja2" ,python-jinja2)
2270 ("python-click" ,python-click)
2271 ("python-werkzeug" ,python-werkzeug)))
2272 (home-page "https://www.palletsprojects.com/p/flask/")
2273 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
2274 (description "Flask is a micro web framework based on the Werkzeug toolkit
2275 and Jinja2 template engine. It is called a micro framework because it does not
2276 presume or force a developer to use a particular tool or library.")
2277 (license license:bsd-3)))
2279 (define-public python2-flask
2280 (package-with-python2 python-flask))
2282 (define-public python-flask-wtf
2284 (name "python-flask-wtf")
2289 (uri (pypi-uri "Flask-WTF" version))
2292 "086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl"))))
2293 (build-system python-build-system)
2296 (modify-phases %standard-phases
2299 (setenv "PYTHONPATH" (string-append "./build/lib:"
2300 (getenv "PYTHONPATH")))
2301 (invoke "pytest" "-vv"))))))
2303 `(("python-flask-babel" ,python-flask-babel)
2304 ("python-babel" ,python-babel)
2305 ("python-wtforms" ,python-wtforms)))
2307 `(("python-pytest" ,python-pytest)))
2308 (home-page "https://github.com/lepture/flask-wtf")
2309 (synopsis "Simple integration of Flask and WTForms")
2310 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
2311 upload, and reCAPTCHA.")
2312 (license license:bsd-3)))
2314 (define-public python2-flask-wtf
2315 (package-with-python2 python-flask-wtf))
2317 (define-public python-flask-multistatic
2319 (name "python-flask-multistatic")
2324 (uri (pypi-uri "flask-multistatic" version))
2327 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
2328 (build-system python-build-system)
2330 `(("python-flask" ,python-flask)))
2331 (home-page "https://pagure.io/flask-multistatic")
2332 (synopsis "Flask plugin to allow overriding static files")
2333 (description "@code{flask-multistatic} is a flask plugin that adds support
2334 for overriding static files.")
2335 (license license:gpl3+)))
2337 (define-public python2-flask-multistatic
2338 (package-with-python2 python-flask-multistatic))
2340 (define-public python-cookies
2342 (name "python-cookies")
2346 (uri (pypi-uri "cookies" version))
2349 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
2350 (build-system python-build-system)
2352 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
2355 `(("python-pytest" ,python-pytest)))
2356 (synopsis "HTTP cookie parser and renderer")
2357 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
2359 (home-page "https://gitlab.com/sashahart/cookies")
2360 (license license:expat)))
2362 (define-public python2-cookies
2363 (package-with-python2 python-cookies))
2365 (define-public python-responses
2367 (name "python-responses")
2371 (uri (pypi-uri "responses" version))
2374 "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah"))))
2375 (build-system python-build-system)
2377 `(;; Test suite is not distributed:
2378 ;; https://github.com/getsentry/responses/issues/38
2381 `(("python-mock" ,python-mock)))
2383 `(("python-requests" ,python-requests)
2384 ("python-cookies" ,python-cookies)
2385 ("python-six" ,python-six)))
2386 (home-page "https://github.com/getsentry/responses")
2387 (synopsis "Utility for mocking out the `requests` Python library")
2388 (description "A utility library for mocking out the `requests` Python
2390 (license license:asl2.0)))
2392 (define-public python2-responses
2393 (package-with-python2 python-responses))
2395 (define-public python-grequests
2397 (name "python-grequests")
2402 (uri (pypi-uri "grequests" version))
2405 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
2406 (build-system python-build-system)
2408 `(("python-gevent" ,python-gevent)
2409 ("python-requests" ,python-requests)))
2411 `(("python-nose" ,python-nose)
2412 ("python-zope.interface" ,python-zope-interface)
2413 ("python-zope.event" ,python-zope-event)))
2414 (home-page "https://github.com/kennethreitz/grequests")
2415 (synopsis "Python library for asynchronous HTTP requests")
2416 (description "GRequests is a Python library that allows you to use
2417 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
2418 (license license:bsd-2)))
2420 (define-public python-geventhttpclient
2422 (name "python-geventhttpclient")
2426 (uri (pypi-uri "geventhttpclient" version))
2429 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
2430 (modules '((guix build utils)))
2433 ;; Delete pre-compiled files.
2434 (for-each delete-file (find-files "src/geventhttpclient"
2437 (build-system python-build-system)
2440 (modify-phases %standard-phases
2441 (add-after 'unpack 'delete-network-tests
2443 (delete-file "src/geventhttpclient/tests/test_client.py")
2446 (lambda* (#:key inputs outputs #:allow-other-keys)
2447 (add-installed-pythonpath inputs outputs)
2448 (invoke "py.test" "src/geventhttpclient/tests" "-v"
2449 ;; Append the test modules to sys.path to avoid
2450 ;; namespace conflict which breaks SSL tests.
2451 "--import-mode=append"
2452 ;; XXX: Disable test fails with Python 3.8:
2453 ;; https://github.com/gwik/geventhttpclient/issues/119
2454 "-k" (string-append "not test_cookielib_compatibility"))
2457 `(("python-pytest" ,python-pytest)))
2459 `(("python-certifi" ,python-certifi)
2460 ("python-gevent" ,python-gevent)
2461 ("python-six" ,python-six)))
2462 (home-page "https://github.com/gwik/geventhttpclient")
2463 (synopsis "HTTP client library for gevent")
2464 (description "@code{python-geventhttpclient} is a high performance,
2465 concurrent HTTP client library for python using @code{gevent}.")
2466 (license license:expat)))
2468 (define-public python2-geventhttpclient
2469 (package-with-python2 python-geventhttpclient))
2471 (define-public python-requests-oauthlib
2473 (name "python-requests-oauthlib")
2478 (uri (pypi-uri "requests-oauthlib" version))
2481 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
2482 (build-system python-build-system)
2485 (modify-phases %standard-phases
2486 ;; removes tests that require network access
2487 (add-before 'check 'pre-check
2489 (delete-file "tests/test_core.py")
2492 `(("python-pyjwt" ,python-pyjwt)
2493 ("python-requests-mock" ,python-requests-mock)
2494 ("python-mock" ,python-mock)))
2496 `(("python-oauthlib" ,python-oauthlib)
2497 ("python-requests" ,python-requests)))
2499 "https://github.com/requests/requests-oauthlib")
2501 "OAuthlib authentication support for Requests")
2503 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
2504 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
2505 (license license:isc)))
2507 (define-public python2-requests-oauthlib
2508 (package-with-python2 python-requests-oauthlib))
2510 (define-public python-url
2516 (uri (pypi-uri "url" version))
2519 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
2520 (build-system python-build-system)
2522 `(("python-publicsuffix" ,python-publicsuffix)))
2524 `(("python-coverage" ,python-coverage)
2525 ("python-nose" ,python-nose)))
2527 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
2528 (home-page "https://github.com/seomoz/url-py")
2529 (synopsis "URL Parsing")
2530 (description "Library for parsing urls.")
2531 (license license:expat)
2532 (properties `((python2-variant . ,(delay python2-url))))))
2534 (define-public python2-url
2535 (let ((base (package-with-python2 (strip-python2-variant python-url))))
2536 (package (inherit base)
2538 `(("python2-publicsuffix" ,python2-publicsuffix))))))
2540 (define-public python-cachecontrol
2542 (name "python-cachecontrol")
2547 ;; Pypi does not have tests.
2549 (url "https://github.com/ionrock/cachecontrol")
2550 (commit (string-append "v" version))))
2551 (file-name (git-file-name name version))
2554 "03lgc65sl04n0cgzmmgg99bk83f9i6k8yrmcd4hpl46q1pymn0kz"))))
2555 (build-system python-build-system)
2557 ;; Versions > 0.11.6 depend on CherryPy for testing.
2558 ;; It's too much work to package CherryPy for now.
2561 `(("python-requests" ,python-requests)
2562 ("python-msgpack" ,python-msgpack)
2563 ("python-lockfile" ,python-lockfile)))
2564 (home-page "https://github.com/ionrock/cachecontrol")
2565 (synopsis "The httplib2 caching algorithms for use with requests")
2566 (description "CacheControl is a port of the caching algorithms in
2567 @code{httplib2} for use with @code{requests} session objects.")
2568 (license license:asl2.0)))
2570 (define-public python2-cachecontrol
2571 (package-with-python2 python-cachecontrol))
2573 (define-public python-betamax
2575 (name "python-betamax")
2580 (uri (pypi-uri "betamax" version))
2583 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
2584 (build-system python-build-system)
2586 '(;; Many tests fail because they require networking.
2589 `(("python-requests" ,python-requests)))
2590 (home-page "https://github.com/sigmavirus24/betamax")
2591 (synopsis "Record HTTP interactions with python-requests")
2592 (description "Betamax will record your test suite's HTTP interactions and
2593 replay them during future tests. It is designed to work with python-requests.")
2594 (license license:expat)))
2596 (define-public python2-betamax
2597 (package-with-python2 python-betamax))
2599 (define-public python-betamax-matchers
2601 (name "python-betamax-matchers")
2606 (uri (pypi-uri "betamax-matchers" version))
2609 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
2610 (build-system python-build-system)
2612 `(("python-betamax" ,python-betamax)
2613 ("python-requests-toolbelt" ,python-requests-toolbelt)))
2614 (home-page "https://github.com/sigmavirus24/betamax_matchers")
2615 (synopsis "VCR imitation for python-requests")
2616 (description "@code{betamax-matchers} provides a set of Matchers for
2618 (license license:asl2.0)))
2620 (define-public python2-betamax-matchers
2621 (package-with-python2 python-betamax-matchers))
2623 (define-public python-s3transfer
2625 (name "python-s3transfer")
2629 (uri (pypi-uri "s3transfer" version))
2632 "08fhj73b1ai52hrs2q3nggshq3pswn1gq8ch3m009cb2v2vmqggj"))))
2633 (build-system python-build-system)
2636 (modify-phases %standard-phases
2637 (add-after 'unpack 'patch
2639 ;; There's a small issue with one test with Python 3.8, this
2640 ;; change has been suggested upstream:
2641 ;; https://github.com/boto/s3transfer/pull/164
2642 (substitute* "tests/unit/test_s3transfer.py"
2643 (("super\\(FailedDownloadParts, self\\)\\.submit\\(function\\)")
2644 "futures.Future()"))
2648 ;; Some of the 'integration' tests require network access or
2649 ;; login credentials.
2650 (invoke "nosetests" "--exclude=integration")
2653 `(("python-docutils" ,python-docutils)
2654 ("python-mock" ,python-mock)
2655 ("python-nose" ,python-nose)))
2657 `(("python-botocore" ,python-botocore)
2658 ("python-urllib3" ,python-urllib3)))
2659 (synopsis "Amazon S3 Transfer Manager")
2660 (description "S3transfer is a Python library for managing Amazon S3
2662 (home-page "https://github.com/boto/s3transfer")
2663 (license license:asl2.0)
2664 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2666 (define-public python2-s3transfer
2667 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2671 `(("python2-futures" ,python2-futures)
2672 ,@(package-native-inputs base))))))
2674 (define-public python-slimit
2676 (name "python-slimit")
2681 (uri (pypi-uri "slimit" version ".zip"))
2684 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2685 (build-system python-build-system)
2687 `(("unzip" ,unzip)))
2689 `(("python-ply" ,python-ply)))
2690 (home-page "https://slimit.readthedocs.io/")
2691 (synopsis "JavaScript minifier, parser and lexer written in Python")
2693 "SlimIt is a JavaScript minifier written in Python. It compiles
2694 JavaScript into more compact code so that it downloads and runs faster.
2695 SlimIt also provides a library that includes a JavaScript parser, lexer,
2696 pretty printer and a tree visitor.")
2697 (license license:expat)))
2699 (define-public python-flask-restful
2701 (name "python-flask-restful")
2706 (uri (pypi-uri "Flask-RESTful" version))
2707 (patches (search-patches "python-flask-restful-werkzeug-compat.patch"))
2710 "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
2711 (build-system python-build-system)
2713 `(("python-aniso8601" ,python-aniso8601)
2714 ("python-flask" ,python-flask)
2715 ("python-pycrypto" ,python-pycrypto)
2716 ("python-pytz" ,python-pytz)))
2718 `(;; Optional dependency of Flask. Tests need it.
2719 ("python-blinker" ,python-blinker)
2720 ("python-mock" ,python-mock) ; For tests
2721 ("python-nose" ,python-nose))) ;for tests
2723 "https://www.github.com/flask-restful/flask-restful/")
2725 "Flask module for creating REST APIs")
2727 "This package contains a Flask module for creating REST APIs.")
2728 (license license:bsd-3)))
2730 (define-public python-flask-basicauth
2732 (name "python-flask-basicauth")
2737 (uri (pypi-uri "Flask-BasicAuth" version))
2740 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2741 (build-system python-build-system)
2743 `(("python-flask" ,python-flask)))
2745 "https://github.com/jpvanhal/flask-basicauth")
2747 "HTTP basic access authentication for Flask")
2749 "This package provides HTTP basic access authentication for Flask.")
2750 (license license:bsd-3)))
2752 (define-public python-flask-htpasswd
2754 (name "python-flask-htpasswd")
2759 (uri (pypi-uri "flask-htpasswd" version))
2762 "14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra"))))
2763 (build-system python-build-system)
2765 `(("python-flask" ,python-flask)
2766 ("python-itsdangerous" ,python-itsdangerous)
2767 ("python-passlib" ,python-passlib)
2768 ("python-tox" ,python-tox)))
2769 (home-page "https://github.com/carsongee/flask-htpasswd")
2770 (synopsis "Basic authentication via htpasswd files in Flask applications")
2771 (description "This package provides Basic authentication via
2772 @file{htpasswd} files and access_token authentication in Flask
2774 (license license:bsd-3)))
2776 (define-public python-flask-sqlalchemy
2778 (name "python-flask-sqlalchemy")
2782 (uri (pypi-uri "Flask-SQLAlchemy" version))
2785 "1rgsj49gnx361hnb3vn6c1h17497qh22yc3r70l1r6w0mw71bixz"))))
2786 (build-system python-build-system)
2788 `(("python-flask" ,python-flask)
2789 ("python-sqlalchemy" ,python-sqlalchemy)))
2790 (home-page "https://github.com/mitsuhiko/flask-sqlalchemy")
2791 (synopsis "Module adding SQLAlchemy support to your Flask application")
2793 "This package adds SQLAlchemy support to your Flask application.")
2794 (license license:bsd-3)))
2796 (define-public python-flask-restplus
2798 (name "python-flask-restplus")
2803 (uri (pypi-uri "flask-restplus" version))
2806 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2807 (build-system python-build-system)
2809 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2811 ;; (modify-phases %standard-phases
2814 ;; (invoke "nosetests")
2817 `(("python-aniso8601" ,python-aniso8601)
2818 ("python-flask" ,python-flask)
2819 ("python-jsonschema" ,python-jsonschema)
2820 ("python-pytz" ,python-pytz)
2821 ("python-six" ,python-six)))
2823 `(("python-tzlocal" ,python-tzlocal)
2824 ("python-blinker" ,python-blinker)
2825 ("python-nose" ,python-nose)
2826 ("python-rednose" ,python-rednose)))
2827 (home-page "https://github.com/noirbizarre/flask-restplus")
2828 (synopsis "Framework for documented API development with Flask")
2829 (description "This package provides a framework for API development with
2830 the Flask web framework in Python. It is similar to package
2831 @code{python-flask-restful} but supports the @code{python-swagger}
2832 documentation builder.")
2833 (license license:expat)))
2835 (define-public python-flask-restful-swagger
2837 (name "python-flask-restful-swagger")
2842 (uri (pypi-uri "flask-restful-swagger" version))
2845 "1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq"))))
2846 (build-system python-build-system)
2847 (arguments '(#:tests? #f)) ;no tests
2849 `(("python-flask-restful" ,python-flask-restful)))
2850 (home-page "https://github.com/rantav/flask-restful-swagger")
2851 (synopsis "Extract Swagger specs from Flask-Restful projects")
2852 (description "This package lets you extract Swagger API documentation
2853 specs from your Flask-Restful projects.")
2854 (license license:expat)))
2856 (define-public python2-flask-restful-swagger
2857 (package-with-python2 python-flask-restful-swagger))
2859 (define-public python-htmlmin
2861 (name "python-htmlmin")
2866 (uri (pypi-uri "htmlmin" version))
2869 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2871 `(#:tests? #f)) ; no tests
2872 (build-system python-build-system)
2873 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2874 (synopsis "HTML minifier")
2875 (description "@code{htmlmin} is an HTML minifier that just works.
2876 It comes with safe defaults and easily configurable options.")
2877 (license license:bsd-3)))
2879 (define-public python2-htmlmin
2880 (package-with-python2 python-htmlmin))
2882 (define-public python-flask-htmlmin
2884 (name "python-flask-htmlmin")
2889 (uri (pypi-uri "Flask-HTMLmin" version))
2892 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2894 `(("python-flask" ,python-flask)
2895 ("python-htmlmin" ,python-htmlmin)))
2896 (build-system python-build-system)
2897 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2898 (synopsis "HTML response minifier for Flask")
2900 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2901 (license license:bsd-3)))
2903 (define-public python2-flask-htmlmin
2904 (package-with-python2 python-flask-htmlmin))
2906 (define-public python-jsmin
2908 (name "python-jsmin")
2913 (uri (pypi-uri "jsmin" version))
2916 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2917 (build-system python-build-system)
2918 (home-page "https://github.com/tikitu/jsmin/")
2919 (synopsis "Python JavaScript minifier")
2921 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2922 on the command line.")
2923 (license license:expat)))
2925 (define-public python-flask-login
2927 (name "python-flask-login")
2933 (url "https://github.com/maxcountryman/flask-login")
2935 (file-name (git-file-name name version))
2937 (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
2938 (build-system python-build-system)
2940 `(("python-flask" ,python-flask)))
2943 `(("python-blinker" ,python-blinker)
2944 ("python-coverage" ,python-coverage)
2945 ("python-mock" ,python-mock)
2946 ("python-pycodestyle" ,python-pycodestyle)
2947 ("python-pyflakes" ,python-pyflakes)
2948 ("python-pytest" ,python-pytest)
2949 ("python-semantic-version" ,python-semantic-version)
2950 ("python-werkzeug" ,python-werkzeug)))
2951 (home-page "https://github.com/maxcountryman/flask-login")
2952 (synopsis "User session management for Flask")
2954 "@code{Flask-Login} provides user session management for Flask. It
2955 handles the common tasks of logging in, logging out, and remembering your
2956 users' sessions over extended periods of time.")
2957 (license license:expat)))
2959 (define-public python2-flask-login
2960 (package-with-python2 python-flask-login))
2962 (define-public python-oauth2client
2964 (name "python-oauth2client")
2969 (uri (pypi-uri "oauth2client" version))
2972 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2973 (build-system python-build-system)
2977 `(("python-httplib2" ,python-httplib2)
2978 ("python-pyasn1" ,python-pyasn1)
2979 ("python-pyasn1-modules" ,python-pyasn1-modules)
2980 ("python-rsa" ,python-rsa)
2981 ("python-six" ,python-six)))
2982 (home-page "https://github.com/google/oauth2client/")
2983 (synopsis "OAuth 2.0 client library")
2984 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2985 library for Python")
2986 (license license:asl2.0)))
2988 (define-public python2-oauth2client
2989 (package-with-python2 python-oauth2client))
2991 (define-public python-flask-oidc
2993 (name "python-flask-oidc")
2998 (uri (pypi-uri "flask-oidc" version))
3001 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
3002 (build-system python-build-system)
3004 `(("python-flask" ,python-flask)
3005 ("python-itsdangerous" ,python-itsdangerous)
3006 ("python-oauth2client" ,python-oauth2client)
3007 ("python-six" ,python-six)))
3009 `(("python-nose" ,python-nose)
3010 ("python-mock" ,python-mock)))
3011 (home-page "https://github.com/puiterwijk/flask-oidc")
3012 (synopsis "OpenID Connect extension for Flask")
3013 (description "@code{python-flask-oidc} provides an OpenID Connect extension
3015 (license license:bsd-2)))
3017 (define-public python-webassets
3019 (name "python-webassets")
3024 (uri (pypi-uri "webassets" version))
3027 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
3028 (build-system python-build-system)
3030 `(("python-jinja2" ,python-jinja2)
3031 ("python-mock" ,python-mock)
3032 ("python-nose" ,python-nose)
3033 ("python-pytest" ,python-pytest)))
3034 (home-page "https://github.com/miracle2k/webassets")
3035 (synopsis "Media asset management")
3036 (description "Merges, minifies and compresses Javascript and CSS files,
3037 supporting a variety of different filters, including YUI, jsmin, jspacker or
3038 CSS tidy. Also supports URL rewriting in CSS files.")
3039 (license license:bsd-2)))
3041 (define-public python-cssmin
3043 (name "python-cssmin")
3048 (uri (pypi-uri "cssmin" version))
3051 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
3052 (build-system python-build-system)
3053 (home-page "https://github.com/zacharyvoase/cssmin")
3054 (synopsis "Python port of the YUI CSS Compressor")
3055 (description "Python port of the YUI CSS Compressor.")
3056 (license (list license:expat license:bsd-3))))
3058 (define-public python2-cssmin
3059 (package-with-python2 python-cssmin))
3061 (define-public python-elasticsearch
3063 (name "python-elasticsearch")
3068 (uri (pypi-uri "elasticsearch" version))
3071 "0rnjvlhw4v3vg14l519qliy1s1zpmx3827q0xfviwvk42rr7hh01"))))
3072 (build-system python-build-system)
3074 `(("python-mock" ,python-mock)
3075 ("python-nosexcover" ,python-nosexcover)
3076 ("python-pyaml" ,python-pyaml)
3077 ("python-requests" ,python-requests)))
3079 `(("urllib3" ,python-urllib3)))
3081 ;; tests require the test_elasticsearch module but it is not distributed.
3083 (home-page "https://github.com/elastic/elasticsearch-py")
3084 (synopsis "Low-level client for Elasticsearch")
3085 (description "Official low-level client for Elasticsearch. Its goal is to
3086 provide common ground for all Elasticsearch-related code in Python; because of
3087 this it tries to be opinion-free and very extendable.")
3088 (license license:expat)))
3090 (define-public python2-elasticsearch
3091 (package-with-python2 python-elasticsearch))
3093 (define-public python-flask-script
3095 (name "python-flask-script")
3100 (uri (pypi-uri "Flask-Script" version))
3103 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
3104 (build-system python-build-system)
3107 (modify-phases %standard-phases
3108 (add-after 'unpack 'patch-tests
3110 (substitute* "tests.py"
3111 (("flask\\.ext\\.script") "flask_script"))
3114 `(("python-flask" ,python-flask)
3115 ("python-argcomplete" ,python-argcomplete)
3116 ("python-werkzeug" ,python-werkzeug)))
3118 `(("python-pytest" ,python-pytest)))
3120 "https://github.com/smurfix/flask-script")
3121 (synopsis "Scripting support for Flask")
3122 (description "The Flask-Script extension provides support for writing
3123 external scripts in Flask. This includes running a development server,
3124 a customised Python shell, scripts to set up your database, cronjobs,
3125 and other command-line tasks that belong outside the web application
3127 (license license:bsd-3)))
3129 (define-public python2-flask-script
3130 (package-with-python2 python-flask-script))
3132 (define-public python-flask-migrate
3134 (name "python-flask-migrate")
3139 (uri (pypi-uri "Flask-Migrate" version))
3142 "1vip9ww6l18dxffjsggm83k71zkvihxpnhaswpv8klh95s6517d6"))))
3143 (build-system python-build-system)
3145 `(("python-flask" ,python-flask)
3146 ("python-alembic" ,python-alembic)
3147 ("python-sqlalchemy" ,python-sqlalchemy)
3148 ("python-flask-script" ,python-flask-script)
3149 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
3150 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
3151 (synopsis "SQLAlchemy database migrations for Flask programs using
3153 (description "This package contains SQLAlchemy database migration tools
3154 for Flask programs that are using @code{python-alembic}.")
3155 (license license:expat)))
3157 (define-public python-genshi
3159 (name "python-genshi")
3165 (url "https://github.com/edgewall/genshi")
3167 (file-name (git-file-name name version))
3169 (base32 "04bw7nd4wyn8ixnhik57hny2xpjjpn80k5hp6691inix5gc6rxaf"))))
3170 (build-system python-build-system)
3171 (home-page "https://genshi.edgewall.org/")
3172 (synopsis "Toolkit for generation of output for the web")
3173 (description "Genshi is a Python library that provides an integrated set
3174 of components for parsing, generating, and processing HTML, XML or other
3175 textual content for output generation on the web.")
3176 (license license:bsd-3)))
3178 (define-public python2-genshi
3179 (package-with-python2 python-genshi))
3181 (define-public python-flask-principal
3183 (name "python-flask-principal")
3188 (uri (pypi-uri "Flask-Principal" version))
3191 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
3192 (build-system python-build-system)
3194 `(("python-blinker" ,python-blinker)))
3196 `(("python-flask" ,python-flask)
3197 ("python-nose" ,python-nose)))
3198 (home-page "https://pythonhosted.org/Flask-Principal/")
3199 (synopsis "Identity management for Flask")
3200 (description "@code{flask_principal} is a identity management library for
3201 Flask. It supports managing both authentication and authorization data in a
3202 thread-local variable.")
3203 (license license:expat)))
3205 (define-public python2-flask-principal
3206 (package-with-python2 python-flask-principal))
3208 (define-public python-flask-httpauth
3210 (name "python-flask-httpauth")
3215 (uri (pypi-uri "Flask-HTTPAuth" version))
3218 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
3219 (build-system python-build-system)
3221 `(("python-flask" ,python-flask)))
3222 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
3223 (synopsis "Basic and Digest HTTP authentication for Flask routes")
3224 (description "@code{flask_httpauth} provides Basic and Digest HTTP
3225 authentication for Flask routes.")
3226 (license license:expat)))
3228 (define-public python2-flask-httpauth
3229 (package-with-python2 python-flask-httpauth))
3231 (define-public python-uritemplate
3233 (name "python-uritemplate")
3238 (uri (pypi-uri "uritemplate" version))
3241 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
3242 (build-system python-build-system)
3243 (home-page "https://uritemplate.readthedocs.org")
3244 (synopsis "Library to deal with URI Templates")
3245 (description "@code{uritemplate} provides Python library to deal with URI
3247 (license license:bsd-2)))
3249 (define-public python2-uritemplate
3250 (package-with-python2 python-uritemplate))
3252 (define-public python-publicsuffix
3254 (name "python-publicsuffix")
3258 (uri (pypi-uri "publicsuffix" version))
3261 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
3262 (build-system python-build-system)
3264 `(#:tests? #f)) ; tests use the internet
3265 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
3266 (synopsis "Get suffix for a domain name")
3267 (description "Get a public suffix for a domain name using the Public Suffix
3269 (license license:expat)))
3271 (define-public python2-publicsuffix
3272 (package-with-python2 python-publicsuffix))
3274 (define-public python-publicsuffix2
3276 (name "python-publicsuffix2")
3277 (version "2.20191221")
3281 (uri (pypi-uri "publicsuffix2" version))
3283 (base32 "0yzysvfj1najr1mb4pcqrbmjir3xpb69rlffln95a3cdm8qwry00"))))
3284 (build-system python-build-system)
3287 (modify-phases %standard-phases
3288 (add-after 'unpack 'ignore-maintainer-inputs
3290 ;; Comment out a demand for python-requests, which is used only by
3291 ;; the unused ‘update_psl’ helper command.
3292 (substitute* "setup.py"
3293 (("'requests " match)
3294 (format #f "# ~a" match)))
3296 #:tests? #f)) ; the test suite requires network access
3297 (home-page "https://github.com/pombredanne/python-publicsuffix2")
3298 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
3299 (description "Get a public suffix for a domain name using the Public Suffix
3300 List. Forked from and using the same API as the publicsuffix package.")
3301 (license (list license:expat license:mpl2.0))))
3303 (define-public python2-publicsuffix2
3304 (package-with-python2 python-publicsuffix2))
3306 (define-public python-werkzeug
3308 (name "python-werkzeug")
3313 (uri (pypi-uri "Werkzeug" version))
3316 "15kh0z61klp62mrc1prka13xsshxn0rsp1j1s2964iw86yisi6qn"))))
3317 (build-system python-build-system)
3320 (modify-phases %standard-phases
3322 (add-after 'install 'check
3323 (lambda* (#:key inputs outputs #:allow-other-keys)
3324 (add-installed-pythonpath inputs outputs)
3325 (invoke "python" "-m" "pytest"))))))
3327 `(("python-requests" ,python-requests)))
3329 `(("python-pytest" ,python-pytest)
3330 ("python-pytest-timeout" ,python-pytest-timeout)))
3331 (home-page "https://www.palletsprojects.org/p/werkzeug/")
3332 (synopsis "Utilities for WSGI applications")
3333 (description "One of the most advanced WSGI utility modules. It includes a
3334 powerful debugger, full-featured request and response objects, HTTP utilities to
3335 handle entity tags, cache control headers, HTTP dates, cookie handling, file
3336 uploads, a powerful URL routing system and a bunch of community-contributed
3338 (license license:x11)))
3340 (define-public python2-werkzeug
3341 (package-with-python2 python-werkzeug))
3343 (define-public python-bottle
3345 (name "python-bottle")
3350 (uri (pypi-uri "bottle" version))
3353 "17pn43kzr7m6czjbm4nda7kzs4ap9mmb30qfbhifyzas2i5vf688"))))
3354 (build-system python-build-system)
3355 (home-page "http://bottlepy.org/")
3356 (synopsis "WSGI framework for small web-applications.")
3357 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
3358 (license license:expat)))
3360 (define-public python2-bottle
3361 (package-with-python2 python-bottle))
3363 (define-public python-wtforms
3365 (name "python-wtforms")
3370 (uri (pypi-uri "WTForms" version ".zip"))
3373 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
3374 (build-system python-build-system)
3377 (modify-phases %standard-phases
3378 (add-after 'unpack 'remove-django-test
3379 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
3383 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
3384 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
3387 `(("unzip" ,unzip)))
3388 (home-page "http://wtforms.simplecodes.com/")
3390 "Form validation and rendering library for Python web development")
3392 "WTForms is a flexible forms validation and rendering library
3393 for Python web development. It is very similar to the web form API
3394 available in Django, but is a standalone package.")
3395 (license license:bsd-3)))
3397 (define-public python2-wtforms
3398 (package-with-python2 python-wtforms))
3400 (define-public python-paste
3402 (name "python-paste")
3407 (uri (pypi-uri "Paste" version))
3410 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
3411 (patches (search-patches "python-paste-remove-timing-test.patch"))
3412 (modules '((guix build utils)))
3415 ;; This test calls out to the internet.
3416 (delete-file "tests/test_proxy.py") #t))))
3417 (build-system python-build-system)
3419 `(("python-pytest" ,python-pytest)
3420 ("python-pytest-runner" ,python-pytest-runner)
3421 ("python-nose" ,python-nose)))
3423 `(("python-six" ,python-six)))
3424 (home-page "https://pythonpaste.readthedocs.io/")
3426 "Python web development tools, focusing on WSGI")
3428 "Paste provides a variety of web development tools and middleware which
3429 can be nested together to build web applications. Paste's design closely
3430 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
3431 (license license:expat)))
3433 (define-public python2-paste
3434 (package-with-python2 python-paste))
3436 (define-public python-pastescript
3438 (name "python-pastescript")
3443 (uri (pypi-uri "PasteScript" version))
3446 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
3447 (build-system python-build-system)
3449 `(("python-nose" ,python-nose)))
3451 `(("python-paste" ,python-paste)
3452 ("python-pastedeploy" ,python-pastedeploy)))
3453 (home-page (string-append "https://web.archive.org/web/20161025192515/"
3454 "http://pythonpaste.org/script/"))
3456 '(;; Unfortunately, this requires the latest unittest2,
3457 ;; but that requires traceback2 which requires linecache2 which requires
3458 ;; unittest2. So we're skipping tests for now.
3459 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
3460 ;; so in theory we could get around this situation somehow.)
3463 "Pluggable command line tool for serving web applications and more")
3465 "PasteScript is a plugin-friendly command line tool which provides a
3466 variety of features, from launching web applications to bootstrapping project
3468 (license license:expat)))
3470 (define-public python2-pastescript
3471 (package-with-python2 python-pastescript))
3473 (define-public python2-urlgrabber
3475 (name "python2-urlgrabber")
3480 (uri (pypi-uri "urlgrabber" version))
3482 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
3483 (build-system python-build-system)
3484 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
3485 (home-page "http://urlgrabber.baseurl.org")
3486 (synopsis "High-level cross protocol url-grabber")
3487 (description "@code{urlgrabber} is Python2 library that unifies access to
3488 files available on web, FTP or locally. It supports HTTP, FTP and file://
3489 protocols, it supports features like HTTP keep-alive, reget, throttling and
3491 (license license:lgpl2.1+)))
3493 (define-public python-pycares
3495 (name "python-pycares")
3500 (uri (pypi-uri "pycares" version))
3503 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
3504 (build-system python-build-system)
3506 `(#:tests? #f)) ;tests require internet access
3507 (home-page "https://github.com/saghul/pycares")
3508 (synopsis "Python interface for @code{c-ares}")
3509 (description "@code{pycares} is a Python module which provides an
3510 interface to @code{c-ares}, a C library that performs DNS requests and
3511 name resolutions asynchronously.")
3512 (license license:expat)))
3514 (define-public python-yarl
3516 (name "python-yarl")
3521 (uri (pypi-uri "yarl" version))
3524 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
3525 (build-system python-build-system)
3527 `(("python-pytest" ,python-pytest)
3528 ("python-pytest-runner" ,python-pytest-runner)))
3530 `(("python-idna" ,python-idna)
3531 ("python-multidict" ,python-multidict)))
3532 (home-page "https://github.com/aio-libs/yarl/")
3533 (synopsis "Yet another URL library")
3534 (description "@code{yarl} module provides handy @code{URL} class
3535 for URL parsing and changing.")
3536 (license license:asl2.0)))
3538 (define-public python-google-api-client
3540 (name "python-google-api-client")
3545 (uri (pypi-uri "google-api-python-client" version))
3548 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
3549 (build-system python-build-system)
3551 '(#:tests? #f)) ; tests require internet access
3553 `(("python-httplib2" ,python-httplib2)
3554 ("python-six" ,python-six)
3555 ("python-oauth2client" ,python-oauth2client)
3556 ("python-uritemplate" ,python-uritemplate)))
3557 (home-page "https://github.com/google/google-api-python-client")
3558 (synopsis "Core Python library for accessing Google APIs")
3559 (description "Python client library for Google's discovery based APIs")
3560 (license license:asl2.0)))
3562 (define-public python2-google-api-client
3563 (package-with-python2 python-google-api-client))
3565 (define-public python-hawkauthlib
3567 (name "python-hawkauthlib")
3572 (uri (pypi-uri "hawkauthlib" version))
3575 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
3576 (build-system python-build-system)
3578 `(("python-requests" ,python-requests)
3579 ("python-webob" ,python-webob)))
3580 (home-page "https://github.com/mozilla-services/hawkauthlib")
3581 (synopsis "Hawk Access Authentication protocol")
3583 "This is a low-level Python library for implementing Hawk Access Authentication,
3584 a simple HTTP request-signing scheme.")
3585 (license license:mpl2.0)))
3587 (define-public python-pybrowserid
3589 (name "python-pybrowserid")
3594 (uri (pypi-uri "PyBrowserID" version))
3597 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
3598 (build-system python-build-system)
3600 `(("python-requests" ,python-requests)))
3602 `(("python-mock" ,python-mock)))
3603 (home-page "https://github.com/mozilla/PyBrowserID")
3604 (synopsis "Python library for the BrowserID protocol")
3606 "This is a Python client library for the BrowserID protocol that
3607 underlies Mozilla Persona.")
3608 (license license:mpl2.0)))
3610 (define-public python-pyfxa
3612 (name "python-pyfxa")
3617 (uri (pypi-uri "PyFxA" version))
3620 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
3621 (build-system python-build-system)
3622 (arguments '(#:tests? #f)) ; 17 tests require network access
3624 `(("python-cryptography" ,python-cryptography)
3625 ("python-hawkauthlib" ,python-hawkauthlib)
3626 ("python-pybrowserid" ,python-pybrowserid)
3627 ("python-requests" ,python-requests)
3628 ("python-six" ,python-six)))
3630 `(("python-grequests" ,python-grequests)
3631 ("python-mock" ,python-mock)
3632 ("python-responses" ,python-responses)
3633 ("python-unittest2" ,python-unittest2)))
3634 (home-page "https://github.com/mozilla/PyFxA")
3635 (synopsis "Firefox Accounts client library for Python")
3637 "This is a Python library for interacting with the Firefox Accounts
3639 (license license:mpl2.0)))
3641 (define-public python-hyperlink
3643 (name "python-hyperlink")
3648 (uri (pypi-uri "hyperlink" version))
3651 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
3652 (build-system python-build-system)
3654 `(("python-idna" ,python-idna)))
3655 (home-page "https://github.com/python-hyper/hyperlink")
3656 (synopsis "Python module to create immutable URLs according to spec")
3657 (description "This package provides a Python module to create immutable, and
3658 correct URLs for Python according to RFCs 3986 and 3987.")
3659 (license license:expat)))
3661 (define-public python-treq
3663 (name "python-treq")
3668 (uri (pypi-uri "treq" version))
3671 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
3672 (build-system python-build-system)
3674 `(("python-attrs" ,python-attrs)
3675 ("python-idna" ,python-idna)
3676 ("python-incremental" ,python-incremental)
3677 ("python-requests" ,python-requests)
3678 ("python-service-identity" ,python-service-identity)
3679 ("python-twisted" ,python-twisted)))
3680 (home-page "https://github.com/twisted/treq")
3681 (synopsis "Requests-like API built on top of twisted.web's Agent")
3682 (description "This package provides an HTTP library inspired by
3683 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3684 high level API for making HTTP requests when using Twisted.")
3685 (license license:expat)))
3687 (define-public python-autobahn
3689 (name "python-autobahn")
3694 (uri (pypi-uri "autobahn" version))
3697 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3698 (build-system python-build-system)
3700 ;; The tests fail to run:
3701 ;; https://github.com/crossbario/autobahn-python/issues/1117
3704 `(("python-cffi" ,python-cffi)
3705 ("python-twisted" ,python-twisted)
3706 ("python-txaio" ,python-txaio)))
3707 (home-page "https://crossbar.io/autobahn/")
3708 (synopsis "Web Application Messaging Protocol implementation")
3709 (description "This package provides an implementation of the @dfn{Web Application
3710 Messaging Protocol} (WAMP). WAMP connects components in distributed
3711 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3712 Calls (rRPC). It is ideal for distributed, multi-client and server applications
3713 such as IoT applications or multi-user database-driven business applications.")
3714 (license license:expat)))
3716 (define-public python-ws4py
3718 (name "python-ws4py")
3723 (uri (pypi-uri "ws4py" version))
3726 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3727 (build-system python-build-system)
3730 (modify-phases %standard-phases
3731 (add-after 'unpack 'python3.7-compatibility
3733 (substitute* '("ws4py/server/tulipserver.py"
3734 "ws4py/async_websocket.py")
3736 "asyncio.ensure_future"))
3738 ;; We don't have a package for cherrypy.
3739 (add-after 'unpack 'remove-cherrypy-support
3741 (delete-file "ws4py/server/cherrypyserver.py")
3744 `(("python-gevent" ,python-gevent)
3745 ("python-tornado" ,python-tornado)))
3746 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3747 (synopsis "WebSocket client and server library")
3749 "This package provides a WebSocket client and server library for
3751 (license license:bsd-3)))
3753 (define-public python-slugify
3755 (name "python-slugify")
3760 (uri (pypi-uri "python-slugify" version))
3762 (base32 "0w22fapghmzk3xdasc4dn7h8sl58l08d1h5zbf72dh80drv1g9b9"))))
3764 `(("python-unidecode" ,python-unidecode)))
3767 (modify-phases %standard-phases
3770 (invoke "python" "test.py"))))))
3771 (build-system python-build-system)
3772 (home-page "https://github.com/un33k/python-slugify")
3773 (synopsis "Python Slugify application that handles Unicode")
3774 (description "This package provides a @command{slufigy} command and
3775 library to create slugs from unicode strings while keeping it DRY.")
3776 (license license:expat)))
3778 (define-public python-branca
3780 (name "python-branca")
3785 (uri (pypi-uri "branca" version))
3788 "0pmigd521j2228xf8x34vbx0niwvms7xl7za0lymywj0vydjqxiy"))))
3789 (build-system python-build-system)
3791 `(("python-jinja2" ,python-jinja2)
3792 ("python-six" ,python-six)))
3794 `(("python-pytest" ,python-pytest)))
3795 (home-page "https://github.com/python-visualization/branca")
3796 (synopsis "Generate complex HTML+JS pages with Python")
3797 (description "Generate complex HTML+JS pages with Python")
3798 (license license:expat)))
3800 (define-public python-tinycss2
3802 (name "python-tinycss2")
3807 (uri (pypi-uri "tinycss2" version))
3808 (patches (search-patches "python-tinycss2-flake8-compat.patch"))
3810 (base32 "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4"))))
3811 (build-system python-build-system)
3814 (modify-phases %standard-phases
3816 (lambda _ (invoke "pytest"))))))
3818 `(("python-webencodings" ,python-webencodings)))
3820 `(("python-pytest-flake8" ,python-pytest-flake8)
3821 ("python-pytest-isort" ,python-pytest-isort)
3822 ("python-pytest-runner" ,python-pytest-runner)))
3823 (home-page "https://tinycss2.readthedocs.io/")
3824 (synopsis "Low-level CSS parser for Python")
3825 (description "@code{tinycss2} can parse strings, return Python objects
3826 representing tokens and blocks, and generate CSS strings corresponding to
3829 Based on the CSS Syntax Level 3 specification, @code{tinycss2} knows the
3830 grammar of CSS but doesn’t know specific rules, properties or values supported
3831 in various CSS modules.")
3832 (license license:bsd-3)))
3834 (define-public python-cssselect2
3836 (name "python-cssselect2")
3841 (uri (pypi-uri "cssselect2" version))
3843 (base32 "0skymzb4ncrm2zdsy80f53vi0arf776lvbp51hzh4ayp1il5lj3h"))))
3844 (build-system python-build-system)
3847 (modify-phases %standard-phases
3849 (lambda _ (invoke "pytest"))))))
3851 `(("python-tinycss2" ,python-tinycss2)))
3853 `(("python-pytest-cov" ,python-pytest-cov)
3854 ("python-pytest-flake8" ,python-pytest-flake8)
3855 ("python-pytest-isort" ,python-pytest-isort)
3856 ("python-pytest-runner" ,python-pytest-runner)))
3857 (home-page "https://cssselect2.readthedocs.io/")
3858 (synopsis "CSS selectors for Python ElementTree")
3859 (description "@code{cssselect2} is a straightforward implementation of
3860 CSS3 Selectors for markup documents (HTML, XML, etc.) that can be read by
3861 ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.).
3863 Unlike the Python package @code{cssselect}, it does not translate selectors to
3864 XPath and therefore does not have all the correctness corner cases that are
3865 hard or impossible to fix in cssselect.")
3866 (license license:bsd-3)))
3868 (define-public gunicorn
3875 (uri (pypi-uri "gunicorn" version))
3878 "09n6fc019bgrvph1s5h1lwhn2avcsprw6ncd203qhra3i8mvn10r"))))
3879 (outputs '("out" "doc"))
3880 (build-system python-build-system)
3883 (modify-phases %standard-phases
3884 (add-after 'build 'build-doc
3886 (invoke "make" "-C" "docs" "PAPER=a4" "html" "info")
3887 (delete-file "docs/build/texinfo/Makefile")
3888 (delete-file "docs/build/texinfo/Gunicorn.texi")
3892 (setenv "PYTHONPATH"
3893 (string-append ".:" (getenv "PYTHONPATH")))
3895 (add-after 'install 'install-doc
3896 (lambda* (#:key outputs #:allow-other-keys)
3897 (let* ((doc (string-append (assoc-ref outputs "doc")
3898 "/share/doc/" ,name "-" ,version))
3899 (html (string-append doc "/html"))
3900 (info (string-append doc "/info"))
3901 (examples (string-append doc "/examples")))
3905 (copy-recursively "docs/build/html" html)
3906 (copy-recursively "docs/build/texinfo" info)
3907 (copy-recursively "examples" examples)
3908 (for-each (lambda (file)
3909 (copy-file file (string-append doc "/" file)))
3910 '("README.rst" "NOTICE" "LICENSE" "THANKS")))
3913 `(("binutils" ,binutils) ;; for ctypes.util.find_library()
3914 ("python-aiohttp", python-aiohttp)
3915 ("python-pytest" ,python-pytest)
3916 ("python-pytest-cov" ,python-pytest-cov)
3917 ("python-sphinx" ,python-sphinx)
3918 ("texinfo" ,texinfo)))
3919 (home-page "https://gunicorn.org/")
3920 (synopsis "Python WSGI HTTP Server for UNIX")
3921 (description "Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP
3922 Server for UNIX. It’s a pre-fork worker model ported from Ruby’s
3923 Unicorn project. The Gunicorn server is broadly compatible with
3924 various web frameworks, simply implemented, light on server resources,
3925 and fairly speedy.")
3926 (license license:expat)))
3928 ;; break cyclic dependency for python-aiohttp, which depends on gunicorn for
3930 (define-public gunicorn-bootstrap
3934 (arguments `(#:tests? #f))
3935 (properties '((hidden? . #t)))
3936 (native-inputs `())))
3938 (define-public python-translation-finder
3940 (name "python-translation-finder")
3945 (uri (pypi-uri "translation-finder" version))
3948 "1pcy9z8gmb8x41gjhw9x0lkr0d2mv5mdxcs2hwg6q8mxs857j589"))))
3949 (build-system python-build-system)
3952 (modify-phases %standard-phases
3953 (add-before 'build 'remove-failing-test
3955 (delete-file "translation_finder/test_api.py")
3958 `(("python-chardet" ,python-chardet)
3959 ("python-pathlib2" ,python-pathlib2)
3960 ("python-ruamel.yaml" ,python-ruamel.yaml)
3961 ("python-six" ,python-six)))
3963 `(("python-codecov" ,python-codecov)
3964 ("python-codacy-coverage" ,python-codacy-coverage)
3965 ("python-pytest-cov" ,python-pytest-cov)
3966 ("python-pytest-runner" ,python-pytest-runner)
3967 ("python-twine" ,python-twine)))
3968 (home-page "https://weblate.org/")
3969 (synopsis "Translation file finder for Weblate")
3970 (description "This package provides a function to find translation file in
3971 the source code of a project. It supports many translation file formats and
3972 is part of the Weblate translation platform.")
3973 (license license:gpl3+)))
3975 (define-public python-gitlab
3977 (name "python-gitlab")
3982 (uri (pypi-uri "python-gitlab" version))
3985 "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5"))))
3986 (build-system python-build-system)
3988 `(("python-requests" ,python-requests)
3989 ("python-six" ,python-six)))
3991 `(("python-httmock" ,python-httmock)
3992 ("python-mock" ,python-mock)))
3994 "https://github.com/python-gitlab/python-gitlab")
3995 (synopsis "Interact with GitLab API")
3996 (description "This package provides an extended library for interacting
3997 with GitLab instances through their API.")
3998 (license license:lgpl3+)))
4000 (define-public python-path-and-address
4002 (name "python-path-and-address")
4006 ;; The source distributed on PyPI doesn't include tests.
4009 (url "https://github.com/joeyespo/path-and-address")
4010 (commit (string-append "v" version))))
4011 (file-name (git-file-name name version))
4014 "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6"))))
4015 (build-system python-build-system)
4018 (modify-phases %standard-phases
4020 (lambda* (#:key inputs outputs #:allow-other-keys)
4021 (add-installed-pythonpath inputs outputs)
4022 (invoke "py.test"))))))
4024 `(("python-pytest" ,python-pytest)))
4025 (home-page "https://github.com/joeyespo/path-and-address")
4026 (synopsis "Functions for command-line server tools used by humans")
4027 (description "Path-and-address resolves ambiguities of command-line
4028 interfaces, inferring which argument is the path, and which is the address.")
4029 (license license:expat)))
4032 ;; No release by upstream for quite some time, some bugs fixed since. See:
4033 ;; https://github.com/joeyespo/grip/issues/304
4034 (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3"))
4037 (version (git-version "4.5.2" "1" commit))
4042 (url "https://github.com/joeyespo/grip")
4044 (file-name (git-file-name name version))
4047 "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w"))))
4048 (build-system python-build-system)
4050 `(("python-docopt" ,python-docopt)
4051 ("python-flask" ,python-flask)
4052 ("python-markdown" ,python-markdown)
4053 ("python-path-and-address" ,python-path-and-address)
4054 ("python-pygments" ,python-pygments)
4055 ("python-requests" ,python-requests)))
4057 `(("python-pytest" ,python-pytest)
4058 ("python-responses" ,python-responses)))
4061 (modify-phases %standard-phases
4063 (lambda* (#:key inputs outputs #:allow-other-keys)
4064 (add-installed-pythonpath inputs outputs)
4065 (setenv "PATH" (string-append
4067 (assoc-ref %outputs "out") "/bin"))
4068 (invoke "py.test" "-m" "not assumption"))))))
4069 (home-page "https://github.com/joeyespo/grip")
4070 (synopsis "Preview Markdown files using the GitHub API")
4071 (description "Grip is a command-line server application written in Python
4072 that uses the GitHub Markdown API to render a local Markdown file. The styles
4073 and rendering come directly from GitHub, so you'll know exactly how it will
4074 appear. Changes you make to the file will be instantly reflected in the browser
4075 without requiring a page refresh.")
4076 (license license:expat))))
4078 (define-public python-port-for
4080 (name "python-port-for")
4085 (uri (pypi-uri "port-for" version))
4088 "1pncxlj25ggw99r0ijfbkq70gd7cbhqdx5ivsxy4jdp0z14cpda7"))))
4089 (build-system python-build-system)
4092 (modify-phases %standard-phases
4093 (add-after 'unpack 'use-urllib3
4095 (substitute* "port_for/_download_ranges.py"
4096 (("urllib2") "urllib3"))
4099 `(("python-urllib3" ,python-urllib3)))
4101 `(("python-mock" ,python-mock)))
4102 (home-page "https://github.com/kmike/port-for/")
4103 (synopsis "TCP localhost port finder and association manager")
4105 "This package provides a utility that helps with local TCP ports
4106 management. It can find an unused TCP localhost port and remember the
4108 (license license:expat)))
4110 (define-public python-livereload
4112 (name "python-livereload")
4117 (uri (pypi-uri "livereload" version))
4120 "0rhggz185bxc3zjnfpmhcvibyzi86i624za1lfh7x7ajsxw4y9c9"))))
4121 (build-system python-build-system)
4123 `(("python-six" ,python-six)
4124 ("python-tornado" ,python-tornado)))
4125 (home-page "https://github.com/lepture/python-livereload")
4126 (synopsis "Python LiveReload")
4128 "Python LiveReload provides a command line utility, @command{livereload},
4129 for starting a web server in a directory. It can trigger arbitrary commands
4130 and serve updated contents upon changes to the directory.")
4131 (license license:bsd-3)))
4133 (define-public python-vf-1
4135 (name "python-vf-1")
4140 (uri (pypi-uri "VF-1" version))
4143 "0xlqsaxsiayk1sd07kpz8abbcnab582y29a1y4882fq6j4gma5xi"))))
4144 (build-system python-build-system)
4145 (home-page "https://github.com/solderpunk/VF-1")
4146 (synopsis "Command line gopher client")
4147 (description "@code{VF-1} is a command line gopher client with
4148 @acronym{TLS, Transport Layer Security} support.")
4149 (license license:bsd-2)))
4151 (define-public python-websockets
4153 (name "python-websockets")
4158 (uri (pypi-uri "websockets" version))
4161 "03s3ml6sbki24aajllf8aily0xzrn929zxi84p50zkkbikdd4raw"))))
4162 (build-system python-build-system)
4163 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
4164 (home-page "https://github.com/aaugustin/websockets")
4166 "Python implementation of the WebSocket Protocol (RFC 6455 & 7692)")
4168 "@code{websockets} is a library for building WebSocket servers and clients
4169 in Python with a focus on correctness and simplicity.
4171 Built on top of @code{asyncio}, Python's standard asynchronous I/O framework,
4172 it provides an elegant coroutine-based API.")
4173 (license license:bsd-3)))
4175 (define-public python-selenium
4177 (name "python-selenium")
4182 (uri (pypi-uri "selenium" version))
4185 "039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy"))))
4186 (build-system python-build-system)
4188 `(("python-urllib3" ,python-urllib3)))
4190 "https://github.com/SeleniumHQ/selenium/")
4191 (synopsis "Python bindings for Selenium")
4192 (description "Selenium enables web browser automation.
4193 Selenium specifically provides infrastructure for the W3C WebDriver specification
4194 — a platform and language-neutral coding interface compatible with all
4195 major web browsers.")
4196 (license license:asl2.0)))
4198 (define-public python-rapidjson
4200 (name "python-rapidjson")
4205 (uri (pypi-uri "python-rapidjson" version))
4208 "18cl2dhx3gds5vg52jxmh9wjlbiy8dx06c3n482rfpdi9dzbv05d"))
4209 (modules '((guix build utils)))
4211 '(begin (delete-file-recursively "rapidjson") #t))))
4212 (build-system python-build-system)
4215 (list (string-append "--rj-include-dir="
4216 (assoc-ref %build-inputs "rapidjson")
4217 "/include/rapidjson"))
4219 (modify-phases %standard-phases
4221 (lambda* (#:key inputs #:allow-other-keys)
4222 (invoke "python" "setup.py" "build"
4223 (string-append "--rj-include-dir="
4224 (assoc-ref %build-inputs "rapidjson")
4225 "/include/rapidjson"))))
4227 (lambda* (#:key inputs outputs #:allow-other-keys)
4228 (add-installed-pythonpath inputs outputs)
4229 ;; Some tests are broken.
4230 (delete-file "tests/test_base_types.py")
4231 (delete-file "tests/test_validator.py")
4232 (invoke "python" "-m" "pytest" "tests"))))))
4234 `(("rapidjson" ,rapidjson)
4235 ("python-pytest" ,python-pytest)
4236 ("python-pytz" ,python-pytz)))
4237 (home-page "https://github.com/python-rapidjson/python-rapidjson")
4238 (synopsis "Python wrapper around rapidjson")
4239 (description "This package provides a python wrapper around rapidjson.")
4240 (license license:expat)))
4242 (define-public python-venusian
4244 (name "python-venusian")
4249 (uri (pypi-uri "venusian" version))
4251 (base32 "0f7f67dkgxxcjfhpdd5frb9pszkf04lyzzpn5069q0xi89r2p17n"))))
4252 (build-system python-build-system)
4254 `(("python-pytest" ,python-pytest)
4255 ("python-runner" ,python-pytest-runner)
4256 ("python-pytest-cov" ,python-pytest-cov)))
4257 (arguments '(#:test-target "pytest"))
4258 (home-page "https://docs.pylonsproject.org/projects/venusian")
4259 (synopsis "Library for defering decorator actions")
4261 "Venusian is a library which allows framework authors to defer decorator
4262 actions. Instead of taking actions when a function (or class) decorator is
4263 executed at import time, you can defer the action usually taken by the
4264 decorator until a separate scan phase.")
4265 (license license:repoze)))
4267 (define-public python-zope-deprecation
4269 (name "python-zope-deprecation")
4273 (uri (pypi-uri "zope.deprecation" version))
4276 "1pz2cv7gv9y1r3m0bdv7ks1alagmrn5msm5spwdzkb2by0w36i8d"))))
4277 (build-system python-build-system)
4279 (propagated-inputs `())
4280 (home-page "https://zopedeprecation.readthedocs.io/")
4281 (synopsis "Function for marking deprecations")
4282 (description "The @code{zope.deprecation} module provides a function for
4283 marking modules, classes, functions, methods and properties as deprecated,
4284 displaying warnings when usaged in application code.")
4285 (license license:zpl2.1)))
4287 (define-public python-translationstring
4289 (name "python-translationstring")
4293 (uri (pypi-uri "translationstring" version))
4296 "0bdpcnd9pv0131dl08h4zbcwmgc45lyvq3pa224xwan5b3x4rr2f"))))
4297 (build-system python-build-system)
4298 (home-page "http://docs.pylonsproject.org/projects/translationstring")
4299 (synopsis "Internationalization tooling for the Pylons project")
4300 (description "This package provides a library used by various Pylons
4301 project packages for internationalization (i18n) duties related to
4303 (license license:repoze)))
4305 (define-public python-plaster
4307 (name "python-plaster")
4311 (uri (pypi-uri "plaster" version))
4314 "1hy8k0nv2mxq94y5aysk6hjk9ryb4bsd13g83m60hcyzxz3wflc3"))))
4315 (build-system python-build-system)
4317 `(("python-pytest" ,python-pytest)))
4318 (home-page "https://docs.pylonsproject.org/projects/plaster/en/latest/")
4319 (synopsis "Configuration loader for multiple config file formats")
4321 "Plaster is a loader interface around multiple config file formats. It
4322 exists to define a common API for applications to use when they wish to load
4323 configuration. The library itself does not aim to handle anything except a
4324 basic API that applications may use to find and load configuration settings.
4325 Any specific constraints should be implemented in a pluggable loader which can
4326 be registered via an entrypoint.")
4327 (license license:repoze)))
4329 (define-public python-plaster-pastedeploy
4331 (name "python-plaster-pastedeploy")
4335 (uri (pypi-uri "plaster_pastedeploy" version))
4338 "1zg7gcsvc1kzay1ry5p699rg2qavfsxqwl17mqxzr0gzw6j9679r"))))
4339 (build-system python-build-system)
4341 `(("python-pytest" ,python-pytest)))
4343 `(("python-plaster" ,python-plaster)
4344 ("python-pastedeploy" ,python-pastedeploy)))
4345 (home-page "https://github.com/Pylons/plaster_pastedeploy")
4346 (synopsis "Plugin for python-plaster adding PasteDeploy syntax")
4348 "This plugin for @code{python-plaster} adds support for PasteDeploy
4349 syntax, it provides a plaster @code{Loader} object that can parse ini files
4350 according to the standard set by PasteDeploy ")
4351 (license license:expat)))
4353 (define-public python-hupper
4355 (name "python-hupper")
4359 (uri (pypi-uri "hupper" version))
4362 "0am0p6g5cz6xmcaf04xq8q6dzdd9qz0phj6gcmpsckf2mcyza61q"))))
4363 (build-system python-build-system)
4364 (arguments '(#:test-target "pytest"))
4366 `(("python-pytest" ,python-pytest)
4367 ("python-pytest-runner" ,python-pytest-runner)
4368 ("python-watchdog" ,python-watchdog)
4369 ("python-mock" ,python-mock)
4370 ("python-pytest-cov" ,python-pytest-cov)))
4372 `(("python-pytz" ,python-pytz)))
4373 (home-page "https://readthedocs.org/projects/hupper")
4374 (synopsis "Integrated process monitor tracking changes to imported Python files")
4376 "Hupper is an integrated process monitor that will track changes to any
4377 imported Python files in sys.modules as well as custom paths. When files are
4378 changed the process is restarted.")
4379 (license license:expat)))
4381 (define-public python-pyramid
4383 (name "python-pyramid")
4387 (uri (pypi-uri "pyramid" version))
4390 "0rkxs1ajycg2zh1c94xlmls56mx5m161sn8112skj0amza6cn36q"))))
4391 (build-system python-build-system)
4393 `(("python-hupper" ,python-hupper)
4394 ("python-plaster-pastedeploy" ,python-plaster-pastedeploy)
4395 ("python-translationstring" ,python-translationstring)
4396 ("python-venusian" ,python-venusian)
4397 ("python-webob" ,python-webob)
4398 ("python-zope-deprecation" ,python-zope-deprecation)
4399 ("python-zope-interface" ,python-zope-interface)
4400 ("python-webtest" ,python-webtest)
4401 ("python-zope-component" ,python-zope-component)
4402 ("python-plaster" ,python-plaster)))
4403 (home-page "https://trypyramid.com/")
4404 (synopsis "Python web-framework suitable for small and large sites")
4406 "Pyramid makes it easy to write web applications. From minimal
4407 request/response web apps to larger, grown applications.")
4408 (license license:repoze)))
4410 (define-public python-random-user-agent
4412 (name "python-random-user-agent")
4417 (uri (pypi-uri "random_user_agent" version))
4420 "04nhzdh2ki7ybhjrmghxci6hcm6i03vvin2q2ynj87fbr1pa534g"))))
4421 (build-system python-build-system)
4422 (home-page "https://github.com/Luqman-Ud-Din/random_user_agent")
4423 (synopsis "List of user agents")
4425 "This package provides a list of user agents, from a collection of more
4426 than 326,000 known user-agents. Users can pick a random one, or select one
4428 (license license:expat)))
4430 (define-public python-flask-restx
4432 (name "python-flask-restx")
4435 ;; We fetch from the Git repo because there are no tests in the PyPI
4440 (url "https://github.com/python-restx/flask-restx")
4442 (file-name (git-file-name name version))
4444 (base32 "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7"))))
4445 (build-system python-build-system)
4447 `(("python-aniso8601" ,python-aniso8601)
4448 ("python-flask" ,python-flask)
4449 ("python-jsonschema" ,python-jsonschema)
4450 ("python-pytz" ,python-pytz)))
4452 `(("python-blinker" ,python-blinker)
4453 ("python-faker" ,python-faker)
4454 ("python-pytest" ,python-pytest)
4455 ("python-pytest-benchmark"
4456 ,python-pytest-benchmark)
4457 ("python-pytest-flask" ,python-pytest-flask)
4458 ("python-pytest-mock" ,python-pytest-mock)))
4461 (modify-phases %standard-phases
4464 (invoke "pytest" "--benchmark-skip" "-k"
4465 ;; Those tests need internet access
4466 "not test_check and not test_valid_value_check"))))))
4467 (home-page "https://github.com/python-restx/flask-restx")
4469 "Framework for fast, easy and documented API development with Flask")
4471 "Flask-RESTX is an extension for Flask that adds support for quickly building
4472 REST APIs. Flask-RESTX encourages best practices with minimal setup. If you are familiar
4473 with Flask, Flask-RESTX should be easy to pick up. It provides a coherent collection of
4474 decorators and tools to describe your API and expose its documentation properly using
4476 (license license:bsd-3)))
4478 (define-public python-manuel
4480 (name "python-manuel")
4485 (uri (pypi-uri "manuel" version))
4488 "1bdzay7j70fly5fy6wbdi8fbrxjrrlxnxnw226rwry1c8a351rpy"))))
4489 (build-system python-build-system)
4491 `(("python-six" ,python-six)))
4493 `(("python-zope-testing" ,python-zope-testing)))
4494 (home-page "https://pypi.org/project/manuel/")
4495 (synopsis "Build tested documentation")
4497 "Manuel lets you mix and match traditional doctests with custom test syntax.")
4498 (license license:asl2.0)))
4500 (define-public python-persistent
4502 (name "python-persistent")
4507 (uri (pypi-uri "persistent" version))
4510 "0imm9ji03lhkpcfmhid7x5209ix8g2rlgki9ik1qxks4b8sm8gzq"))))
4511 (build-system python-build-system)
4513 `(("python-cffi" ,python-cffi)
4514 ("python-zope-interface" ,python-zope-interface)))
4516 `(("python-manuel" ,python-manuel)
4517 ("python-zope-testrunner" ,python-zope-testrunner)))
4518 (home-page "https://github.com/zopefoundation/persistent/")
4519 (synopsis "Translucent persistent objects")
4520 (description "This package contains a generic persistence implementation for
4521 Python. It forms the core protocol for making objects interact
4522 \"transparently\" with a database such as the ZODB.")
4523 (license license:zpl2.1)))
4525 (define-public python-btrees
4527 (name "python-btrees")
4532 (uri (pypi-uri "BTrees" version))
4535 "0iiq0g9k1g6qgqq84q9h6639vlvzznk1rgdm0rfcnnqkbkmsbr3w"))))
4536 (build-system python-build-system)
4538 `(("python-persistent" ,python-persistent)
4539 ("python-zope-interface" ,python-zope-interface)))
4541 `(("python-persistent" ,python-persistent)
4542 ("python-transaction" ,python-transaction)
4543 ("python-zope-testrunner" ,python-zope-testrunner)))
4544 (home-page "https://github.com/zopefoundation/BTrees")
4545 (synopsis "Scalable persistent object containers")
4547 "This package contains a set of persistent object containers built around a
4548 modified BTree data structure. The trees are optimized for use inside ZODB's
4549 \"optimistic concurrency\" paradigm, and include explicit resolution of
4550 conflicts detected by that mechanism.")
4551 (license license:zpl2.1)))
4553 (define-public python-transaction
4555 (name "python-transaction")
4560 (uri (pypi-uri "transaction" version))
4563 "0bdaks31bgfh78wnj3sij24bfysmqk25crsis6amz8kzrc0d82iv"))))
4564 (build-system python-build-system)
4566 `(("python-zope-interface" ,python-zope-interface)))
4568 `(("python-coverage" ,python-coverage)
4569 ("python-mock" ,python-mock)
4570 ("python-nose" ,python-nose)))
4571 (home-page "https://github.com/zopefoundation/transaction")
4572 (synopsis "Transaction management for Python")
4573 (description "This package contains a generic transaction implementation
4574 for Python. It is mainly used by the ZODB.")
4575 (license license:zpl2.1)))
4577 (define-public python-robot-detection
4579 (name "python-robot-detection")
4584 (uri (pypi-uri "robot-detection" version))
4587 "1xd2jm3yn31bnk1kqzggils2rxj26ylxsfz3ap7bhr3ilhnbg3rx"))))
4588 (build-system python-build-system)
4589 (arguments '(#:tests? #f)) ; Tests not shipped in pypi release.
4590 (propagated-inputs `(("python-six" ,python-six)))
4591 (home-page "https://github.com/rory/robot-detection")
4592 (synopsis "Detect web crawlers")
4594 "@code{robot_detection} is a python module to detect if a given HTTP User
4595 Agent is a web crawler. It uses the list of registered robots from
4596 @url{http://www.robotstxt.org}.")
4597 (license license:gpl3+)))
4599 (define-public python-pysolr
4601 (name "python-pysolr")
4606 (uri (pypi-uri "pysolr" version))
4609 "1rj5jmscvxjwcmlfi6hmkj44l4x6n3ln5p7d8d18j566hzmmzw3f"))))
4610 (build-system python-build-system)
4612 '(#:tests? #f)) ; Tests require network access.
4614 `(("python-requests" ,python-requests)))
4616 `(("python-setuptools-scm" ,python-setuptools-scm)))
4617 (home-page "https://github.com/django-haystack/pysolr/")
4618 (synopsis "Lightweight python wrapper for Apache Solr")
4620 "This module provides an interface that queries the Apache Solr server
4621 using a pure Python implementation.")
4622 (license license:bsd-3)))
4624 (define-public python-http-ece
4626 (name "python-http-ece")
4632 (url "https://github.com/web-push-libs/encrypted-content-encoding")
4633 (commit (string-append "v" version))))
4634 (file-name (git-file-name name version))
4637 "0bp4cc0xc123i72h80ax3qz3ixfwx3j7pw343kc7i6kdvfi8klx7"))))
4638 (build-system python-build-system)
4641 (modify-phases %standard-phases
4642 (add-after 'unpack 'change-directory
4643 (lambda _ (chdir "python") #t)))))
4645 `(("python-cryptography" ,python-cryptography)))
4647 `(("python-coverage" ,python-coverage)
4648 ("python-flake8" ,python-flake8)
4649 ("python-mock" ,python-mock)
4650 ("python-nose" ,python-nose)))
4651 (home-page "https://github.com/web-push-libs/encrypted-content-encoding")
4652 (synopsis "Encrypted Content Encoding for HTTP")
4654 "This package provices a simple implementation of Encrypted Content
4655 Encoding for HTTP.")
4656 (license license:expat)))
4658 (define-public python-cloudscraper
4660 (name "python-cloudscraper")
4665 (uri (pypi-uri "cloudscraper" version))
4668 "1br4p648yassywsd7whz1c7s10rwdysnd7wdqfjq9bksqfxrac3r"))
4669 (modules '((guix build utils)))
4671 '(with-directory-excursion "cloudscraper"
4672 (for-each delete-file
4673 '("captcha/2captcha.py"
4675 "captcha/anticaptcha.py"
4676 "captcha/deathbycaptcha.py"
4677 "interpreters/js2py.py"
4678 "interpreters/v8.py"))
4680 (build-system python-build-system)
4682 `(("python-requests" ,python-requests)
4683 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
4684 ("python-pyparsing" ,python-pyparsing-2.4.7)))
4686 `(("python-pytest" ,python-pytest)))
4687 (home-page "https://github.com/venomous/cloudscraper")
4688 (synopsis "Cloudflare anti-bot bypass")
4690 "This module acts as a webbrowser solving Cloudflare's Javascript
4692 (license license:expat)))