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, 2020 Andreas Enge <andreas@enge.fr>
7 ;;; Copyright © 2016, 2017, 2019, 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, 2020 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, 2020 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>
41 ;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
43 ;;; This file is part of GNU Guix.
45 ;;; GNU Guix is free software; you can redistribute it and/or modify it
46 ;;; under the terms of the GNU General Public License as published by
47 ;;; the Free Software Foundation; either version 3 of the License, or (at
48 ;;; your option) any later version.
50 ;;; GNU Guix is distributed in the hope that it will be useful, but
51 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
52 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53 ;;; GNU General Public License for more details.
55 ;;; You should have received a copy of the GNU General Public License
56 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
58 (define-module (gnu packages python-web)
59 #:use-module (guix packages)
60 #:use-module (guix download)
61 #:use-module (guix git-download)
62 #:use-module (guix build-system python)
63 #:use-module (guix utils)
64 #:use-module (gnu packages)
65 #:use-module (gnu packages base)
66 #:use-module (gnu packages check)
67 #:use-module (gnu packages compression)
68 #:use-module (gnu packages curl)
69 #:use-module (gnu packages databases)
70 #:use-module (gnu packages django)
71 #:use-module (gnu packages graphviz)
72 #:use-module (gnu packages groff)
73 #:use-module (gnu packages libevent)
74 #:use-module (gnu packages libffi)
75 #:use-module (gnu packages pkg-config)
76 #:use-module (gnu packages python)
77 #:use-module (gnu packages python-check)
78 #:use-module (gnu packages python-compression)
79 #:use-module (gnu packages python-crypto)
80 #:use-module (gnu packages python-science)
81 #:use-module (gnu packages python-xyz)
82 #:use-module (gnu packages serialization)
83 #:use-module (gnu packages sphinx)
84 #:use-module (gnu packages texinfo)
85 #:use-module (gnu packages tls)
86 #:use-module (gnu packages time)
87 #:use-module (gnu packages web)
88 #:use-module (gnu packages xml)
89 #:use-module ((guix licenses) #:prefix license:)
90 #:use-module (srfi srfi-1))
92 (define-public python-aiohttp
94 (name "python-aiohttp")
99 (uri (pypi-uri "aiohttp" version))
101 (base32 "1i3p4yrfgrf1zpbgnywqmb33ps4k51wylcxykhf2cwky0spq26lw"))))
102 (build-system python-build-system)
105 (modify-phases %standard-phases
106 (add-after 'unpack 'fix-tests
108 ;; disable brotli tests, because we’re not providing that optional library
109 (substitute* "tests/test_http_parser.py"
110 ((" async def test_feed_eof_no_err_brotli")
111 " @pytest.mark.xfail\n async def test_feed_eof_no_err_brotli"))
112 ;; make sure the timestamp of this file is > 1990, because a few
113 ;; tests like test_static_file_if_modified_since_past_date depend on it
114 (let ((late-90s (* 60 60 24 365 30)))
115 (utime "tests/data.unknown_mime_type" late-90s late-90s))
117 ;; Disable test that attempts to access httpbin.org.
118 (substitute* "tests/test_formdata.py"
119 (("async def test_mark_formdata_as_processed.*" all)
120 (string-append "@pytest.mark.xfail\n" all)))
122 ;; Don't test the aiohttp pytest plugin to avoid a dependency loop.
123 (delete-file "tests/test_pytest_plugin.py")
126 (lambda* (#:key tests? #:allow-other-keys)
128 (string-append ".:" (getenv "PYTHONPATH")))
130 (invoke "pytest" "-vv"
131 ;; Disable loading the aiohttp coverage plugin
132 ;; to avoid a circular dependency (code coverage
133 ;; is not very interesting to us anyway).
135 (format #t "test suite not run~%")))))))
137 `(("python-aiodns" ,python-aiodns)
138 ("python-async-timeout" ,python-async-timeout)
139 ("python-attrs" ,python-attrs) ;note: remove for > 3.7
140 ("python-chardet" ,python-chardet)
141 ("python-idna-ssl" ,python-idna-ssl)
142 ("python-multidict" ,python-multidict)
143 ("python-typing-extensions" ,python-typing-extensions)
144 ("python-yarl" ,python-yarl)))
146 `(("python-pytest" ,python-pytest)
147 ("python-pytest-mock" ,python-pytest-mock)
148 ("python-re-assert" ,python-re-assert)
149 ("gunicorn" ,gunicorn-bootstrap)
150 ("python-freezegun" ,python-freezegun)
151 ("python-async-generator" ,python-async-generator)))
152 (home-page "https://github.com/aio-libs/aiohttp/")
153 (synopsis "Async HTTP client/server framework (asyncio)")
154 (description "@code{aiohttp} is an asynchronous HTTP client/server
157 Its main features are:
159 @item Supports both client and server side of HTTP protocol.
160 @item Supports both client and server Web-Sockets out-of-the-box without the
162 @item Web-server has middlewares and pluggable routing.
164 (license license:asl2.0)))
166 (define-public python-aiohttp-socks
168 (name "python-aiohttp-socks")
173 (uri (pypi-uri "aiohttp_socks" version))
176 "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
177 (build-system python-build-system)
179 `(("python-aiohttp" ,python-aiohttp)))
180 (home-page "https://github.com/romis2012/aiohttp-socks")
181 (synopsis "SOCKS proxy connector for aiohttp")
182 (description "This package provides a SOCKS proxy connector for
183 aiohttp. It supports SOCKS4(a) and SOCKS5.")
184 (license license:asl2.0)))
186 (define-public python-aiodns
188 (name "python-aiodns")
193 (uri (pypi-uri "aiodns" version))
196 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
197 (build-system python-build-system)
199 `(("python-pycares" ,python-pycares)))
201 `(#:tests? #f)) ;tests require internet access
202 (home-page "https://github.com/saghul/aiodns")
203 (synopsis "Simple DNS resolver for asyncio")
204 (description "@code{aiodns} provides a simple way for doing
205 asynchronous DNS resolutions with a synchronous looking interface by
206 using @url{https://github.com/saghul/pycares,pycares}.")
207 (license license:expat)))
209 (define-public python-aiorpcx
211 (name "python-aiorpcx")
216 (uri (pypi-uri "aiorpcX" version))
219 "0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp"))))
220 (build-system python-build-system)
222 `(("python-attrs" ,python-attrs)))
223 (home-page "https://github.com/kyuupichan/aiorpcX")
224 (synopsis "Generic asyncio RPC implementation")
226 "The aiorpcX library is a generic asyncio implementation of RPC suitable
227 for an application that is a client, server or both.
229 The package includes a module with full coverage of JSON RPC versions 1.0 and
230 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
231 comes with a SOCKS proxy client.")
232 (license (list license:expat license:bsd-2))))
234 (define-public python-asgiref
236 (name "python-asgiref")
240 (uri (pypi-uri "asgiref" version))
243 "06kg3hnnvh7qg0w9amkvk1hd6n6bs055r04b7if6ipa7w4g92lby"))))
244 (build-system python-build-system)
246 '(#:phases (modify-phases %standard-phases
250 (string-append "./build/lib:"
251 (getenv "PYTHONPATH")))
252 (invoke "pytest" "-vv"))))))
254 `(("python-pytest" ,python-pytest)
255 ("python-pytest-asyncio" ,python-pytest-asyncio)))
256 (home-page "https://github.com/django/asgiref/")
257 (synopsis "ASGI specs, helper code, and adapters")
259 "ASGI is a standard for Python asynchronous web apps and servers to
260 communicate with each other, and positioned as an asynchronous successor to
261 WSGI. This package includes libraries for implementing ASGI servers.")
262 (license license:bsd-3)))
264 (define-public python-css-html-js-minify
266 (name "python-css-html-js-minify")
270 (uri (pypi-uri "css-html-js-minify" version ".zip"))
273 "0v3l2dqdk2y4r6ax259gs4ij1zzm9yxg6491s6254vs9w3vi37sa"))))
274 (build-system python-build-system)
275 ;; XXX: The git repository has no tags, and the PyPI releases do not
277 (arguments '(#:tests? #f))
278 (native-inputs `(("unzip" ,unzip)))
279 (home-page "https://github.com/juancarlospaco/css-html-js-minify")
280 (synopsis "CSS/HTML/JS minifier")
282 "This package provides a single-file minifier for CSS, HTML, and JavaScript.")
283 ;; XXX: The README just says "GNU GPL and GNU LGPL and MIT". From
284 ;; <https://github.com/juancarlospaco/css-html-js-minify/issues/9> it
285 ;; looks like the user can choose a license.
286 (license (list license:gpl3+ license:lgpl3+ license:expat))))
288 (define-public python-aws-sam-translator
290 (name "python-aws-sam-translator")
294 (uri (pypi-uri "aws-sam-translator" version))
297 "0d9ppd94x2kw404m49ajswmmxgdngbs4p5ajyrdvnlivfzqbv7dx"))))
298 (build-system python-build-system)
300 `(;; XXX: Tests are not distributed with the PyPI archive, and would
301 ;; introduce a circular dependency on python-cfn-lint.
303 #:phases (modify-phases %standard-phases
304 (add-after 'unpack 'loosen-requirements
306 ;; The package needlessly specifies exact versions
307 ;; of dependencies, when it works fine with others.
308 (substitute* "requirements/base.txt"
309 (("(.*)(~=[0-9\\.]+)" all package version)
313 `(("python-boto3" ,python-boto3)
314 ("python-jsonschema" ,python-jsonschema)
315 ("python-six" ,python-six)))
316 (home-page "https://github.com/awslabs/serverless-application-model")
317 (synopsis "Transform AWS SAM templates into AWS CloudFormation templates")
319 "AWS SAM Translator is a library that transform @dfn{Serverless Application
320 Model} (SAM) templates into AWS CloudFormation templates.")
321 (license license:asl2.0)))
323 (define-public python-aws-xray-sdk
325 (name "python-aws-xray-sdk")
327 (home-page "https://github.com/aws/aws-xray-sdk-python")
330 (uri (git-reference (url home-page) (commit version)))
331 (file-name (git-file-name name version))
334 "12fzr0ylpa1lx3xr1x2f1jx8iiyzcr6g57fb9jign0j0lxdlbzpv"))))
335 (build-system python-build-system)
337 `(#:phases (modify-phases %standard-phases
338 (add-after 'unpack 'disable-tests
340 (for-each delete-file
341 '(;; These tests require packages not yet in Guix.
342 "tests/ext/aiobotocore/test_aiobotocore.py"
343 "tests/ext/aiohttp/test_middleware.py"
344 "tests/ext/pg8000/test_pg8000.py"
345 "tests/ext/psycopg2/test_psycopg2.py"
346 "tests/ext/pymysql/test_pymysql.py"
347 "tests/ext/pynamodb/test_pynamodb.py"
348 "tests/test_async_recorder.py"
350 ;; FIXME: Why is this failing?
351 "tests/test_patcher.py"
353 ;; TODO: How to configure Django for these tests.
354 "tests/ext/django/test_db.py"
355 "tests/ext/django/test_middleware.py"
357 ;; These tests want to access httpbin.org.
358 "tests/ext/requests/test_requests.py"
359 "tests/ext/httplib/test_httplib.py"
360 "tests/ext/aiohttp/test_client.py"))))
364 (string-append "./build/lib:.:"
365 (getenv "PYTHONPATH")))
366 (invoke "pytest" "-vv" "tests"))))))
368 `(;; These are required for the test suite.
369 ("python-bottle" ,python-bottle)
370 ("python-flask" ,python-flask)
371 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)
372 ("python-pymysql" ,python-pymysql)
373 ("python-pytest" ,python-pytest)
374 ("python-pytest-aiohttp" ,python-pytest-aiohttp)
375 ("python-requests" ,python-requests)
376 ("python-sqlalchemy" ,python-sqlalchemy)
377 ("python-webtest" ,python-webtest)))
379 `(("python-aiohttp" ,python-aiohttp)
380 ("python-botocore" ,python-botocore)
381 ("python-future" ,python-future)
382 ("python-jsonpickle" ,python-jsonpickle)
383 ("python-urllib3" ,python-urllib3)
384 ("python-wrapt" ,python-wrapt)))
385 (synopsis "Profile applications on AWS X-Ray")
387 "The AWS X-Ray SDK for Python enables Python developers to record and
388 emit information from within their applications to the AWS X-Ray service.")
389 (license license:asl2.0)))
391 (define-public python-cfn-lint
393 (name "python-cfn-lint")
395 (home-page "https://github.com/aws-cloudformation/cfn-python-lint")
400 (commit (string-append "v" version))))
401 (file-name (git-file-name name version))
404 "0nqs0fmj3hd7pnd9hkb4z57jvi2iv82hh6n3xxba6i6p8zgx75q4"))))
405 (build-system python-build-system)
407 `(#:phases (modify-phases %standard-phases
409 (lambda* (#:key outputs #:allow-other-keys)
410 (let ((out (assoc-ref outputs "out")))
411 ;; Remove test for the documentation update scripts
412 ;; to avoid a dependency on 'git'.
414 "test/unit/module/maintenance/test_update_documentation.py")
416 (string-append "./build/lib:"
417 (getenv "PYTHONPATH")))
418 (setenv "PATH" (string-append out "/bin:"
420 (invoke "python" "-m" "unittest" "discover"
423 `(("python-pydot" ,python-pydot)
424 ("python-mock" ,python-mock)))
426 `(("python-aws-sam-translator" ,python-aws-sam-translator)
427 ("python-jsonpatch" ,python-jsonpatch)
428 ("python-jsonschema" ,python-jsonschema)
429 ("python-junit-xml" ,python-junit-xml)
430 ("python-networkx" ,python-networkx)
431 ("python-pyyaml" ,python-pyyaml)
432 ("python-six" ,python-six)))
433 (synopsis "Validate CloudFormation templates")
435 "This package lets you validate CloudFormation YAML/JSON templates against
436 the CloudFormation spec and additional checks. Includes checking valid values
437 for resource properties and best practices.")
438 (license license:expat)))
440 (define-public python-falcon
442 (name "python-falcon")
447 (uri (pypi-uri "falcon" version))
450 "1z6mqfv574x6jiawf67ib52g4kk20c2x7xk7wrn1573b8v7r79gf"))
451 (modules '((guix build utils)))
454 (delete-file-recursively "falcon/vendor")
455 (substitute* "setup.py"
456 ((".*falcon\\.vendor\\.mimeparse.*") ""))
457 (substitute* '("falcon/media/handlers.py"
459 (("from falcon\\.vendor ") ""))
460 (substitute* "falcon.egg-info/SOURCES.txt"
461 (("falcon/vendor.*") ""))
463 (build-system python-build-system)
466 (modify-phases %standard-phases
468 (lambda* (#:key inputs outputs #:allow-other-keys)
469 ;; Skip orjson, which requires rust to build.
470 (substitute* "tests/test_media_handlers.py"
471 (("== 'CPython") "!= 'CPython"))
472 (add-installed-pythonpath inputs outputs)
473 (invoke "pytest" "--ignore" "falcon"))))))
475 `(("python-mimeparse" ,python-mimeparse)))
477 `(("python-cython" ,python-cython) ;for faster binaries
478 ("python-mujson" ,python-mujson)
479 ("python-msgpack" ,python-msgpack)
480 ("python-pytest" ,python-pytest)
481 ("python-pytest-runner" ,python-pytest-runner)
482 ("python-pyyaml" ,python-pyyaml)
483 ("python-rapidjson" ,python-rapidjson)
484 ("python-requests" ,python-requests)
485 ("python-testtools" ,python-testtools)
486 ("python-ujson" ,python-ujson)))
487 (home-page "https://falconframework.org")
489 "Web framework for building APIs and application backends")
491 "Falcon is a web API framework for building microservices, application
492 backends and higher-level frameworks. Among its features are:
494 @item Optimized and extensible code base
495 @item Routing via URI templates and REST-inspired resource
497 @item Access to headers and bodies through request and response
499 @item Request processing via middleware components and hooks
500 @item Idiomatic HTTP error responses
501 @item Straightforward exception handling
502 @item Unit testing support through WSGI helpers and mocks
503 @item Compatible with both CPython and PyPy
504 @item Cython support for better performance when used with CPython
506 (properties `((python2-variant . ,(delay python2-falcon))))
507 (license license:asl2.0)))
509 (define-public python2-falcon
510 (let ((falcon (package-with-python2 (strip-python2-variant python-falcon))))
514 (alist-delete "python-rapidjson" (package-native-inputs falcon))))))
516 (define-public python-falcon-cors
518 (name "python-falcon-cors")
523 (uri (pypi-uri "falcon-cors" version))
526 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
527 (build-system python-build-system)
529 `(("python-falcon" ,python-falcon)))
531 "https://github.com/lwcolton/falcon-cors")
532 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
533 (description "This middleware provides @dfn{cross-origin resource
534 sharing} (CORS) support for Falcon. It allows applying a specially crafted
535 CORS object to the incoming requests, enabling the ability to serve resources
536 over a different origin than that of the web application.")
537 (license license:asl2.0)))
539 (define-public python2-falcon-cors
540 (package-with-python2 python-falcon-cors))
542 (define-public python-furl
549 (uri (pypi-uri "furl" version))
552 "1v2lakx03d5w8954a39ki44xv5mllnq0a0avhxykv9hrzg0yvjpx"))))
553 (build-system python-build-system)
555 `(("python-six" ,python-six)
556 ("python-orderedmultidict" ,python-orderedmultidict)))
558 `(("python-flake8" ,python-flake8)))
559 (home-page "https://github.com/gruns/furl")
560 (synopsis "URL manipulation in Python")
561 (description "Furl provides an easy-to-use alternative to the
562 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
563 (license license:unlicense)))
565 (define-public python2-furl
566 (package-with-python2 python-furl))
568 (define-public python-httplib2
570 (name "python-httplib2")
575 (uri (pypi-uri "httplib2" version))
578 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
579 (build-system python-build-system)
580 (home-page "https://github.com/jcgregorio/httplib2")
581 (synopsis "Comprehensive HTTP client library")
583 "A comprehensive HTTP client library supporting many features left out of
584 other HTTP libraries.")
585 (license license:expat)))
587 (define-public python2-httplib2
588 (package-with-python2 python-httplib2))
590 (define-public httpie
597 (uri (pypi-uri "httpie" version))
600 "15ngl3yc186gkgqdx8iav9bpj8gxjpzz26y32z92jwyhj4cmfh6m"))))
601 (build-system python-build-system)
603 ;; The tests attempt to access external web servers, so we cannot run them.
606 `(("python-colorama" ,python-colorama)
607 ("python-pygments" ,python-pygments)
608 ("python-requests" ,python-requests)
609 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)))
610 (home-page "https://httpie.io")
611 (synopsis "cURL-like tool for humans")
613 "A command line HTTP client with an intuitive UI, JSON support,
614 syntax highlighting, wget-like downloads, plugins, and more. It consists of
615 a single http command designed for painless debugging and interaction with
616 HTTP servers, RESTful APIs, and web services.")
617 ;; This was fixed in 1.0.3.
618 (properties `((lint-hidden-cve . ("CVE-2019-10751"))))
619 (license license:bsd-3)))
621 (define-public python-html2text
623 (name "python-html2text")
624 (version "2020.1.16")
628 (uri (pypi-uri "html2text" version))
631 "1fvv4z6dblii2wk1x82981ag8yhxbim1v2ksgywxsndh2s7335p2"))))
632 (build-system python-build-system)
635 (modify-phases %standard-phases
638 (invoke "pytest" "test/"))))))
640 `(("python-pytest" ,python-pytest)))
641 (home-page "https://github.com/Alir3z4/html2text")
642 (synopsis "Convert HTML into plain text")
643 (description "html2text takes HTML and converts it into plain ASCII text
644 which is also valid markdown. html2text was originally written by Aaron
646 (license license:gpl3+)))
648 (define-public python2-html2text
649 (let ((base (package-with-python2 python-html2text)))
652 ;; This is the last version with support for Python 2.
653 (version "2019.8.11")
656 (uri (pypi-uri "html2text" version))
659 "0ppgjplg06kmv9sj0x8p7acczcq2mcfgk1jdjwm4w5w40b0vj5pm")))))))
661 (define-public python-jose
665 (home-page "http://github.com/mpdavis/python-jose")
668 (uri (git-reference (url home-page) (commit version)))
669 (file-name (git-file-name name version))
672 "1xmnf8whzv2gnkkdv0fqcn9qwmcc7y647p4kw9fi3lvcp9kch8vi"))))
673 (build-system python-build-system)
676 (modify-phases %standard-phases
678 (lambda* (#:key tests? #:allow-other-keys)
680 (invoke "pytest" "-vv")
681 (format #t "test suite not run~%"))
684 `(;; All native inputs are for tests.
685 ("python-pyasn1" ,python-pyasn1)
686 ("python-pytest" ,python-pytest)
687 ("python-pytest-cov" ,python-pytest-cov)
688 ("python-pytest-runner" ,python-pytest-runner)))
690 `(("python-cryptography" ,python-cryptography)
691 ("python-rsa" ,python-rsa)
692 ("python-six" ,python-six)))
693 (synopsis "JOSE implementation in Python")
695 "The @dfn{JavaScript Object Signing and Encryption} (JOSE) technologies
696 - JSON Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and
697 JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or sign
698 content using a variety of algorithms.")
699 (license license:expat)))
701 (define-public python-jsonpickle
703 (name "python-jsonpickle")
707 (uri (pypi-uri "jsonpickle" version))
710 "1fn86z468hamw8njh2grw2xdhsm7g48dyxs3lw0n10nn1g6vgm78"))))
711 (build-system python-build-system)
713 `(#:phases (modify-phases %standard-phases
717 (string-append "./build/lib:"
718 (getenv "PYTHONPATH")))
719 (invoke "pytest" "-vv"
720 ;; Prevent running the flake8 and black
721 ;; pytest plugins, which only tests style
722 ;; and frequently causes harmless failures.
723 "-o" "addopts=''"))))))
725 `(("python-setuptools-scm" ,python-setuptools-scm)
726 ("python-toml" ,python-toml) ;XXX: for setuptools_scm[toml]
728 ("python-numpy" ,python-numpy)
729 ("python-pandas" ,python-pandas)
730 ("python-pytest" ,python-pytest)))
731 (home-page "https://jsonpickle.github.io/")
732 (synopsis "Serialize object graphs into JSON")
734 "This package provides a Python library for serializing any arbitrary
735 object graph to and from JSON.")
736 (license license:bsd-3)))
738 (define-public python-mechanicalsoup
740 (name "python-mechanicalsoup")
745 (uri (pypi-uri "MechanicalSoup" version))
747 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
748 (build-system python-build-system)
750 ;; TODO: Enable tests when python-flake8@3.5 hits master.
753 `(("python-beautifulsoup4" ,python-beautifulsoup4)
754 ("python-lxml" ,python-lxml)
755 ("python-requests" ,python-requests)
756 ("python-six" ,python-six)))
759 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
760 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
761 ;; ("python-pytest-mock" ,python-pytest-mock)
762 ;; ("python-pytest-runner" ,python-pytest-runner)
763 ;; ("python-requests-mock" ,python-requests-mock)))
764 (home-page "https://mechanicalsoup.readthedocs.io/")
765 (synopsis "Python library for automating website interaction")
767 "MechanicalSoup is a Python library for automating interaction with
768 websites. It automatically stores and sends cookies, follows redirects, and can
769 follow links and submit forms. It doesn’t do JavaScript.")
770 (license license:expat)))
772 (define-public python2-mechanicalsoup
773 (package-with-python2 python-mechanicalsoup))
775 (define-public python-hyperframe
777 (name "python-hyperframe")
782 (uri (pypi-uri "hyperframe" version))
784 (base32 "07xlf44l1cw0ghxx46sbmkgzil8vqv8kxwy42ywikiy35izw3xd9"))))
785 (build-system python-build-system)
788 (modify-phases %standard-phases
790 (lambda* (#:key inputs outputs #:allow-other-keys)
791 (add-installed-pythonpath inputs outputs)
792 (invoke "pytest" "-vv" "test"))))))
794 `(("python-pytest" ,python-pytest)))
795 (home-page "https://github.com/python-hyper/hyperframe")
796 (synopsis "HTTP/2 framing layer for Python")
798 "This library contains the HTTP/2 framing code used in the hyper project.
799 It provides a pure-Python codebase that is capable of decoding a binary stream
800 into HTTP/2 frames.")
801 (license license:expat)))
803 (define-public python-hpack
805 (name "python-hpack")
809 ;; PyPI tarball is missing some files necessary for the tests.
812 (url "https://github.com/python-hyper/hpack")
813 (commit (string-append "v" version))))
814 (file-name (git-file-name name version))
816 (base32 "0w8hkz50a6lzkmgi41ryicm0mh9ca9cx29pm3s0xlpn0vs29xrmd"))))
817 (build-system python-build-system)
820 (modify-phases %standard-phases
822 (lambda* (#:key inputs outputs #:allow-other-keys)
823 (add-installed-pythonpath inputs outputs)
824 (invoke "pytest" "-vv" "test" "-k"
825 ;; This test will be fixed in the next version. See:
826 ;; https://github.com/python-hyper/hpack/issues/168.
827 "not test_get_by_index_out_of_range"))))))
829 `(("python-pytest" ,python-pytest)))
830 (home-page "https://hyper.rtfd.org")
831 (synopsis "Pure-Python HPACK header compression")
833 "This module contains a pure-Python HTTP/2 header encoding (HPACK) logic
834 for use in Python programs that implement HTTP/2.")
835 (license license:expat)))
837 (define-public python-h11
844 (uri (pypi-uri "h11" version))
846 (base32 "1qfad70h59hya21vrzz8dqyyaiqhac0anl2dx3s3k80gpskvrm1k"))))
847 (build-system python-build-system)
850 (modify-phases %standard-phases
853 (invoke "pytest" "-vv"))))))
855 `(("python-pytest" ,python-pytest)))
856 (home-page "https://github.com/python-hyper/h11")
857 (synopsis "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1")
859 "This is a little HTTP/1.1 library written from scratch in Python, heavily
860 inspired by hyper-h2. It's a bring-your-own-I/O library; h11 contains no IO
861 code whatsoever. This means you can hook h11 up to your favorite network API,
862 and that could be anything you want.")
863 (license license:expat)))
865 (define-public python-h2
872 (uri (pypi-uri "h2" version))
874 (base32 "051gg30aca26rdxsmr9svwqm06pdz9bv21ch4n0lgi7jsvml2pw7"))))
875 (build-system python-build-system)
878 (modify-phases %standard-phases
880 (lambda* (#:key inputs outputs #:allow-other-keys)
881 (add-installed-pythonpath inputs outputs)
882 (invoke "pytest" "-vv" "test"))))))
884 `(("python-pytest" ,python-pytest)))
886 `(("python-hpack" ,python-hpack)
887 ("python-hyperframe" ,python-hyperframe)))
888 (home-page "https://github.com/python-hyper/hyper-h2")
889 (synopsis "HTTP/2 State-Machine based protocol implementation")
891 "This module contains a pure-Python implementation of a HTTP/2 protocol
892 stack. It does not provide a parsing layer, a network layer, or any rules
893 about concurrency. Instead, it's a purely in-memory solution, defined in
894 terms of data actions and HTTP/2 frames. This is one building block of a full
895 Python HTTP implementation.")
896 (license license:expat)))
898 (define-public python-sockjs-tornado
900 (name "python-sockjs-tornado")
905 (uri (pypi-uri "sockjs-tornado" version))
908 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
909 (build-system python-build-system)
911 `(;; There are no tests, and running the test phase requires missing
915 `(("python-tornado" ,python-tornado)))
916 (home-page "https://github.com/mrjoes/sockjs-tornado/")
918 "SockJS Python server implementation on top of the Tornado framework")
920 "SockJS-tornado provides the server-side counterpart to a SockJS client
921 library, through the Tornado framework.
923 SockJS provides a low-latency, full-duplex, cross-domain communication channel
924 between a web browser and web server.")
925 (license license:expat)))
927 (define-public python2-sockjs-tornado
928 (package-with-python2 python-sockjs-tornado))
930 (define-public python-flask-babel
932 (name "python-flask-babel")
937 (uri (pypi-uri "Flask-Babel" version))
940 "0gmb165vkwv5v7dxsxa2i3zhafns0fh938m2zdcrv4d8z5l099yn"))))
941 (build-system python-build-system)
943 '(#:phases (modify-phases %standard-phases
946 (with-directory-excursion "tests"
947 (invoke "python" "tests.py")))))))
949 `(("python-flask" ,python-flask)
950 ("python-babel" ,python-babel)
951 ("python-jinja2" ,python-jinja2)
952 ("python-pytz" ,python-pytz)))
953 (home-page "https://github.com/python-babel/flask-babel")
954 (synopsis "Add i18n/l10n support to Flask applications")
955 (description "This package implements internationalization and localization
956 support for Flask. This is based on the Python babel module as well as pytz -
957 both of which are installed automatically if you install this library.")
958 (license license:bsd-3)))
960 (define-public python2-flask-babel
961 (package-with-python2 python-flask-babel))
963 (define-public python-flask-cors
965 (name "python-flask-cors")
969 (uri (pypi-uri "Flask-Cors" version))
972 "1f36hkaxc92zn12f88fkzwifdvlvsnmlp1dv3p5inpcc500c3kvb"))))
973 (build-system python-build-system)
975 `(("python-flask" ,python-flask)
976 ("python-nose" ,python-nose)
977 ("python-packaging" ,python-packaging)))
979 `(("python-six" ,python-six)))
980 (home-page "https://flask-cors.readthedocs.io/en/latest/")
981 (synopsis "Handle Cross-Origin Resource Sharing with Flask")
983 "This package provides a Flask extension for handling @acronym{CORS,Cross
984 Origin Resource Sharing}, making cross-origin AJAX possible.")
985 (license license:expat)))
987 (define-public python-html5lib
989 (name "python-html5lib")
994 (uri (pypi-uri "html5lib" version))
997 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
998 (build-system python-build-system)
1000 `(("python-six" ,python-six)
1001 ("python-webencodings" ,python-webencodings)))
1003 `(#:test-target "check"))
1005 "https://github.com/html5lib/html5lib-python")
1007 "Python HTML parser based on the WHATWG HTML specification")
1009 "Html5lib is an HTML parser based on the WHATWG HTML specification
1010 and written in Python.")
1011 (license license:expat)))
1013 (define-public python2-html5lib
1014 (package-with-python2 python-html5lib))
1016 ;; Needed for python-bleach, a dependency of python-notebook
1017 (define-public python-html5lib-0.9
1019 (inherit python-html5lib)
1024 (uri (pypi-uri "html5lib" version))
1027 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
1029 (define-public python2-html5lib-0.9
1030 (package-with-python2 python-html5lib-0.9))
1032 (define-public python-html5-parser
1034 (name "python-html5-parser")
1038 (uri (pypi-uri "html5-parser" version))
1041 "13yl3vnf3sxl05m0nhpngnrz3g1jvyahd33lys3m3hfb91l8zzi5"))))
1042 (build-system python-build-system)
1044 `(("pkg-config" ,pkg-config)))
1046 `(("libxml2" ,libxml2)))
1048 `(("python-lxml" ,python-lxml)
1049 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1050 (home-page "https://html5-parser.readthedocs.io")
1051 (synopsis "Fast C-based HTML5 parsing for Python")
1052 (description "This package provides a fast implementation of the HTML5
1053 parsing spec for Python. Parsing is done in C using a variant of the gumbo
1054 parser. The gumbo parse tree is then transformed into an lxml tree, also in
1055 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
1056 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
1057 ;; indicate ASL2.0, including the LICENSE file for the whole project.
1058 (license (list license:asl2.0 license:gpl3))))
1060 (define-public python2-html5-parser
1061 (package-with-python2 python-html5-parser))
1063 (define-public python-minio
1065 (name "python-minio")
1069 (uri (pypi-uri "minio" version))
1072 "1cxpa0m7mdvpdbc1g6wlihq6ja4g4paxkl6f3q84bbnx07zpbllp"))))
1073 (build-system python-build-system)
1075 '(#:phases (modify-phases %standard-phases
1076 (add-before 'check 'disable-failing-tests
1078 ;; This test requires network access.
1079 (delete-file "tests/unit/credentials_test.py")
1082 `(("python-faker" ,python-faker)
1083 ("python-mock" ,python-mock)
1084 ("python-nose" ,python-nose)))
1086 `(("python-certifi" ,python-certifi)
1087 ("python-configparser" ,python-configparser)
1088 ("python-dateutil" ,python-dateutil)
1089 ("python-pytz" ,python-pytz)
1090 ("python-urllib3" ,python-urllib3)))
1091 (home-page "https://github.com/minio/minio-py")
1092 (synopsis "Programmatically access Amazon S3 from Python")
1094 "This package provides a Python library for interacting with any
1095 Amazon S3 compatible object storage server.")
1096 (license license:asl2.0)))
1098 (define-public python-pycurl
1100 (name "python-pycurl")
1101 (version "7.43.0.5")
1105 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
1108 (base32 "1cwlb76vddqp2mxqvjbhf367caddzy82rhangddjjhjqaj8x4zgc"))))
1109 (build-system python-build-system)
1111 ;; The tests attempt to access external web servers, so we cannot run
1112 ;; them. Furthermore, they are skipped altogether when using Python 2.
1114 #:phases (modify-phases %standard-phases
1115 (add-before 'build 'configure-tls-backend
1117 ;; XXX: PycURL fails to automatically determine which TLS
1118 ;; backend to use when cURL is built with --disable-static.
1119 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
1120 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
1123 `(("python-nose" ,python-nose)
1124 ("python-bottle" ,python-bottle)))
1127 ("gnutls" ,gnutls)))
1128 (home-page "http://pycurl.io/")
1129 (synopsis "Lightweight Python wrapper around libcurl")
1130 (description "Pycurl is a lightweight wrapper around libcurl. It provides
1131 high-speed transfers via libcurl and frequently outperforms alternatives.")
1133 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
1134 ;; under the terms of LGPLv2.1+ or Expat.
1135 (license (list license:lgpl2.1+ license:expat))))
1137 (define-public python2-pycurl
1138 (package-with-python2 python-pycurl))
1140 (define-public python-webencodings
1142 (name "python-webencodings")
1146 (uri (pypi-uri "webencodings" version))
1149 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
1150 (build-system python-build-system)
1153 (modify-phases %standard-phases
1156 (invoke "py.test" "-v" "webencodings/tests.py")
1159 `(("python-pytest" ,python-pytest)))
1160 (home-page "https://github.com/SimonSapin/python-webencodings")
1161 (synopsis "Character encoding aliases for legacy web content")
1163 "In order to be compatible with legacy web content when interpreting
1164 something like @code{Content-Type: text/html; charset=latin1}, tools need
1165 to use a particular set of aliases for encoding labels as well as some
1166 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
1167 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
1168 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
1169 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
1170 defines all such details so that implementations do not have to
1171 reverse-engineer each other.
1173 This module implements the Encoding standard and has encoding labels and
1174 BOM detection, but the actual implementation for encoders and decoders
1176 (license license:bsd-3)))
1178 (define-public python2-webencodings
1179 (package-with-python2 python-webencodings))
1181 (define-public python-openid
1183 (name "python-openid")
1188 (uri (pypi-uri "python3-openid" version))
1191 "1bxf9a3ny1js422j962zfzl4a9dhj192pvai05whn7j0iy9gdyrk"))))
1192 (build-system python-build-system)
1195 (modify-phases %standard-phases
1198 (invoke "coverage" "run" "-m"
1199 "unittest" "openid.test.test_suite"))))))
1200 (properties `((python2-variant . ,(delay python2-openid))))
1202 `(("python-defusedxml" ,python-defusedxml)))
1204 `(("python-coverage" ,python-coverage)
1205 ("python-psycopg2" ,python-psycopg2)
1206 ("python-django" ,python-django)))
1207 (home-page "https://github.com/necaris/python3-openid")
1208 (synopsis "OpenID support for servers and consumers")
1209 (description "This library provides OpenID authentication for Python, both
1210 for clients and servers.")
1211 (license license:asl2.0)))
1213 (define-public python2-openid
1215 (name "python2-openid")
1220 (uri (pypi-uri "python-openid" version))
1223 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
1224 (build-system python-build-system)
1226 ;; Python 3 support is in `python3-openid`, a separate package.
1227 `(#:python ,python-2
1228 ;; Tests aren't initialized correctly.
1230 (home-page "https://github.com/openid/python-openid")
1231 (synopsis "OpenID support for servers and consumers")
1232 (description "This library provides OpenID authentication for Python, both
1233 for clients and servers.")
1234 (license license:asl2.0)))
1236 (define-public python-cssutils
1238 (name "python-cssutils")
1243 (uri (pypi-uri "cssutils" version))
1246 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
1247 (build-system python-build-system)
1249 `(("unzip" ,unzip))) ; for unpacking the source
1251 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
1252 (home-page "http://cthedot.de/cssutils/")
1254 "CSS Cascading Style Sheets library for Python")
1256 "Cssutils is a Python package for parsing and building CSS
1257 Cascading Style Sheets. Currently it provides a DOM only and no rendering
1259 (license license:lgpl3+)))
1261 (define-public python2-cssutils
1262 (package-with-python2 python-cssutils))
1264 (define-public python-css-parser
1266 (inherit python-cssutils)
1267 (name "python-css-parser")
1272 (uri (pypi-uri "css-parser" version ".tar.gz"))
1274 (base32 "0bmg4kiiir6pj9x3sd12x4dz2c1xpp2bn5nn60fxnbk2lnl4im2f"))))
1275 (home-page "https://github.com/ebook-utils/css-parser")
1276 (synopsis "Fork of cssutils modified for parsing ebooks")
1278 "Css-parser is a Python package for parsing and building CSS
1279 Cascading Style Sheets. Currently it provides a DOM only and no rendering
1282 It's a fork of cssutils 1.0.2, updated and modified for parsing ebooks, due to
1283 cssutils not receiving updates as of 1.0.2.")
1284 (license license:lgpl3+)))
1286 (define-public python2-css-parser
1287 (package-with-python2 python-css-parser))
1289 (define-public python-cssselect
1291 (name "python-cssselect")
1294 ;; The PyPI release does not contain tests.
1297 (url "https://github.com/scrapy/cssselect")
1298 (commit (string-append "v" version))))
1299 (file-name (git-file-name name version))
1302 "0xslrnhbrmgakp4xg6k26qffay3kqffp3a2z2sk27c65rwxa79kc"))))
1303 (build-system python-build-system)
1305 `(#:phases (modify-phases %standard-phases
1308 (invoke "pytest" "-vv"))))))
1310 `(("python-lxml" ,python-lxml)
1311 ("python-pytest" ,python-pytest)))
1312 (home-page "https://github.com/scrapy/cssselect")
1313 (synopsis "CSS3 selector parser and translator to XPath 1.0")
1315 "Cssselect ia a Python module that parses CSS3 Selectors and translates
1316 them to XPath 1.0 expressions. Such expressions can be used in lxml or
1317 another XPath engine to find the matching elements in an XML or HTML document.")
1318 (license license:bsd-3)))
1320 (define-public python2-cssselect
1321 (package-with-python2 python-cssselect))
1323 (define-public python-databricks-cli
1325 (name "python-databricks-cli")
1327 (home-page "https://github.com/databricks/databricks-cli")
1330 (uri (git-reference (url home-page) (commit version)))
1331 (file-name (git-file-name name version))
1334 "03w19rzh72jll9phai23wp0c2mlv39qsrv50mhckziy39z60yxh8"))))
1335 (build-system python-build-system)
1337 `(#:phases (modify-phases %standard-phases
1340 (setenv "PYTHONPATH"
1341 (string-append "./build/lib:"
1342 (getenv "PYTHONPATH")))
1343 (invoke "pytest" "tests" "-vv"
1344 ;; XXX: This fails with newer Pytest
1345 ;; (upstream uses Pytest 3..).
1346 "-k" "not test_get_request_with_list"))))))
1349 ("python-decorator" ,python-decorator)
1350 ("python-mock" ,python-mock)
1351 ("python-pytest" ,python-pytest)
1352 ("python-requests-mock" ,python-requests-mock)))
1354 `(("python-click" ,python-click)
1355 ("python-configparser" ,python-configparser)
1356 ("python-requests" ,python-requests)
1357 ("python-six" ,python-six)
1358 ("python-tabulate" ,python-tabulate)))
1359 (synopsis "Command line interface for Databricks")
1361 "The Databricks Command Line Interface is a tool which provides an easy
1362 to use interface to the Databricks platform. The CLI is built on top of the
1363 Databricks REST APIs.")
1364 (license license:asl2.0)))
1366 (define-public python-openid-cla
1368 (name "python-openid-cla")
1373 (uri (pypi-uri "python-openid-cla" version))
1376 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
1377 (build-system python-build-system)
1378 (arguments '(#:tests? #f)) ; No tests.
1379 (home-page "https://github.com/puiterwijk/python-openid-cla/")
1380 (synopsis "Implementation of the OpenID CLA extension for python-openid")
1381 (description "@code{openid-cla} is an implementation of the OpenID
1382 contributor license agreement extension for python-openid.")
1383 (license license:bsd-3)))
1385 (define-public python2-openid-cla
1386 (package-with-python2 python-openid-cla))
1388 (define-public python-openid-teams
1390 (name "python-openid-teams")
1395 (uri (pypi-uri "python-openid-teams" version))
1398 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
1399 (build-system python-build-system)
1400 (arguments '(#:tests? #f)) ; No tests.
1401 (home-page "https://github.com/puiterwijk/python-openid-teams/")
1402 (synopsis "Implementation of the OpenID teams extension for python-openid")
1404 "@code{openid-teams} is an implementation of the OpenID
1405 teams extension for python-openid.")
1406 (license license:bsd-3)))
1408 (define-public python2-openid-teams
1409 (package-with-python2 python-openid-teams))
1411 (define-public python-priority
1413 (name "python-priority")
1418 (uri (pypi-uri "priority" version))
1420 (base32 "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb"))))
1421 (build-system python-build-system)
1424 (modify-phases %standard-phases
1426 (lambda* (#:key inputs outputs #:allow-other-keys)
1427 (add-installed-pythonpath inputs outputs)
1428 (invoke "pytest" "-vv" "test" "-k"
1429 ;; This test exceeded the Hypothesis deadline.
1430 "not test_period_of_repetition"))))))
1432 `(("python-hypothesis" ,python-hypothesis)
1433 ("python-pytest" ,python-pytest)
1434 ("python-pytest-cov" ,python-pytest-cov)
1435 ("python-pytest-xdist" ,python-pytest-xdist)))
1436 (home-page "https://python-hyper.org/projects/priority/en/latest/")
1437 (synopsis "Pure-Python implementation of the HTTP/2 priority tree")
1439 "Priority is a pure-Python implementation of the priority logic for HTTP/2,
1440 set out in RFC 7540 Section 5.3 (Stream Priority).")
1441 (license license:expat)))
1443 (define-public python-wsproto
1445 (name "python-wsproto")
1450 (uri (pypi-uri "wsproto" version))
1452 (base32 "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1"))))
1453 (build-system python-build-system)
1456 (modify-phases %standard-phases
1458 (lambda* (#:key inputs outputs #:allow-other-keys)
1459 (add-installed-pythonpath inputs outputs)
1460 (invoke "pytest" "-vv" "test"))))))
1462 `(("python-pytest" ,python-pytest)))
1464 `(("python-h11" ,python-h11)))
1465 (home-page "https://github.com/python-hyper/wsproto/")
1466 (synopsis "WebSockets state-machine based protocol implementation")
1468 "@code{wsproto} is a pure-Python implementation of a WebSocket protocol
1469 stack. It's written from the ground up to be embeddable in whatever program you
1470 choose to use, ensuring that you can communicate via WebSockets, as defined in
1471 RFC6455, regardless of your programming paradigm.")
1472 (license license:expat)))
1474 (define-public python-hypercorn
1476 (name "python-hypercorn")
1481 (uri (pypi-uri "Hypercorn" version))
1483 (base32 "15dgy47a18w2ls3hwykra1cyf7yzxmfjqnsqml482p12cxr2xwqr"))))
1484 (build-system python-build-system)
1487 (modify-phases %standard-phases
1489 (lambda* (#:key inputs outputs #:allow-other-keys)
1490 (add-installed-pythonpath inputs outputs)
1491 (invoke "pytest" "-vv"))))))
1493 `(("python-h11" ,python-h11)
1494 ("python-h2" ,python-h2)
1495 ("python-priority" ,python-priority)
1496 ("python-toml" ,python-toml)
1497 ("python-typing-extensions" ,python-typing-extensions)
1498 ("python-wsproto" ,python-wsproto)))
1500 `(("python-hypothesis" ,python-hypothesis)
1501 ("python-mock" ,python-mock)
1502 ("python-pytest" ,python-pytest)
1503 ("python-pytest-asyncio" ,python-pytest-asyncio)
1504 ("python-pytest-cov" ,python-pytest-cov)
1505 ("python-pytest-trio" ,python-pytest-trio)
1506 ("python-trio" ,python-trio)))
1507 (home-page "https://gitlab.com/pgjones/hypercorn/")
1508 (synopsis "ASGI Server based on Hyper libraries")
1510 "Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and
1511 wsproto libraries and inspired by Gunicorn. It supports HTTP/1, HTTP/2,
1512 WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications. It can
1513 utilise asyncio, uvloop, or trio worker types.")
1514 (license license:expat)))
1516 (define-public python-querystring-parser
1518 (name "python-querystring-parser")
1522 (uri (pypi-uri "querystring_parser" version))
1525 "0qlar8a0wa003hm2z6wcpb625r6vjj0a70rsni9h8lz0zwfcwkv4"))))
1526 (build-system python-build-system)
1528 `(#:phases (modify-phases %standard-phases
1531 ;; XXX FIXME: This test is broken with Python 3.7:
1532 ;; https://github.com/bernii/querystring-parser/issues/35
1533 (substitute* "querystring_parser/tests.py"
1534 (("self\\.assertEqual\\(self\\.knownValuesNormalized, result\\)")
1536 (invoke "python" "querystring_parser/tests.py"))))))
1538 `(("python-six" ,python-six)))
1539 (home-page "https://github.com/bernii/querystring-parser")
1540 (synopsis "QueryString parser that correctly handles nested dictionaries")
1542 "This package provides a query string parser for Python and Django
1543 projects that correctly creates nested dictionaries from sent form/querystring
1545 (license license:expat)))
1547 (define-public python-tornado
1549 (name "python-tornado")
1554 (uri (pypi-uri "tornado" version))
1557 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
1558 (build-system python-build-system)
1560 '(;; FIXME: Two tests error out with:
1561 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
1563 ;; (modify-phases %standard-phases
1566 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
1567 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
1568 ;; (invoke "python" "-m" "tornado.test.runtests")
1572 `(("python-certifi" ,python-certifi)))
1573 (home-page "https://www.tornadoweb.org/")
1574 (synopsis "Python web framework and asynchronous networking library")
1576 "Tornado is a Python web framework and asynchronous networking library,
1577 originally developed at FriendFeed. By using non-blocking network I/O,
1578 Tornado can scale to tens of thousands of open connections, making it ideal
1579 for long polling, WebSockets, and other applications that require a long-lived
1580 connection to each user.")
1581 (license license:asl2.0)
1582 (properties `((python2-variant . ,(delay python2-tornado))))))
1584 (define-public python-tornado-6
1586 (name "python-tornado")
1591 (uri (pypi-uri "tornado" version))
1594 "1p5n7sw4580pkybywg93p8ddqdj9lhhy72rzswfa801vlidx9qhg"))))
1595 (build-system python-build-system)
1598 (modify-phases %standard-phases
1601 (invoke "python" "-m" "tornado.test.runtests")
1604 `(("python-certifi" ,python-certifi)))
1605 (home-page "https://www.tornadoweb.org/")
1606 (synopsis "Python web framework and asynchronous networking library")
1608 "Tornado is a Python web framework and asynchronous networking library,
1609 originally developed at FriendFeed. By using non-blocking network I/O,
1610 Tornado can scale to tens of thousands of open connections, making it ideal
1611 for long polling, WebSockets, and other applications that require a long-lived
1612 connection to each user.")
1613 (license license:asl2.0)))
1615 (define-public python2-tornado
1616 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
1617 (package (inherit tornado)
1619 `(("python2-backport-ssl-match-hostname"
1620 ,python2-backport-ssl-match-hostname)
1621 ("python2-backports-abc" ,python2-backports-abc)
1622 ("python2-singledispatch" ,python2-singledispatch)
1623 ,@(package-propagated-inputs tornado))))))
1625 (define-public python-tornado-http-auth
1627 (name "python-tornado-http-auth")
1632 (uri (pypi-uri "tornado-http-auth" version))
1634 (base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x"))))
1635 (build-system python-build-system)
1637 `(("python-tornado" ,python-tornado)))
1638 (home-page "https://github.com/gvalkov/tornado-http-auth")
1639 (synopsis "Digest and basic authentication module for Tornado")
1641 "Provides support for adding authentication to services using the Tornado
1642 web framework, either via the basic or digest authentication schemes.")
1643 (license license:asl2.0)))
1645 (define-public python-terminado
1647 (name "python-terminado")
1652 (uri (pypi-uri "terminado" version))
1655 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
1656 (build-system python-build-system)
1658 `(("python-tornado" ,python-tornado)
1659 ("python-ptyprocess" ,python-ptyprocess)))
1661 `(("python-nose" ,python-nose)))
1664 (modify-phases %standard-phases
1666 (lambda _ (invoke "nosetests") #t)))))
1667 (home-page "https://github.com/takluyver/terminado")
1668 (synopsis "Terminals served to term.js using Tornado websockets")
1669 (description "This package provides a Tornado websocket backend for the
1670 term.js Javascript terminal emulator library.")
1671 (license license:bsd-2)
1672 (properties `((python2-variant . ,(delay python2-terminado))))))
1674 (define-public python2-terminado
1675 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
1676 (package (inherit terminado)
1678 `(("python2-backport-ssl-match-hostname"
1679 ,python2-backport-ssl-match-hostname)
1680 ("python2-futures" ,python2-futures)
1681 ,@(package-propagated-inputs terminado))))))
1683 (define-public python-wsgi-intercept
1685 (name "python-wsgi-intercept")
1689 (uri (pypi-uri "wsgi_intercept" version))
1692 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
1693 (build-system python-build-system)
1695 `(("python-six" ,python-six)))
1697 `(("python-pytest" ,python-pytest)
1698 ("python-httplib2" ,python-httplib2)
1699 ("python-requests" ,python-requests)
1700 ("python-urllib3" ,python-urllib3)))
1701 (synopsis "Puts a WSGI application in place of a real URI for testing")
1702 (description "Wsgi_intercept installs a WSGI application in place of a real
1703 URI for testing. Testing a WSGI application normally involves starting a
1704 server at a local host and port, then pointing your test code to that address.
1705 Instead, this library lets you intercept calls to any specific host/port
1706 combination and redirect them into a WSGI application importable by your test
1707 program. Thus, you can avoid spawning multiple processes or threads to test
1709 (home-page "https://github.com/cdent/wsgi-intercept")
1710 (license license:expat)))
1712 (define-public python-webob
1714 (name "python-webob")
1719 (uri (pypi-uri "WebOb" version))
1722 "026i3z99nr3px75isa9mbnky5i7rffiv4d124h5kxfjjsxz92fma"))))
1723 (build-system python-build-system)
1725 `(("python-nose" ,python-nose)))
1726 (home-page "https://webob.org/")
1727 (synopsis "WSGI request and response object")
1729 "WebOb provides wrappers around the WSGI request environment, and an
1730 object to help create WSGI responses.")
1731 (license license:expat)))
1733 (define-public python2-webob
1734 (package-with-python2 python-webob))
1736 (define-public python-zope-event
1738 (name "python-zope-event")
1743 (uri (pypi-uri "zope.event" version))
1746 "1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9"))))
1747 (build-system python-build-system)
1748 (home-page "https://pypi.org/project/zope.event/")
1749 (synopsis "Event publishing system for Python")
1750 (description "Zope.event provides an event publishing API, intended for
1751 use by applications which are unaware of any subscribers to their events. It
1752 is a simple event-dispatching system on which more sophisticated event
1753 dispatching systems can be built.")
1754 (license license:zpl2.1)))
1756 (define-public python2-zope-event
1757 (package-with-python2 python-zope-event))
1759 (define-public python-zope-interface
1761 (name "python-zope-interface")
1766 (uri (pypi-uri "zope.interface" version))
1769 "03nrl6b8cb600dnnh46y149awvrm0gxyqgwq5hdw3lvys8mw9r20"))))
1770 (build-system python-build-system)
1771 (arguments '(#:tests? #f)) ; test suite can't find python-zope-testing
1773 `(("python-coverage" ,python-coverage)
1774 ("python-nose" ,python-nose)
1775 ("python-zope-event" ,python-zope-event)
1776 ("python-zope-testing" ,python-zope-testing)))
1777 (home-page "https://github.com/zopefoundation/zope.interface")
1778 (synopsis "Python implementation of the \"design by contract\"
1780 (description "Zope.interface provides an implementation of \"object
1781 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
1782 conforming to a given API or contract.")
1783 (license license:zpl2.1)))
1785 (define-public python2-zope-interface
1786 (package-with-python2 python-zope-interface))
1788 (define-public python-zope-exceptions
1790 (name "python-zope-exceptions")
1795 (uri (pypi-uri "zope.exceptions" version))
1798 "1nkgfwawswmyc6i0b8g3ymvja4mb507m8yhid8s4rbxq3dmqhwhd"))))
1799 (build-system python-build-system)
1802 (modify-phases %standard-phases
1805 (invoke "zope-testrunner" "--test-path=src"))))))
1807 `(("python-zope-testrunner" ,python-zope-testrunner-bootstrap)))
1809 `(("python-zope-interface" ,python-zope-interface)))
1810 (home-page "https://pypi.org/project/zope.exceptions/")
1811 (synopsis "Zope exceptions")
1812 (description "Zope.exceptions provides general-purpose exception types
1813 that have uses outside of the Zope framework.")
1814 (license license:zpl2.1)))
1816 (define-public python-zope-exceptions-bootstrap
1818 (inherit python-zope-exceptions)
1819 (arguments `(#:tests? #f))
1820 (propagated-inputs `())
1822 (properties `((hidden? . #t)))))
1824 (define-public python2-zope-exceptions
1825 (package-with-python2 python-zope-exceptions))
1827 (define-public python-zope-testing
1829 (name "python-zope-testing")
1834 (uri (pypi-uri "zope.testing" version))
1837 "1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn"))))
1838 (build-system python-build-system)
1839 (home-page "https://pypi.org/project/zope.testing/")
1840 (synopsis "Zope testing helpers")
1841 (description "Zope.testing provides a number of testing utilities for HTML
1842 forms, HTTP servers, regular expressions, and more.")
1843 (license license:zpl2.1)))
1845 (define-public python2-zope-testing
1846 (package-with-python2 python-zope-testing))
1848 (define-public python-zope-testrunner
1850 (name "python-zope-testrunner")
1855 (uri (pypi-uri "zope.testrunner" version))
1858 "0jyyf1dcz156q95x2y7yw2v420q2xn3cff0c5aci7hmdmcbn0gc7"))))
1859 (build-system python-build-system)
1861 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1863 `(("python-zope-testing" ,python-zope-testing)))
1865 `(("python-six" ,python-six)
1866 ("python-zope-exceptions" ,python-zope-exceptions)
1867 ("python-zope-interface" ,python-zope-interface)))
1868 (home-page "https://pypi.org/project/zope.testrunner/")
1869 (synopsis "Zope testrunner script")
1870 (description "Zope.testrunner provides a script for running Python
1872 (license license:zpl2.1)))
1874 (define-public python-zope-testrunner-bootstrap
1876 (inherit python-zope-testrunner)
1877 (arguments `(#:tests? #f))
1879 `(("python-six" ,python-six)
1880 ("python-zope-exceptions" ,python-zope-exceptions-bootstrap)))
1881 (properties `((hidden? . #t)))))
1883 (define-public python2-zope-testrunner
1884 (package-with-python2 python-zope-testrunner))
1886 (define-public python-zope-i18nmessageid
1888 (name "python-zope-i18nmessageid")
1893 (uri (pypi-uri "zope.i18nmessageid" version))
1896 "0ndhn4w1qgwkfbwf9vm2bgq418z5g0wmfsgl0d9nz62cd0mi8d4m"))))
1897 (build-system python-build-system)
1899 `(("python-coverage" ,python-coverage)
1900 ("python-zope-testrunner" ,python-zope-testrunner)))
1902 `(("python-six" ,python-six)))
1903 (home-page "https://pypi.org/project/zope.i18nmessageid/")
1904 (synopsis "Message identifiers for internationalization")
1905 (description "Zope.i18nmessageid provides facilities for declaring
1906 internationalized messages within program source text.")
1907 (license license:zpl2.1)))
1909 (define-public python2-zope-i18nmessageid
1910 (package-with-python2 python-zope-i18nmessageid))
1912 (define-public python-zope-schema
1914 (name "python-zope-schema")
1919 (uri (pypi-uri "zope.schema" version))
1922 "09jg47bxhfg1ahr1jxb5y0cbiszyk1j6fn1r1r7s6svjl3lbryr0"))))
1923 (build-system python-build-system)
1926 (modify-phases %standard-phases
1928 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
1929 (add-installed-pythonpath inputs outputs)
1931 (invoke "zope-testrunner" "--test-path=src")
1934 `(("python-zope-event" ,python-zope-event)
1935 ("python-zope-interface" ,python-zope-interface)))
1937 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1938 ("python-zope-testing" ,python-zope-testing)
1939 ("python-zope-testrunner" ,python-zope-testrunner)))
1940 (home-page "https://pypi.org/project/zope.schema/")
1941 (synopsis "Zope data schemas")
1942 (description "Zope.scheme provides extensions to zope.interface for
1943 defining data schemas.")
1944 (license license:zpl2.1)))
1946 (define-public python2-zope-schema
1947 (package-with-python2 python-zope-schema))
1949 (define-public python-zope-configuration
1951 (name "python-zope-configuration")
1955 (uri (pypi-uri "zope.configuration" version))
1958 "0g6vrl7y27z9cj5xyrww9xlzk4npj55mgmlrcd9d2nj08jn2pw79"))))
1959 (build-system python-build-system)
1961 `(("python-manuel" ,python-manuel)
1962 ("python-zope-testing" ,python-zope-testing)
1963 ("python-zope-testrunner" ,python-zope-testrunner)))
1965 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1966 ("python-zope-interface" ,python-zope-interface)
1967 ("python-zope-schema" ,python-zope-schema)))
1968 (home-page "https://pypi.org/project/zope.configuration/")
1969 (synopsis "Zope Configuration Markup Language")
1970 (description "Zope.configuration implements ZCML, the Zope Configuration
1972 (license license:zpl2.1)))
1974 (define-public python-zope-configuration-bootstrap
1976 (inherit python-zope-configuration)
1977 (arguments `(#:tests? #f))
1979 (properties `((hidden? . #t)))))
1981 (define-public python2-zope-configuration
1982 (package-with-python2 python-zope-configuration))
1984 (define-public python-zope-copy
1986 (name "python-zope-copy")
1991 (uri (pypi-uri "zope.copy" version))
1994 "06m75434krl57n6p73c2qj55k5i3fixg887j8ss01ih6zw4rvfs7"))))
1995 (build-system python-build-system)
1998 (modify-phases %standard-phases
2001 (invoke "zope-testrunner" "--test-path=src" "\\[]"))))))
2003 `(("python-zope-interface" ,python-zope-interface)))
2005 `(("python-zope-component" ,python-zope-component-bootstrap)
2006 ("python-zope-location" ,python-zope-location-bootstrap)
2007 ("python-zope-testing" ,python-zope-testing)
2008 ("python-zope-testrunner" ,python-zope-testrunner)))
2009 (home-page "https://github.com/zopefoundation/zope.copy")
2010 (synopsis "Pluggable object copying mechanism")
2012 "This package provides a pluggable mechanism for copying persistent objects.")
2013 (license license:zpl2.1)))
2015 (define-public python-zope-proxy
2017 (name "python-zope-proxy")
2022 (uri (pypi-uri "zope.proxy" version))
2025 "14h7nyfbl5vpfk0rbviy4ygdfx0yx5kncvg6jpbdb0dhwna0ssm6"))))
2026 (build-system python-build-system)
2028 `(("python-zope-security" ,python-zope-security-bootstrap)
2029 ("python-zope-testrunner" ,python-zope-testrunner)))
2031 `(("python-zope-interface" ,python-zope-interface)))
2032 (home-page "https://pypi.org/project/zope.proxy/")
2033 (synopsis "Generic, transparent proxies")
2034 (description "Zope.proxy provides generic, transparent proxies for Python.
2035 Proxies are special objects which serve as mostly-transparent wrappers around
2036 another object, intervening in the apparent behavior of the wrapped object
2037 only when necessary to apply the policy (e.g., access checking, location
2038 brokering, etc.) for which the proxy is responsible.")
2039 (license license:zpl2.1)))
2041 (define-public python-zope-proxy-bootstrap
2043 (inherit python-zope-proxy)
2044 (arguments `(#:tests? #f))
2046 (properties `((hidden? . #t)))))
2048 (define-public python2-zope-proxy
2049 (package-with-python2 python-zope-proxy))
2051 (define-public python-zope-hookable
2053 (name "python-zope-hookable")
2058 (uri (pypi-uri "zope.hookable" version))
2061 "0hc82lfr7bk53nvbxvjkibkarngyrzgfk2i6bg8wshl0ly0pdl19"))))
2062 (build-system python-build-system)
2064 `(("python-coverage" ,python-coverage)
2065 ("python-zope-testing" ,python-zope-testing)))
2066 (home-page "https://github.com/zopefoundation/zope.hookable")
2067 (synopsis "Zope hookable")
2068 (description "This package supports the efficient creation of hookable
2069 objects, which are callable objects that are meant to be optionally replaced.
2070 The idea is that you create a function that does some default thing and make i
2071 hookable. Later, someone can modify what it does by calling its sethook method
2072 and changing its implementation. All users of the function, including those
2073 that imported it, will see the change.")
2074 (license license:zpl2.1)))
2076 (define-public python-zope-location
2078 (name "python-zope-location")
2083 (uri (pypi-uri "zope.location" version))
2086 "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857"))))
2087 (build-system python-build-system)
2089 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
2091 `(("python-zope-testrunner" ,python-zope-testrunner)))
2093 `(("python-zope-interface" ,python-zope-interface)
2094 ("python-zope-proxy" ,python-zope-proxy)
2095 ("python-zope-schema" ,python-zope-schema)))
2096 (home-page "https://pypi.org/project/zope.location/")
2097 (synopsis "Zope location library")
2098 (description "Zope.location implements the concept of \"locations\" in
2099 Zope3, which are are special objects that have a structural location.")
2100 (license license:zpl2.1)))
2102 (define-public python-zope-location-bootstrap
2104 (inherit python-zope-location)
2105 (arguments `(#:tests? #f))
2107 (properties `((hidden? . #t)))))
2109 (define-public python2-zope-location
2110 (package-with-python2 python-zope-location))
2112 (define-public python-zope-security
2114 (name "python-zope-security")
2119 (uri (pypi-uri "zope.security" version))
2122 "11lfw67cigscfax9c5j63xcvz2qcj724zx5fcdqyc94am2glim0h"))))
2123 (build-system python-build-system)
2125 `(("python-zope-component" ,python-zope-component)
2126 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2127 ("python-zope-interface" ,python-zope-interface)
2128 ("python-zope-location" ,python-zope-location)
2129 ("python-zope-proxy" ,python-zope-proxy)
2130 ("python-zope-schema" ,python-zope-schema)))
2132 `(("python-btrees" ,python-btrees)
2133 ("python-zope-component" ,python-zope-component-bootstrap)
2134 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
2135 ("python-zope-location" ,python-zope-location-bootstrap)
2136 ("python-zope-testing" ,python-zope-testing)
2137 ("python-zope-testrunner" ,python-zope-testrunner)))
2138 (home-page "https://pypi.org/project/zope.security/")
2139 (synopsis "Zope security framework")
2140 (description "Zope.security provides a generic mechanism to implement
2141 security policies on Python objects.")
2142 (license license:zpl2.1)))
2144 (define-public python-zope-security-bootstrap
2146 (inherit python-zope-security)
2147 (arguments `(#:tests? #f))
2149 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2150 ("python-zope-interface" ,python-zope-interface)
2151 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
2152 ("python-zope-schema" ,python-zope-schema)))
2154 (properties `((hidden? . #t)))))
2156 (define-public python2-zope-security
2157 (package-with-python2 python-zope-security))
2159 (define-public python-zope-component
2161 (name "python-zope-component")
2166 (uri (pypi-uri "zope.component" version))
2169 "14iwp95hh6q5dj4k9h1iw75cbp89bs27nany4dinyglb44c8jqli"))))
2170 (build-system python-build-system)
2173 (modify-phases %standard-phases
2175 (lambda* (#:key inputs outputs #:allow-other-keys)
2176 (add-installed-pythonpath inputs outputs)
2177 (invoke "python" "setup.py" "test"))))))
2179 `(("python-persistent" ,python-persistent)
2180 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
2181 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2182 ("python-zope-location" ,python-zope-location-bootstrap)
2183 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
2184 ("python-zope-security" ,python-zope-security-bootstrap)
2185 ("python-zope-testing" ,python-zope-testing)
2186 ("python-zope-testrunner" ,python-zope-testrunner)))
2188 `(("python-zope-deferredimport" ,python-zope-deferredimport)
2189 ("python-zope-deprecation" ,python-zope-deprecation)
2190 ("python-zope-event" ,python-zope-event)
2191 ("python-zope-hookable" ,python-zope-hookable)
2192 ("python-zope-interface" ,python-zope-interface)))
2193 (home-page "https://github.com/zopefoundation/zope.component")
2194 (synopsis "Zope Component Architecture")
2195 (description "Zope.component represents the core of the Zope Component
2196 Architecture. Together with the zope.interface package, it provides
2197 facilities for defining, registering and looking up components.")
2198 (license license:zpl2.1)))
2200 (define-public python-zope-component-bootstrap
2202 (inherit python-zope-component)
2203 (arguments `(#:tests? #f))
2205 (properties `((hidden? . #t)))))
2207 (define-public python2-zope-component
2208 (package-with-python2 python-zope-component))
2210 (define-public python-zope-deferredimport
2212 (name "python-zope-deferredimport")
2217 (uri (pypi-uri "zope.deferredimport" version))
2220 "1q89v54dwniiqypjbwywwdfjdr4kdkqlyqsgrpplgvsygdg39cjp"))))
2221 (build-system python-build-system)
2223 `(("python-zope-proxy" ,python-zope-proxy)))
2225 `(("python-zope-testrunner" ,python-zope-testrunner)))
2226 (home-page "https://github.com/zopefoundation/zope.deferredimport")
2227 (synopsis "Defer imports until used by code")
2229 "Often, especially for package modules, you want to import names for
2230 convenience, but not actually perform the imports until necessary. The
2231 @code{zope.deferredimport} package provided facilities for defining names in
2232 modules that will be imported from somewhere else when used. You can also cause
2233 deprecation warnings to be issued when a variable is used.")
2234 (license license:zpl2.1)))
2236 (define-public python-ndg-httpsclient
2238 (name "python-ndg-httpsclient")
2242 (uri (pypi-uri "ndg_httpsclient" version))
2245 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
2246 (build-system python-build-system)
2248 '(;; The tests appear to require networking.
2251 `(("python-pyopenssl" ,python-pyopenssl)))
2252 (synopsis "HTTPS support for Python's httplib and urllib2")
2253 (description "This is a HTTPS client implementation for httplib and urllib2
2254 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
2255 over the default provided with Python and, importantly, enables full
2256 verification of the SSL peer.")
2257 (home-page "https://github.com/cedadev/ndg_httpsclient/")
2258 (license license:bsd-3)))
2260 ;; python2-openssl requires special care, so package-with-python2 is
2262 (define-public python2-ndg-httpsclient
2263 (package (inherit python-ndg-httpsclient)
2264 (name "python2-ndg-httpsclient")
2266 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
2267 ((#:python _) python-2)))
2269 `(("python2-pyopenssl" ,python2-pyopenssl)))))
2271 (define-public python-websocket-client
2273 (name "python-websocket-client")
2278 (uri (pypi-uri "websocket_client" version))
2281 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
2282 (build-system python-build-system)
2284 `(("python-six" ,python-six)))
2285 (home-page "https://github.com/liris/websocket-client")
2286 (synopsis "WebSocket client for Python")
2287 (description "The Websocket-client module provides the low level APIs for
2288 WebSocket usage in Python programs.")
2289 (properties `((python2-variant . ,(delay python2-websocket-client))))
2290 (license license:lgpl2.1+)))
2292 (define-public python2-websocket-client
2293 (let ((base (package-with-python2
2294 (strip-python2-variant python-websocket-client))))
2298 `(("python2-backport-ssl-match-hostname"
2299 ,python2-backport-ssl-match-hostname)
2300 ,@(package-native-inputs base))))))
2302 (define-public python-purl
2304 (name "python-purl")
2309 (uri (pypi-uri "purl" version))
2312 "15ibnz1xrh5msmn04j0nr00sz4n7jwx6cwd6zlx99kkz3vpin53m"))))
2313 (build-system python-build-system)
2314 (propagated-inputs `(("python-six" ,python-six)))
2316 "https://github.com/codeinthehole/purl")
2318 "Python package for URL manipulation")
2320 "Purl is a Python package for handling URLs.")
2321 (license license:expat)))
2323 (define-public python-apiron
2325 (name "python-apiron")
2330 (uri (pypi-uri "apiron" version))
2332 (base32 "1qwbqn47sf0aqznj1snbv37v8ijx476qqkjf5l9pac7xjkxsr8qk"))))
2333 (build-system python-build-system)
2336 (modify-phases %standard-phases
2338 (lambda* (#:key inputs outputs #:allow-other-keys)
2339 (add-installed-pythonpath inputs outputs)
2340 (invoke "pytest" "-vv" "--cov" "-k"
2341 ;; This test tries to connect to the internet.
2342 "not test_call"))))))
2344 `(("python-requests" ,python-requests)))
2346 `(("python-pytest" ,python-pytest)
2347 ("python-pytest-cov" ,python-pytest-cov)))
2348 (home-page "https://github.com/ithaka/apiron")
2349 (synopsis "Python wrapper for interacting with RESTful APIs")
2351 "@code{apiron} provides a declarative, structured configuration of
2352 services and endpoints with a unified interface for interacting with RESTful
2354 (license license:expat)))
2356 (define-public python-beren
2358 (name "python-beren")
2363 (uri (pypi-uri "beren" version))
2365 (base32 "1v3mdwfqsyza892zvs124ym9w1bkng1j56b7l4dwfjir3723xcgf"))))
2366 (build-system python-build-system)
2368 ;; The test tries to open a connection to a remote server.
2371 `(("python-apiron" ,python-apiron)))
2372 (home-page "https://github.com/teffalump/beren")
2373 (synopsis "REST client for Orthanc DICOM servers")
2375 "@code{beren} provides a REST client for Orthanc, a DICOM server.")
2376 (license license:gpl3+)))
2378 (define-public python-requests
2380 (name "python-requests")
2384 (uri (pypi-uri "requests" version))
2387 "1rhpg0jb08v0gd7f19jjiwlcdnxpmqi1fhvw7r4s9avddi4kvx5k"))))
2388 (build-system python-build-system)
2390 `(("python-certifi" ,python-certifi)
2391 ("python-chardet" ,python-chardet)
2392 ("python-idna" ,python-idna)
2393 ("python-urllib3" ,python-urllib3)))
2395 ;; FIXME: Some tests require network access.
2397 (home-page "http://python-requests.org/")
2398 (synopsis "Python HTTP library")
2400 "Requests is a Python HTTP client library. It aims to be easier to use
2401 than Python’s urllib2 library.")
2402 (license license:asl2.0)))
2404 ;; Some software requires an older version of Requests, notably Docker/Docker
2406 (define-public python-requests-2.20
2407 (package (inherit python-requests)
2411 (uri (pypi-uri "requests" version))
2414 "0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
2416 `(("python-urllib3" ,python-urllib3-1.24)
2417 ("python-idna" ,python-idna-2.7)
2418 ,@(package-propagated-inputs python-requests)))))
2420 (define-public python2-requests
2421 (package-with-python2 python-requests))
2423 (define-public python-requests_ntlm
2425 (name "python-requests_ntlm")
2430 (uri (pypi-uri "requests_ntlm" version))
2433 "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
2434 (build-system python-build-system)
2436 `(("python-cryptography" ,python-cryptography)
2437 ("python-ntlm-auth" ,python-ntlm-auth)
2438 ("python-requests" ,python-requests)))
2439 (home-page "https://github.com/requests/requests-ntlm")
2441 "NTLM authentication support for Requests")
2443 "This package allows for HTTP NTLM authentication using the requests
2445 (license license:isc)))
2447 (define-public python-requests-mock
2449 (name "python-requests-mock")
2454 (uri (pypi-uri "requests-mock" version))
2457 "09nj8fmyj7xz2mgwyvbw0fl9zybmx2d3qd2hf529vvjc9s24d3z6"))))
2458 (build-system python-build-system)
2460 `(("python-requests" ,python-requests)
2461 ("python-six" ,python-six)))
2463 `(("python-pbr" ,python-pbr)
2464 ("python-discover" ,python-discover)
2465 ("python-docutils" ,python-docutils)
2466 ("python-fixtures" ,python-fixtures)
2467 ("python-mock" ,python-mock)
2468 ("python-purl" ,python-purl)
2469 ("python-pytest" ,python-pytest)
2470 ("python-sphinx" ,python-sphinx)
2471 ("python-testrepository" ,python-testrepository)))
2472 (home-page "https://requests-mock.readthedocs.org/")
2473 (synopsis "Mock out responses from the requests package")
2475 "This module provides a building block to stub out the HTTP requests
2476 portions of your testing code.")
2477 (properties `((python2-variant . ,(delay python2-requests-mock))))
2478 (license license:asl2.0)))
2480 (define-public python2-requests-mock
2481 (package (inherit (package-with-python2
2482 (strip-python2-variant python-requests-mock)))
2484 `(#:python ,python-2
2485 ;; FIXME: 'subunit.run discover: error: no such option: --list'
2488 (define-public python-requests-toolbelt
2490 (name "python-requests-toolbelt")
2494 (uri (pypi-uri "requests-toolbelt" version))
2497 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
2498 (build-system python-build-system)
2500 `(("python-betamax" ,python-betamax)
2501 ("python-mock" ,python-mock)
2502 ("python-pytest" ,python-pytest)))
2504 `(("python-requests" ,python-requests)))
2505 (synopsis "Extensions to python-requests")
2506 (description "This is a toolbelt of useful classes and functions to be used
2507 with python-requests.")
2508 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
2509 (license license:asl2.0)))
2511 (define-public python2-requests-toolbelt
2512 (package-with-python2 python-requests-toolbelt))
2514 (define-public python-requests-toolbelt-0.9.1
2516 (inherit python-requests-toolbelt)
2520 (uri (pypi-uri "requests-toolbelt" version))
2523 "1h3gm88dcjbd7gm229a7x5qkkhnsqsjz0m0l2xyavm2ab3a8k04n"))))
2525 `(;; FIXME: Some tests require network access.
2528 (define-public python-requests-ftp
2530 (name "python-requests-ftp")
2535 (uri (pypi-uri "requests-ftp" version))
2538 "0yh5v21v36dsjsgv4y9dx4mmz35741l5jf6pbq9w19d8rfsww13m"))))
2539 (build-system python-build-system)
2541 `(("python-requests" ,python-requests)))
2543 "https://github.com/Lukasa/requests-ftp")
2544 (synopsis "FTP Transport Adapter for Requests")
2546 "Requests-FTP is an implementation of a simple FTP transport
2547 adapter for use with the Requests library.")
2548 (license license:asl2.0)))
2550 (define-public python-oauthlib
2552 (name "python-oauthlib")
2556 (uri (pypi-uri "oauthlib" version))
2559 "12gqnabwck30gdlpwm6af3s28qm9p2yc7b1w8s4fk9ncbz1irr5y"))))
2560 (build-system python-build-system)
2562 `(#:phases (modify-phases %standard-phases
2565 (invoke "pytest" "-vv"))))))
2567 `(("python-pytest" ,python-pytest)
2568 ("python-pytest-cov" ,python-pytest-cov)
2569 ("python-mock" ,python-mock)))
2571 `(("python-cryptography" ,python-cryptography)
2572 ("python-pyjwt" ,python-pyjwt)
2573 ("python-blinker" ,python-blinker)))
2574 (home-page "https://github.com/oauthlib/oauthlib")
2575 (synopsis "OAuth implementation for Python")
2577 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2578 OAuth request-signing logic.")
2579 (license license:bsd-3)))
2581 (define-public python2-oauthlib
2582 (package-with-python2 python-oauthlib))
2584 (define-public python-rauth
2586 (name "python-rauth")
2591 (uri (pypi-uri "rauth" version))
2594 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
2595 (build-system python-build-system)
2597 `(#:test-target "check"))
2599 `(("python-requests" ,python-requests)))
2600 (home-page "https://github.com/litl/rauth")
2601 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
2603 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
2604 provides service wrappers for convenient connection initialization and
2605 authenticated session objects providing things like keep-alive.")
2606 (license license:expat)
2607 (properties `((python2-variant . ,(delay python2-rauth))))))
2609 (define-public python2-rauth
2610 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
2613 (native-inputs `(("python2-unittest2" ,python2-unittest2)
2614 ,@(package-native-inputs base))))))
2616 (define-public python-urllib3
2618 (name "python-urllib3")
2623 (uri (pypi-uri "urllib3" version))
2626 "09rmjqm5syhhc8fx3v06h3yv6cqy0b1081jg8wm5grpwpr72j61h"))))
2627 (build-system python-build-system)
2628 (arguments `(#:tests? #f))
2630 `(;; These 5 inputs are used to build urrlib3[secure]
2631 ("python-certifi" ,python-certifi)
2632 ("python-cryptography" ,python-cryptography)
2633 ("python-idna" ,python-idna)
2634 ("python-ipaddress" ,python-ipaddress)
2635 ("python-pyopenssl" ,python-pyopenssl)
2636 ("python-pysocks" ,python-pysocks)))
2637 (home-page "https://urllib3.readthedocs.io/")
2638 (synopsis "HTTP library with thread-safe connection pooling")
2640 "Urllib3 supports features left out of urllib and urllib2 libraries. It
2641 can reuse the same socket connection for multiple requests, it can POST files,
2642 supports url redirection and retries, and also gzip and deflate decoding.")
2643 (license license:expat)))
2645 ;; Some software requires an older version of urllib3, notably Docker.
2646 (define-public python-urllib3-1.24
2647 (package (inherit python-urllib3)
2651 (uri (pypi-uri "urllib3" version))
2654 "1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
2657 (define-public python2-urllib3
2658 (package-with-python2 python-urllib3))
2660 (define-public awscli
2662 ;; Note: updating awscli typically requires updating botocore as well.
2664 (version "1.18.183")
2668 (uri (pypi-uri name version))
2671 "0n1pmdl33r1v8qnrcg08ihvri9zm4fvsp14605vwmlkxvs8nb7s5"))))
2672 (build-system python-build-system)
2674 ;; FIXME: The 'pypi' release does not contain tests.
2677 (modify-phases %standard-phases
2678 (add-after 'unpack 'fix-reference-to-groff
2680 (substitute* "awscli/help.py"
2681 (("if not self._exists_on_path\\('groff'\\):") "")
2682 (("raise ExecutableNotFoundError\\('groff'\\)") "")
2683 (("cmdline = \\['groff'")
2684 (string-append "cmdline = ['" (which "groff") "'")))
2687 `(("python-colorama" ,python-colorama)
2688 ("python-botocore" ,python-botocore)
2689 ("python-s3transfer" ,python-s3transfer)
2690 ("python-docutils" ,python-docutils)
2691 ("python-pyyaml" ,python-pyyaml)
2692 ("python-rsa" ,python-rsa)))
2694 `(("groff" ,groff)))
2695 (home-page "https://aws.amazon.com/cli/")
2696 (synopsis "Command line client for AWS")
2697 (description "AWS CLI provides a unified command line interface to the
2698 Amazon Web Services (AWS) API.")
2699 (license license:asl2.0)))
2701 (define-public python-wsgiproxy2
2703 (name "python-wsgiproxy2")
2708 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
2710 (base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf"))))
2711 (build-system python-build-system)
2713 `(("python-webtest" ,python-webtest)))
2715 `(("python-requests" ,python-requests)
2716 ("python-six" ,python-six)
2717 ("python-urllib3" ,python-urllib3)
2718 ("python-webob" ,python-webob)))
2719 (home-page "https://github.com/gawel/WSGIProxy2/")
2720 (synopsis "WSGI Proxy with various http client backends")
2721 (description "WSGI turns HTTP requests into WSGI function calls.
2722 WSGIProxy turns WSGI function calls into HTTP requests.
2723 It also includes code to sign requests and pass private data,
2724 and to spawn subprocesses to handle requests.")
2725 (license license:expat)))
2727 (define-public python2-wsgiproxy2
2728 (package-with-python2 python-wsgiproxy2))
2730 (define-public python-pastedeploy
2732 (name "python-pastedeploy")
2737 (uri (pypi-uri "PasteDeploy" version))
2739 (base32 "05s88qdjdwd9d9qs13fap7nqgxs7qs5qfzzjbrc5va13k2mxdskd"))))
2740 (build-system python-build-system)
2742 '(#:test-target "pytest"))
2744 `(("python-pytest" ,python-pytest)
2745 ("python-pytest-runner" ,python-pytest-runner)))
2746 (home-page "https://pylonsproject.org/")
2748 "Load, configure, and compose WSGI applications and servers")
2750 "This tool provides code to load WSGI applications and servers from URIs;
2751 these URIs can refer to Python Eggs for INI-style configuration files. Paste
2752 Script provides commands to serve applications based on this configuration
2754 (license license:expat)))
2756 (define-public python2-pastedeploy
2757 (package-with-python2 python-pastedeploy))
2759 (define-public python-webtest
2761 (name "python-webtest")
2766 (uri (pypi-uri "WebTest" version))
2769 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
2770 (build-system python-build-system)
2772 ;; Tests require python-pyquery, which creates a circular dependency.
2775 `(("python-waitress" ,python-waitress)
2776 ("python-webob" ,python-webob)
2777 ("python-six" ,python-six)
2778 ("python-beautifulsoup4" ,python-beautifulsoup4)))
2779 (home-page "https://docs.pylonsproject.org/projects/webtest/")
2780 (synopsis "Helper to test WSGI applications")
2781 (description "Webtest allows you to test your Python web applications
2782 without starting an HTTP server. It supports anything that supports the
2784 (license license:expat)))
2786 (define-public python2-webtest
2787 (package-with-python2 python-webtest))
2789 (define-public python-flask
2791 (name "python-flask")
2795 (uri (pypi-uri "Flask" version))
2798 "0q3h295izcil7lswkzfnyg3k5gq4hpmqmpl6i7s5m1n9szi1myjf"))))
2799 (build-system python-build-system)
2802 (modify-phases %standard-phases
2805 (setenv "PYTHONPATH" (string-append "./build/lib:"
2806 (getenv "PYTHONPATH")))
2807 (invoke "pytest" "-vv" "tests"))))))
2809 `(("python-pytest" ,python-pytest)))
2811 `(("python-itsdangerous" ,python-itsdangerous)
2812 ("python-jinja2" ,python-jinja2)
2813 ("python-click" ,python-click)
2814 ("python-werkzeug" ,python-werkzeug)))
2815 (home-page "https://www.palletsprojects.com/p/flask/")
2816 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
2817 (description "Flask is a micro web framework based on the Werkzeug toolkit
2818 and Jinja2 template engine. It is called a micro framework because it does not
2819 presume or force a developer to use a particular tool or library.")
2820 (license license:bsd-3)))
2822 (define-public python2-flask
2823 (package-with-python2 python-flask))
2825 (define-public python-flask-wtf
2827 (name "python-flask-wtf")
2832 (uri (pypi-uri "Flask-WTF" version))
2835 "086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl"))))
2836 (build-system python-build-system)
2839 (modify-phases %standard-phases
2842 (setenv "PYTHONPATH" (string-append "./build/lib:"
2843 (getenv "PYTHONPATH")))
2844 (invoke "pytest" "-vv"))))))
2846 `(("python-flask-babel" ,python-flask-babel)
2847 ("python-babel" ,python-babel)
2848 ("python-wtforms" ,python-wtforms)))
2850 `(("python-pytest" ,python-pytest)))
2851 (home-page "https://github.com/lepture/flask-wtf")
2852 (synopsis "Simple integration of Flask and WTForms")
2853 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
2854 upload, and reCAPTCHA.")
2855 (license license:bsd-3)))
2857 (define-public python2-flask-wtf
2858 (package-with-python2 python-flask-wtf))
2860 (define-public python-flask-multistatic
2862 (name "python-flask-multistatic")
2867 (uri (pypi-uri "flask-multistatic" version))
2870 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
2871 (build-system python-build-system)
2873 `(("python-flask" ,python-flask)))
2874 (home-page "https://pagure.io/flask-multistatic")
2875 (synopsis "Flask plugin to allow overriding static files")
2876 (description "@code{flask-multistatic} is a flask plugin that adds support
2877 for overriding static files.")
2878 (license license:gpl3+)))
2880 (define-public python2-flask-multistatic
2881 (package-with-python2 python-flask-multistatic))
2883 (define-public python-cookies
2885 (name "python-cookies")
2889 (uri (pypi-uri "cookies" version))
2892 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
2893 (build-system python-build-system)
2895 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
2898 `(("python-pytest" ,python-pytest)))
2899 (synopsis "HTTP cookie parser and renderer")
2900 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
2902 (home-page "https://gitlab.com/sashahart/cookies")
2903 (license license:expat)))
2905 (define-public python2-cookies
2906 (package-with-python2 python-cookies))
2908 (define-public python-responses
2910 (name "python-responses")
2914 (uri (pypi-uri "responses" version))
2917 "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah"))))
2918 (build-system python-build-system)
2920 `(;; Test suite is not distributed:
2921 ;; https://github.com/getsentry/responses/issues/38
2924 `(("python-mock" ,python-mock)))
2926 `(("python-requests" ,python-requests)
2927 ("python-cookies" ,python-cookies)
2928 ("python-six" ,python-six)))
2929 (home-page "https://github.com/getsentry/responses")
2930 (synopsis "Utility for mocking out the `requests` Python library")
2931 (description "A utility library for mocking out the `requests` Python
2933 (license license:asl2.0)))
2935 (define-public python2-responses
2936 (package-with-python2 python-responses))
2938 (define-public python-grequests
2940 (name "python-grequests")
2945 (uri (pypi-uri "grequests" version))
2948 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
2949 (build-system python-build-system)
2951 `(("python-gevent" ,python-gevent)
2952 ("python-requests" ,python-requests)))
2954 `(("python-nose" ,python-nose)
2955 ("python-zope.interface" ,python-zope-interface)
2956 ("python-zope.event" ,python-zope-event)))
2957 (home-page "https://github.com/kennethreitz/grequests")
2958 (synopsis "Python library for asynchronous HTTP requests")
2959 (description "GRequests is a Python library that allows you to use
2960 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
2961 (license license:bsd-2)))
2963 (define-public python-geventhttpclient
2965 (name "python-geventhttpclient")
2969 (uri (pypi-uri "geventhttpclient" version))
2972 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
2973 (modules '((guix build utils)))
2976 ;; Delete pre-compiled files.
2977 (for-each delete-file (find-files "src/geventhttpclient"
2980 (build-system python-build-system)
2983 (modify-phases %standard-phases
2984 (add-after 'unpack 'delete-network-tests
2986 (delete-file "src/geventhttpclient/tests/test_client.py")
2989 (lambda* (#:key inputs outputs #:allow-other-keys)
2990 (add-installed-pythonpath inputs outputs)
2991 (invoke "py.test" "src/geventhttpclient/tests" "-v"
2992 ;; Append the test modules to sys.path to avoid
2993 ;; namespace conflict which breaks SSL tests.
2994 "--import-mode=append"
2995 ;; XXX: Disable test fails with Python 3.8:
2996 ;; https://github.com/gwik/geventhttpclient/issues/119
2997 "-k" (string-append "not test_cookielib_compatibility"))
3000 `(("python-pytest" ,python-pytest)))
3002 `(("python-certifi" ,python-certifi)
3003 ("python-gevent" ,python-gevent)
3004 ("python-six" ,python-six)))
3005 (home-page "https://github.com/gwik/geventhttpclient")
3006 (synopsis "HTTP client library for gevent")
3007 (description "@code{python-geventhttpclient} is a high performance,
3008 concurrent HTTP client library for python using @code{gevent}.")
3009 (license license:expat)))
3011 (define-public python2-geventhttpclient
3012 (package-with-python2 python-geventhttpclient))
3014 (define-public python-requests-oauthlib
3016 (name "python-requests-oauthlib")
3021 (uri (pypi-uri "requests-oauthlib" version))
3024 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
3025 (build-system python-build-system)
3028 (modify-phases %standard-phases
3029 ;; removes tests that require network access
3030 (add-before 'check 'pre-check
3032 (delete-file "tests/test_core.py")
3035 `(("python-pyjwt" ,python-pyjwt)
3036 ("python-requests-mock" ,python-requests-mock)
3037 ("python-mock" ,python-mock)))
3039 `(("python-oauthlib" ,python-oauthlib)
3040 ("python-requests" ,python-requests)))
3042 "https://github.com/requests/requests-oauthlib")
3044 "OAuthlib authentication support for Requests")
3046 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
3047 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
3048 (license license:isc)))
3050 (define-public python2-requests-oauthlib
3051 (package-with-python2 python-requests-oauthlib))
3053 (define-public python-url
3059 (uri (pypi-uri "url" version))
3062 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
3063 (build-system python-build-system)
3065 `(("python-publicsuffix" ,python-publicsuffix)))
3067 `(("python-coverage" ,python-coverage)
3068 ("python-nose" ,python-nose)))
3070 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
3071 (home-page "https://github.com/seomoz/url-py")
3072 (synopsis "URL Parsing")
3073 (description "Library for parsing urls.")
3074 (license license:expat)
3075 (properties `((python2-variant . ,(delay python2-url))))))
3077 (define-public python2-url
3078 (let ((base (package-with-python2 (strip-python2-variant python-url))))
3079 (package (inherit base)
3081 `(("python2-publicsuffix" ,python2-publicsuffix))))))
3083 (define-public python-cachecontrol
3085 (name "python-cachecontrol")
3090 ;; Pypi does not have tests.
3092 (url "https://github.com/ionrock/cachecontrol")
3093 (commit (string-append "v" version))))
3094 (file-name (git-file-name name version))
3097 "03lgc65sl04n0cgzmmgg99bk83f9i6k8yrmcd4hpl46q1pymn0kz"))))
3098 (build-system python-build-system)
3100 ;; Versions > 0.11.6 depend on CherryPy for testing.
3101 ;; It's too much work to package CherryPy for now.
3104 `(("python-requests" ,python-requests)
3105 ("python-msgpack" ,python-msgpack)
3106 ("python-lockfile" ,python-lockfile)))
3107 (home-page "https://github.com/ionrock/cachecontrol")
3108 (synopsis "The httplib2 caching algorithms for use with requests")
3109 (description "CacheControl is a port of the caching algorithms in
3110 @code{httplib2} for use with @code{requests} session objects.")
3111 (license license:asl2.0)))
3113 (define-public python2-cachecontrol
3114 (package-with-python2 python-cachecontrol))
3116 (define-public python-cachecontrol-0.11
3118 (inherit python-cachecontrol)
3119 (name "python-cachecontrol")
3124 (uri (pypi-uri "CacheControl" version))
3127 "07jsfhlbcwgqg6ayz8nznzaqg5rmxqblbzxz1qvg5wc44pcjjy4g"))))))
3129 (define-public python-betamax
3131 (name "python-betamax")
3136 (uri (pypi-uri "betamax" version))
3139 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
3140 (build-system python-build-system)
3142 '(;; Many tests fail because they require networking.
3145 `(("python-requests" ,python-requests)))
3146 (home-page "https://github.com/sigmavirus24/betamax")
3147 (synopsis "Record HTTP interactions with python-requests")
3148 (description "Betamax will record your test suite's HTTP interactions and
3149 replay them during future tests. It is designed to work with python-requests.")
3150 (license license:expat)))
3152 (define-public python2-betamax
3153 (package-with-python2 python-betamax))
3155 (define-public python-betamax-matchers
3157 (name "python-betamax-matchers")
3162 (uri (pypi-uri "betamax-matchers" version))
3165 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
3166 (build-system python-build-system)
3168 `(("python-betamax" ,python-betamax)
3169 ("python-requests-toolbelt" ,python-requests-toolbelt)))
3170 (home-page "https://github.com/sigmavirus24/betamax_matchers")
3171 (synopsis "VCR imitation for python-requests")
3172 (description "@code{betamax-matchers} provides a set of Matchers for
3174 (license license:asl2.0)))
3176 (define-public python2-betamax-matchers
3177 (package-with-python2 python-betamax-matchers))
3179 (define-public python-s3transfer
3181 (name "python-s3transfer")
3185 (uri (pypi-uri "s3transfer" version))
3188 "1nzp5kwmy9669334shcz9ipg89jgpdqhrmbkgdg18r7wmvi3f6lj"))))
3189 (build-system python-build-system)
3192 (modify-phases %standard-phases
3193 (add-after 'unpack 'patch
3195 ;; There's a small issue with one test with Python 3.8, this
3196 ;; change has been suggested upstream:
3197 ;; https://github.com/boto/s3transfer/pull/164
3198 (substitute* "tests/unit/test_s3transfer.py"
3199 (("super\\(FailedDownloadParts, self\\)\\.submit\\(function\\)")
3200 "futures.Future()"))
3204 ;; Some of the 'integration' tests require network access or
3205 ;; login credentials.
3206 (invoke "nosetests" "--exclude=integration")
3209 `(("python-docutils" ,python-docutils)
3210 ("python-mock" ,python-mock)
3211 ("python-nose" ,python-nose)))
3213 `(("python-botocore" ,python-botocore)
3214 ("python-urllib3" ,python-urllib3)))
3215 (synopsis "Amazon S3 Transfer Manager")
3216 (description "S3transfer is a Python library for managing Amazon S3
3218 (home-page "https://github.com/boto/s3transfer")
3219 (license license:asl2.0)
3220 (properties `((python2-variant . ,(delay python2-s3transfer))))))
3222 (define-public python2-s3transfer
3223 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
3227 `(("python2-futures" ,python2-futures)
3228 ,@(package-native-inputs base))))))
3230 (define-public python-slimit
3232 (name "python-slimit")
3237 (uri (pypi-uri "slimit" version ".zip"))
3240 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
3241 (build-system python-build-system)
3243 `(("unzip" ,unzip)))
3245 `(("python-ply" ,python-ply)))
3246 (home-page "https://slimit.readthedocs.io/")
3247 (synopsis "JavaScript minifier, parser and lexer written in Python")
3249 "SlimIt is a JavaScript minifier written in Python. It compiles
3250 JavaScript into more compact code so that it downloads and runs faster.
3251 SlimIt also provides a library that includes a JavaScript parser, lexer,
3252 pretty printer and a tree visitor.")
3253 (license license:expat)))
3255 (define-public python-flask-restful
3257 (name "python-flask-restful")
3262 (uri (pypi-uri "Flask-RESTful" version))
3263 (patches (search-patches "python-flask-restful-werkzeug-compat.patch"))
3266 "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
3267 (build-system python-build-system)
3269 `(("python-aniso8601" ,python-aniso8601)
3270 ("python-flask" ,python-flask)
3271 ("python-pycrypto" ,python-pycrypto)
3272 ("python-pytz" ,python-pytz)))
3274 `(;; Optional dependency of Flask. Tests need it.
3275 ("python-blinker" ,python-blinker)
3276 ("python-mock" ,python-mock) ; For tests
3277 ("python-nose" ,python-nose))) ;for tests
3279 "https://www.github.com/flask-restful/flask-restful/")
3281 "Flask module for creating REST APIs")
3283 "This package contains a Flask module for creating REST APIs.")
3284 (license license:bsd-3)))
3286 (define-public python-flask-basicauth
3288 (name "python-flask-basicauth")
3293 (uri (pypi-uri "Flask-BasicAuth" version))
3296 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
3297 (build-system python-build-system)
3299 `(#:phases (modify-phases %standard-phases
3300 (add-after 'unpack 'fix-imports
3302 (substitute* '("docs/index.rst"
3304 "flask_basicauth.py"
3305 "test_basicauth.py")
3306 (("flask\\.ext\\.basicauth")
3310 `(("python-flask" ,python-flask)))
3311 (home-page "https://github.com/jpvanhal/flask-basicauth")
3312 (synopsis "HTTP basic access authentication for Flask")
3314 "This package provides HTTP basic access authentication for Flask.")
3315 (license license:bsd-3)))
3317 (define-public python-flask-htpasswd
3319 (name "python-flask-htpasswd")
3324 (uri (pypi-uri "flask-htpasswd" version))
3327 "14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra"))))
3328 (build-system python-build-system)
3330 `(("python-flask" ,python-flask)
3331 ("python-itsdangerous" ,python-itsdangerous)
3332 ("python-passlib" ,python-passlib)
3333 ("python-tox" ,python-tox)))
3334 (home-page "https://github.com/carsongee/flask-htpasswd")
3335 (synopsis "Basic authentication via htpasswd files in Flask applications")
3336 (description "This package provides Basic authentication via
3337 @file{htpasswd} files and access_token authentication in Flask
3339 (license license:bsd-3)))
3341 (define-public python-flask-sqlalchemy
3343 (name "python-flask-sqlalchemy")
3347 (uri (pypi-uri "Flask-SQLAlchemy" version))
3350 "1rgsj49gnx361hnb3vn6c1h17497qh22yc3r70l1r6w0mw71bixz"))))
3351 (build-system python-build-system)
3353 `(("python-flask" ,python-flask)
3354 ("python-sqlalchemy" ,python-sqlalchemy)))
3355 (home-page "https://github.com/mitsuhiko/flask-sqlalchemy")
3356 (synopsis "Module adding SQLAlchemy support to your Flask application")
3358 "This package adds SQLAlchemy support to your Flask application.")
3359 (license license:bsd-3)))
3361 (define-public python-flask-restplus
3363 (name "python-flask-restplus")
3368 (uri (pypi-uri "flask-restplus" version))
3371 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
3372 (build-system python-build-system)
3374 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
3376 ;; (modify-phases %standard-phases
3379 ;; (invoke "nosetests")
3382 `(("python-aniso8601" ,python-aniso8601)
3383 ("python-flask" ,python-flask)
3384 ("python-jsonschema" ,python-jsonschema)
3385 ("python-pytz" ,python-pytz)
3386 ("python-six" ,python-six)))
3388 `(("python-tzlocal" ,python-tzlocal)
3389 ("python-blinker" ,python-blinker)
3390 ("python-nose" ,python-nose)
3391 ("python-rednose" ,python-rednose)))
3392 (home-page "https://github.com/noirbizarre/flask-restplus")
3393 (synopsis "Framework for documented API development with Flask")
3394 (description "This package provides a framework for API development with
3395 the Flask web framework in Python. It is similar to package
3396 @code{python-flask-restful} but supports the @code{python-swagger}
3397 documentation builder.")
3398 (license license:expat)))
3400 (define-public python-flask-restful-swagger
3402 (name "python-flask-restful-swagger")
3407 (uri (pypi-uri "flask-restful-swagger" version))
3410 "1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq"))))
3411 (build-system python-build-system)
3412 (arguments '(#:tests? #f)) ;no tests
3414 `(("python-flask-restful" ,python-flask-restful)))
3415 (home-page "https://github.com/rantav/flask-restful-swagger")
3416 (synopsis "Extract Swagger specs from Flask-Restful projects")
3417 (description "This package lets you extract Swagger API documentation
3418 specs from your Flask-Restful projects.")
3419 (license license:expat)))
3421 (define-public python2-flask-restful-swagger
3422 (package-with-python2 python-flask-restful-swagger))
3424 (define-public python-htmlmin
3426 (name "python-htmlmin")
3431 (uri (pypi-uri "htmlmin" version))
3434 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
3436 `(#:tests? #f)) ; no tests
3437 (build-system python-build-system)
3438 (home-page "https://htmlmin.readthedocs.org/en/latest/")
3439 (synopsis "HTML minifier")
3440 (description "@code{htmlmin} is an HTML minifier that just works.
3441 It comes with safe defaults and easily configurable options.")
3442 (license license:bsd-3)))
3444 (define-public python2-htmlmin
3445 (package-with-python2 python-htmlmin))
3447 (define-public python-flask-htmlmin
3449 (name "python-flask-htmlmin")
3454 (uri (pypi-uri "Flask-HTMLmin" version))
3457 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
3459 `(("python-flask" ,python-flask)
3460 ("python-htmlmin" ,python-htmlmin)))
3461 (build-system python-build-system)
3462 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
3463 (synopsis "HTML response minifier for Flask")
3465 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
3466 (license license:bsd-3)))
3468 (define-public python2-flask-htmlmin
3469 (package-with-python2 python-flask-htmlmin))
3471 (define-public python-jsmin
3473 (name "python-jsmin")
3478 (uri (pypi-uri "jsmin" version))
3481 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
3482 (build-system python-build-system)
3483 (home-page "https://github.com/tikitu/jsmin/")
3484 (synopsis "Python JavaScript minifier")
3486 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
3487 on the command line.")
3488 (license license:expat)))
3490 (define-public python-flask-login
3492 (name "python-flask-login")
3498 (url "https://github.com/maxcountryman/flask-login")
3500 (file-name (git-file-name name version))
3502 (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
3503 (build-system python-build-system)
3505 `(("python-flask" ,python-flask)))
3508 `(("python-blinker" ,python-blinker)
3509 ("python-coverage" ,python-coverage)
3510 ("python-mock" ,python-mock)
3511 ("python-pycodestyle" ,python-pycodestyle)
3512 ("python-pyflakes" ,python-pyflakes)
3513 ("python-pytest" ,python-pytest)
3514 ("python-semantic-version" ,python-semantic-version)
3515 ("python-werkzeug" ,python-werkzeug)))
3516 (home-page "https://github.com/maxcountryman/flask-login")
3517 (synopsis "User session management for Flask")
3519 "@code{Flask-Login} provides user session management for Flask. It
3520 handles the common tasks of logging in, logging out, and remembering your
3521 users' sessions over extended periods of time.")
3522 (license license:expat)))
3524 (define-public python2-flask-login
3525 (package-with-python2 python-flask-login))
3527 (define-public python-oauth2client
3529 (name "python-oauth2client")
3534 (uri (pypi-uri "oauth2client" version))
3537 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
3538 (build-system python-build-system)
3542 `(("python-httplib2" ,python-httplib2)
3543 ("python-pyasn1" ,python-pyasn1)
3544 ("python-pyasn1-modules" ,python-pyasn1-modules)
3545 ("python-rsa" ,python-rsa)
3546 ("python-six" ,python-six)))
3547 (home-page "https://github.com/google/oauth2client/")
3548 (synopsis "OAuth 2.0 client library")
3549 (description "@code{python-oauth2client} provides an OAuth 2.0 client
3550 library for Python")
3551 (license license:asl2.0)))
3553 (define-public python2-oauth2client
3554 (package-with-python2 python-oauth2client))
3556 (define-public python-flask-oidc
3558 (name "python-flask-oidc")
3563 (uri (pypi-uri "flask-oidc" version))
3566 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
3567 (build-system python-build-system)
3569 `(("python-flask" ,python-flask)
3570 ("python-itsdangerous" ,python-itsdangerous)
3571 ("python-oauth2client" ,python-oauth2client)
3572 ("python-six" ,python-six)))
3574 `(("python-nose" ,python-nose)
3575 ("python-mock" ,python-mock)))
3576 (home-page "https://github.com/puiterwijk/flask-oidc")
3577 (synopsis "OpenID Connect extension for Flask")
3578 (description "@code{python-flask-oidc} provides an OpenID Connect extension
3580 (license license:bsd-2)))
3582 (define-public python-webassets
3584 (name "python-webassets")
3589 (uri (pypi-uri "webassets" version))
3592 "1kc1042jydgk54xpgcp0r1ib4gys91nhy285jzfcxj3pfqrk4w8n"))))
3593 (build-system python-build-system)
3595 '(#:phases (modify-phases %standard-phases
3596 (add-before 'check 'disable-some-tests
3598 ;; This test requires 'postcss' and 'babel' which are
3599 ;; not yet available in Guix.
3600 (delete-file "tests/test_filters.py")
3604 (setenv "PYTHONPATH"
3605 (string-append "./build/lib:"
3606 (getenv "PYTHONPATH")))
3607 (invoke "pytest" "-vv"))))))
3609 `(("python-jinja2" ,python-jinja2)
3610 ("python-mock" ,python-mock)
3611 ("python-nose" ,python-nose)
3612 ("python-pytest" ,python-pytest)))
3613 (home-page "https://github.com/miracle2k/webassets")
3614 (synopsis "Media asset management")
3615 (description "Merges, minifies and compresses Javascript and CSS files,
3616 supporting a variety of different filters, including YUI, jsmin, jspacker or
3617 CSS tidy. Also supports URL rewriting in CSS files.")
3618 (license license:bsd-2)))
3620 (define-public python-cssmin
3622 (name "python-cssmin")
3627 (uri (pypi-uri "cssmin" version))
3630 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
3631 (build-system python-build-system)
3632 (home-page "https://github.com/zacharyvoase/cssmin")
3633 (synopsis "Python port of the YUI CSS Compressor")
3634 (description "Python port of the YUI CSS Compressor.")
3635 (license (list license:expat license:bsd-3))))
3637 (define-public python2-cssmin
3638 (package-with-python2 python-cssmin))
3640 (define-public python-elasticsearch
3642 (name "python-elasticsearch")
3647 (uri (pypi-uri "elasticsearch" version))
3650 "0rnjvlhw4v3vg14l519qliy1s1zpmx3827q0xfviwvk42rr7hh01"))))
3651 (build-system python-build-system)
3653 `(("python-mock" ,python-mock)
3654 ("python-nosexcover" ,python-nosexcover)
3655 ("python-pyaml" ,python-pyaml)
3656 ("python-requests" ,python-requests)))
3658 `(("urllib3" ,python-urllib3)))
3660 ;; tests require the test_elasticsearch module but it is not distributed.
3662 (home-page "https://github.com/elastic/elasticsearch-py")
3663 (synopsis "Low-level client for Elasticsearch")
3664 (description "Official low-level client for Elasticsearch. Its goal is to
3665 provide common ground for all Elasticsearch-related code in Python; because of
3666 this it tries to be opinion-free and very extendable.")
3667 (license license:expat)))
3669 (define-public python2-elasticsearch
3670 (package-with-python2 python-elasticsearch))
3672 (define-public python-flask-script
3674 (name "python-flask-script")
3679 (uri (pypi-uri "Flask-Script" version))
3682 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
3683 (build-system python-build-system)
3686 (modify-phases %standard-phases
3687 (add-after 'unpack 'patch-tests
3689 (substitute* "tests.py"
3690 (("flask\\.ext\\.script") "flask_script"))
3693 `(("python-flask" ,python-flask)
3694 ("python-argcomplete" ,python-argcomplete)
3695 ("python-werkzeug" ,python-werkzeug)))
3697 `(("python-pytest" ,python-pytest)))
3699 "https://github.com/smurfix/flask-script")
3700 (synopsis "Scripting support for Flask")
3701 (description "The Flask-Script extension provides support for writing
3702 external scripts in Flask. This includes running a development server,
3703 a customised Python shell, scripts to set up your database, cronjobs,
3704 and other command-line tasks that belong outside the web application
3706 (license license:bsd-3)))
3708 (define-public python2-flask-script
3709 (package-with-python2 python-flask-script))
3711 (define-public python-flask-migrate
3713 (name "python-flask-migrate")
3718 (uri (pypi-uri "Flask-Migrate" version))
3721 "1vip9ww6l18dxffjsggm83k71zkvihxpnhaswpv8klh95s6517d6"))))
3722 (build-system python-build-system)
3724 `(("python-flask" ,python-flask)
3725 ("python-alembic" ,python-alembic)
3726 ("python-sqlalchemy" ,python-sqlalchemy)
3727 ("python-flask-script" ,python-flask-script)
3728 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
3729 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
3730 (synopsis "SQLAlchemy database migrations for Flask programs using
3732 (description "This package contains SQLAlchemy database migration tools
3733 for Flask programs that are using @code{python-alembic}.")
3734 (license license:expat)))
3736 (define-public python-genshi
3738 (name "python-genshi")
3744 (url "https://github.com/edgewall/genshi")
3746 (file-name (git-file-name name version))
3748 (base32 "04bw7nd4wyn8ixnhik57hny2xpjjpn80k5hp6691inix5gc6rxaf"))))
3749 (build-system python-build-system)
3750 (home-page "https://genshi.edgewall.org/")
3751 (synopsis "Toolkit for generation of output for the web")
3752 (description "Genshi is a Python library that provides an integrated set
3753 of components for parsing, generating, and processing HTML, XML or other
3754 textual content for output generation on the web.")
3755 (license license:bsd-3)))
3757 (define-public python2-genshi
3758 (package-with-python2 python-genshi))
3760 (define-public python-flask-principal
3762 (name "python-flask-principal")
3767 (uri (pypi-uri "Flask-Principal" version))
3770 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
3771 (build-system python-build-system)
3773 `(("python-blinker" ,python-blinker)))
3775 `(("python-flask" ,python-flask)
3776 ("python-nose" ,python-nose)))
3777 (home-page "https://pythonhosted.org/Flask-Principal/")
3778 (synopsis "Identity management for Flask")
3779 (description "@code{flask_principal} is a identity management library for
3780 Flask. It supports managing both authentication and authorization data in a
3781 thread-local variable.")
3782 (license license:expat)))
3784 (define-public python2-flask-principal
3785 (package-with-python2 python-flask-principal))
3787 (define-public python-flask-httpauth
3789 (name "python-flask-httpauth")
3794 (uri (pypi-uri "Flask-HTTPAuth" version))
3797 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
3798 (build-system python-build-system)
3800 `(("python-flask" ,python-flask)))
3801 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
3802 (synopsis "Basic and Digest HTTP authentication for Flask routes")
3803 (description "@code{flask_httpauth} provides Basic and Digest HTTP
3804 authentication for Flask routes.")
3805 (license license:expat)))
3807 (define-public python2-flask-httpauth
3808 (package-with-python2 python-flask-httpauth))
3810 (define-public python-uritemplate
3812 (name "python-uritemplate")
3817 (uri (pypi-uri "uritemplate" version))
3820 "1bkwmgr0ia9gcn4bszs2xlvml79f0bi2s4a87xg22ky9rq8avy2s"))))
3821 (build-system python-build-system)
3822 (home-page "https://uritemplate.readthedocs.org")
3823 (synopsis "Library to deal with URI Templates")
3824 (description "@code{uritemplate} provides Python library to deal with URI
3826 (license license:bsd-2)))
3828 (define-public python2-uritemplate
3829 (package-with-python2 python-uritemplate))
3831 (define-public python-publicsuffix
3833 (name "python-publicsuffix")
3837 (uri (pypi-uri "publicsuffix" version))
3840 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
3841 (build-system python-build-system)
3843 `(#:tests? #f)) ; tests use the internet
3844 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
3845 (synopsis "Get suffix for a domain name")
3846 (description "Get a public suffix for a domain name using the Public Suffix
3848 (license license:expat)))
3850 (define-public python2-publicsuffix
3851 (package-with-python2 python-publicsuffix))
3853 (define-public python-publicsuffix2
3855 (name "python-publicsuffix2")
3856 (version "2.20191221")
3860 (uri (pypi-uri "publicsuffix2" version))
3862 (base32 "0yzysvfj1najr1mb4pcqrbmjir3xpb69rlffln95a3cdm8qwry00"))))
3863 (build-system python-build-system)
3866 (modify-phases %standard-phases
3867 (add-after 'unpack 'ignore-maintainer-inputs
3869 ;; Comment out a demand for python-requests, which is used only by
3870 ;; the unused ‘update_psl’ helper command.
3871 (substitute* "setup.py"
3872 (("'requests " match)
3873 (format #f "# ~a" match)))
3875 #:tests? #f)) ; the test suite requires network access
3876 (home-page "https://github.com/pombredanne/python-publicsuffix2")
3877 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
3878 (description "Get a public suffix for a domain name using the Public Suffix
3879 List. Forked from and using the same API as the publicsuffix package.")
3880 (license (list license:expat license:mpl2.0))))
3882 (define-public python2-publicsuffix2
3883 (package-with-python2 python-publicsuffix2))
3885 (define-public python-werkzeug
3887 (name "python-werkzeug")
3892 (uri (pypi-uri "Werkzeug" version))
3895 "15kh0z61klp62mrc1prka13xsshxn0rsp1j1s2964iw86yisi6qn"))))
3896 (build-system python-build-system)
3899 (modify-phases %standard-phases
3901 (add-after 'install 'check
3902 (lambda* (#:key inputs outputs #:allow-other-keys)
3903 (add-installed-pythonpath inputs outputs)
3904 (invoke "python" "-m" "pytest"))))))
3906 `(("python-requests" ,python-requests)))
3908 `(("python-pytest" ,python-pytest)
3909 ("python-pytest-timeout" ,python-pytest-timeout)))
3910 (home-page "https://www.palletsprojects.org/p/werkzeug/")
3911 (synopsis "Utilities for WSGI applications")
3912 (description "One of the most advanced WSGI utility modules. It includes a
3913 powerful debugger, full-featured request and response objects, HTTP utilities to
3914 handle entity tags, cache control headers, HTTP dates, cookie handling, file
3915 uploads, a powerful URL routing system and a bunch of community-contributed
3917 (license license:x11)))
3919 (define-public python2-werkzeug
3920 (package-with-python2 python-werkzeug))
3922 (define-public python-bottle
3924 (name "python-bottle")
3929 (uri (pypi-uri "bottle" version))
3931 (base32 "0b6s50vc4iad97b6bb3xnyrgajb3nj6n6jbr5p54a4vapky3zmx9"))))
3932 (build-system python-build-system)
3933 (home-page "https://bottlepy.org/")
3934 (synopsis "WSGI framework for small web-applications.")
3935 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
3936 (license license:expat)))
3938 (define-public python2-bottle
3939 (package-with-python2 python-bottle))
3941 (define-public python-wtforms
3943 (name "python-wtforms")
3948 (uri (pypi-uri "WTForms" version ".zip"))
3951 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
3952 (build-system python-build-system)
3955 (modify-phases %standard-phases
3956 (add-after 'unpack 'remove-django-test
3957 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
3961 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
3962 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
3965 `(("unzip" ,unzip)))
3966 (home-page "http://wtforms.simplecodes.com/")
3968 "Form validation and rendering library for Python web development")
3970 "WTForms is a flexible forms validation and rendering library
3971 for Python web development. It is very similar to the web form API
3972 available in Django, but is a standalone package.")
3973 (license license:bsd-3)))
3975 (define-public python2-wtforms
3976 (package-with-python2 python-wtforms))
3978 (define-public python-paste
3980 (name "python-paste")
3985 (uri (pypi-uri "Paste" version))
3988 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
3989 (patches (search-patches "python-paste-remove-timing-test.patch"))
3990 (modules '((guix build utils)))
3993 ;; This test calls out to the internet.
3994 (delete-file "tests/test_proxy.py") #t))))
3995 (build-system python-build-system)
3997 `(("python-pytest" ,python-pytest)
3998 ("python-pytest-runner" ,python-pytest-runner)
3999 ("python-nose" ,python-nose)))
4001 `(("python-six" ,python-six)))
4002 (home-page "https://pythonpaste.readthedocs.io/")
4004 "Python web development tools, focusing on WSGI")
4006 "Paste provides a variety of web development tools and middleware which
4007 can be nested together to build web applications. Paste's design closely
4008 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
4009 (license license:expat)))
4011 (define-public python2-paste
4012 (package-with-python2 python-paste))
4014 (define-public python-pastescript
4016 (name "python-pastescript")
4021 (uri (pypi-uri "PasteScript" version))
4024 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
4025 (build-system python-build-system)
4027 `(("python-nose" ,python-nose)))
4029 `(("python-paste" ,python-paste)
4030 ("python-pastedeploy" ,python-pastedeploy)))
4031 (home-page (string-append "https://web.archive.org/web/20161025192515/"
4032 "http://pythonpaste.org/script/"))
4034 '(;; Unfortunately, this requires the latest unittest2,
4035 ;; but that requires traceback2 which requires linecache2 which requires
4036 ;; unittest2. So we're skipping tests for now.
4037 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
4038 ;; so in theory we could get around this situation somehow.)
4041 "Pluggable command line tool for serving web applications and more")
4043 "PasteScript is a plugin-friendly command line tool which provides a
4044 variety of features, from launching web applications to bootstrapping project
4046 (license license:expat)))
4048 (define-public python2-pastescript
4049 (package-with-python2 python-pastescript))
4051 (define-public python2-urlgrabber
4053 (name "python2-urlgrabber")
4058 (uri (pypi-uri "urlgrabber" version))
4060 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
4061 (build-system python-build-system)
4062 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
4063 (home-page "http://urlgrabber.baseurl.org")
4064 (synopsis "High-level cross protocol url-grabber")
4065 (description "@code{urlgrabber} is Python2 library that unifies access to
4066 files available on web, FTP or locally. It supports HTTP, FTP and file://
4067 protocols, it supports features like HTTP keep-alive, reget, throttling and
4069 (license license:lgpl2.1+)))
4071 (define-public python-pycares
4073 (name "python-pycares")
4078 (uri (pypi-uri "pycares" version))
4081 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
4082 (build-system python-build-system)
4084 `(#:tests? #f)) ;tests require internet access
4085 (home-page "https://github.com/saghul/pycares")
4086 (synopsis "Python interface for @code{c-ares}")
4087 (description "@code{pycares} is a Python module which provides an
4088 interface to @code{c-ares}, a C library that performs DNS requests and
4089 name resolutions asynchronously.")
4090 (license license:expat)))
4092 (define-public python-yarl
4094 (name "python-yarl")
4099 (uri (pypi-uri "yarl" version))
4102 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
4103 (build-system python-build-system)
4105 `(("python-pytest" ,python-pytest)
4106 ("python-pytest-runner" ,python-pytest-runner)))
4108 `(("python-idna" ,python-idna)
4109 ("python-multidict" ,python-multidict)))
4110 (home-page "https://github.com/aio-libs/yarl/")
4111 (synopsis "Yet another URL library")
4112 (description "@code{yarl} module provides handy @code{URL} class
4113 for URL parsing and changing.")
4114 (license license:asl2.0)))
4116 (define-public python-google-api-client
4118 (name "python-google-api-client")
4123 (uri (pypi-uri "google-api-python-client" version))
4126 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
4127 (build-system python-build-system)
4129 '(#:tests? #f)) ; tests require internet access
4131 `(("python-httplib2" ,python-httplib2)
4132 ("python-six" ,python-six)
4133 ("python-oauth2client" ,python-oauth2client)
4134 ("python-uritemplate" ,python-uritemplate)))
4135 (home-page "https://github.com/google/google-api-python-client")
4136 (synopsis "Core Python library for accessing Google APIs")
4137 (description "Python client library for Google's discovery based APIs")
4138 (license license:asl2.0)))
4140 (define-public python2-google-api-client
4141 (package-with-python2 python-google-api-client))
4143 (define-public python-hawkauthlib
4145 (name "python-hawkauthlib")
4150 (uri (pypi-uri "hawkauthlib" version))
4153 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
4154 (build-system python-build-system)
4156 `(("python-requests" ,python-requests)
4157 ("python-webob" ,python-webob)))
4158 (home-page "https://github.com/mozilla-services/hawkauthlib")
4159 (synopsis "Hawk Access Authentication protocol")
4161 "This is a low-level Python library for implementing Hawk Access Authentication,
4162 a simple HTTP request-signing scheme.")
4163 (license license:mpl2.0)))
4165 (define-public python-pybrowserid
4167 (name "python-pybrowserid")
4172 (uri (pypi-uri "PyBrowserID" version))
4175 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
4176 (build-system python-build-system)
4178 `(("python-requests" ,python-requests)))
4180 `(("python-mock" ,python-mock)))
4181 (home-page "https://github.com/mozilla/PyBrowserID")
4182 (synopsis "Python library for the BrowserID protocol")
4184 "This is a Python client library for the BrowserID protocol that
4185 underlies Mozilla Persona.")
4186 (license license:mpl2.0)))
4188 (define-public python-pyfxa
4190 (name "python-pyfxa")
4195 (uri (pypi-uri "PyFxA" version))
4198 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
4199 (build-system python-build-system)
4200 (arguments '(#:tests? #f)) ; 17 tests require network access
4202 `(("python-cryptography" ,python-cryptography)
4203 ("python-hawkauthlib" ,python-hawkauthlib)
4204 ("python-pybrowserid" ,python-pybrowserid)
4205 ("python-requests" ,python-requests)
4206 ("python-six" ,python-six)))
4208 `(("python-grequests" ,python-grequests)
4209 ("python-mock" ,python-mock)
4210 ("python-responses" ,python-responses)
4211 ("python-unittest2" ,python-unittest2)))
4212 (home-page "https://github.com/mozilla/PyFxA")
4213 (synopsis "Firefox Accounts client library for Python")
4215 "This is a Python library for interacting with the Firefox Accounts
4217 (license license:mpl2.0)))
4219 (define-public python-hyperlink
4221 (name "python-hyperlink")
4226 (uri (pypi-uri "hyperlink" version))
4229 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
4230 (build-system python-build-system)
4232 `(("python-idna" ,python-idna)))
4233 (home-page "https://github.com/python-hyper/hyperlink")
4234 (synopsis "Python module to create immutable URLs according to spec")
4235 (description "This package provides a Python module to create immutable, and
4236 correct URLs for Python according to RFCs 3986 and 3987.")
4237 (license license:expat)))
4239 (define-public python-treq
4241 (name "python-treq")
4246 (uri (pypi-uri "treq" version))
4249 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
4250 (build-system python-build-system)
4252 `(("python-attrs" ,python-attrs)
4253 ("python-idna" ,python-idna)
4254 ("python-incremental" ,python-incremental)
4255 ("python-requests" ,python-requests)
4256 ("python-service-identity" ,python-service-identity)
4257 ("python-twisted" ,python-twisted)))
4258 (home-page "https://github.com/twisted/treq")
4259 (synopsis "Requests-like API built on top of twisted.web's Agent")
4260 (description "This package provides an HTTP library inspired by
4261 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
4262 high level API for making HTTP requests when using Twisted.")
4263 (license license:expat)))
4265 (define-public python-autobahn
4267 (name "python-autobahn")
4272 (uri (pypi-uri "autobahn" version))
4275 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
4276 (build-system python-build-system)
4278 ;; The tests fail to run:
4279 ;; https://github.com/crossbario/autobahn-python/issues/1117
4282 `(("python-cffi" ,python-cffi)
4283 ("python-twisted" ,python-twisted)
4284 ("python-txaio" ,python-txaio)))
4285 (home-page "https://crossbar.io/autobahn/")
4286 (synopsis "Web Application Messaging Protocol implementation")
4287 (description "This package provides an implementation of the @dfn{Web Application
4288 Messaging Protocol} (WAMP). WAMP connects components in distributed
4289 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
4290 Calls (rRPC). It is ideal for distributed, multi-client and server applications
4291 such as IoT applications or multi-user database-driven business applications.")
4292 (license license:expat)))
4294 (define-public python-ws4py
4296 (name "python-ws4py")
4301 (uri (pypi-uri "ws4py" version))
4304 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
4305 (build-system python-build-system)
4308 (modify-phases %standard-phases
4309 (add-after 'unpack 'python3.7-compatibility
4311 (substitute* '("ws4py/server/tulipserver.py"
4312 "ws4py/async_websocket.py")
4314 "asyncio.ensure_future"))
4316 ;; We don't have a package for cherrypy.
4317 (add-after 'unpack 'remove-cherrypy-support
4319 (delete-file "ws4py/server/cherrypyserver.py")
4322 `(("python-gevent" ,python-gevent)
4323 ("python-tornado" ,python-tornado)))
4324 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
4325 (synopsis "WebSocket client and server library")
4327 "This package provides a WebSocket client and server library for
4329 (license license:bsd-3)))
4331 (define-public python-slugify
4333 (name "python-slugify")
4338 (uri (pypi-uri "python-slugify" version))
4340 (base32 "0w22fapghmzk3xdasc4dn7h8sl58l08d1h5zbf72dh80drv1g9b9"))))
4342 `(("python-unidecode" ,python-unidecode)))
4345 (modify-phases %standard-phases
4348 (invoke "python" "test.py"))))))
4349 (build-system python-build-system)
4350 (home-page "https://github.com/un33k/python-slugify")
4351 (synopsis "Python Slugify application that handles Unicode")
4352 (description "This package provides a @command{slufigy} command and
4353 library to create slugs from unicode strings while keeping it DRY.")
4354 (license license:expat)))
4356 (define-public python-branca
4358 (name "python-branca")
4363 (uri (pypi-uri "branca" version))
4366 "0pmigd521j2228xf8x34vbx0niwvms7xl7za0lymywj0vydjqxiy"))))
4367 (build-system python-build-system)
4369 `(("python-jinja2" ,python-jinja2)
4370 ("python-six" ,python-six)))
4372 `(("python-pytest" ,python-pytest)))
4373 (home-page "https://github.com/python-visualization/branca")
4374 (synopsis "Generate complex HTML+JS pages with Python")
4375 (description "Generate complex HTML+JS pages with Python")
4376 (license license:expat)))
4378 (define-public python-tinycss2
4380 (name "python-tinycss2")
4385 (uri (pypi-uri "tinycss2" version))
4386 (patches (search-patches "python-tinycss2-flake8-compat.patch"))
4388 (base32 "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4"))))
4389 (build-system python-build-system)
4392 (modify-phases %standard-phases
4394 (lambda _ (invoke "pytest"))))))
4396 `(("python-webencodings" ,python-webencodings)))
4398 `(("python-pytest-flake8" ,python-pytest-flake8)
4399 ("python-pytest-isort" ,python-pytest-isort)
4400 ("python-pytest-runner" ,python-pytest-runner)))
4401 (home-page "https://tinycss2.readthedocs.io/")
4402 (synopsis "Low-level CSS parser for Python")
4403 (description "@code{tinycss2} can parse strings, return Python objects
4404 representing tokens and blocks, and generate CSS strings corresponding to
4407 Based on the CSS Syntax Level 3 specification, @code{tinycss2} knows the
4408 grammar of CSS but doesn’t know specific rules, properties or values supported
4409 in various CSS modules.")
4410 (license license:bsd-3)))
4412 (define-public python-cssselect2
4414 (name "python-cssselect2")
4419 (uri (pypi-uri "cssselect2" version))
4421 (base32 "0skymzb4ncrm2zdsy80f53vi0arf776lvbp51hzh4ayp1il5lj3h"))))
4422 (build-system python-build-system)
4425 (modify-phases %standard-phases
4427 (lambda _ (invoke "pytest"))))))
4429 `(("python-tinycss2" ,python-tinycss2)))
4431 `(("python-pytest-cov" ,python-pytest-cov)
4432 ("python-pytest-flake8" ,python-pytest-flake8)
4433 ("python-pytest-isort" ,python-pytest-isort)
4434 ("python-pytest-runner" ,python-pytest-runner)))
4435 (home-page "https://cssselect2.readthedocs.io/")
4436 (synopsis "CSS selectors for Python ElementTree")
4437 (description "@code{cssselect2} is a straightforward implementation of
4438 CSS3 Selectors for markup documents (HTML, XML, etc.) that can be read by
4439 ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.).
4441 Unlike the Python package @code{cssselect}, it does not translate selectors to
4442 XPath and therefore does not have all the correctness corner cases that are
4443 hard or impossible to fix in cssselect.")
4444 (license license:bsd-3)))
4446 (define-public python-uvloop
4448 (name "python-uvloop")
4453 (uri (pypi-uri "uvloop" version))
4455 (base32 "07j678z9gf41j98w72ysrnb5sa41pl5yxd7ib17lcwfxqz0cjfhj"))))
4456 (build-system python-build-system)
4458 '(#:tests? #f ;FIXME: tests hang and with some errors in the way
4460 (modify-phases %standard-phases
4461 (add-after 'unpack 'preparations
4463 ;; Use packaged libuv.
4464 (substitute* "setup.py" (("self.use_system_libuv = False")
4465 "self.use_system_libuv = True"))
4468 `(("python-aiohttp" ,python-aiohttp)
4469 ("python-cython" ,python-cython)
4470 ("python-flake8" ,python-flake8)
4471 ("python-psutil" ,python-psutil)
4472 ("python-pyopenssl" ,python-pyopenssl)
4473 ("python-twine" ,python-twine)))
4475 `(("libuv" ,libuv)))
4476 (home-page "https://github.com/MagicStack/uvloop")
4477 (synopsis "Fast implementation of asyncio event loop on top of libuv")
4479 "@code{uvloop} is a fast, drop-in replacement of the built-in asyncio
4480 event loop. It is implemented in Cython and uses libuv under the hood.")
4481 (license license:expat)))
4483 (define-public gunicorn
4490 (uri (pypi-uri "gunicorn" version))
4493 "09n6fc019bgrvph1s5h1lwhn2avcsprw6ncd203qhra3i8mvn10r"))))
4494 (outputs '("out" "doc"))
4495 (build-system python-build-system)
4498 (modify-phases %standard-phases
4499 (add-after 'build 'build-doc
4501 (invoke "make" "-C" "docs" "PAPER=a4" "html" "info")
4502 (delete-file "docs/build/texinfo/Makefile")
4503 (delete-file "docs/build/texinfo/Gunicorn.texi")
4507 (setenv "PYTHONPATH"
4508 (string-append ".:" (getenv "PYTHONPATH")))
4510 (add-after 'install 'install-doc
4511 (lambda* (#:key outputs #:allow-other-keys)
4512 (let* ((doc (string-append (assoc-ref outputs "doc")
4513 "/share/doc/" ,name "-" ,version))
4514 (html (string-append doc "/html"))
4515 (info (string-append doc "/info"))
4516 (examples (string-append doc "/examples")))
4520 (copy-recursively "docs/build/html" html)
4521 (copy-recursively "docs/build/texinfo" info)
4522 (copy-recursively "examples" examples)
4523 (for-each (lambda (file)
4524 (copy-file file (string-append doc "/" file)))
4525 '("README.rst" "NOTICE" "LICENSE" "THANKS")))
4528 `(("binutils" ,binutils) ;; for ctypes.util.find_library()
4529 ("python-aiohttp" ,python-aiohttp)
4530 ("python-pytest" ,python-pytest)
4531 ("python-pytest-cov" ,python-pytest-cov)
4532 ("python-sphinx" ,python-sphinx)
4533 ("texinfo" ,texinfo)))
4534 (home-page "https://gunicorn.org/")
4535 (synopsis "Python WSGI HTTP Server for UNIX")
4536 (description "Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP
4537 Server for UNIX. It’s a pre-fork worker model ported from Ruby’s
4538 Unicorn project. The Gunicorn server is broadly compatible with
4539 various web frameworks, simply implemented, light on server resources,
4540 and fairly speedy.")
4541 (license license:expat)))
4543 ;; break cyclic dependency for python-aiohttp, which depends on gunicorn for
4545 (define-public gunicorn-bootstrap
4549 (arguments `(#:tests? #f))
4550 (properties '((hidden? . #t)))
4551 (native-inputs `())))
4553 (define-public python-httptools
4555 (name "python-httptools")
4559 ;; PyPI tarball comes with a vendored http-parser and no tests.
4562 (url "https://github.com/MagicStack/httptools")
4563 (commit (string-append "v" version))))
4564 (file-name (git-file-name name version))
4566 (base32 "0g08128x2ixsiwrzskxc6c8ymgzs39wbzr5mhy0mjk30q9pqqv77"))))
4567 (build-system python-build-system)
4570 (modify-phases %standard-phases
4571 (add-after 'unpack 'preparations
4573 ;; Skip a failing test (AssertionError). Bug report:
4574 ;; https://github.com/MagicStack/httptools/issues/10.
4575 (substitute* "tests/test_parser.py"
4576 ((" def test_parser_response_1")
4578 " @unittest.skip(\"Disabled.\")\n"
4579 " def test_parser_response_1")))
4580 ;; Use packaged http-parser.
4581 (substitute* "setup.py" (("self.use_system_http_parser = False")
4582 "self.use_system_http_parser = True"))
4583 ;; This path is hardcoded. Hardcode our own.
4584 (substitute* "httptools/parser/cparser.pxd"
4585 (("../../vendor/http-parser")
4586 (string-append (assoc-ref %build-inputs "http-parser")
4588 ;; Don't force Cython version.
4589 (substitute* "setup.py" (("Cython==") "Cython>="))
4592 `(("python-cython" ,python-cython)
4593 ("python-pytest" ,python-pytest)))
4595 `(("http-parser" ,http-parser)))
4596 (home-page "https://github.com/MagicStack/httptools")
4597 (synopsis "Collection of framework independent HTTP protocol utils")
4599 "@code{httptools} is a Python binding for the nodejs HTTP parser.")
4600 (license license:expat)))
4602 (define-public python-uvicorn
4604 (name "python-uvicorn")
4608 ;; PyPI tarball has no tests.
4611 (url "https://github.com/encode/uvicorn")
4613 (file-name (git-file-name name version))
4615 (base32 "00iidg5ysp7k00bw3kmkvr8mghnh4jdi0p2ryiarhryf8wz2r3fy"))))
4616 (build-system python-build-system)
4619 (modify-phases %standard-phases
4621 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
4622 (add-installed-pythonpath inputs outputs)
4623 (invoke "pytest" "-vv"))))))
4625 `(("python-black" ,python-black)
4626 ("python-codecov" ,python-codecov)
4627 ("python-flake8" ,python-flake8)
4628 ("python-isort" ,python-isort)
4629 ("python-mypy" ,python-mypy)
4630 ("python-pytest" ,python-pytest)
4631 ("python-pytest-cov" ,python-pytest-cov)
4632 ("python-pytest-mock" ,python-pytest-mock)
4633 ("python-requests" ,python-requests)))
4635 `(("python-click" ,python-click)
4636 ("python-h11" ,python-h11)
4637 ("python-httptools" ,python-httptools)
4638 ("python-pyyaml" ,python-pyyaml)
4639 ("python-uvloop" ,python-uvloop)
4640 ("python-watchgod" ,python-watchgod)
4641 ("python-websockets" ,python-websockets)
4642 ("python-wsproto" ,python-wsproto)))
4643 (home-page "https://github.com/encode/uvicorn")
4644 (synopsis "Fast ASGI server implementation")
4646 "@code{uvicorn} is a fast ASGI server implementation, using @code{uvloop}
4647 and @code{httptools}. It currently supports HTTP/1.1 and WebSockets. Support
4648 for HTTP/2 is planned.")
4649 (license license:bsd-3)))
4651 (define-public python-translation-finder
4653 (name "python-translation-finder")
4658 (uri (pypi-uri "translation-finder" version))
4661 "1pcy9z8gmb8x41gjhw9x0lkr0d2mv5mdxcs2hwg6q8mxs857j589"))))
4662 (build-system python-build-system)
4665 (modify-phases %standard-phases
4666 (add-before 'build 'remove-failing-test
4668 (delete-file "translation_finder/test_api.py")
4671 `(("python-chardet" ,python-chardet)
4672 ("python-pathlib2" ,python-pathlib2)
4673 ("python-ruamel.yaml" ,python-ruamel.yaml)
4674 ("python-six" ,python-six)))
4676 `(("python-codecov" ,python-codecov)
4677 ("python-codacy-coverage" ,python-codacy-coverage)
4678 ("python-pytest-cov" ,python-pytest-cov)
4679 ("python-pytest-runner" ,python-pytest-runner)
4680 ("python-twine" ,python-twine)))
4681 (home-page "https://weblate.org/")
4682 (synopsis "Translation file finder for Weblate")
4683 (description "This package provides a function to find translation file in
4684 the source code of a project. It supports many translation file formats and
4685 is part of the Weblate translation platform.")
4686 (license license:gpl3+)))
4688 (define-public python-gitlab
4690 (name "python-gitlab")
4695 (uri (pypi-uri "python-gitlab" version))
4698 "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5"))))
4699 (build-system python-build-system)
4701 `(("python-requests" ,python-requests)
4702 ("python-six" ,python-six)))
4704 `(("python-httmock" ,python-httmock)
4705 ("python-mock" ,python-mock)))
4707 "https://github.com/python-gitlab/python-gitlab")
4708 (synopsis "Interact with GitLab API")
4709 (description "This package provides an extended library for interacting
4710 with GitLab instances through their API.")
4711 (license license:lgpl3+)))
4713 (define-public python-path-and-address
4715 (name "python-path-and-address")
4719 ;; The source distributed on PyPI doesn't include tests.
4722 (url "https://github.com/joeyespo/path-and-address")
4723 (commit (string-append "v" version))))
4724 (file-name (git-file-name name version))
4727 "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6"))))
4728 (build-system python-build-system)
4731 (modify-phases %standard-phases
4733 (lambda* (#:key inputs outputs #:allow-other-keys)
4734 (add-installed-pythonpath inputs outputs)
4735 (invoke "py.test"))))))
4737 `(("python-pytest" ,python-pytest)))
4738 (home-page "https://github.com/joeyespo/path-and-address")
4739 (synopsis "Functions for command-line server tools used by humans")
4740 (description "Path-and-address resolves ambiguities of command-line
4741 interfaces, inferring which argument is the path, and which is the address.")
4742 (license license:expat)))
4745 ;; No release by upstream for quite some time, some bugs fixed since. See:
4746 ;; https://github.com/joeyespo/grip/issues/304
4747 (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3"))
4750 (version (git-version "4.5.2" "1" commit))
4755 (url "https://github.com/joeyespo/grip")
4757 (file-name (git-file-name name version))
4760 "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w"))))
4761 (build-system python-build-system)
4763 `(("python-docopt" ,python-docopt)
4764 ("python-flask" ,python-flask)
4765 ("python-markdown" ,python-markdown)
4766 ("python-path-and-address" ,python-path-and-address)
4767 ("python-pygments" ,python-pygments)
4768 ("python-requests" ,python-requests)))
4770 `(("python-pytest" ,python-pytest)
4771 ("python-responses" ,python-responses)))
4774 (modify-phases %standard-phases
4776 (lambda* (#:key inputs outputs #:allow-other-keys)
4777 (add-installed-pythonpath inputs outputs)
4778 (setenv "PATH" (string-append
4780 (assoc-ref %outputs "out") "/bin"))
4781 (invoke "py.test" "-m" "not assumption"))))))
4782 (home-page "https://github.com/joeyespo/grip")
4783 (synopsis "Preview Markdown files using the GitHub API")
4784 (description "Grip is a command-line server application written in Python
4785 that uses the GitHub Markdown API to render a local Markdown file. The styles
4786 and rendering come directly from GitHub, so you'll know exactly how it will
4787 appear. Changes you make to the file will be instantly reflected in the browser
4788 without requiring a page refresh.")
4789 (license license:expat))))
4791 (define-public python-port-for
4793 (name "python-port-for")
4798 (uri (pypi-uri "port-for" version))
4801 "1pncxlj25ggw99r0ijfbkq70gd7cbhqdx5ivsxy4jdp0z14cpda7"))))
4802 (build-system python-build-system)
4805 (modify-phases %standard-phases
4806 (add-after 'unpack 'use-urllib3
4808 (substitute* "port_for/_download_ranges.py"
4809 (("urllib2") "urllib3"))
4812 `(("python-urllib3" ,python-urllib3)))
4814 `(("python-mock" ,python-mock)))
4815 (home-page "https://github.com/kmike/port-for/")
4816 (synopsis "TCP localhost port finder and association manager")
4818 "This package provides a utility that helps with local TCP ports
4819 management. It can find an unused TCP localhost port and remember the
4821 (license license:expat)))
4823 (define-public python-livereload
4825 (name "python-livereload")
4830 (uri (pypi-uri "livereload" version))
4833 "0rhggz185bxc3zjnfpmhcvibyzi86i624za1lfh7x7ajsxw4y9c9"))))
4834 (build-system python-build-system)
4836 `(("python-six" ,python-six)
4837 ("python-tornado" ,python-tornado)))
4838 (home-page "https://github.com/lepture/python-livereload")
4839 (synopsis "Python LiveReload")
4841 "Python LiveReload provides a command line utility, @command{livereload},
4842 for starting a web server in a directory. It can trigger arbitrary commands
4843 and serve updated contents upon changes to the directory.")
4844 (license license:bsd-3)))
4846 (define-public python-vf-1
4848 (name "python-vf-1")
4853 (uri (pypi-uri "VF-1" version))
4856 "0xlqsaxsiayk1sd07kpz8abbcnab582y29a1y4882fq6j4gma5xi"))))
4857 (build-system python-build-system)
4858 (home-page "https://github.com/solderpunk/VF-1")
4859 (synopsis "Command line gopher client")
4860 (description "@code{VF-1} is a command line gopher client with
4861 @acronym{TLS, Transport Layer Security} support.")
4862 (license license:bsd-2)))
4864 (define-public python-httpcore
4866 (name "python-httpcore")
4870 ;; PyPI tarball does not contain tests.
4873 (url "https://github.com/encode/httpcore")
4875 (file-name (git-file-name name version))
4877 (base32 "01bhajcxqgkdzg7b7x0fqs2lwcfsajlgqwi1nlxx58jss7g2kxn9"))))
4878 (build-system python-build-system)
4881 (modify-phases %standard-phases
4882 (add-after 'unpack 'remove-unavailable-tests
4884 ;; These tests require 'mitmproxy' which is not packaged.
4885 (for-each (lambda (f)
4887 '("tests/conftest.py"
4888 "tests/sync_tests/test_interfaces.py"
4889 "tests/async_tests/test_interfaces.py"))
4891 (add-after 'remove-unavailable-tests 'force-h11-version
4892 ;; Allow build with h11 >= 0.10.
4894 (substitute* "setup.py" (("h11>=0.8,<0.10") "h11"))
4897 (lambda* (#:key inputs outputs #:allow-other-keys)
4898 (add-installed-pythonpath inputs outputs)
4899 (invoke "pytest" "-vv" "--cov=httpcore"
4900 "--cov=tests" "tests"))))))
4902 `(;; ("mitmproxy" ,mitmproxy) ;; TODO: Package this.
4903 ("python-autoflake" ,python-autoflake)
4904 ("python-flake8" ,python-flake8)
4905 ("python-flake8-bugbear" ,python-flake8-bugbear)
4906 ("python-flake8-pie" ,python-flake8-pie)
4907 ("python-isort" ,python-isort)
4908 ("python-mypy" ,python-mypy)
4909 ("python-pytest" ,python-pytest)
4910 ("python-pytest-asyncio" ,python-pytest-asyncio)
4911 ("python-pytest-cov" ,python-pytest-cov)
4912 ("python-pytest-trio" ,python-pytest-trio)
4913 ("python-uvicorn" ,python-uvicorn)
4914 ("python-trustme" ,python-trustme)))
4916 `(("python-h11" ,python-h11)
4917 ("python-h2" ,python-h2)
4918 ("python-sniffio" ,python-sniffio)
4919 ("python-trio" ,python-trio)
4920 ("python-trio-typing" ,python-trio-typing)))
4921 (home-page "https://github.com/encode/httpcore")
4922 (synopsis "Minimal, low-level HTTP client")
4924 "HTTP Core provides a minimal and low-level HTTP client, which does one
4925 thing only: send HTTP requests.
4927 Some things HTTP Core does do:
4930 @item Sending HTTP requests.
4931 @item Provides both sync and async interfaces.
4932 @item Supports HTTP/1.1 and HTTP/2.
4933 @item Async backend support for asyncio and trio.
4934 @item Automatic connection pooling.
4935 @item HTTP(S) proxy support.
4937 (license license:bsd-3)))
4939 (define-public python-httpx
4941 (name "python-httpx")
4945 ;; PyPI tarball does not contain tests.
4948 (url "https://github.com/encode/httpx")
4950 (file-name (git-file-name name version))
4952 (base32 "1qr91xw6jxynvihmw953bi5446ssm9ffmb2c4nhfa77v7883sp21"))))
4953 (build-system python-build-system)
4956 (modify-phases %standard-phases
4959 (invoke "pytest" "-vv" "-k"
4960 ;; These tests try to open an outgoing connection.
4962 "not test_connect_timeout"
4963 " and not test_that_send_cause_async_client_to_be_not_"
4965 " and not test_that_async_client_caused_warning_when_"
4967 " and not test_that_send_cause_client_to_be_not_closed"
4968 " and not test_async_proxy_close"
4969 " and not test_sync_proxy_close")))))))
4971 `(("python-autoflake" ,python-autoflake)
4972 ("python-black" ,python-black)
4973 ("python-cryptography" ,python-cryptography)
4974 ("python-flake8" ,python-flake8)
4975 ("python-flake8-bugbear" ,python-flake8-bugbear)
4976 ("python-flake8-pie" ,python-flake8-pie)
4977 ("python-isort" ,python-isort)
4978 ("python-mypy" ,python-mypy)
4979 ("python-pytest" ,python-pytest)
4980 ("python-pytest-asyncio" ,python-pytest-asyncio)
4981 ("python-pytest-trio" ,python-pytest-trio)
4982 ("python-pytest-cov" ,python-pytest-cov)
4983 ("python-trio" ,python-trio)
4984 ("python-trio-typing" ,python-trio-typing)
4985 ("python-trustme" ,python-trustme)
4986 ("python-uvicorn" ,python-uvicorn)))
4988 `(("python-brotli" ,python-brotli)
4989 ("python-certifi" ,python-certifi)
4990 ("python-chardet" ,python-chardet)
4991 ("python-httpcore" ,python-httpcore)
4992 ("python-idna" ,python-idna)
4993 ("python-rfc3986" ,python-rfc3986)
4994 ("python-sniffio" ,python-sniffio)))
4995 (home-page "https://www.python-httpx.org/")
4996 (synopsis "HTTP client for Python")
4998 "HTTPX is a fully featured HTTP client for Python 3, which provides sync
4999 and async APIs, and support for both HTTP/1.1 and HTTP/2.
5001 HTTPX builds on the well-established usability of requests, and gives you:
5004 @item A broadly requests-compatible API.
5005 @item Standard synchronous interface, but with async support if you need it.
5006 @item HTTP/1.1 and HTTP/2 support.
5007 @item Ability to make requests directly to WSGI applications or ASGI applications.
5008 @item Strict timeouts everywhere.
5009 @item Fully type annotated.
5010 @item 99% test coverage.
5013 Plus all the standard features of requests:
5016 @item International Domains and URLs
5017 @item Keep-Alive & Connection Pooling
5018 @item Sessions with Cookie Persistence
5019 @item Browser-style SSL Verification
5020 @item Basic/Digest Authentication
5021 @item Elegant Key/Value Cookies
5022 @item Automatic Decompression
5023 @item Automatic Content Decoding
5024 @item Unicode Response Bodies
5025 @item Multipart File Uploads
5026 @item HTTP(S) Proxy Support
5027 @item Connection Timeouts
5028 @item Streaming Downloads
5029 @item .netrc Support
5030 @item Chunked Requests
5032 (license license:bsd-3)))
5034 (define-public python-websockets
5036 (name "python-websockets")
5041 (uri (pypi-uri "websockets" version))
5044 "03s3ml6sbki24aajllf8aily0xzrn929zxi84p50zkkbikdd4raw"))))
5045 (build-system python-build-system)
5046 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
5047 (home-page "https://github.com/aaugustin/websockets")
5049 "Python implementation of the WebSocket Protocol (RFC 6455 & 7692)")
5051 "@code{websockets} is a library for building WebSocket servers and clients
5052 in Python with a focus on correctness and simplicity.
5054 Built on top of @code{asyncio}, Python's standard asynchronous I/O framework,
5055 it provides an elegant coroutine-based API.")
5056 (license license:bsd-3)))
5058 (define-public python-selenium
5060 (name "python-selenium")
5065 (uri (pypi-uri "selenium" version))
5068 "039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy"))))
5069 (build-system python-build-system)
5071 `(("python-urllib3" ,python-urllib3)))
5073 "https://github.com/SeleniumHQ/selenium/")
5074 (synopsis "Python bindings for Selenium")
5075 (description "Selenium enables web browser automation.
5076 Selenium specifically provides infrastructure for the W3C WebDriver specification
5077 — a platform and language-neutral coding interface compatible with all
5078 major web browsers.")
5079 (license license:asl2.0)))
5081 (define-public python-rapidjson
5083 (name "python-rapidjson")
5088 (uri (pypi-uri "python-rapidjson" version))
5091 "18cl2dhx3gds5vg52jxmh9wjlbiy8dx06c3n482rfpdi9dzbv05d"))
5092 (modules '((guix build utils)))
5094 '(begin (delete-file-recursively "rapidjson") #t))))
5095 (build-system python-build-system)
5098 (list (string-append "--rj-include-dir="
5099 (assoc-ref %build-inputs "rapidjson")
5100 "/include/rapidjson"))
5102 (modify-phases %standard-phases
5104 (lambda* (#:key inputs #:allow-other-keys)
5105 (invoke "python" "setup.py" "build"
5106 (string-append "--rj-include-dir="
5107 (assoc-ref %build-inputs "rapidjson")
5108 "/include/rapidjson"))))
5110 (lambda* (#:key inputs outputs #:allow-other-keys)
5111 (add-installed-pythonpath inputs outputs)
5112 ;; Some tests are broken.
5113 (delete-file "tests/test_base_types.py")
5114 (delete-file "tests/test_validator.py")
5115 (invoke "python" "-m" "pytest" "tests"))))))
5117 `(("rapidjson" ,rapidjson)
5118 ("python-pytest" ,python-pytest)
5119 ("python-pytz" ,python-pytz)))
5120 (home-page "https://github.com/python-rapidjson/python-rapidjson")
5121 (synopsis "Python wrapper around rapidjson")
5122 (description "This package provides a python wrapper around rapidjson.")
5123 (license license:expat)))
5125 (define-public python-venusian
5127 (name "python-venusian")
5132 (uri (pypi-uri "venusian" version))
5134 (base32 "0f7f67dkgxxcjfhpdd5frb9pszkf04lyzzpn5069q0xi89r2p17n"))))
5135 (build-system python-build-system)
5137 `(("python-pytest" ,python-pytest)
5138 ("python-runner" ,python-pytest-runner)
5139 ("python-pytest-cov" ,python-pytest-cov)))
5140 (arguments '(#:test-target "pytest"))
5141 (home-page "https://docs.pylonsproject.org/projects/venusian")
5142 (synopsis "Library for deferring decorator actions")
5144 "Venusian is a library which allows framework authors to defer decorator
5145 actions. Instead of taking actions when a function (or class) decorator is
5146 executed at import time, you can defer the action usually taken by the
5147 decorator until a separate scan phase.")
5148 (license license:repoze)))
5150 (define-public python-zope-deprecation
5152 (name "python-zope-deprecation")
5156 (uri (pypi-uri "zope.deprecation" version))
5159 "1pz2cv7gv9y1r3m0bdv7ks1alagmrn5msm5spwdzkb2by0w36i8d"))))
5160 (build-system python-build-system)
5162 (propagated-inputs `())
5163 (home-page "https://zopedeprecation.readthedocs.io/")
5164 (synopsis "Function for marking deprecations")
5165 (description "The @code{zope.deprecation} module provides a function for
5166 marking modules, classes, functions, methods and properties as deprecated,
5167 displaying warnings when usaged in application code.")
5168 (license license:zpl2.1)))
5170 (define-public python-translationstring
5172 (name "python-translationstring")
5176 (uri (pypi-uri "translationstring" version))
5179 "0bdpcnd9pv0131dl08h4zbcwmgc45lyvq3pa224xwan5b3x4rr2f"))))
5180 (build-system python-build-system)
5181 (home-page "http://docs.pylonsproject.org/projects/translationstring")
5182 (synopsis "Internationalization tooling for the Pylons project")
5183 (description "This package provides a library used by various Pylons
5184 project packages for internationalization (i18n) duties related to
5186 (license license:repoze)))
5188 (define-public python-plaster
5190 (name "python-plaster")
5194 (uri (pypi-uri "plaster" version))
5197 "1hy8k0nv2mxq94y5aysk6hjk9ryb4bsd13g83m60hcyzxz3wflc3"))))
5198 (build-system python-build-system)
5200 `(("python-pytest" ,python-pytest)))
5201 (home-page "https://docs.pylonsproject.org/projects/plaster/en/latest/")
5202 (synopsis "Configuration loader for multiple config file formats")
5204 "Plaster is a loader interface around multiple config file formats. It
5205 exists to define a common API for applications to use when they wish to load
5206 configuration. The library itself does not aim to handle anything except a
5207 basic API that applications may use to find and load configuration settings.
5208 Any specific constraints should be implemented in a pluggable loader which can
5209 be registered via an entrypoint.")
5210 (license license:repoze)))
5212 (define-public python-plaster-pastedeploy
5214 (name "python-plaster-pastedeploy")
5218 (uri (pypi-uri "plaster_pastedeploy" version))
5221 "1zg7gcsvc1kzay1ry5p699rg2qavfsxqwl17mqxzr0gzw6j9679r"))))
5222 (build-system python-build-system)
5224 `(("python-pytest" ,python-pytest)))
5226 `(("python-plaster" ,python-plaster)
5227 ("python-pastedeploy" ,python-pastedeploy)))
5228 (home-page "https://github.com/Pylons/plaster_pastedeploy")
5229 (synopsis "Plugin for python-plaster adding PasteDeploy syntax")
5231 "This plugin for @code{python-plaster} adds support for PasteDeploy
5232 syntax, it provides a plaster @code{Loader} object that can parse ini files
5233 according to the standard set by PasteDeploy ")
5234 (license license:expat)))
5236 (define-public python-hupper
5238 (name "python-hupper")
5242 (uri (pypi-uri "hupper" version))
5245 "0am0p6g5cz6xmcaf04xq8q6dzdd9qz0phj6gcmpsckf2mcyza61q"))))
5246 (build-system python-build-system)
5247 (arguments '(#:test-target "pytest"))
5249 `(("python-pytest" ,python-pytest)
5250 ("python-pytest-runner" ,python-pytest-runner)
5251 ("python-watchdog" ,python-watchdog)
5252 ("python-mock" ,python-mock)
5253 ("python-pytest-cov" ,python-pytest-cov)))
5255 `(("python-pytz" ,python-pytz)))
5256 (home-page "https://readthedocs.org/projects/hupper")
5257 (synopsis "Integrated process monitor tracking changes to imported Python files")
5259 "Hupper is an integrated process monitor that will track changes to any
5260 imported Python files in sys.modules as well as custom paths. When files are
5261 changed the process is restarted.")
5262 (license license:expat)))
5264 (define-public python-pyramid
5266 (name "python-pyramid")
5270 (uri (pypi-uri "pyramid" version))
5273 "0rkxs1ajycg2zh1c94xlmls56mx5m161sn8112skj0amza6cn36q"))))
5274 (build-system python-build-system)
5276 `(("python-hupper" ,python-hupper)
5277 ("python-plaster-pastedeploy" ,python-plaster-pastedeploy)
5278 ("python-translationstring" ,python-translationstring)
5279 ("python-venusian" ,python-venusian)
5280 ("python-webob" ,python-webob)
5281 ("python-zope-deprecation" ,python-zope-deprecation)
5282 ("python-zope-interface" ,python-zope-interface)
5283 ("python-webtest" ,python-webtest)
5284 ("python-zope-component" ,python-zope-component)
5285 ("python-plaster" ,python-plaster)))
5286 (home-page "https://trypyramid.com/")
5287 (synopsis "Python web-framework suitable for small and large sites")
5289 "Pyramid makes it easy to write web applications. From minimal
5290 request/response web apps to larger, grown applications.")
5291 (license license:repoze)))
5293 (define-public python-random-user-agent
5295 (name "python-random-user-agent")
5300 (uri (pypi-uri "random_user_agent" version))
5303 "04nhzdh2ki7ybhjrmghxci6hcm6i03vvin2q2ynj87fbr1pa534g"))))
5304 (build-system python-build-system)
5305 (home-page "https://github.com/Luqman-Ud-Din/random_user_agent")
5306 (synopsis "List of user agents")
5308 "This package provides a list of user agents, from a collection of more
5309 than 326,000 known user-agents. Users can pick a random one, or select one
5311 (license license:expat)))
5313 (define-public python-flask-restx
5315 (name "python-flask-restx")
5318 ;; We fetch from the Git repo because there are no tests in the PyPI
5323 (url "https://github.com/python-restx/flask-restx")
5325 (file-name (git-file-name name version))
5327 (base32 "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7"))))
5328 (build-system python-build-system)
5330 `(("python-aniso8601" ,python-aniso8601)
5331 ("python-flask" ,python-flask)
5332 ("python-jsonschema" ,python-jsonschema)
5333 ("python-pytz" ,python-pytz)))
5335 `(("python-blinker" ,python-blinker)
5336 ("python-faker" ,python-faker)
5337 ("python-pytest" ,python-pytest)
5338 ("python-pytest-benchmark"
5339 ,python-pytest-benchmark)
5340 ("python-pytest-flask" ,python-pytest-flask)
5341 ("python-pytest-mock" ,python-pytest-mock)))
5344 (modify-phases %standard-phases
5347 (invoke "pytest" "--benchmark-skip" "-k"
5348 ;; Those tests need internet access
5349 "not test_check and not test_valid_value_check"))))))
5350 (home-page "https://github.com/python-restx/flask-restx")
5352 "Framework for fast, easy and documented API development with Flask")
5354 "Flask-RESTX is an extension for Flask that adds support for quickly building
5355 REST APIs. Flask-RESTX encourages best practices with minimal setup. If you are familiar
5356 with Flask, Flask-RESTX should be easy to pick up. It provides a coherent collection of
5357 decorators and tools to describe your API and expose its documentation properly using
5359 (license license:bsd-3)))
5361 (define-public python-manuel
5363 (name "python-manuel")
5368 (uri (pypi-uri "manuel" version))
5371 "1bdzay7j70fly5fy6wbdi8fbrxjrrlxnxnw226rwry1c8a351rpy"))))
5372 (build-system python-build-system)
5374 `(("python-six" ,python-six)))
5376 `(("python-zope-testing" ,python-zope-testing)))
5377 (home-page "https://pypi.org/project/manuel/")
5378 (synopsis "Build tested documentation")
5380 "Manuel lets you mix and match traditional doctests with custom test syntax.")
5381 (license license:asl2.0)))
5383 (define-public python-persistent
5385 (name "python-persistent")
5390 (uri (pypi-uri "persistent" version))
5393 "0imm9ji03lhkpcfmhid7x5209ix8g2rlgki9ik1qxks4b8sm8gzq"))))
5394 (build-system python-build-system)
5396 `(("python-cffi" ,python-cffi)
5397 ("python-zope-interface" ,python-zope-interface)))
5399 `(("python-manuel" ,python-manuel)
5400 ("python-zope-testrunner" ,python-zope-testrunner)))
5401 (home-page "https://github.com/zopefoundation/persistent/")
5402 (synopsis "Translucent persistent objects")
5403 (description "This package contains a generic persistence implementation for
5404 Python. It forms the core protocol for making objects interact
5405 \"transparently\" with a database such as the ZODB.")
5406 (license license:zpl2.1)))
5408 (define-public python-btrees
5410 (name "python-btrees")
5415 (uri (pypi-uri "BTrees" version))
5418 "0iiq0g9k1g6qgqq84q9h6639vlvzznk1rgdm0rfcnnqkbkmsbr3w"))))
5419 (build-system python-build-system)
5421 `(("python-persistent" ,python-persistent)
5422 ("python-zope-interface" ,python-zope-interface)))
5424 `(("python-persistent" ,python-persistent)
5425 ("python-transaction" ,python-transaction)
5426 ("python-zope-testrunner" ,python-zope-testrunner)))
5427 (home-page "https://github.com/zopefoundation/BTrees")
5428 (synopsis "Scalable persistent object containers")
5430 "This package contains a set of persistent object containers built around a
5431 modified BTree data structure. The trees are optimized for use inside ZODB's
5432 \"optimistic concurrency\" paradigm, and include explicit resolution of
5433 conflicts detected by that mechanism.")
5434 (license license:zpl2.1)))
5436 (define-public python-transaction
5438 (name "python-transaction")
5443 (uri (pypi-uri "transaction" version))
5446 "0bdaks31bgfh78wnj3sij24bfysmqk25crsis6amz8kzrc0d82iv"))))
5447 (build-system python-build-system)
5449 `(("python-zope-interface" ,python-zope-interface)))
5451 `(("python-coverage" ,python-coverage)
5452 ("python-mock" ,python-mock)
5453 ("python-nose" ,python-nose)))
5454 (home-page "https://github.com/zopefoundation/transaction")
5455 (synopsis "Transaction management for Python")
5456 (description "This package contains a generic transaction implementation
5457 for Python. It is mainly used by the ZODB.")
5458 (license license:zpl2.1)))
5460 (define-public python-robot-detection
5462 (name "python-robot-detection")
5467 (uri (pypi-uri "robot-detection" version))
5470 "1xd2jm3yn31bnk1kqzggils2rxj26ylxsfz3ap7bhr3ilhnbg3rx"))))
5471 (build-system python-build-system)
5472 (arguments '(#:tests? #f)) ; Tests not shipped in pypi release.
5473 (propagated-inputs `(("python-six" ,python-six)))
5474 (home-page "https://github.com/rory/robot-detection")
5475 (synopsis "Detect web crawlers")
5477 "@code{robot_detection} is a python module to detect if a given HTTP User
5478 Agent is a web crawler. It uses the list of registered robots from
5479 @url{http://www.robotstxt.org}.")
5480 (license license:gpl3+)))
5482 (define-public python-pysolr
5484 (name "python-pysolr")
5489 (uri (pypi-uri "pysolr" version))
5492 "1rj5jmscvxjwcmlfi6hmkj44l4x6n3ln5p7d8d18j566hzmmzw3f"))))
5493 (build-system python-build-system)
5495 '(#:tests? #f)) ; Tests require network access.
5497 `(("python-requests" ,python-requests)))
5499 `(("python-setuptools-scm" ,python-setuptools-scm)))
5500 (home-page "https://github.com/django-haystack/pysolr/")
5501 (synopsis "Lightweight python wrapper for Apache Solr")
5503 "This module provides an interface that queries the Apache Solr server
5504 using a pure Python implementation.")
5505 (license license:bsd-3)))
5507 (define-public python-http-ece
5509 (name "python-http-ece")
5515 (url "https://github.com/web-push-libs/encrypted-content-encoding")
5516 (commit (string-append "v" version))))
5517 (file-name (git-file-name name version))
5520 "0bp4cc0xc123i72h80ax3qz3ixfwx3j7pw343kc7i6kdvfi8klx7"))))
5521 (build-system python-build-system)
5524 (modify-phases %standard-phases
5525 (add-after 'unpack 'change-directory
5526 (lambda _ (chdir "python") #t)))))
5528 `(("python-cryptography" ,python-cryptography)))
5530 `(("python-coverage" ,python-coverage)
5531 ("python-flake8" ,python-flake8)
5532 ("python-mock" ,python-mock)
5533 ("python-nose" ,python-nose)))
5534 (home-page "https://github.com/web-push-libs/encrypted-content-encoding")
5535 (synopsis "Encrypted Content Encoding for HTTP")
5537 "This package provices a simple implementation of Encrypted Content
5538 Encoding for HTTP.")
5539 (license license:expat)))
5541 (define-public python-cloudscraper
5543 (name "python-cloudscraper")
5548 (uri (pypi-uri "cloudscraper" version))
5550 (base32 "0qjxzb0z5bprvmdhx42ayqhlhi2h49d9dwc0vvycj817s71f2sxv"))
5551 (modules '((guix build utils)))
5553 '(with-directory-excursion "cloudscraper"
5554 (for-each delete-file
5555 '("captcha/2captcha.py"
5557 "captcha/anticaptcha.py"
5558 "captcha/deathbycaptcha.py"
5559 "interpreters/js2py.py"
5560 "interpreters/v8.py"))
5561 (substitute* "__init__.py"
5562 ;; Perhaps it's a joke, but don't promote proprietary software.
5563 (("([Th]is feature is not available) in the .*'" _ prefix)
5564 (string-append prefix ".'")))
5566 (build-system python-build-system)
5568 `(("python-requests" ,python-requests)
5569 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
5570 ("python-pyparsing" ,python-pyparsing-2.4.7)))
5572 `(("python-pytest" ,python-pytest)))
5573 (home-page "https://github.com/venomous/cloudscraper")
5574 (synopsis "Cloudflare anti-bot bypass")
5576 "This module acts as a webbrowser solving Cloudflare's Javascript
5578 (license license:expat)))
5580 (define-public python-imap-tools
5582 (name "python-imap-tools")
5587 (uri (pypi-uri "imap_tools" version))
5590 "0x122jwpc74wwyw2rsv2fvh6p12y31019ndfr9717jzjkj2d3lhb"))))
5591 (build-system python-build-system)
5592 (arguments '(#:tests? #f)) ; tests require internet access
5593 (home-page "https://github.com/ikvk/imap_tools")
5594 (synopsis "Work with email and mailbox by IMAP")
5596 "This Python library provides tools to deal with email and mailboxes
5600 @item Parsed email message attributes
5601 @item Query builder for searching emails
5602 @item Work with emails in folders (copy, delete, flag, move, seen)
5603 @item Work with mailbox folders (list, set, get, create, exists, rename, delete, status)
5605 (license license:asl2.0)))