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, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
28 ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
29 ;;; Copyright © 2018, 2020, 2021 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>
42 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
44 ;;; This file is part of GNU Guix.
46 ;;; GNU Guix is free software; you can redistribute it and/or modify it
47 ;;; under the terms of the GNU General Public License as published by
48 ;;; the Free Software Foundation; either version 3 of the License, or (at
49 ;;; your option) any later version.
51 ;;; GNU Guix is distributed in the hope that it will be useful, but
52 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
53 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
54 ;;; GNU General Public License for more details.
56 ;;; You should have received a copy of the GNU General Public License
57 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
59 (define-module (gnu packages python-web)
60 #:use-module (guix packages)
61 #:use-module (guix download)
62 #:use-module (guix git-download)
63 #:use-module (guix build-system python)
64 #:use-module (guix utils)
65 #:use-module (gnu packages)
66 #:use-module (gnu packages base)
67 #:use-module (gnu packages check)
68 #:use-module (gnu packages compression)
69 #:use-module (gnu packages curl)
70 #:use-module (gnu packages databases)
71 #:use-module (gnu packages django)
72 #:use-module (gnu packages graphviz)
73 #:use-module (gnu packages groff)
74 #:use-module (gnu packages libevent)
75 #:use-module (gnu packages libffi)
76 #:use-module (gnu packages pkg-config)
77 #:use-module (gnu packages python)
78 #:use-module (gnu packages python-build)
79 #:use-module (gnu packages python-check)
80 #:use-module (gnu packages python-compression)
81 #:use-module (gnu packages python-crypto)
82 #:use-module (gnu packages python-science)
83 #:use-module (gnu packages python-xyz)
84 #:use-module (gnu packages serialization)
85 #:use-module (gnu packages sphinx)
86 #:use-module (gnu packages texinfo)
87 #:use-module (gnu packages tls)
88 #:use-module (gnu packages time)
89 #:use-module (gnu packages web)
90 #:use-module (gnu packages xml)
91 #:use-module ((guix licenses) #:prefix license:)
92 #:use-module (srfi srfi-1))
94 (define-public python-aiohttp
96 (name "python-aiohttp")
101 (uri (pypi-uri "aiohttp" version))
103 (base32 "1pn79h8fng4xi5gl1f6saw31nxgmgyxl41yf3vba1l21673yr12x"))))
104 (build-system python-build-system)
107 (modify-phases %standard-phases
108 (add-after 'unpack 'fix-tests
110 ;; disable brotli tests, because we’re not providing that optional library
111 (substitute* "tests/test_http_parser.py"
112 ((" async def test_feed_eof_no_err_brotli")
113 " @pytest.mark.xfail\n async def test_feed_eof_no_err_brotli"))
114 ;; make sure the timestamp of this file is > 1990, because a few
115 ;; tests like test_static_file_if_modified_since_past_date depend on it
116 (let ((late-90s (* 60 60 24 365 30)))
117 (utime "tests/data.unknown_mime_type" late-90s late-90s))
119 ;; Disable test that attempts to access httpbin.org.
120 (substitute* "tests/test_formdata.py"
121 (("async def test_mark_formdata_as_processed.*" all)
122 (string-append "@pytest.mark.xfail\n" all)))
124 ;; Don't test the aiohttp pytest plugin to avoid a dependency loop.
125 (delete-file "tests/test_pytest_plugin.py")
128 (lambda* (#:key tests? #:allow-other-keys)
130 (string-append ".:" (getenv "PYTHONPATH")))
132 (invoke "pytest" "-vv"
133 ;; Disable loading the aiohttp coverage plugin
134 ;; to avoid a circular dependency (code coverage
135 ;; is not very interesting to us anyway).
137 (format #t "test suite not run~%")))))))
139 `(("python-aiodns" ,python-aiodns)
140 ("python-async-timeout" ,python-async-timeout)
141 ("python-attrs" ,python-attrs) ;note: remove for > 3.7
142 ("python-chardet" ,python-chardet)
143 ("python-idna-ssl" ,python-idna-ssl)
144 ("python-multidict" ,python-multidict)
145 ("python-typing-extensions" ,python-typing-extensions)
146 ("python-yarl" ,python-yarl)))
148 `(("python-pytest" ,python-pytest)
149 ("python-pytest-mock" ,python-pytest-mock)
150 ("python-re-assert" ,python-re-assert)
151 ("gunicorn" ,gunicorn-bootstrap)
152 ("python-freezegun" ,python-freezegun)
153 ("python-async-generator" ,python-async-generator)))
154 (home-page "https://github.com/aio-libs/aiohttp/")
155 (synopsis "Async HTTP client/server framework (asyncio)")
156 (description "@code{aiohttp} is an asynchronous HTTP client/server
159 Its main features are:
161 @item Supports both client and server side of HTTP protocol.
162 @item Supports both client and server Web-Sockets out-of-the-box without the
164 @item Web-server has middlewares and pluggable routing.
166 (license license:asl2.0)))
168 (define-public python-aiohttp-socks
170 (name "python-aiohttp-socks")
175 (uri (pypi-uri "aiohttp_socks" version))
178 "0jmhb0l1w8k1nishij3awd9zv8zbyb5l35a2pdalrqxxasbhbcif"))))
179 (build-system python-build-system)
181 `(("python-aiohttp" ,python-aiohttp)
182 ("python-attrs" ,python-attrs)
183 ("python-socks" ,python-socks)))
184 (home-page "https://github.com/romis2012/aiohttp-socks")
185 (synopsis "SOCKS proxy connector for aiohttp")
186 (description "This package provides a SOCKS proxy connector for
187 aiohttp. It supports SOCKS4(a) and SOCKS5.")
188 (license license:asl2.0)))
190 (define-public python-aiodns
192 (name "python-aiodns")
197 (uri (pypi-uri "aiodns" version))
200 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
201 (build-system python-build-system)
203 `(("python-pycares" ,python-pycares)))
205 `(#:tests? #f)) ;tests require internet access
206 (home-page "https://github.com/saghul/aiodns")
207 (synopsis "Simple DNS resolver for asyncio")
208 (description "@code{aiodns} provides a simple way for doing
209 asynchronous DNS resolutions with a synchronous looking interface by
210 using @url{https://github.com/saghul/pycares,pycares}.")
211 (license license:expat)))
213 (define-public python-aiorpcx
215 (name "python-aiorpcx")
220 (uri (pypi-uri "aiorpcX" version))
223 "0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp"))))
224 (build-system python-build-system)
226 `(("python-attrs" ,python-attrs)))
227 (home-page "https://github.com/kyuupichan/aiorpcX")
228 (synopsis "Generic asyncio RPC implementation")
230 "The aiorpcX library is a generic asyncio implementation of RPC suitable
231 for an application that is a client, server or both.
233 The package includes a module with full coverage of JSON RPC versions 1.0 and
234 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
235 comes with a SOCKS proxy client.")
236 (license (list license:expat license:bsd-2))))
238 (define-public python-asgiref
240 (name "python-asgiref")
244 (uri (pypi-uri "asgiref" version))
247 "06kg3hnnvh7qg0w9amkvk1hd6n6bs055r04b7if6ipa7w4g92lby"))))
248 (build-system python-build-system)
250 '(#:phases (modify-phases %standard-phases
254 (string-append "./build/lib:"
255 (getenv "PYTHONPATH")))
256 (invoke "pytest" "-vv"))))))
258 `(("python-pytest" ,python-pytest)
259 ("python-pytest-asyncio" ,python-pytest-asyncio)))
260 (home-page "https://github.com/django/asgiref/")
261 (synopsis "ASGI specs, helper code, and adapters")
263 "ASGI is a standard for Python asynchronous web apps and servers to
264 communicate with each other, and positioned as an asynchronous successor to
265 WSGI. This package includes libraries for implementing ASGI servers.")
266 (license license:bsd-3)))
268 (define-public python-css-html-js-minify
270 (name "python-css-html-js-minify")
274 (uri (pypi-uri "css-html-js-minify" version ".zip"))
277 "0v3l2dqdk2y4r6ax259gs4ij1zzm9yxg6491s6254vs9w3vi37sa"))))
278 (build-system python-build-system)
279 ;; XXX: The git repository has no tags, and the PyPI releases do not
281 (arguments '(#:tests? #f))
282 (native-inputs `(("unzip" ,unzip)))
283 (home-page "https://github.com/juancarlospaco/css-html-js-minify")
284 (synopsis "CSS/HTML/JS minifier")
286 "This package provides a single-file minifier for CSS, HTML, and JavaScript.")
287 ;; XXX: The README just says "GNU GPL and GNU LGPL and MIT". From
288 ;; <https://github.com/juancarlospaco/css-html-js-minify/issues/9> it
289 ;; looks like the user can choose a license.
290 (license (list license:gpl3+ license:lgpl3+ license:expat))))
292 (define-public python-aws-sam-translator
294 (name "python-aws-sam-translator")
298 (uri (pypi-uri "aws-sam-translator" version))
301 "0d9ppd94x2kw404m49ajswmmxgdngbs4p5ajyrdvnlivfzqbv7dx"))))
302 (build-system python-build-system)
304 `(;; XXX: Tests are not distributed with the PyPI archive, and would
305 ;; introduce a circular dependency on python-cfn-lint.
307 #:phases (modify-phases %standard-phases
308 (add-after 'unpack 'loosen-requirements
310 ;; The package needlessly specifies exact versions
311 ;; of dependencies, when it works fine with others.
312 (substitute* "requirements/base.txt"
313 (("(.*)(~=[0-9\\.]+)" all package version)
317 `(("python-boto3" ,python-boto3)
318 ("python-jsonschema" ,python-jsonschema)
319 ("python-six" ,python-six)))
320 (home-page "https://github.com/awslabs/serverless-application-model")
321 (synopsis "Transform AWS SAM templates into AWS CloudFormation templates")
323 "AWS SAM Translator is a library that transform @dfn{Serverless Application
324 Model} (SAM) templates into AWS CloudFormation templates.")
325 (license license:asl2.0)))
327 (define-public python-aws-xray-sdk
329 (name "python-aws-xray-sdk")
331 (home-page "https://github.com/aws/aws-xray-sdk-python")
334 (uri (git-reference (url home-page) (commit version)))
335 (file-name (git-file-name name version))
338 "12fzr0ylpa1lx3xr1x2f1jx8iiyzcr6g57fb9jign0j0lxdlbzpv"))))
339 (build-system python-build-system)
341 `(#:phases (modify-phases %standard-phases
342 (add-after 'unpack 'disable-tests
344 (for-each delete-file
345 '(;; These tests require packages not yet in Guix.
346 "tests/ext/aiobotocore/test_aiobotocore.py"
347 "tests/ext/aiohttp/test_middleware.py"
348 "tests/ext/pg8000/test_pg8000.py"
349 "tests/ext/psycopg2/test_psycopg2.py"
350 "tests/ext/pymysql/test_pymysql.py"
351 "tests/ext/pynamodb/test_pynamodb.py"
352 "tests/test_async_recorder.py"
354 ;; FIXME: Why is this failing?
355 "tests/test_patcher.py"
357 ;; TODO: How to configure Django for these tests.
358 "tests/ext/django/test_db.py"
359 "tests/ext/django/test_middleware.py"
361 ;; These tests want to access httpbin.org.
362 "tests/ext/requests/test_requests.py"
363 "tests/ext/httplib/test_httplib.py"
364 "tests/ext/aiohttp/test_client.py"))))
368 (string-append "./build/lib:.:"
369 (getenv "PYTHONPATH")))
370 (invoke "pytest" "-vv" "tests"))))))
372 `(;; These are required for the test suite.
373 ("python-bottle" ,python-bottle)
374 ("python-flask" ,python-flask)
375 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)
376 ("python-pymysql" ,python-pymysql)
377 ("python-pytest" ,python-pytest)
378 ("python-pytest-aiohttp" ,python-pytest-aiohttp)
379 ("python-requests" ,python-requests)
380 ("python-sqlalchemy" ,python-sqlalchemy)
381 ("python-webtest" ,python-webtest)))
383 `(("python-aiohttp" ,python-aiohttp)
384 ("python-botocore" ,python-botocore)
385 ("python-future" ,python-future)
386 ("python-jsonpickle" ,python-jsonpickle)
387 ("python-urllib3" ,python-urllib3)
388 ("python-wrapt" ,python-wrapt)))
389 (synopsis "Profile applications on AWS X-Ray")
391 "The AWS X-Ray SDK for Python enables Python developers to record and
392 emit information from within their applications to the AWS X-Ray service.")
393 (license license:asl2.0)))
395 (define-public python-cfn-lint
397 (name "python-cfn-lint")
399 (home-page "https://github.com/aws-cloudformation/cfn-python-lint")
404 (commit (string-append "v" version))))
405 (file-name (git-file-name name version))
408 "0nqs0fmj3hd7pnd9hkb4z57jvi2iv82hh6n3xxba6i6p8zgx75q4"))))
409 (build-system python-build-system)
411 `(#:phases (modify-phases %standard-phases
413 (lambda* (#:key outputs #:allow-other-keys)
414 (let ((out (assoc-ref outputs "out")))
415 ;; Remove test for the documentation update scripts
416 ;; to avoid a dependency on 'git'.
418 "test/unit/module/maintenance/test_update_documentation.py")
420 (string-append "./build/lib:"
421 (getenv "PYTHONPATH")))
422 (setenv "PATH" (string-append out "/bin:"
424 (invoke "python" "-m" "unittest" "discover"
427 `(("python-pydot" ,python-pydot)
428 ("python-mock" ,python-mock)))
430 `(("python-aws-sam-translator" ,python-aws-sam-translator)
431 ("python-jsonpatch" ,python-jsonpatch)
432 ("python-jsonschema" ,python-jsonschema)
433 ("python-junit-xml" ,python-junit-xml)
434 ("python-networkx" ,python-networkx)
435 ("python-pyyaml" ,python-pyyaml)
436 ("python-six" ,python-six)))
437 (synopsis "Validate CloudFormation templates")
439 "This package lets you validate CloudFormation YAML/JSON templates against
440 the CloudFormation spec and additional checks. Includes checking valid values
441 for resource properties and best practices.")
442 (license license:expat)))
444 (define-public python-falcon
446 (name "python-falcon")
451 (uri (pypi-uri "falcon" version))
454 "1z6mqfv574x6jiawf67ib52g4kk20c2x7xk7wrn1573b8v7r79gf"))
455 (modules '((guix build utils)))
458 (delete-file-recursively "falcon/vendor")
459 (substitute* "setup.py"
460 ((".*falcon\\.vendor\\.mimeparse.*") ""))
461 (substitute* '("falcon/media/handlers.py"
463 (("from falcon\\.vendor ") ""))
464 (substitute* "falcon.egg-info/SOURCES.txt"
465 (("falcon/vendor.*") ""))
467 (build-system python-build-system)
470 (modify-phases %standard-phases
472 (lambda* (#:key inputs outputs #:allow-other-keys)
473 ;; Skip orjson, which requires rust to build.
474 (substitute* "tests/test_media_handlers.py"
475 (("== 'CPython") "!= 'CPython"))
476 (add-installed-pythonpath inputs outputs)
477 (invoke "pytest" "--ignore" "falcon"))))))
479 `(("python-mimeparse" ,python-mimeparse)))
481 `(("python-cython" ,python-cython) ;for faster binaries
482 ("python-mujson" ,python-mujson)
483 ("python-msgpack" ,python-msgpack)
484 ("python-pytest" ,python-pytest)
485 ("python-pytest-runner" ,python-pytest-runner)
486 ("python-pyyaml" ,python-pyyaml)
487 ("python-rapidjson" ,python-rapidjson)
488 ("python-requests" ,python-requests)
489 ("python-testtools" ,python-testtools)
490 ("python-ujson" ,python-ujson)))
491 (home-page "https://falconframework.org")
493 "Web framework for building APIs and application backends")
495 "Falcon is a web API framework for building microservices, application
496 backends and higher-level frameworks. Among its features are:
498 @item Optimized and extensible code base
499 @item Routing via URI templates and REST-inspired resource
501 @item Access to headers and bodies through request and response
503 @item Request processing via middleware components and hooks
504 @item Idiomatic HTTP error responses
505 @item Straightforward exception handling
506 @item Unit testing support through WSGI helpers and mocks
507 @item Compatible with both CPython and PyPy
508 @item Cython support for better performance when used with CPython
510 (license license:asl2.0)))
512 (define-public python-falcon-cors
514 (name "python-falcon-cors")
519 (uri (pypi-uri "falcon-cors" version))
522 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
523 (build-system python-build-system)
525 `(("python-falcon" ,python-falcon)))
527 "https://github.com/lwcolton/falcon-cors")
528 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
529 (description "This middleware provides @dfn{cross-origin resource
530 sharing} (CORS) support for Falcon. It allows applying a specially crafted
531 CORS object to the incoming requests, enabling the ability to serve resources
532 over a different origin than that of the web application.")
533 (license license:asl2.0)))
535 (define-public python-furl
542 (uri (pypi-uri "furl" version))
545 "1v2lakx03d5w8954a39ki44xv5mllnq0a0avhxykv9hrzg0yvjpx"))))
546 (build-system python-build-system)
548 `(("python-six" ,python-six)
549 ("python-orderedmultidict" ,python-orderedmultidict)))
551 `(("python-flake8" ,python-flake8)))
552 (home-page "https://github.com/gruns/furl")
553 (synopsis "URL manipulation in Python")
554 (description "Furl provides an easy-to-use alternative to the
555 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
556 (license license:unlicense)))
558 (define-public python2-furl
559 (package-with-python2 python-furl))
561 (define-public python-httplib2
563 (name "python-httplib2")
568 (uri (pypi-uri "httplib2" version))
571 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
572 (build-system python-build-system)
573 (home-page "https://github.com/jcgregorio/httplib2")
574 (synopsis "Comprehensive HTTP client library")
576 "A comprehensive HTTP client library supporting many features left out of
577 other HTTP libraries.")
578 (license license:expat)))
580 (define-public python2-httplib2
581 (package-with-python2 python-httplib2))
583 (define-public httpie
590 (uri (pypi-uri "httpie" version))
593 "15ngl3yc186gkgqdx8iav9bpj8gxjpzz26y32z92jwyhj4cmfh6m"))))
594 (build-system python-build-system)
596 ;; The tests attempt to access external web servers, so we cannot run them.
599 `(("python-colorama" ,python-colorama)
600 ("python-pygments" ,python-pygments)
601 ("python-requests" ,python-requests)
602 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)))
603 (home-page "https://httpie.io")
604 (synopsis "cURL-like tool for humans")
606 "A command line HTTP client with an intuitive UI, JSON support,
607 syntax highlighting, wget-like downloads, plugins, and more. It consists of
608 a single http command designed for painless debugging and interaction with
609 HTTP servers, RESTful APIs, and web services.")
610 ;; This was fixed in 1.0.3.
611 (properties `((lint-hidden-cve . ("CVE-2019-10751"))))
612 (license license:bsd-3)))
614 (define-public python-html2text
616 (name "python-html2text")
617 (version "2020.1.16")
621 (uri (pypi-uri "html2text" version))
624 "1fvv4z6dblii2wk1x82981ag8yhxbim1v2ksgywxsndh2s7335p2"))))
625 (build-system python-build-system)
628 (modify-phases %standard-phases
631 (invoke "pytest" "test/"))))))
633 `(("python-pytest" ,python-pytest)))
634 (home-page "https://github.com/Alir3z4/html2text")
635 (synopsis "Convert HTML into plain text")
636 (description "html2text takes HTML and converts it into plain ASCII text
637 which is also valid markdown. html2text was originally written by Aaron
639 (license license:gpl3+)))
641 (define-public python2-html2text
642 (let ((base (package-with-python2 python-html2text)))
645 ;; This is the last version with support for Python 2.
646 (version "2019.8.11")
649 (uri (pypi-uri "html2text" version))
652 "0ppgjplg06kmv9sj0x8p7acczcq2mcfgk1jdjwm4w5w40b0vj5pm")))))))
654 (define-public python-jose
658 (home-page "https://github.com/mpdavis/python-jose")
661 (uri (git-reference (url home-page) (commit version)))
662 (file-name (git-file-name name version))
665 "1xmnf8whzv2gnkkdv0fqcn9qwmcc7y647p4kw9fi3lvcp9kch8vi"))))
666 (build-system python-build-system)
669 (modify-phases %standard-phases
671 (lambda* (#:key tests? #:allow-other-keys)
673 (invoke "pytest" "-vv")
674 (format #t "test suite not run~%"))
677 `(;; All native inputs are for tests.
678 ("python-pyasn1" ,python-pyasn1)
679 ("python-pytest" ,python-pytest)
680 ("python-pytest-cov" ,python-pytest-cov)
681 ("python-pytest-runner" ,python-pytest-runner)))
683 `(("python-cryptography" ,python-cryptography)
684 ("python-rsa" ,python-rsa)
685 ("python-six" ,python-six)))
686 (synopsis "JOSE implementation in Python")
688 "The @dfn{JavaScript Object Signing and Encryption} (JOSE) technologies
689 - JSON Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and
690 JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or sign
691 content using a variety of algorithms.")
692 (license license:expat)))
694 (define-public python-jsonpickle
696 (name "python-jsonpickle")
700 (uri (pypi-uri "jsonpickle" version))
703 "1fn86z468hamw8njh2grw2xdhsm7g48dyxs3lw0n10nn1g6vgm78"))))
704 (build-system python-build-system)
706 `(#:phases (modify-phases %standard-phases
710 (string-append "./build/lib:"
711 (getenv "PYTHONPATH")))
712 (invoke "pytest" "-vv"
713 ;; Prevent running the flake8 and black
714 ;; pytest plugins, which only tests style
715 ;; and frequently causes harmless failures.
716 "-o" "addopts=''"))))))
718 `(("python-setuptools-scm" ,python-setuptools-scm)
719 ("python-toml" ,python-toml) ;XXX: for setuptools_scm[toml]
721 ("python-numpy" ,python-numpy)
722 ("python-pandas" ,python-pandas)
723 ("python-pytest" ,python-pytest)))
724 (home-page "https://jsonpickle.github.io/")
725 (synopsis "Serialize object graphs into JSON")
727 "This package provides a Python library for serializing any arbitrary
728 object graph to and from JSON.")
729 (license license:bsd-3)))
731 (define-public python-mechanicalsoup
733 (name "python-mechanicalsoup")
738 (uri (pypi-uri "MechanicalSoup" version))
740 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
741 (build-system python-build-system)
743 ;; TODO: Enable tests when python-flake8@3.5 hits master.
746 `(("python-beautifulsoup4" ,python-beautifulsoup4)
747 ("python-lxml" ,python-lxml)
748 ("python-requests" ,python-requests)
749 ("python-six" ,python-six)))
752 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
753 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
754 ;; ("python-pytest-mock" ,python-pytest-mock)
755 ;; ("python-pytest-runner" ,python-pytest-runner)
756 ;; ("python-requests-mock" ,python-requests-mock)))
757 (home-page "https://mechanicalsoup.readthedocs.io/")
758 (synopsis "Python library for automating website interaction")
760 "MechanicalSoup is a Python library for automating interaction with
761 websites. It automatically stores and sends cookies, follows redirects, and can
762 follow links and submit forms. It doesn’t do JavaScript.")
763 (license license:expat)))
765 (define-public python2-mechanicalsoup
766 (package-with-python2 python-mechanicalsoup))
768 (define-public python-hyperframe
770 (name "python-hyperframe")
775 (uri (pypi-uri "hyperframe" version))
777 (base32 "07xlf44l1cw0ghxx46sbmkgzil8vqv8kxwy42ywikiy35izw3xd9"))))
778 (build-system python-build-system)
781 (modify-phases %standard-phases
783 (lambda* (#:key inputs outputs #:allow-other-keys)
784 (add-installed-pythonpath inputs outputs)
785 (invoke "pytest" "-vv" "test"))))))
787 `(("python-pytest" ,python-pytest)))
788 (home-page "https://github.com/python-hyper/hyperframe")
789 (synopsis "HTTP/2 framing layer for Python")
791 "This library contains the HTTP/2 framing code used in the hyper project.
792 It provides a pure-Python codebase that is capable of decoding a binary stream
793 into HTTP/2 frames.")
794 (license license:expat)))
796 (define-public python-hpack
798 (name "python-hpack")
802 ;; PyPI tarball is missing some files necessary for the tests.
805 (url "https://github.com/python-hyper/hpack")
806 (commit (string-append "v" version))))
807 (file-name (git-file-name name version))
809 (base32 "0w8hkz50a6lzkmgi41ryicm0mh9ca9cx29pm3s0xlpn0vs29xrmd"))))
810 (build-system python-build-system)
813 (modify-phases %standard-phases
815 (lambda* (#:key inputs outputs #:allow-other-keys)
816 (add-installed-pythonpath inputs outputs)
817 (invoke "pytest" "-vv" "test" "-k"
818 ;; This test will be fixed in the next version. See:
819 ;; https://github.com/python-hyper/hpack/issues/168.
820 "not test_get_by_index_out_of_range"))))))
822 `(("python-pytest" ,python-pytest)))
823 (home-page "https://hyper.rtfd.org")
824 (synopsis "Pure-Python HPACK header compression")
826 "This module contains a pure-Python HTTP/2 header encoding (HPACK) logic
827 for use in Python programs that implement HTTP/2.")
828 (license license:expat)))
830 (define-public python-h11
837 (uri (pypi-uri "h11" version))
839 (base32 "1qfad70h59hya21vrzz8dqyyaiqhac0anl2dx3s3k80gpskvrm1k"))))
840 (build-system python-build-system)
843 (modify-phases %standard-phases
846 (invoke "pytest" "-vv"))))))
848 `(("python-pytest" ,python-pytest)))
849 (home-page "https://github.com/python-hyper/h11")
850 (synopsis "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1")
852 "This is a little HTTP/1.1 library written from scratch in Python, heavily
853 inspired by hyper-h2. It's a bring-your-own-I/O library; h11 contains no IO
854 code whatsoever. This means you can hook h11 up to your favorite network API,
855 and that could be anything you want.")
856 (license license:expat)))
858 (define-public python-h2
865 (uri (pypi-uri "h2" version))
867 (base32 "051gg30aca26rdxsmr9svwqm06pdz9bv21ch4n0lgi7jsvml2pw7"))))
868 (build-system python-build-system)
871 (modify-phases %standard-phases
873 (lambda* (#:key inputs outputs #:allow-other-keys)
874 (add-installed-pythonpath inputs outputs)
875 (invoke "pytest" "-vv" "test"))))))
877 `(("python-pytest" ,python-pytest)))
879 `(("python-hpack" ,python-hpack)
880 ("python-hyperframe" ,python-hyperframe)))
881 (home-page "https://github.com/python-hyper/hyper-h2")
882 (synopsis "HTTP/2 State-Machine based protocol implementation")
884 "This module contains a pure-Python implementation of a HTTP/2 protocol
885 stack. It does not provide a parsing layer, a network layer, or any rules
886 about concurrency. Instead, it's a purely in-memory solution, defined in
887 terms of data actions and HTTP/2 frames. This is one building block of a full
888 Python HTTP implementation.")
889 (license license:expat)))
891 (define-public python-sockjs-tornado
893 (name "python-sockjs-tornado")
898 (uri (pypi-uri "sockjs-tornado" version))
901 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
902 (build-system python-build-system)
904 `(;; There are no tests, and running the test phase requires missing
908 `(("python-tornado" ,python-tornado)))
909 (home-page "https://github.com/mrjoes/sockjs-tornado/")
911 "SockJS Python server implementation on top of the Tornado framework")
913 "SockJS-tornado provides the server-side counterpart to a SockJS client
914 library, through the Tornado framework.
916 SockJS provides a low-latency, full-duplex, cross-domain communication channel
917 between a web browser and web server.")
918 (license license:expat)))
920 (define-public python2-sockjs-tornado
921 (package-with-python2 python-sockjs-tornado))
923 (define-public python-flask-babel
925 (name "python-flask-babel")
930 (uri (pypi-uri "Flask-Babel" version))
933 "0gmb165vkwv5v7dxsxa2i3zhafns0fh938m2zdcrv4d8z5l099yn"))))
934 (build-system python-build-system)
936 '(#:phases (modify-phases %standard-phases
939 (with-directory-excursion "tests"
940 (invoke "python" "tests.py")))))))
942 `(("python-flask" ,python-flask)
943 ("python-babel" ,python-babel)
944 ("python-jinja2" ,python-jinja2)
945 ("python-pytz" ,python-pytz)))
946 (home-page "https://github.com/python-babel/flask-babel")
947 (synopsis "Add i18n/l10n support to Flask applications")
948 (description "This package implements internationalization and localization
949 support for Flask. This is based on the Python babel module as well as pytz -
950 both of which are installed automatically if you install this library.")
951 (license license:bsd-3)))
953 (define-public python2-flask-babel
954 (package-with-python2 python-flask-babel))
956 (define-public python-flask-cors
958 (name "python-flask-cors")
962 (uri (pypi-uri "Flask-Cors" version))
965 "1f36hkaxc92zn12f88fkzwifdvlvsnmlp1dv3p5inpcc500c3kvb"))))
966 (build-system python-build-system)
968 `(("python-flask" ,python-flask)
969 ("python-nose" ,python-nose)
970 ("python-packaging" ,python-packaging)))
972 `(("python-six" ,python-six)))
973 (home-page "https://flask-cors.readthedocs.io/en/latest/")
974 (synopsis "Handle Cross-Origin Resource Sharing with Flask")
976 "This package provides a Flask extension for handling @acronym{CORS,Cross
977 Origin Resource Sharing}, making cross-origin AJAX possible.")
978 (license license:expat)))
980 (define-public python-flask-markdown
982 (name "python-flask-markdown")
987 (uri (pypi-uri "Flask-Markdown" version))
990 "0l32ikv4f7va926jlq4f7gx0xid247bhlxl6bd9av5dk8ljz1hyq"))))
991 (build-system python-build-system)
993 '(#:tests? #f)) ; Tests seem to be incompatible with latest python
995 `(("python-markdown" ,python-markdown)
996 ("python-flask" ,python-flask)))
998 `(("python-nose" ,python-nose)))
999 (home-page "https://github.com/dcolish/flask-markdown")
1000 (synopsis "Small extension to help with using Markdown in Flask")
1002 "Flask-Markdown supports several extensions for Markdown and integrates
1003 into Jinja2 by default.")
1004 (license license:bsd-3)))
1006 (define-public python-flask-session
1008 (name "python-flask-session")
1013 (uri (pypi-uri "Flask-Session" version))
1016 "08s4msg8jzb8vgb9bd491zvrzhrdldxdw6vimb0kx5kgy2xy4s07"))))
1017 (build-system python-build-system)
1019 '(#:tests? #f)) ; Tests require the various storage backends to be present
1021 `(("python-flask" ,python-flask)))
1022 (home-page "https://github.com/fengsp/flask-session")
1023 (synopsis "Adds server-side session support to your Flask application")
1025 "Flask-Session is an extension for Flask that adds support for
1026 Server-side sessions, with a variety of different backends for session
1028 (license license:bsd-3)))
1030 (define-public python-html5lib
1032 (name "python-html5lib")
1037 (uri (pypi-uri "html5lib" version))
1040 "0vqlhk0hgbsfkh7ybmby93xhlx8dq6pr5blf356ka3z2c41b9rdj"))))
1041 (build-system python-build-system)
1043 `(("python-six" ,python-six)
1044 ("python-webencodings" ,python-webencodings)))
1046 `(#:test-target "check"))
1048 "https://github.com/html5lib/html5lib-python")
1050 "Python HTML parser based on the WHATWG HTML specification")
1052 "Html5lib is an HTML parser based on the WHATWG HTML specification
1053 and written in Python.")
1054 (license license:expat)))
1056 (define-public python2-html5lib
1057 (package-with-python2 python-html5lib))
1059 ;; Needed for python-bleach, a dependency of python-notebook
1060 (define-public python-html5lib-0.9
1062 (inherit python-html5lib)
1067 (uri (pypi-uri "html5lib" version))
1070 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
1072 (define-public python2-html5lib-0.9
1073 (package-with-python2 python-html5lib-0.9))
1075 (define-public python-html5-parser
1077 (name "python-html5-parser")
1081 (uri (pypi-uri "html5-parser" version))
1084 "13yl3vnf3sxl05m0nhpngnrz3g1jvyahd33lys3m3hfb91l8zzi5"))))
1085 (build-system python-build-system)
1087 `(("pkg-config" ,pkg-config)))
1089 `(("libxml2" ,libxml2)))
1091 `(("python-lxml" ,python-lxml)
1092 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1093 (home-page "https://html5-parser.readthedocs.io")
1094 (synopsis "Fast C-based HTML5 parsing for Python")
1095 (description "This package provides a fast implementation of the HTML5
1096 parsing spec for Python. Parsing is done in C using a variant of the gumbo
1097 parser. The gumbo parse tree is then transformed into an lxml tree, also in
1098 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
1099 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
1100 ;; indicate ASL2.0, including the LICENSE file for the whole project.
1101 (license (list license:asl2.0 license:gpl3))))
1103 (define-public python2-html5-parser
1104 (package-with-python2 python-html5-parser))
1106 (define-public python-minio
1108 (name "python-minio")
1112 (uri (pypi-uri "minio" version))
1115 "1cxpa0m7mdvpdbc1g6wlihq6ja4g4paxkl6f3q84bbnx07zpbllp"))))
1116 (build-system python-build-system)
1118 '(#:phases (modify-phases %standard-phases
1119 (add-before 'check 'disable-failing-tests
1121 ;; This test requires network access.
1122 (delete-file "tests/unit/credentials_test.py")
1125 `(("python-faker" ,python-faker)
1126 ("python-mock" ,python-mock)
1127 ("python-nose" ,python-nose)))
1129 `(("python-certifi" ,python-certifi)
1130 ("python-configparser" ,python-configparser)
1131 ("python-dateutil" ,python-dateutil)
1132 ("python-pytz" ,python-pytz)
1133 ("python-urllib3" ,python-urllib3)))
1134 (home-page "https://github.com/minio/minio-py")
1135 (synopsis "Programmatically access Amazon S3 from Python")
1137 "This package provides a Python library for interacting with any
1138 Amazon S3 compatible object storage server.")
1139 (license license:asl2.0)))
1141 (define-public python-pycurl
1143 (name "python-pycurl")
1144 (version "7.43.0.5")
1148 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
1151 (base32 "1cwlb76vddqp2mxqvjbhf367caddzy82rhangddjjhjqaj8x4zgc"))))
1152 (build-system python-build-system)
1154 ;; The tests attempt to access external web servers, so we cannot run
1155 ;; them. Furthermore, they are skipped altogether when using Python 2.
1157 #:phases (modify-phases %standard-phases
1158 (add-before 'build 'configure-tls-backend
1160 ;; XXX: PycURL fails to automatically determine which TLS
1161 ;; backend to use when cURL is built with --disable-static.
1162 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
1163 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
1166 `(("python-nose" ,python-nose)
1167 ("python-bottle" ,python-bottle)))
1170 ("gnutls" ,gnutls)))
1171 (home-page "http://pycurl.io/")
1172 (synopsis "Lightweight Python wrapper around libcurl")
1173 (description "Pycurl is a lightweight wrapper around libcurl. It provides
1174 high-speed transfers via libcurl and frequently outperforms alternatives.")
1176 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
1177 ;; under the terms of LGPLv2.1+ or Expat.
1178 (license (list license:lgpl2.1+ license:expat))))
1180 (define-public python2-pycurl
1181 (package-with-python2 python-pycurl))
1183 (define-public python-webencodings
1185 (name "python-webencodings")
1189 (uri (pypi-uri "webencodings" version))
1192 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
1193 (build-system python-build-system)
1196 (modify-phases %standard-phases
1199 (invoke "py.test" "-v" "webencodings/tests.py")
1202 `(("python-pytest" ,python-pytest)))
1203 (home-page "https://github.com/SimonSapin/python-webencodings")
1204 (synopsis "Character encoding aliases for legacy web content")
1206 "In order to be compatible with legacy web content when interpreting
1207 something like @code{Content-Type: text/html; charset=latin1}, tools need
1208 to use a particular set of aliases for encoding labels as well as some
1209 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
1210 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
1211 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
1212 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
1213 defines all such details so that implementations do not have to
1214 reverse-engineer each other.
1216 This module implements the Encoding standard and has encoding labels and
1217 BOM detection, but the actual implementation for encoders and decoders
1219 (license license:bsd-3)))
1221 (define-public python2-webencodings
1222 (package-with-python2 python-webencodings))
1224 (define-public python-openid
1226 (name "python-openid")
1231 (uri (pypi-uri "python3-openid" version))
1234 "1bxf9a3ny1js422j962zfzl4a9dhj192pvai05whn7j0iy9gdyrk"))))
1235 (build-system python-build-system)
1238 (modify-phases %standard-phases
1241 (invoke "coverage" "run" "-m"
1242 "unittest" "openid.test.test_suite"))))))
1243 (properties `((python2-variant . ,(delay python2-openid))))
1245 `(("python-defusedxml" ,python-defusedxml)))
1247 `(("python-coverage" ,python-coverage)
1248 ("python-psycopg2" ,python-psycopg2)
1249 ("python-django" ,python-django)))
1250 (home-page "https://github.com/necaris/python3-openid")
1251 (synopsis "OpenID support for servers and consumers")
1252 (description "This library provides OpenID authentication for Python, both
1253 for clients and servers.")
1254 (license license:asl2.0)))
1256 (define-public python2-openid
1258 (name "python2-openid")
1263 (uri (pypi-uri "python-openid" version))
1266 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
1267 (build-system python-build-system)
1269 ;; Python 3 support is in `python3-openid`, a separate package.
1270 `(#:python ,python-2
1271 ;; Tests aren't initialized correctly.
1273 (home-page "https://github.com/openid/python-openid")
1274 (synopsis "OpenID support for servers and consumers")
1275 (description "This library provides OpenID authentication for Python, both
1276 for clients and servers.")
1277 (license license:asl2.0)))
1279 (define-public python-cssutils
1281 (name "python-cssutils")
1286 (uri (pypi-uri "cssutils" version))
1289 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
1290 (build-system python-build-system)
1292 `(("unzip" ,unzip))) ; for unpacking the source
1294 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
1295 (home-page "http://cthedot.de/cssutils/")
1297 "CSS Cascading Style Sheets library for Python")
1299 "Cssutils is a Python package for parsing and building CSS
1300 Cascading Style Sheets. Currently it provides a DOM only and no rendering
1302 (license license:lgpl3+)))
1304 (define-public python2-cssutils
1305 (package-with-python2 python-cssutils))
1307 (define-public python-css-parser
1309 (inherit python-cssutils)
1310 (name "python-css-parser")
1315 (uri (pypi-uri "css-parser" version ".tar.gz"))
1317 (base32 "0bmg4kiiir6pj9x3sd12x4dz2c1xpp2bn5nn60fxnbk2lnl4im2f"))))
1318 (home-page "https://github.com/ebook-utils/css-parser")
1319 (synopsis "Fork of cssutils modified for parsing ebooks")
1321 "Css-parser is a Python package for parsing and building CSS
1322 Cascading Style Sheets. Currently it provides a DOM only and no rendering
1325 It's a fork of cssutils 1.0.2, updated and modified for parsing ebooks, due to
1326 cssutils not receiving updates as of 1.0.2.")
1327 (license license:lgpl3+)))
1329 (define-public python2-css-parser
1330 (package-with-python2 python-css-parser))
1332 (define-public python-cssselect
1334 (name "python-cssselect")
1337 ;; The PyPI release does not contain tests.
1340 (url "https://github.com/scrapy/cssselect")
1341 (commit (string-append "v" version))))
1342 (file-name (git-file-name name version))
1345 "0xslrnhbrmgakp4xg6k26qffay3kqffp3a2z2sk27c65rwxa79kc"))))
1346 (build-system python-build-system)
1348 `(#:phases (modify-phases %standard-phases
1351 (invoke "pytest" "-vv"))))))
1353 `(("python-lxml" ,python-lxml)
1354 ("python-pytest" ,python-pytest)))
1355 (home-page "https://github.com/scrapy/cssselect")
1356 (synopsis "CSS3 selector parser and translator to XPath 1.0")
1358 "Cssselect ia a Python module that parses CSS3 Selectors and translates
1359 them to XPath 1.0 expressions. Such expressions can be used in lxml or
1360 another XPath engine to find the matching elements in an XML or HTML document.")
1361 (license license:bsd-3)))
1363 (define-public python2-cssselect
1364 (package-with-python2 python-cssselect))
1366 (define-public python-databricks-cli
1368 (name "python-databricks-cli")
1370 (home-page "https://github.com/databricks/databricks-cli")
1373 (uri (git-reference (url home-page) (commit version)))
1374 (file-name (git-file-name name version))
1377 "03w19rzh72jll9phai23wp0c2mlv39qsrv50mhckziy39z60yxh8"))))
1378 (build-system python-build-system)
1380 `(#:phases (modify-phases %standard-phases
1383 (setenv "PYTHONPATH"
1384 (string-append "./build/lib:"
1385 (getenv "PYTHONPATH")))
1386 (invoke "pytest" "tests" "-vv"
1387 ;; XXX: This fails with newer Pytest
1388 ;; (upstream uses Pytest 3..).
1389 "-k" "not test_get_request_with_list"))))))
1392 ("python-decorator" ,python-decorator)
1393 ("python-mock" ,python-mock)
1394 ("python-pytest" ,python-pytest)
1395 ("python-requests-mock" ,python-requests-mock)))
1397 `(("python-click" ,python-click)
1398 ("python-configparser" ,python-configparser)
1399 ("python-requests" ,python-requests)
1400 ("python-six" ,python-six)
1401 ("python-tabulate" ,python-tabulate)))
1402 (synopsis "Command line interface for Databricks")
1404 "The Databricks Command Line Interface is a tool which provides an easy
1405 to use interface to the Databricks platform. The CLI is built on top of the
1406 Databricks REST APIs.")
1407 (license license:asl2.0)))
1409 (define-public python-openid-cla
1411 (name "python-openid-cla")
1416 (uri (pypi-uri "python-openid-cla" version))
1419 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
1420 (build-system python-build-system)
1421 (arguments '(#:tests? #f)) ; No tests.
1422 (home-page "https://github.com/puiterwijk/python-openid-cla/")
1423 (synopsis "Implementation of the OpenID CLA extension for python-openid")
1424 (description "@code{openid-cla} is an implementation of the OpenID
1425 contributor license agreement extension for python-openid.")
1426 (license license:bsd-3)))
1428 (define-public python2-openid-cla
1429 (package-with-python2 python-openid-cla))
1431 (define-public python-openid-teams
1433 (name "python-openid-teams")
1438 (uri (pypi-uri "python-openid-teams" version))
1441 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
1442 (build-system python-build-system)
1443 (arguments '(#:tests? #f)) ; No tests.
1444 (home-page "https://github.com/puiterwijk/python-openid-teams/")
1445 (synopsis "Implementation of the OpenID teams extension for python-openid")
1447 "@code{openid-teams} is an implementation of the OpenID
1448 teams extension for python-openid.")
1449 (license license:bsd-3)))
1451 (define-public python2-openid-teams
1452 (package-with-python2 python-openid-teams))
1454 (define-public python-priority
1456 (name "python-priority")
1461 (uri (pypi-uri "priority" version))
1463 (base32 "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb"))))
1464 (build-system python-build-system)
1467 (modify-phases %standard-phases
1469 (lambda* (#:key inputs outputs #:allow-other-keys)
1470 (add-installed-pythonpath inputs outputs)
1471 (invoke "pytest" "-vv" "test" "-k"
1472 ;; This test exceeded the Hypothesis deadline.
1473 "not test_period_of_repetition"))))))
1475 `(("python-hypothesis" ,python-hypothesis)
1476 ("python-pytest" ,python-pytest)
1477 ("python-pytest-cov" ,python-pytest-cov)
1478 ("python-pytest-xdist" ,python-pytest-xdist)))
1479 (home-page "https://python-hyper.org/projects/priority/en/latest/")
1480 (synopsis "Pure-Python implementation of the HTTP/2 priority tree")
1482 "Priority is a pure-Python implementation of the priority logic for HTTP/2,
1483 set out in RFC 7540 Section 5.3 (Stream Priority).")
1484 (license license:expat)))
1486 (define-public python-wsproto
1488 (name "python-wsproto")
1493 (uri (pypi-uri "wsproto" version))
1495 (base32 "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1"))))
1496 (build-system python-build-system)
1499 (modify-phases %standard-phases
1501 (lambda* (#:key inputs outputs #:allow-other-keys)
1502 (add-installed-pythonpath inputs outputs)
1503 (invoke "pytest" "-vv" "test"))))))
1505 `(("python-pytest" ,python-pytest)))
1507 `(("python-h11" ,python-h11)))
1508 (home-page "https://github.com/python-hyper/wsproto/")
1509 (synopsis "WebSockets state-machine based protocol implementation")
1511 "@code{wsproto} is a pure-Python implementation of a WebSocket protocol
1512 stack. It's written from the ground up to be embeddable in whatever program you
1513 choose to use, ensuring that you can communicate via WebSockets, as defined in
1514 RFC6455, regardless of your programming paradigm.")
1515 (license license:expat)))
1517 (define-public python-hypercorn
1519 (name "python-hypercorn")
1524 (uri (pypi-uri "Hypercorn" version))
1526 (base32 "15dgy47a18w2ls3hwykra1cyf7yzxmfjqnsqml482p12cxr2xwqr"))))
1527 (build-system python-build-system)
1530 (modify-phases %standard-phases
1532 (lambda* (#:key inputs outputs #:allow-other-keys)
1533 (add-installed-pythonpath inputs outputs)
1534 (invoke "pytest" "-vv"))))))
1536 `(("python-h11" ,python-h11)
1537 ("python-h2" ,python-h2)
1538 ("python-priority" ,python-priority)
1539 ("python-toml" ,python-toml)
1540 ("python-typing-extensions" ,python-typing-extensions)
1541 ("python-wsproto" ,python-wsproto)))
1543 `(("python-hypothesis" ,python-hypothesis)
1544 ("python-mock" ,python-mock)
1545 ("python-pytest" ,python-pytest)
1546 ("python-pytest-asyncio" ,python-pytest-asyncio)
1547 ("python-pytest-cov" ,python-pytest-cov)
1548 ("python-pytest-trio" ,python-pytest-trio)
1549 ("python-trio" ,python-trio)))
1550 (home-page "https://gitlab.com/pgjones/hypercorn/")
1551 (synopsis "ASGI Server based on Hyper libraries")
1553 "Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and
1554 wsproto libraries and inspired by Gunicorn. It supports HTTP/1, HTTP/2,
1555 WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications. It can
1556 utilise asyncio, uvloop, or trio worker types.")
1557 (license license:expat)))
1559 (define-public python-querystring-parser
1561 (name "python-querystring-parser")
1565 (uri (pypi-uri "querystring_parser" version))
1568 "0qlar8a0wa003hm2z6wcpb625r6vjj0a70rsni9h8lz0zwfcwkv4"))))
1569 (build-system python-build-system)
1571 `(#:phases (modify-phases %standard-phases
1574 ;; XXX FIXME: This test is broken with Python 3.7:
1575 ;; https://github.com/bernii/querystring-parser/issues/35
1576 (substitute* "querystring_parser/tests.py"
1577 (("self\\.assertEqual\\(self\\.knownValuesNormalized, result\\)")
1579 (invoke "python" "querystring_parser/tests.py"))))))
1581 `(("python-six" ,python-six)))
1582 (home-page "https://github.com/bernii/querystring-parser")
1583 (synopsis "QueryString parser that correctly handles nested dictionaries")
1585 "This package provides a query string parser for Python and Django
1586 projects that correctly creates nested dictionaries from sent form/querystring
1588 (license license:expat)))
1590 (define-public python-tornado
1592 (name "python-tornado")
1597 (uri (pypi-uri "tornado" version))
1600 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
1601 (build-system python-build-system)
1603 '(;; FIXME: Two tests error out with:
1604 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
1606 ;; (modify-phases %standard-phases
1609 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
1610 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
1611 ;; (invoke "python" "-m" "tornado.test.runtests")
1615 `(("python-certifi" ,python-certifi)))
1616 (home-page "https://www.tornadoweb.org/")
1617 (synopsis "Python web framework and asynchronous networking library")
1619 "Tornado is a Python web framework and asynchronous networking library,
1620 originally developed at FriendFeed. By using non-blocking network I/O,
1621 Tornado can scale to tens of thousands of open connections, making it ideal
1622 for long polling, WebSockets, and other applications that require a long-lived
1623 connection to each user.")
1624 (license license:asl2.0)
1625 (properties `((python2-variant . ,(delay python2-tornado))))))
1627 (define-public python-tornado-6
1629 (name "python-tornado")
1634 (uri (pypi-uri "tornado" version))
1637 "1p5n7sw4580pkybywg93p8ddqdj9lhhy72rzswfa801vlidx9qhg"))))
1638 (build-system python-build-system)
1641 (modify-phases %standard-phases
1644 (invoke "python" "-m" "tornado.test.runtests")
1647 `(("python-certifi" ,python-certifi)))
1648 (home-page "https://www.tornadoweb.org/")
1649 (synopsis "Python web framework and asynchronous networking library")
1651 "Tornado is a Python web framework and asynchronous networking library,
1652 originally developed at FriendFeed. By using non-blocking network I/O,
1653 Tornado can scale to tens of thousands of open connections, making it ideal
1654 for long polling, WebSockets, and other applications that require a long-lived
1655 connection to each user.")
1656 (license license:asl2.0)))
1658 (define-public python2-tornado
1659 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
1660 (package (inherit tornado)
1662 `(("python2-backport-ssl-match-hostname"
1663 ,python2-backport-ssl-match-hostname)
1664 ("python2-backports-abc" ,python2-backports-abc)
1665 ("python2-singledispatch" ,python2-singledispatch)
1666 ,@(package-propagated-inputs tornado))))))
1668 (define-public python-tornado-http-auth
1670 (name "python-tornado-http-auth")
1675 (uri (pypi-uri "tornado-http-auth" version))
1677 (base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x"))))
1678 (build-system python-build-system)
1680 `(("python-tornado" ,python-tornado)))
1681 (home-page "https://github.com/gvalkov/tornado-http-auth")
1682 (synopsis "Digest and basic authentication module for Tornado")
1684 "Provides support for adding authentication to services using the Tornado
1685 web framework, either via the basic or digest authentication schemes.")
1686 (license license:asl2.0)))
1688 (define-public python-terminado
1690 (name "python-terminado")
1695 (uri (pypi-uri "terminado" version))
1698 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
1699 (build-system python-build-system)
1701 `(("python-tornado" ,python-tornado)
1702 ("python-ptyprocess" ,python-ptyprocess)))
1704 `(("python-nose" ,python-nose)))
1707 (modify-phases %standard-phases
1709 (lambda _ (invoke "nosetests") #t)))))
1710 (home-page "https://github.com/takluyver/terminado")
1711 (synopsis "Terminals served to term.js using Tornado websockets")
1712 (description "This package provides a Tornado websocket backend for the
1713 term.js Javascript terminal emulator library.")
1714 (license license:bsd-2)
1715 (properties `((python2-variant . ,(delay python2-terminado))))))
1717 (define-public python2-terminado
1718 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
1719 (package (inherit terminado)
1721 `(("python2-backport-ssl-match-hostname"
1722 ,python2-backport-ssl-match-hostname)
1723 ("python2-futures" ,python2-futures)
1724 ,@(package-propagated-inputs terminado))))))
1726 (define-public python-wsgi-intercept
1728 (name "python-wsgi-intercept")
1732 (uri (pypi-uri "wsgi_intercept" version))
1735 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
1736 (build-system python-build-system)
1738 `(("python-six" ,python-six)))
1740 `(("python-pytest" ,python-pytest)
1741 ("python-httplib2" ,python-httplib2)
1742 ("python-requests" ,python-requests)
1743 ("python-urllib3" ,python-urllib3)))
1744 (synopsis "Puts a WSGI application in place of a real URI for testing")
1745 (description "Wsgi_intercept installs a WSGI application in place of a real
1746 URI for testing. Testing a WSGI application normally involves starting a
1747 server at a local host and port, then pointing your test code to that address.
1748 Instead, this library lets you intercept calls to any specific host/port
1749 combination and redirect them into a WSGI application importable by your test
1750 program. Thus, you can avoid spawning multiple processes or threads to test
1752 (home-page "https://github.com/cdent/wsgi-intercept")
1753 (license license:expat)))
1755 (define-public python-webob
1757 (name "python-webob")
1762 (uri (pypi-uri "WebOb" version))
1765 "026i3z99nr3px75isa9mbnky5i7rffiv4d124h5kxfjjsxz92fma"))))
1766 (build-system python-build-system)
1768 `(("python-nose" ,python-nose)))
1769 (home-page "https://webob.org/")
1770 (synopsis "WSGI request and response object")
1772 "WebOb provides wrappers around the WSGI request environment, and an
1773 object to help create WSGI responses.")
1774 (license license:expat)))
1776 (define-public python2-webob
1777 (package-with-python2 python-webob))
1779 (define-public python-zope-event
1781 (name "python-zope-event")
1786 (uri (pypi-uri "zope.event" version))
1789 "1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9"))))
1790 (build-system python-build-system)
1791 (home-page "https://pypi.org/project/zope.event/")
1792 (synopsis "Event publishing system for Python")
1793 (description "Zope.event provides an event publishing API, intended for
1794 use by applications which are unaware of any subscribers to their events. It
1795 is a simple event-dispatching system on which more sophisticated event
1796 dispatching systems can be built.")
1797 (license license:zpl2.1)))
1799 (define-public python2-zope-event
1800 (package-with-python2 python-zope-event))
1802 (define-public python-zope-interface
1804 (name "python-zope-interface")
1809 (uri (pypi-uri "zope.interface" version))
1812 "03nrl6b8cb600dnnh46y149awvrm0gxyqgwq5hdw3lvys8mw9r20"))))
1813 (build-system python-build-system)
1814 (arguments '(#:tests? #f)) ; test suite can't find python-zope-testing
1816 `(("python-coverage" ,python-coverage)
1817 ("python-nose" ,python-nose)
1818 ("python-zope-event" ,python-zope-event)
1819 ("python-zope-testing" ,python-zope-testing)))
1820 (home-page "https://github.com/zopefoundation/zope.interface")
1821 (synopsis "Python implementation of the \"design by contract\"
1823 (description "Zope.interface provides an implementation of \"object
1824 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
1825 conforming to a given API or contract.")
1826 (license license:zpl2.1)))
1828 (define-public python2-zope-interface
1829 (package-with-python2 python-zope-interface))
1831 (define-public python-zope-exceptions
1833 (name "python-zope-exceptions")
1838 (uri (pypi-uri "zope.exceptions" version))
1841 "1nkgfwawswmyc6i0b8g3ymvja4mb507m8yhid8s4rbxq3dmqhwhd"))))
1842 (build-system python-build-system)
1845 (modify-phases %standard-phases
1848 (invoke "zope-testrunner" "--test-path=src"))))))
1850 `(("python-zope-testrunner" ,python-zope-testrunner-bootstrap)))
1852 `(("python-zope-interface" ,python-zope-interface)))
1853 (home-page "https://pypi.org/project/zope.exceptions/")
1854 (synopsis "Zope exceptions")
1855 (description "Zope.exceptions provides general-purpose exception types
1856 that have uses outside of the Zope framework.")
1857 (license license:zpl2.1)))
1859 (define-public python-zope-exceptions-bootstrap
1861 (inherit python-zope-exceptions)
1862 (arguments `(#:tests? #f))
1863 (propagated-inputs `())
1865 (properties `((hidden? . #t)))))
1867 (define-public python2-zope-exceptions
1868 (package-with-python2 python-zope-exceptions))
1870 (define-public python-zope-testing
1872 (name "python-zope-testing")
1877 (uri (pypi-uri "zope.testing" version))
1880 "1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn"))))
1881 (build-system python-build-system)
1882 (home-page "https://pypi.org/project/zope.testing/")
1883 (synopsis "Zope testing helpers")
1884 (description "Zope.testing provides a number of testing utilities for HTML
1885 forms, HTTP servers, regular expressions, and more.")
1886 (license license:zpl2.1)))
1888 (define-public python2-zope-testing
1889 (package-with-python2 python-zope-testing))
1891 (define-public python-zope-testrunner
1893 (name "python-zope-testrunner")
1898 (uri (pypi-uri "zope.testrunner" version))
1901 "0jyyf1dcz156q95x2y7yw2v420q2xn3cff0c5aci7hmdmcbn0gc7"))))
1902 (build-system python-build-system)
1904 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1906 `(("python-zope-testing" ,python-zope-testing)))
1908 `(("python-six" ,python-six)
1909 ("python-zope-exceptions" ,python-zope-exceptions)
1910 ("python-zope-interface" ,python-zope-interface)))
1911 (home-page "https://pypi.org/project/zope.testrunner/")
1912 (synopsis "Zope testrunner script")
1913 (description "Zope.testrunner provides a script for running Python
1915 (license license:zpl2.1)))
1917 (define-public python-zope-testrunner-bootstrap
1919 (inherit python-zope-testrunner)
1920 (arguments `(#:tests? #f))
1922 `(("python-six" ,python-six)
1923 ("python-zope-exceptions" ,python-zope-exceptions-bootstrap)))
1924 (properties `((hidden? . #t)))))
1926 (define-public python2-zope-testrunner
1927 (package-with-python2 python-zope-testrunner))
1929 (define-public python-zope-i18nmessageid
1931 (name "python-zope-i18nmessageid")
1936 (uri (pypi-uri "zope.i18nmessageid" version))
1939 "0ndhn4w1qgwkfbwf9vm2bgq418z5g0wmfsgl0d9nz62cd0mi8d4m"))))
1940 (build-system python-build-system)
1942 `(("python-coverage" ,python-coverage)
1943 ("python-zope-testrunner" ,python-zope-testrunner)))
1945 `(("python-six" ,python-six)))
1946 (home-page "https://pypi.org/project/zope.i18nmessageid/")
1947 (synopsis "Message identifiers for internationalization")
1948 (description "Zope.i18nmessageid provides facilities for declaring
1949 internationalized messages within program source text.")
1950 (license license:zpl2.1)))
1952 (define-public python2-zope-i18nmessageid
1953 (package-with-python2 python-zope-i18nmessageid))
1955 (define-public python-zope-schema
1957 (name "python-zope-schema")
1962 (uri (pypi-uri "zope.schema" version))
1965 "09jg47bxhfg1ahr1jxb5y0cbiszyk1j6fn1r1r7s6svjl3lbryr0"))))
1966 (build-system python-build-system)
1969 (modify-phases %standard-phases
1971 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
1972 (add-installed-pythonpath inputs outputs)
1974 (invoke "zope-testrunner" "--test-path=src")
1977 `(("python-zope-event" ,python-zope-event)
1978 ("python-zope-interface" ,python-zope-interface)))
1980 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1981 ("python-zope-testing" ,python-zope-testing)
1982 ("python-zope-testrunner" ,python-zope-testrunner)))
1983 (home-page "https://pypi.org/project/zope.schema/")
1984 (synopsis "Zope data schemas")
1985 (description "Zope.scheme provides extensions to zope.interface for
1986 defining data schemas.")
1987 (license license:zpl2.1)))
1989 (define-public python2-zope-schema
1990 (package-with-python2 python-zope-schema))
1992 (define-public python-zope-configuration
1994 (name "python-zope-configuration")
1998 (uri (pypi-uri "zope.configuration" version))
2001 "0g6vrl7y27z9cj5xyrww9xlzk4npj55mgmlrcd9d2nj08jn2pw79"))))
2002 (build-system python-build-system)
2004 `(("python-manuel" ,python-manuel)
2005 ("python-zope-testing" ,python-zope-testing)
2006 ("python-zope-testrunner" ,python-zope-testrunner)))
2008 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2009 ("python-zope-interface" ,python-zope-interface)
2010 ("python-zope-schema" ,python-zope-schema)))
2011 (home-page "https://pypi.org/project/zope.configuration/")
2012 (synopsis "Zope Configuration Markup Language")
2013 (description "Zope.configuration implements ZCML, the Zope Configuration
2015 (license license:zpl2.1)))
2017 (define-public python-zope-configuration-bootstrap
2019 (inherit python-zope-configuration)
2020 (arguments `(#:tests? #f))
2022 (properties `((hidden? . #t)))))
2024 (define-public python2-zope-configuration
2025 (package-with-python2 python-zope-configuration))
2027 (define-public python-zope-copy
2029 (name "python-zope-copy")
2034 (uri (pypi-uri "zope.copy" version))
2037 "06m75434krl57n6p73c2qj55k5i3fixg887j8ss01ih6zw4rvfs7"))))
2038 (build-system python-build-system)
2041 (modify-phases %standard-phases
2044 (invoke "zope-testrunner" "--test-path=src" "\\[]"))))))
2046 `(("python-zope-interface" ,python-zope-interface)))
2048 `(("python-zope-component" ,python-zope-component-bootstrap)
2049 ("python-zope-location" ,python-zope-location-bootstrap)
2050 ("python-zope-testing" ,python-zope-testing)
2051 ("python-zope-testrunner" ,python-zope-testrunner)))
2052 (home-page "https://github.com/zopefoundation/zope.copy")
2053 (synopsis "Pluggable object copying mechanism")
2055 "This package provides a pluggable mechanism for copying persistent objects.")
2056 (license license:zpl2.1)))
2058 (define-public python-zope-proxy
2060 (name "python-zope-proxy")
2065 (uri (pypi-uri "zope.proxy" version))
2068 "14h7nyfbl5vpfk0rbviy4ygdfx0yx5kncvg6jpbdb0dhwna0ssm6"))))
2069 (build-system python-build-system)
2071 `(("python-zope-security" ,python-zope-security-bootstrap)
2072 ("python-zope-testrunner" ,python-zope-testrunner)))
2074 `(("python-zope-interface" ,python-zope-interface)))
2075 (home-page "https://pypi.org/project/zope.proxy/")
2076 (synopsis "Generic, transparent proxies")
2077 (description "Zope.proxy provides generic, transparent proxies for Python.
2078 Proxies are special objects which serve as mostly-transparent wrappers around
2079 another object, intervening in the apparent behavior of the wrapped object
2080 only when necessary to apply the policy (e.g., access checking, location
2081 brokering, etc.) for which the proxy is responsible.")
2082 (license license:zpl2.1)))
2084 (define-public python-zope-proxy-bootstrap
2086 (inherit python-zope-proxy)
2087 (arguments `(#:tests? #f))
2089 (properties `((hidden? . #t)))))
2091 (define-public python2-zope-proxy
2092 (package-with-python2 python-zope-proxy))
2094 (define-public python-zope-hookable
2096 (name "python-zope-hookable")
2101 (uri (pypi-uri "zope.hookable" version))
2104 "0hc82lfr7bk53nvbxvjkibkarngyrzgfk2i6bg8wshl0ly0pdl19"))))
2105 (build-system python-build-system)
2107 `(("python-coverage" ,python-coverage)
2108 ("python-zope-testing" ,python-zope-testing)))
2109 (home-page "https://github.com/zopefoundation/zope.hookable")
2110 (synopsis "Zope hookable")
2111 (description "This package supports the efficient creation of hookable
2112 objects, which are callable objects that are meant to be optionally replaced.
2113 The idea is that you create a function that does some default thing and make i
2114 hookable. Later, someone can modify what it does by calling its sethook method
2115 and changing its implementation. All users of the function, including those
2116 that imported it, will see the change.")
2117 (license license:zpl2.1)))
2119 (define-public python-zope-location
2121 (name "python-zope-location")
2126 (uri (pypi-uri "zope.location" version))
2129 "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857"))))
2130 (build-system python-build-system)
2132 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
2134 `(("python-zope-testrunner" ,python-zope-testrunner)))
2136 `(("python-zope-interface" ,python-zope-interface)
2137 ("python-zope-proxy" ,python-zope-proxy)
2138 ("python-zope-schema" ,python-zope-schema)))
2139 (home-page "https://pypi.org/project/zope.location/")
2140 (synopsis "Zope location library")
2141 (description "Zope.location implements the concept of \"locations\" in
2142 Zope3, which are are special objects that have a structural location.")
2143 (license license:zpl2.1)))
2145 (define-public python-zope-location-bootstrap
2147 (inherit python-zope-location)
2148 (arguments `(#:tests? #f))
2150 (properties `((hidden? . #t)))))
2152 (define-public python2-zope-location
2153 (package-with-python2 python-zope-location))
2155 (define-public python-zope-security
2157 (name "python-zope-security")
2162 (uri (pypi-uri "zope.security" version))
2165 "11lfw67cigscfax9c5j63xcvz2qcj724zx5fcdqyc94am2glim0h"))))
2166 (build-system python-build-system)
2168 `(("python-zope-component" ,python-zope-component)
2169 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2170 ("python-zope-interface" ,python-zope-interface)
2171 ("python-zope-location" ,python-zope-location)
2172 ("python-zope-proxy" ,python-zope-proxy)
2173 ("python-zope-schema" ,python-zope-schema)))
2175 `(("python-btrees" ,python-btrees)
2176 ("python-zope-component" ,python-zope-component-bootstrap)
2177 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
2178 ("python-zope-location" ,python-zope-location-bootstrap)
2179 ("python-zope-testing" ,python-zope-testing)
2180 ("python-zope-testrunner" ,python-zope-testrunner)))
2181 (home-page "https://pypi.org/project/zope.security/")
2182 (synopsis "Zope security framework")
2183 (description "Zope.security provides a generic mechanism to implement
2184 security policies on Python objects.")
2185 (license license:zpl2.1)))
2187 (define-public python-zope-security-bootstrap
2189 (inherit python-zope-security)
2190 (arguments `(#:tests? #f))
2192 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2193 ("python-zope-interface" ,python-zope-interface)
2194 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
2195 ("python-zope-schema" ,python-zope-schema)))
2197 (properties `((hidden? . #t)))))
2199 (define-public python2-zope-security
2200 (package-with-python2 python-zope-security))
2202 (define-public python-zope-component
2204 (name "python-zope-component")
2209 (uri (pypi-uri "zope.component" version))
2212 "14iwp95hh6q5dj4k9h1iw75cbp89bs27nany4dinyglb44c8jqli"))))
2213 (build-system python-build-system)
2216 (modify-phases %standard-phases
2218 (lambda* (#:key inputs outputs #:allow-other-keys)
2219 (add-installed-pythonpath inputs outputs)
2220 (invoke "python" "setup.py" "test"))))))
2222 `(("python-persistent" ,python-persistent)
2223 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
2224 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2225 ("python-zope-location" ,python-zope-location-bootstrap)
2226 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
2227 ("python-zope-security" ,python-zope-security-bootstrap)
2228 ("python-zope-testing" ,python-zope-testing)
2229 ("python-zope-testrunner" ,python-zope-testrunner)))
2231 `(("python-zope-deferredimport" ,python-zope-deferredimport)
2232 ("python-zope-deprecation" ,python-zope-deprecation)
2233 ("python-zope-event" ,python-zope-event)
2234 ("python-zope-hookable" ,python-zope-hookable)
2235 ("python-zope-interface" ,python-zope-interface)))
2236 (home-page "https://github.com/zopefoundation/zope.component")
2237 (synopsis "Zope Component Architecture")
2238 (description "Zope.component represents the core of the Zope Component
2239 Architecture. Together with the zope.interface package, it provides
2240 facilities for defining, registering and looking up components.")
2241 (license license:zpl2.1)))
2243 (define-public python-zope-component-bootstrap
2245 (inherit python-zope-component)
2246 (arguments `(#:tests? #f))
2248 (properties `((hidden? . #t)))))
2250 (define-public python2-zope-component
2251 (package-with-python2 python-zope-component))
2253 (define-public python-zope-deferredimport
2255 (name "python-zope-deferredimport")
2260 (uri (pypi-uri "zope.deferredimport" version))
2263 "1q89v54dwniiqypjbwywwdfjdr4kdkqlyqsgrpplgvsygdg39cjp"))))
2264 (build-system python-build-system)
2266 `(("python-zope-proxy" ,python-zope-proxy)))
2268 `(("python-zope-testrunner" ,python-zope-testrunner)))
2269 (home-page "https://github.com/zopefoundation/zope.deferredimport")
2270 (synopsis "Defer imports until used by code")
2272 "Often, especially for package modules, you want to import names for
2273 convenience, but not actually perform the imports until necessary. The
2274 @code{zope.deferredimport} package provided facilities for defining names in
2275 modules that will be imported from somewhere else when used. You can also cause
2276 deprecation warnings to be issued when a variable is used.")
2277 (license license:zpl2.1)))
2279 (define-public python-ndg-httpsclient
2281 (name "python-ndg-httpsclient")
2285 (uri (pypi-uri "ndg_httpsclient" version))
2288 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
2289 (build-system python-build-system)
2291 '(;; The tests appear to require networking.
2294 `(("python-pyopenssl" ,python-pyopenssl)))
2295 (synopsis "HTTPS support for Python's httplib and urllib2")
2296 (description "This is a HTTPS client implementation for httplib and urllib2
2297 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
2298 over the default provided with Python and, importantly, enables full
2299 verification of the SSL peer.")
2300 (home-page "https://github.com/cedadev/ndg_httpsclient/")
2301 (license license:bsd-3)))
2303 ;; python2-openssl requires special care, so package-with-python2 is
2305 (define-public python2-ndg-httpsclient
2306 (package (inherit python-ndg-httpsclient)
2307 (name "python2-ndg-httpsclient")
2309 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
2310 ((#:python _) python-2)))
2312 `(("python2-pyopenssl" ,python2-pyopenssl)))))
2314 (define-public python-websocket-client
2316 (name "python-websocket-client")
2321 (uri (pypi-uri "websocket_client" version))
2324 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
2325 (build-system python-build-system)
2327 `(("python-six" ,python-six)))
2328 (home-page "https://github.com/liris/websocket-client")
2329 (synopsis "WebSocket client for Python")
2330 (description "The Websocket-client module provides the low level APIs for
2331 WebSocket usage in Python programs.")
2332 (properties `((python2-variant . ,(delay python2-websocket-client))))
2333 (license license:lgpl2.1+)))
2335 (define-public python2-websocket-client
2336 (let ((base (package-with-python2
2337 (strip-python2-variant python-websocket-client))))
2341 `(("python2-backport-ssl-match-hostname"
2342 ,python2-backport-ssl-match-hostname)
2343 ,@(package-native-inputs base))))))
2345 (define-public python-purl
2347 (name "python-purl")
2352 (uri (pypi-uri "purl" version))
2355 "15ibnz1xrh5msmn04j0nr00sz4n7jwx6cwd6zlx99kkz3vpin53m"))))
2356 (build-system python-build-system)
2357 (propagated-inputs `(("python-six" ,python-six)))
2359 "https://github.com/codeinthehole/purl")
2361 "Python package for URL manipulation")
2363 "Purl is a Python package for handling URLs.")
2364 (license license:expat)))
2366 (define-public python-apiron
2368 (name "python-apiron")
2373 (uri (pypi-uri "apiron" version))
2375 (base32 "1qwbqn47sf0aqznj1snbv37v8ijx476qqkjf5l9pac7xjkxsr8qk"))))
2376 (build-system python-build-system)
2379 (modify-phases %standard-phases
2381 (lambda* (#:key inputs outputs #:allow-other-keys)
2382 (add-installed-pythonpath inputs outputs)
2383 (invoke "pytest" "-vv" "--cov" "-k"
2384 ;; This test tries to connect to the internet.
2385 "not test_call"))))))
2387 `(("python-requests" ,python-requests)))
2389 `(("python-pytest" ,python-pytest)
2390 ("python-pytest-cov" ,python-pytest-cov)))
2391 (home-page "https://github.com/ithaka/apiron")
2392 (synopsis "Python wrapper for interacting with RESTful APIs")
2394 "@code{apiron} provides a declarative, structured configuration of
2395 services and endpoints with a unified interface for interacting with RESTful
2397 (license license:expat)))
2399 (define-public python-beren
2401 (name "python-beren")
2406 (uri (pypi-uri "beren" version))
2408 (base32 "1v3mdwfqsyza892zvs124ym9w1bkng1j56b7l4dwfjir3723xcgf"))))
2409 (build-system python-build-system)
2411 ;; The test tries to open a connection to a remote server.
2414 `(("python-apiron" ,python-apiron)))
2415 (home-page "https://github.com/teffalump/beren")
2416 (synopsis "REST client for Orthanc DICOM servers")
2418 "@code{beren} provides a REST client for Orthanc, a DICOM server.")
2419 (license license:gpl3+)))
2421 (define-public python-requests
2423 (name "python-requests")
2427 (uri (pypi-uri "requests" version))
2430 "1y6mb8c0ipd64d5axq2p368yxndp3f966hmabjka2q2a5y9hn6kz"))))
2431 (build-system python-build-system)
2433 `(("python-certifi" ,python-certifi)
2434 ("python-chardet" ,python-chardet)
2435 ("python-idna" ,python-idna)
2436 ("python-urllib3" ,python-urllib3)))
2438 ;; FIXME: Some tests require network access.
2440 (home-page "http://python-requests.org/")
2441 (synopsis "Python HTTP library")
2443 "Requests is a Python HTTP client library. It aims to be easier to use
2444 than Python’s urllib2 library.")
2445 (license license:asl2.0)))
2447 ;; Some software requires an older version of Requests, notably Docker/Docker
2449 (define-public python-requests-2.20
2450 (package (inherit python-requests)
2454 (uri (pypi-uri "requests" version))
2457 "0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
2459 `(("python-urllib3" ,python-urllib3-1.24)
2460 ("python-idna" ,python-idna-2.7)
2461 ,@(package-propagated-inputs python-requests)))))
2463 (define-public python2-requests
2464 (package-with-python2 python-requests))
2466 (define-public python-requests_ntlm
2468 (name "python-requests_ntlm")
2473 (uri (pypi-uri "requests_ntlm" version))
2476 "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
2477 (build-system python-build-system)
2479 `(("python-cryptography" ,python-cryptography)
2480 ("python-ntlm-auth" ,python-ntlm-auth)
2481 ("python-requests" ,python-requests)))
2482 (home-page "https://github.com/requests/requests-ntlm")
2484 "NTLM authentication support for Requests")
2486 "This package allows for HTTP NTLM authentication using the requests
2488 (license license:isc)))
2490 (define-public python-requests-mock
2492 (name "python-requests-mock")
2497 (uri (pypi-uri "requests-mock" version))
2500 "09nj8fmyj7xz2mgwyvbw0fl9zybmx2d3qd2hf529vvjc9s24d3z6"))))
2501 (build-system python-build-system)
2503 `(("python-requests" ,python-requests)
2504 ("python-six" ,python-six)))
2506 `(("python-pbr" ,python-pbr)
2507 ("python-discover" ,python-discover)
2508 ("python-docutils" ,python-docutils)
2509 ("python-fixtures" ,python-fixtures)
2510 ("python-mock" ,python-mock)
2511 ("python-purl" ,python-purl)
2512 ("python-pytest" ,python-pytest)
2513 ("python-sphinx" ,python-sphinx)
2514 ("python-testrepository" ,python-testrepository)))
2515 (home-page "https://requests-mock.readthedocs.org/")
2516 (synopsis "Mock out responses from the requests package")
2518 "This module provides a building block to stub out the HTTP requests
2519 portions of your testing code.")
2520 (license license:asl2.0)))
2522 (define-public python-requests-toolbelt
2524 (name "python-requests-toolbelt")
2528 (uri (pypi-uri "requests-toolbelt" version))
2531 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
2532 (build-system python-build-system)
2534 `(("python-betamax" ,python-betamax)
2535 ("python-mock" ,python-mock)
2536 ("python-pytest" ,python-pytest)))
2538 `(("python-requests" ,python-requests)))
2539 (synopsis "Extensions to python-requests")
2540 (description "This is a toolbelt of useful classes and functions to be used
2541 with python-requests.")
2542 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
2543 (license license:asl2.0)))
2545 (define-public python2-requests-toolbelt
2546 (package-with-python2 python-requests-toolbelt))
2548 (define-public python-requests-toolbelt-0.9.1
2550 (inherit python-requests-toolbelt)
2554 (uri (pypi-uri "requests-toolbelt" version))
2557 "1h3gm88dcjbd7gm229a7x5qkkhnsqsjz0m0l2xyavm2ab3a8k04n"))))
2559 `(;; FIXME: Some tests require network access.
2562 (define-public python-requests-ftp
2564 (name "python-requests-ftp")
2569 (uri (pypi-uri "requests-ftp" version))
2572 "0yh5v21v36dsjsgv4y9dx4mmz35741l5jf6pbq9w19d8rfsww13m"))))
2573 (build-system python-build-system)
2575 `(("python-requests" ,python-requests)))
2577 "https://github.com/Lukasa/requests-ftp")
2578 (synopsis "FTP Transport Adapter for Requests")
2580 "Requests-FTP is an implementation of a simple FTP transport
2581 adapter for use with the Requests library.")
2582 (license license:asl2.0)))
2584 (define-public python-oauthlib
2586 (name "python-oauthlib")
2590 (uri (pypi-uri "oauthlib" version))
2593 "12gqnabwck30gdlpwm6af3s28qm9p2yc7b1w8s4fk9ncbz1irr5y"))))
2594 (build-system python-build-system)
2596 `(#:phases (modify-phases %standard-phases
2599 (invoke "pytest" "-vv"))))))
2601 `(("python-pytest" ,python-pytest)
2602 ("python-pytest-cov" ,python-pytest-cov)
2603 ("python-mock" ,python-mock)))
2605 `(("python-cryptography" ,python-cryptography)
2606 ("python-pyjwt" ,python-pyjwt)
2607 ("python-blinker" ,python-blinker)))
2608 (home-page "https://github.com/oauthlib/oauthlib")
2609 (synopsis "OAuth implementation for Python")
2611 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2612 OAuth request-signing logic.")
2613 (license license:bsd-3)))
2615 (define-public python2-oauthlib
2616 (package-with-python2 python-oauthlib))
2618 (define-public python-rauth
2620 (name "python-rauth")
2625 (uri (pypi-uri "rauth" version))
2628 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
2629 (build-system python-build-system)
2631 `(#:test-target "check"))
2633 `(("python-requests" ,python-requests)))
2634 (home-page "https://github.com/litl/rauth")
2635 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
2637 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
2638 provides service wrappers for convenient connection initialization and
2639 authenticated session objects providing things like keep-alive.")
2640 (license license:expat)
2641 (properties `((python2-variant . ,(delay python2-rauth))))))
2643 (define-public python2-rauth
2644 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
2647 (native-inputs `(("python2-unittest2" ,python2-unittest2)
2648 ,@(package-native-inputs base))))))
2650 (define-public python-urllib3
2652 (name "python-urllib3")
2657 (uri (pypi-uri "urllib3" version))
2660 "024yldjwjavps39yb77sc422z8fa9bn20wcqrcncjwrqjab8y60r"))))
2661 (build-system python-build-system)
2662 (arguments `(#:tests? #f))
2664 `(;; These 5 inputs are used to build urrlib3[secure]
2665 ("python-certifi" ,python-certifi)
2666 ("python-cryptography" ,python-cryptography)
2667 ("python-idna" ,python-idna)
2668 ("python-pyopenssl" ,python-pyopenssl)
2669 ("python-pysocks" ,python-pysocks)))
2670 (home-page "https://urllib3.readthedocs.io/")
2671 (synopsis "HTTP library with thread-safe connection pooling")
2673 "Urllib3 supports features left out of urllib and urllib2 libraries. It
2674 can reuse the same socket connection for multiple requests, it can POST files,
2675 supports url redirection and retries, and also gzip and deflate decoding.")
2676 (properties `((python2-variant . ,(delay python2-urllib3))))
2677 (license license:expat)))
2679 ;; Some software requires an older version of urllib3, notably Docker.
2680 (define-public python-urllib3-1.24
2681 (package (inherit python-urllib3)
2685 (uri (pypi-uri "urllib3" version))
2688 "1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
2691 (define-public python2-urllib3
2692 (let ((base (package-with-python2 (strip-python2-variant python-urllib3))))
2696 `(("python-ipaddress" ,python2-ipaddress)
2697 ,@(package-propagated-inputs base))))))
2699 (define-public awscli
2701 ;; Note: updating awscli typically requires updating botocore as well.
2703 (version "1.18.203")
2707 (uri (pypi-uri name version))
2710 "128zg24961j8nmnq2dxqg6a7zwh3qgv87cmvclsdqwwih9nigxv9"))))
2711 (build-system python-build-system)
2713 ;; FIXME: The 'pypi' release does not contain tests.
2716 (modify-phases %standard-phases
2717 (add-after 'unpack 'fix-reference-to-groff
2719 (substitute* "awscli/help.py"
2720 (("if not self._exists_on_path\\('groff'\\):") "")
2721 (("raise ExecutableNotFoundError\\('groff'\\)") "")
2722 (("cmdline = \\['groff'")
2723 (string-append "cmdline = ['" (which "groff") "'")))
2726 `(("python-colorama" ,python-colorama)
2727 ("python-botocore" ,python-botocore)
2728 ("python-s3transfer" ,python-s3transfer)
2729 ("python-docutils" ,python-docutils)
2730 ("python-pyyaml" ,python-pyyaml)
2731 ("python-rsa" ,python-rsa)))
2733 `(("groff" ,groff)))
2734 (home-page "https://aws.amazon.com/cli/")
2735 (synopsis "Command line client for AWS")
2736 (description "AWS CLI provides a unified command line interface to the
2737 Amazon Web Services (AWS) API.")
2738 (license license:asl2.0)))
2740 (define-public python-wsgiproxy2
2742 (name "python-wsgiproxy2")
2747 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
2749 (base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf"))))
2750 (build-system python-build-system)
2752 `(("python-webtest" ,python-webtest)))
2754 `(("python-requests" ,python-requests)
2755 ("python-six" ,python-six)
2756 ("python-urllib3" ,python-urllib3)
2757 ("python-webob" ,python-webob)))
2758 (home-page "https://github.com/gawel/WSGIProxy2/")
2759 (synopsis "WSGI Proxy with various http client backends")
2760 (description "WSGI turns HTTP requests into WSGI function calls.
2761 WSGIProxy turns WSGI function calls into HTTP requests.
2762 It also includes code to sign requests and pass private data,
2763 and to spawn subprocesses to handle requests.")
2764 (license license:expat)))
2766 (define-public python2-wsgiproxy2
2767 (package-with-python2 python-wsgiproxy2))
2769 (define-public python-pastedeploy
2771 (name "python-pastedeploy")
2776 (uri (pypi-uri "PasteDeploy" version))
2778 (base32 "05s88qdjdwd9d9qs13fap7nqgxs7qs5qfzzjbrc5va13k2mxdskd"))))
2779 (build-system python-build-system)
2781 '(#:test-target "pytest"))
2783 `(("python-pytest" ,python-pytest)
2784 ("python-pytest-runner" ,python-pytest-runner)))
2785 (home-page "https://pylonsproject.org/")
2787 "Load, configure, and compose WSGI applications and servers")
2789 "This tool provides code to load WSGI applications and servers from URIs;
2790 these URIs can refer to Python Eggs for INI-style configuration files. Paste
2791 Script provides commands to serve applications based on this configuration
2793 (license license:expat)))
2795 (define-public python2-pastedeploy
2796 (package-with-python2 python-pastedeploy))
2798 (define-public python-webtest
2800 (name "python-webtest")
2805 (uri (pypi-uri "WebTest" version))
2808 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
2809 (build-system python-build-system)
2811 ;; Tests require python-pyquery, which creates a circular dependency.
2814 `(("python-waitress" ,python-waitress)
2815 ("python-webob" ,python-webob)
2816 ("python-six" ,python-six)
2817 ("python-beautifulsoup4" ,python-beautifulsoup4)))
2818 (home-page "https://docs.pylonsproject.org/projects/webtest/")
2819 (synopsis "Helper to test WSGI applications")
2820 (description "Webtest allows you to test your Python web applications
2821 without starting an HTTP server. It supports anything that supports the
2823 (license license:expat)))
2825 (define-public python2-webtest
2826 (package-with-python2 python-webtest))
2828 (define-public python-flask
2830 (name "python-flask")
2834 (uri (pypi-uri "Flask" version))
2837 "0q3h295izcil7lswkzfnyg3k5gq4hpmqmpl6i7s5m1n9szi1myjf"))))
2838 (build-system python-build-system)
2841 (modify-phases %standard-phases
2844 (setenv "PYTHONPATH" (string-append "./build/lib:"
2845 (getenv "PYTHONPATH")))
2846 (invoke "pytest" "-vv" "tests"))))))
2848 `(("python-pytest" ,python-pytest)))
2850 `(("python-itsdangerous" ,python-itsdangerous)
2851 ("python-jinja2" ,python-jinja2)
2852 ("python-click" ,python-click)
2853 ("python-werkzeug" ,python-werkzeug)))
2854 (home-page "https://www.palletsprojects.com/p/flask/")
2855 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
2856 (description "Flask is a micro web framework based on the Werkzeug toolkit
2857 and Jinja2 template engine. It is called a micro framework because it does not
2858 presume or force a developer to use a particular tool or library.")
2859 (license license:bsd-3)))
2861 (define-public python2-flask
2862 (package-with-python2 python-flask))
2864 (define-public python-flask-wtf
2866 (name "python-flask-wtf")
2871 (uri (pypi-uri "Flask-WTF" version))
2874 "086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl"))))
2875 (build-system python-build-system)
2878 (modify-phases %standard-phases
2881 (setenv "PYTHONPATH" (string-append "./build/lib:"
2882 (getenv "PYTHONPATH")))
2883 (invoke "pytest" "-vv"))))))
2885 `(("python-flask-babel" ,python-flask-babel)
2886 ("python-babel" ,python-babel)
2887 ("python-wtforms" ,python-wtforms)))
2889 `(("python-pytest" ,python-pytest)))
2890 (home-page "https://github.com/lepture/flask-wtf")
2891 (synopsis "Simple integration of Flask and WTForms")
2892 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
2893 upload, and reCAPTCHA.")
2894 (license license:bsd-3)))
2896 (define-public python2-flask-wtf
2897 (package-with-python2 python-flask-wtf))
2899 (define-public python-flask-multistatic
2901 (name "python-flask-multistatic")
2906 (uri (pypi-uri "flask-multistatic" version))
2909 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
2910 (build-system python-build-system)
2912 `(("python-flask" ,python-flask)))
2913 (home-page "https://pagure.io/flask-multistatic")
2914 (synopsis "Flask plugin to allow overriding static files")
2915 (description "@code{flask-multistatic} is a flask plugin that adds support
2916 for overriding static files.")
2917 (license license:gpl3+)))
2919 (define-public python2-flask-multistatic
2920 (package-with-python2 python-flask-multistatic))
2922 (define-public python-cookies
2924 (name "python-cookies")
2928 (uri (pypi-uri "cookies" version))
2931 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
2932 (build-system python-build-system)
2934 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
2937 `(("python-pytest" ,python-pytest)))
2938 (synopsis "HTTP cookie parser and renderer")
2939 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
2941 (home-page "https://gitlab.com/sashahart/cookies")
2942 (license license:expat)))
2944 (define-public python2-cookies
2945 (package-with-python2 python-cookies))
2947 (define-public python-responses
2949 (name "python-responses")
2953 (uri (pypi-uri "responses" version))
2956 "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah"))))
2957 (build-system python-build-system)
2959 `(;; Test suite is not distributed:
2960 ;; https://github.com/getsentry/responses/issues/38
2963 `(("python-mock" ,python-mock)))
2965 `(("python-requests" ,python-requests)
2966 ("python-cookies" ,python-cookies)
2967 ("python-six" ,python-six)))
2968 (home-page "https://github.com/getsentry/responses")
2969 (synopsis "Utility for mocking out the `requests` Python library")
2970 (description "A utility library for mocking out the `requests` Python
2972 (license license:asl2.0)))
2974 (define-public python2-responses
2975 (package-with-python2 python-responses))
2977 (define-public python-grequests
2979 (name "python-grequests")
2984 (uri (pypi-uri "grequests" version))
2987 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
2988 (build-system python-build-system)
2990 `(("python-gevent" ,python-gevent)
2991 ("python-requests" ,python-requests)))
2993 `(("python-nose" ,python-nose)
2994 ("python-zope.interface" ,python-zope-interface)
2995 ("python-zope.event" ,python-zope-event)))
2996 (home-page "https://github.com/kennethreitz/grequests")
2997 (synopsis "Python library for asynchronous HTTP requests")
2998 (description "GRequests is a Python library that allows you to use
2999 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
3000 (license license:bsd-2)))
3002 (define-public python-dpkt
3004 (name "python-dpkt")
3009 (uri (pypi-uri "dpkt" version))
3012 "1d28r8pmhzjjd6hrn1xcddinfhwv8lcl1s59ygmqa8kfmz5pkrgl"))))
3013 (build-system python-build-system)
3014 (home-page "https://github.com/kbandla/dpkt")
3015 (synopsis "Packet generator and parser for TCP/IP protocols")
3016 (description "The dpkt module is a fast, simple packet generator and parser
3017 for the basic TCP/IP protocols.")
3018 (license license:bsd-3)))
3020 (define-public python-geventhttpclient
3022 (name "python-geventhttpclient")
3026 (uri (pypi-uri "geventhttpclient" version))
3029 "1hy4qm9d3r69n5199i7qjji1v7718n7cxbj8ggi0njify99m37pm"))
3030 (modules '((guix build utils)))
3033 ;; Delete pre-compiled files.
3034 (for-each delete-file (find-files "src/geventhttpclient"
3036 (build-system python-build-system)
3039 (modify-phases %standard-phases
3040 (add-after 'unpack 'delete-network-tests
3042 (delete-file "src/geventhttpclient/tests/test_client.py")))
3043 (add-after 'unpack 'fix-compatibility-issue
3044 ;; See: https://github.com/gwik/geventhttpclient/issues/137.
3046 (substitute* "src/geventhttpclient/tests/test_ssl.py"
3047 ((".*sock.last_seen_sni = None.*")
3050 (lambda* (#:key inputs outputs #:allow-other-keys)
3051 (add-installed-pythonpath inputs outputs)
3052 (invoke "py.test" "src/geventhttpclient/tests" "-v"
3053 ;; Append the test modules to sys.path to avoid
3054 ;; namespace conflict which breaks SSL tests.
3055 "--import-mode=append"
3056 ;; XXX: This test fails with Python 3.8:
3057 ;; https://github.com/gwik/geventhttpclient/issues/119
3058 "-k" "not test_cookielib_compatibility"))))))
3060 `(("python-dpkt" ,python-dpkt)
3061 ("python-pytest" ,python-pytest)))
3063 `(("python-certifi" ,python-certifi)
3064 ("python-gevent" ,python-gevent)
3065 ("python-six" ,python-six)))
3066 (home-page "https://github.com/gwik/geventhttpclient")
3067 (synopsis "HTTP client library for gevent")
3068 (description "@code{python-geventhttpclient} is a high performance,
3069 concurrent HTTP client library for python using @code{gevent}.")
3070 (license license:expat)))
3072 (define-public python-requests-oauthlib
3074 (name "python-requests-oauthlib")
3079 (uri (pypi-uri "requests-oauthlib" version))
3082 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
3083 (build-system python-build-system)
3086 (modify-phases %standard-phases
3087 ;; removes tests that require network access
3088 (add-before 'check 'pre-check
3090 (delete-file "tests/test_core.py")
3093 `(("python-pyjwt" ,python-pyjwt)
3094 ("python-requests-mock" ,python-requests-mock)
3095 ("python-mock" ,python-mock)))
3097 `(("python-oauthlib" ,python-oauthlib)
3098 ("python-requests" ,python-requests)))
3100 "https://github.com/requests/requests-oauthlib")
3102 "OAuthlib authentication support for Requests")
3104 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
3105 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
3106 (license license:isc)))
3108 (define-public python-url
3114 (uri (pypi-uri "url" version))
3117 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
3118 (build-system python-build-system)
3120 `(("python-publicsuffix" ,python-publicsuffix)))
3122 `(("python-coverage" ,python-coverage)
3123 ("python-nose" ,python-nose)))
3125 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
3126 (home-page "https://github.com/seomoz/url-py")
3127 (synopsis "URL Parsing")
3128 (description "Library for parsing urls.")
3129 (license license:expat)
3130 (properties `((python2-variant . ,(delay python2-url))))))
3132 (define-public python2-url
3133 (let ((base (package-with-python2 (strip-python2-variant python-url))))
3134 (package (inherit base)
3136 `(("python2-publicsuffix" ,python2-publicsuffix))))))
3138 (define-public python-cachecontrol
3140 (name "python-cachecontrol")
3145 ;; Pypi does not have tests.
3147 (url "https://github.com/ionrock/cachecontrol")
3148 (commit (string-append "v" version))))
3149 (file-name (git-file-name name version))
3152 "03lgc65sl04n0cgzmmgg99bk83f9i6k8yrmcd4hpl46q1pymn0kz"))))
3153 (build-system python-build-system)
3155 ;; Versions > 0.11.6 depend on CherryPy for testing.
3156 ;; It's too much work to package CherryPy for now.
3159 `(("python-requests" ,python-requests)
3160 ("python-msgpack" ,python-msgpack)
3161 ("python-lockfile" ,python-lockfile)))
3162 (home-page "https://github.com/ionrock/cachecontrol")
3163 (synopsis "The httplib2 caching algorithms for use with requests")
3164 (description "CacheControl is a port of the caching algorithms in
3165 @code{httplib2} for use with @code{requests} session objects.")
3166 (license license:asl2.0)))
3168 (define-public python-cachecontrol-0.11
3170 (inherit python-cachecontrol)
3171 (name "python-cachecontrol")
3176 (uri (pypi-uri "CacheControl" version))
3179 "07jsfhlbcwgqg6ayz8nznzaqg5rmxqblbzxz1qvg5wc44pcjjy4g"))))))
3181 (define-public python-betamax
3183 (name "python-betamax")
3188 (uri (pypi-uri "betamax" version))
3191 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
3192 (build-system python-build-system)
3194 '(;; Many tests fail because they require networking.
3197 `(("python-requests" ,python-requests)))
3198 (home-page "https://github.com/sigmavirus24/betamax")
3199 (synopsis "Record HTTP interactions with python-requests")
3200 (description "Betamax will record your test suite's HTTP interactions and
3201 replay them during future tests. It is designed to work with python-requests.")
3202 (license license:expat)))
3204 (define-public python2-betamax
3205 (package-with-python2 python-betamax))
3207 (define-public python-betamax-matchers
3209 (name "python-betamax-matchers")
3214 (uri (pypi-uri "betamax-matchers" version))
3217 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
3218 (build-system python-build-system)
3220 `(("python-betamax" ,python-betamax)
3221 ("python-requests-toolbelt" ,python-requests-toolbelt)))
3222 (home-page "https://github.com/sigmavirus24/betamax_matchers")
3223 (synopsis "VCR imitation for python-requests")
3224 (description "@code{betamax-matchers} provides a set of Matchers for
3226 (license license:asl2.0)))
3228 (define-public python2-betamax-matchers
3229 (package-with-python2 python-betamax-matchers))
3231 (define-public python-s3transfer
3233 (name "python-s3transfer")
3237 (uri (pypi-uri "s3transfer" version))
3240 "1nzp5kwmy9669334shcz9ipg89jgpdqhrmbkgdg18r7wmvi3f6lj"))))
3241 (build-system python-build-system)
3244 (modify-phases %standard-phases
3245 (add-after 'unpack 'patch
3247 ;; There's a small issue with one test with Python 3.8, this
3248 ;; change has been suggested upstream:
3249 ;; https://github.com/boto/s3transfer/pull/164
3250 (substitute* "tests/unit/test_s3transfer.py"
3251 (("super\\(FailedDownloadParts, self\\)\\.submit\\(function\\)")
3252 "futures.Future()"))
3256 ;; Some of the 'integration' tests require network access or
3257 ;; login credentials.
3258 (invoke "nosetests" "--exclude=integration")
3261 `(("python-docutils" ,python-docutils)
3262 ("python-mock" ,python-mock)
3263 ("python-nose" ,python-nose)))
3265 `(("python-botocore" ,python-botocore)
3266 ("python-urllib3" ,python-urllib3)))
3267 (synopsis "Amazon S3 Transfer Manager")
3268 (description "S3transfer is a Python library for managing Amazon S3
3270 (home-page "https://github.com/boto/s3transfer")
3271 (license license:asl2.0)
3272 (properties `((python2-variant . ,(delay python2-s3transfer))))))
3274 (define-public python2-s3transfer
3275 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
3279 `(("python2-futures" ,python2-futures)
3280 ,@(package-native-inputs base))))))
3282 (define-public python-slimit
3284 (name "python-slimit")
3289 (uri (pypi-uri "slimit" version ".zip"))
3292 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
3293 (build-system python-build-system)
3295 `(("unzip" ,unzip)))
3297 `(("python-ply" ,python-ply)))
3298 (home-page "https://slimit.readthedocs.io/")
3299 (synopsis "JavaScript minifier, parser and lexer written in Python")
3301 "SlimIt is a JavaScript minifier written in Python. It compiles
3302 JavaScript into more compact code so that it downloads and runs faster.
3303 SlimIt also provides a library that includes a JavaScript parser, lexer,
3304 pretty printer and a tree visitor.")
3305 (license license:expat)))
3307 (define-public python-flask-restful
3309 (name "python-flask-restful")
3314 (uri (pypi-uri "Flask-RESTful" version))
3315 (patches (search-patches "python-flask-restful-werkzeug-compat.patch"))
3318 "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
3319 (build-system python-build-system)
3321 `(("python-aniso8601" ,python-aniso8601)
3322 ("python-flask" ,python-flask)
3323 ("python-pycrypto" ,python-pycrypto)
3324 ("python-pytz" ,python-pytz)))
3326 `(;; Optional dependency of Flask. Tests need it.
3327 ("python-blinker" ,python-blinker)
3328 ("python-mock" ,python-mock) ; For tests
3329 ("python-nose" ,python-nose))) ;for tests
3331 "https://www.github.com/flask-restful/flask-restful/")
3333 "Flask module for creating REST APIs")
3335 "This package contains a Flask module for creating REST APIs.")
3336 (license license:bsd-3)))
3338 (define-public python-flask-basicauth
3340 (name "python-flask-basicauth")
3345 (uri (pypi-uri "Flask-BasicAuth" version))
3348 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
3349 (build-system python-build-system)
3351 `(#:phases (modify-phases %standard-phases
3352 (add-after 'unpack 'fix-imports
3354 (substitute* '("docs/index.rst"
3356 "flask_basicauth.py"
3357 "test_basicauth.py")
3358 (("flask\\.ext\\.basicauth")
3362 `(("python-flask" ,python-flask)))
3363 (home-page "https://github.com/jpvanhal/flask-basicauth")
3364 (synopsis "HTTP basic access authentication for Flask")
3366 "This package provides HTTP basic access authentication for Flask.")
3367 (license license:bsd-3)))
3369 (define-public python-flask-htpasswd
3371 (name "python-flask-htpasswd")
3376 (uri (pypi-uri "flask-htpasswd" version))
3379 "14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra"))))
3380 (build-system python-build-system)
3382 `(("python-flask" ,python-flask)
3383 ("python-itsdangerous" ,python-itsdangerous)
3384 ("python-passlib" ,python-passlib)
3385 ("python-tox" ,python-tox)))
3386 (home-page "https://github.com/carsongee/flask-htpasswd")
3387 (synopsis "Basic authentication via htpasswd files in Flask applications")
3388 (description "This package provides Basic authentication via
3389 @file{htpasswd} files and access_token authentication in Flask
3391 (license license:bsd-3)))
3393 (define-public python-flask-sqlalchemy
3395 (name "python-flask-sqlalchemy")
3399 (uri (pypi-uri "Flask-SQLAlchemy" version))
3402 "1rgsj49gnx361hnb3vn6c1h17497qh22yc3r70l1r6w0mw71bixz"))))
3403 (build-system python-build-system)
3405 `(("python-flask" ,python-flask)
3406 ("python-sqlalchemy" ,python-sqlalchemy)))
3407 (home-page "https://github.com/mitsuhiko/flask-sqlalchemy")
3408 (synopsis "Module adding SQLAlchemy support to your Flask application")
3410 "This package adds SQLAlchemy support to your Flask application.")
3411 (license license:bsd-3)))
3413 (define-public python-flask-restplus
3415 (name "python-flask-restplus")
3420 (uri (pypi-uri "flask-restplus" version))
3423 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
3424 (build-system python-build-system)
3426 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
3428 ;; (modify-phases %standard-phases
3431 ;; (invoke "nosetests")
3434 `(("python-aniso8601" ,python-aniso8601)
3435 ("python-flask" ,python-flask)
3436 ("python-jsonschema" ,python-jsonschema)
3437 ("python-pytz" ,python-pytz)
3438 ("python-six" ,python-six)))
3440 `(("python-tzlocal" ,python-tzlocal)
3441 ("python-blinker" ,python-blinker)
3442 ("python-nose" ,python-nose)
3443 ("python-rednose" ,python-rednose)))
3444 (home-page "https://github.com/noirbizarre/flask-restplus")
3445 (synopsis "Framework for documented API development with Flask")
3446 (description "This package provides a framework for API development with
3447 the Flask web framework in Python. It is similar to package
3448 @code{python-flask-restful} but supports the @code{python-swagger}
3449 documentation builder.")
3450 (license license:expat)))
3452 (define-public python-flask-restful-swagger
3454 (name "python-flask-restful-swagger")
3459 (uri (pypi-uri "flask-restful-swagger" version))
3462 "1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq"))))
3463 (build-system python-build-system)
3464 (arguments '(#:tests? #f)) ;no tests
3466 `(("python-flask-restful" ,python-flask-restful)))
3467 (home-page "https://github.com/rantav/flask-restful-swagger")
3468 (synopsis "Extract Swagger specs from Flask-Restful projects")
3469 (description "This package lets you extract Swagger API documentation
3470 specs from your Flask-Restful projects.")
3471 (license license:expat)))
3473 (define-public python-htmlmin
3475 (name "python-htmlmin")
3480 (uri (pypi-uri "htmlmin" version))
3483 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
3485 `(#:tests? #f)) ; no tests
3486 (build-system python-build-system)
3487 (home-page "https://htmlmin.readthedocs.org/en/latest/")
3488 (synopsis "HTML minifier")
3489 (description "@code{htmlmin} is an HTML minifier that just works.
3490 It comes with safe defaults and easily configurable options.")
3491 (license license:bsd-3)))
3493 (define-public python2-htmlmin
3494 (package-with-python2 python-htmlmin))
3496 (define-public python-flask-htmlmin
3498 (name "python-flask-htmlmin")
3503 (uri (pypi-uri "Flask-HTMLmin" version))
3506 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
3508 `(("python-flask" ,python-flask)
3509 ("python-htmlmin" ,python-htmlmin)))
3510 (build-system python-build-system)
3511 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
3512 (synopsis "HTML response minifier for Flask")
3514 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
3515 (license license:bsd-3)))
3517 (define-public python2-flask-htmlmin
3518 (package-with-python2 python-flask-htmlmin))
3520 (define-public python-jsmin
3522 (name "python-jsmin")
3527 (uri (pypi-uri "jsmin" version))
3530 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
3531 (build-system python-build-system)
3532 (home-page "https://github.com/tikitu/jsmin/")
3533 (synopsis "Python JavaScript minifier")
3535 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
3536 on the command line.")
3537 (license license:expat)))
3539 (define-public python-flask-login
3541 (name "python-flask-login")
3547 (url "https://github.com/maxcountryman/flask-login")
3549 (file-name (git-file-name name version))
3551 (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
3552 (build-system python-build-system)
3554 `(("python-flask" ,python-flask)))
3557 `(("python-blinker" ,python-blinker)
3558 ("python-coverage" ,python-coverage)
3559 ("python-mock" ,python-mock)
3560 ("python-pycodestyle" ,python-pycodestyle)
3561 ("python-pyflakes" ,python-pyflakes)
3562 ("python-pytest" ,python-pytest)
3563 ("python-semantic-version" ,python-semantic-version)
3564 ("python-werkzeug" ,python-werkzeug)))
3565 (home-page "https://github.com/maxcountryman/flask-login")
3566 (synopsis "User session management for Flask")
3568 "@code{Flask-Login} provides user session management for Flask. It
3569 handles the common tasks of logging in, logging out, and remembering your
3570 users' sessions over extended periods of time.")
3571 (license license:expat)))
3573 (define-public python2-flask-login
3574 (package-with-python2 python-flask-login))
3576 (define-public python-oauth2client
3578 (name "python-oauth2client")
3583 (uri (pypi-uri "oauth2client" version))
3586 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
3587 (build-system python-build-system)
3591 `(("python-httplib2" ,python-httplib2)
3592 ("python-pyasn1" ,python-pyasn1)
3593 ("python-pyasn1-modules" ,python-pyasn1-modules)
3594 ("python-rsa" ,python-rsa)
3595 ("python-six" ,python-six)))
3596 (home-page "https://github.com/google/oauth2client/")
3597 (synopsis "OAuth 2.0 client library")
3598 (description "@code{python-oauth2client} provides an OAuth 2.0 client
3599 library for Python")
3600 (license license:asl2.0)))
3602 (define-public python2-oauth2client
3603 (package-with-python2 python-oauth2client))
3605 (define-public python-flask-oidc
3607 (name "python-flask-oidc")
3612 (uri (pypi-uri "flask-oidc" version))
3615 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
3616 (build-system python-build-system)
3618 `(("python-flask" ,python-flask)
3619 ("python-itsdangerous" ,python-itsdangerous)
3620 ("python-oauth2client" ,python-oauth2client)
3621 ("python-six" ,python-six)))
3623 `(("python-nose" ,python-nose)
3624 ("python-mock" ,python-mock)))
3625 (home-page "https://github.com/puiterwijk/flask-oidc")
3626 (synopsis "OpenID Connect extension for Flask")
3627 (description "@code{python-flask-oidc} provides an OpenID Connect extension
3629 (license license:bsd-2)))
3631 (define-public python-webassets
3633 (name "python-webassets")
3638 (uri (pypi-uri "webassets" version))
3641 "1kc1042jydgk54xpgcp0r1ib4gys91nhy285jzfcxj3pfqrk4w8n"))))
3642 (build-system python-build-system)
3644 '(#:phases (modify-phases %standard-phases
3645 (add-before 'check 'disable-some-tests
3647 ;; This test requires 'postcss' and 'babel' which are
3648 ;; not yet available in Guix.
3649 (delete-file "tests/test_filters.py")
3653 (setenv "PYTHONPATH"
3654 (string-append "./build/lib:"
3655 (getenv "PYTHONPATH")))
3656 (invoke "pytest" "-vv"))))))
3658 `(("python-jinja2" ,python-jinja2)
3659 ("python-mock" ,python-mock)
3660 ("python-nose" ,python-nose)
3661 ("python-pytest" ,python-pytest)))
3662 (home-page "https://github.com/miracle2k/webassets")
3663 (synopsis "Media asset management")
3664 (description "Merges, minifies and compresses Javascript and CSS files,
3665 supporting a variety of different filters, including YUI, jsmin, jspacker or
3666 CSS tidy. Also supports URL rewriting in CSS files.")
3667 (license license:bsd-2)))
3669 (define-public python-cssmin
3671 (name "python-cssmin")
3676 (uri (pypi-uri "cssmin" version))
3679 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
3680 (build-system python-build-system)
3681 (home-page "https://github.com/zacharyvoase/cssmin")
3682 (synopsis "Python port of the YUI CSS Compressor")
3683 (description "Python port of the YUI CSS Compressor.")
3684 (license (list license:expat license:bsd-3))))
3686 (define-public python2-cssmin
3687 (package-with-python2 python-cssmin))
3689 (define-public python-elasticsearch
3691 (name "python-elasticsearch")
3696 (uri (pypi-uri "elasticsearch" version))
3699 "0rnjvlhw4v3vg14l519qliy1s1zpmx3827q0xfviwvk42rr7hh01"))))
3700 (build-system python-build-system)
3702 `(("python-mock" ,python-mock)
3703 ("python-nosexcover" ,python-nosexcover)
3704 ("python-pyaml" ,python-pyaml)
3705 ("python-requests" ,python-requests)))
3707 `(("urllib3" ,python-urllib3)))
3709 ;; tests require the test_elasticsearch module but it is not distributed.
3711 (home-page "https://github.com/elastic/elasticsearch-py")
3712 (synopsis "Low-level client for Elasticsearch")
3713 (description "Official low-level client for Elasticsearch. Its goal is to
3714 provide common ground for all Elasticsearch-related code in Python; because of
3715 this it tries to be opinion-free and very extendable.")
3716 (license license:expat)))
3718 (define-public python2-elasticsearch
3719 (package-with-python2 python-elasticsearch))
3721 (define-public python-flask-script
3723 (name "python-flask-script")
3728 (uri (pypi-uri "Flask-Script" version))
3731 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
3732 (build-system python-build-system)
3735 (modify-phases %standard-phases
3736 (add-after 'unpack 'patch-tests
3738 (substitute* "tests.py"
3739 (("flask\\.ext\\.script") "flask_script"))
3742 `(("python-flask" ,python-flask)
3743 ("python-argcomplete" ,python-argcomplete)
3744 ("python-werkzeug" ,python-werkzeug)))
3746 `(("python-pytest" ,python-pytest)))
3748 "https://github.com/smurfix/flask-script")
3749 (synopsis "Scripting support for Flask")
3750 (description "The Flask-Script extension provides support for writing
3751 external scripts in Flask. This includes running a development server,
3752 a customised Python shell, scripts to set up your database, cronjobs,
3753 and other command-line tasks that belong outside the web application
3755 (license license:bsd-3)))
3757 (define-public python-flask-migrate
3759 (name "python-flask-migrate")
3764 (uri (pypi-uri "Flask-Migrate" version))
3767 "1vip9ww6l18dxffjsggm83k71zkvihxpnhaswpv8klh95s6517d6"))))
3768 (build-system python-build-system)
3770 `(("python-flask" ,python-flask)
3771 ("python-alembic" ,python-alembic)
3772 ("python-sqlalchemy" ,python-sqlalchemy)
3773 ("python-flask-script" ,python-flask-script)
3774 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
3775 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
3776 (synopsis "SQLAlchemy database migrations for Flask programs using
3778 (description "This package contains SQLAlchemy database migration tools
3779 for Flask programs that are using @code{python-alembic}.")
3780 (license license:expat)))
3782 (define-public python-genshi
3784 (name "python-genshi")
3790 (url "https://github.com/edgewall/genshi")
3792 (file-name (git-file-name name version))
3794 (base32 "04bw7nd4wyn8ixnhik57hny2xpjjpn80k5hp6691inix5gc6rxaf"))))
3795 (build-system python-build-system)
3796 (home-page "https://genshi.edgewall.org/")
3797 (synopsis "Toolkit for generation of output for the web")
3798 (description "Genshi is a Python library that provides an integrated set
3799 of components for parsing, generating, and processing HTML, XML or other
3800 textual content for output generation on the web.")
3801 (license license:bsd-3)))
3803 (define-public python2-genshi
3804 (package-with-python2 python-genshi))
3806 (define-public python-flask-principal
3808 (name "python-flask-principal")
3813 (uri (pypi-uri "Flask-Principal" version))
3816 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
3817 (build-system python-build-system)
3819 `(("python-blinker" ,python-blinker)))
3821 `(("python-flask" ,python-flask)
3822 ("python-nose" ,python-nose)))
3823 (home-page "https://pythonhosted.org/Flask-Principal/")
3824 (synopsis "Identity management for Flask")
3825 (description "@code{flask_principal} is a identity management library for
3826 Flask. It supports managing both authentication and authorization data in a
3827 thread-local variable.")
3828 (license license:expat)))
3830 (define-public python-flask-httpauth
3832 (name "python-flask-httpauth")
3837 (uri (pypi-uri "Flask-HTTPAuth" version))
3840 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
3841 (build-system python-build-system)
3843 `(("python-flask" ,python-flask)))
3844 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
3845 (synopsis "Basic and Digest HTTP authentication for Flask routes")
3846 (description "@code{flask_httpauth} provides Basic and Digest HTTP
3847 authentication for Flask routes.")
3848 (license license:expat)))
3850 (define-public python-uritemplate
3852 (name "python-uritemplate")
3857 (uri (pypi-uri "uritemplate" version))
3860 "1bkwmgr0ia9gcn4bszs2xlvml79f0bi2s4a87xg22ky9rq8avy2s"))))
3861 (build-system python-build-system)
3862 (home-page "https://uritemplate.readthedocs.org")
3863 (synopsis "Library to deal with URI Templates")
3864 (description "@code{uritemplate} provides Python library to deal with URI
3866 (license license:bsd-2)))
3868 (define-public python2-uritemplate
3869 (package-with-python2 python-uritemplate))
3871 (define-public python-publicsuffix
3873 (name "python-publicsuffix")
3877 (uri (pypi-uri "publicsuffix" version))
3880 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
3881 (build-system python-build-system)
3883 `(#:tests? #f)) ; tests use the internet
3884 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
3885 (synopsis "Get suffix for a domain name")
3886 (description "Get a public suffix for a domain name using the Public Suffix
3888 (license license:expat)))
3890 (define-public python2-publicsuffix
3891 (package-with-python2 python-publicsuffix))
3893 (define-public python-publicsuffix2
3895 (name "python-publicsuffix2")
3896 (version "2.20191221")
3900 (uri (pypi-uri "publicsuffix2" version))
3902 (base32 "0yzysvfj1najr1mb4pcqrbmjir3xpb69rlffln95a3cdm8qwry00"))))
3903 (build-system python-build-system)
3906 (modify-phases %standard-phases
3907 (add-after 'unpack 'ignore-maintainer-inputs
3909 ;; Comment out a demand for python-requests, which is used only by
3910 ;; the unused ‘update_psl’ helper command.
3911 (substitute* "setup.py"
3912 (("'requests " match)
3913 (format #f "# ~a" match)))
3915 #:tests? #f)) ; the test suite requires network access
3916 (home-page "https://github.com/pombredanne/python-publicsuffix2")
3917 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
3918 (description "Get a public suffix for a domain name using the Public Suffix
3919 List. Forked from and using the same API as the publicsuffix package.")
3920 (license (list license:expat license:mpl2.0))))
3922 (define-public python2-publicsuffix2
3923 (package-with-python2 python-publicsuffix2))
3925 (define-public python-werkzeug
3927 (name "python-werkzeug")
3932 (uri (pypi-uri "Werkzeug" version))
3935 "0z74sa1xw5h20yin9faj0vvdbq713cgbj84klc72jr9nmpjv303c"))))
3936 (build-system python-build-system)
3939 (modify-phases %standard-phases
3941 (add-after 'install 'check
3942 (lambda* (#:key inputs outputs #:allow-other-keys)
3943 (add-installed-pythonpath inputs outputs)
3944 (invoke "python" "-m" "pytest"))))))
3946 `(("python-requests" ,python-requests)))
3948 `(("python-pytest" ,python-pytest)
3949 ("python-pytest-timeout" ,python-pytest-timeout)))
3950 (home-page "https://palletsprojects.com/p/werkzeug/")
3951 (synopsis "Utilities for WSGI applications")
3952 (description "One of the most advanced WSGI utility modules. It includes a
3953 powerful debugger, full-featured request and response objects, HTTP utilities to
3954 handle entity tags, cache control headers, HTTP dates, cookie handling, file
3955 uploads, a powerful URL routing system and a bunch of community-contributed
3957 (license license:x11)))
3959 (define-public python-bottle
3961 (name "python-bottle")
3966 (uri (pypi-uri "bottle" version))
3968 (base32 "0b6s50vc4iad97b6bb3xnyrgajb3nj6n6jbr5p54a4vapky3zmx9"))))
3969 (build-system python-build-system)
3970 (home-page "https://bottlepy.org/")
3971 (synopsis "WSGI framework for small web-applications.")
3972 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
3973 (license license:expat)))
3975 (define-public python2-bottle
3976 (package-with-python2 python-bottle))
3978 (define-public python-wtforms
3980 (name "python-wtforms")
3985 (uri (pypi-uri "WTForms" version ".zip"))
3988 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
3989 (build-system python-build-system)
3992 (modify-phases %standard-phases
3993 (add-after 'unpack 'remove-django-test
3994 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
3998 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
3999 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
4002 `(("unzip" ,unzip)))
4003 (home-page "http://wtforms.simplecodes.com/")
4005 "Form validation and rendering library for Python web development")
4007 "WTForms is a flexible forms validation and rendering library
4008 for Python web development. It is very similar to the web form API
4009 available in Django, but is a standalone package.")
4010 (license license:bsd-3)))
4012 (define-public python2-wtforms
4013 (package-with-python2 python-wtforms))
4015 (define-public python-paste
4017 (name "python-paste")
4022 (uri (pypi-uri "Paste" version))
4025 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
4026 (patches (search-patches "python-paste-remove-timing-test.patch"))
4027 (modules '((guix build utils)))
4030 ;; This test calls out to the internet.
4031 (delete-file "tests/test_proxy.py") #t))))
4032 (build-system python-build-system)
4034 `(("python-pytest" ,python-pytest)
4035 ("python-pytest-runner" ,python-pytest-runner)
4036 ("python-nose" ,python-nose)))
4038 `(("python-six" ,python-six)))
4039 (home-page "https://pythonpaste.readthedocs.io/")
4041 "Python web development tools, focusing on WSGI")
4043 "Paste provides a variety of web development tools and middleware which
4044 can be nested together to build web applications. Paste's design closely
4045 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
4046 (license license:expat)))
4048 (define-public python2-paste
4049 (package-with-python2 python-paste))
4051 (define-public python-pastescript
4053 (name "python-pastescript")
4058 (uri (pypi-uri "PasteScript" version))
4061 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
4062 (build-system python-build-system)
4064 `(("python-nose" ,python-nose)))
4066 `(("python-paste" ,python-paste)
4067 ("python-pastedeploy" ,python-pastedeploy)))
4068 (home-page (string-append "https://web.archive.org/web/20161025192515/"
4069 "http://pythonpaste.org/script/"))
4071 '(;; Unfortunately, this requires the latest unittest2,
4072 ;; but that requires traceback2 which requires linecache2 which requires
4073 ;; unittest2. So we're skipping tests for now.
4074 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
4075 ;; so in theory we could get around this situation somehow.)
4078 "Pluggable command line tool for serving web applications and more")
4080 "PasteScript is a plugin-friendly command line tool which provides a
4081 variety of features, from launching web applications to bootstrapping project
4083 (license license:expat)))
4085 (define-public python2-pastescript
4086 (package-with-python2 python-pastescript))
4088 (define-public python2-urlgrabber
4090 (name "python2-urlgrabber")
4095 (uri (pypi-uri "urlgrabber" version))
4097 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
4098 (build-system python-build-system)
4099 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
4100 (home-page "http://urlgrabber.baseurl.org")
4101 (synopsis "High-level cross protocol url-grabber")
4102 (description "@code{urlgrabber} is Python2 library that unifies access to
4103 files available on web, FTP or locally. It supports HTTP, FTP and file://
4104 protocols, it supports features like HTTP keep-alive, reget, throttling and
4106 (license license:lgpl2.1+)))
4108 (define-public python-pycares
4110 (name "python-pycares")
4115 (uri (pypi-uri "pycares" version))
4118 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
4119 (build-system python-build-system)
4121 `(#:tests? #f)) ;tests require internet access
4122 (home-page "https://github.com/saghul/pycares")
4123 (synopsis "Python interface for @code{c-ares}")
4124 (description "@code{pycares} is a Python module which provides an
4125 interface to @code{c-ares}, a C library that performs DNS requests and
4126 name resolutions asynchronously.")
4127 (license license:expat)))
4129 (define-public python-yarl
4131 (name "python-yarl")
4136 (uri (pypi-uri "yarl" version))
4139 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
4140 (build-system python-build-system)
4142 `(("python-pytest" ,python-pytest)
4143 ("python-pytest-runner" ,python-pytest-runner)))
4145 `(("python-idna" ,python-idna)
4146 ("python-multidict" ,python-multidict)))
4147 (home-page "https://github.com/aio-libs/yarl/")
4148 (synopsis "Yet another URL library")
4149 (description "@code{yarl} module provides handy @code{URL} class
4150 for URL parsing and changing.")
4151 (license license:asl2.0)))
4153 (define-public python-google-api-client
4155 (name "python-google-api-client")
4160 (uri (pypi-uri "google-api-python-client" version))
4163 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
4164 (build-system python-build-system)
4166 '(#:tests? #f)) ; tests require internet access
4168 `(("python-httplib2" ,python-httplib2)
4169 ("python-six" ,python-six)
4170 ("python-oauth2client" ,python-oauth2client)
4171 ("python-uritemplate" ,python-uritemplate)))
4172 (home-page "https://github.com/google/google-api-python-client")
4173 (synopsis "Core Python library for accessing Google APIs")
4174 (description "Python client library for Google's discovery based APIs")
4175 (license license:asl2.0)))
4177 (define-public python2-google-api-client
4178 (package-with-python2 python-google-api-client))
4180 (define-public python-hawkauthlib
4182 (name "python-hawkauthlib")
4187 (uri (pypi-uri "hawkauthlib" version))
4190 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
4191 (build-system python-build-system)
4193 `(("python-requests" ,python-requests)
4194 ("python-webob" ,python-webob)))
4195 (home-page "https://github.com/mozilla-services/hawkauthlib")
4196 (synopsis "Hawk Access Authentication protocol")
4198 "This is a low-level Python library for implementing Hawk Access Authentication,
4199 a simple HTTP request-signing scheme.")
4200 (license license:mpl2.0)))
4202 (define-public python-pybrowserid
4204 (name "python-pybrowserid")
4209 (uri (pypi-uri "PyBrowserID" version))
4212 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
4213 (build-system python-build-system)
4215 `(("python-requests" ,python-requests)))
4217 `(("python-mock" ,python-mock)))
4218 (home-page "https://github.com/mozilla/PyBrowserID")
4219 (synopsis "Python library for the BrowserID protocol")
4221 "This is a Python client library for the BrowserID protocol that
4222 underlies Mozilla Persona.")
4223 (license license:mpl2.0)))
4225 (define-public python-pyfxa
4227 (name "python-pyfxa")
4232 (uri (pypi-uri "PyFxA" version))
4235 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
4236 (build-system python-build-system)
4237 (arguments '(#:tests? #f)) ; 17 tests require network access
4239 `(("python-cryptography" ,python-cryptography)
4240 ("python-hawkauthlib" ,python-hawkauthlib)
4241 ("python-pybrowserid" ,python-pybrowserid)
4242 ("python-requests" ,python-requests)
4243 ("python-six" ,python-six)))
4245 `(("python-grequests" ,python-grequests)
4246 ("python-mock" ,python-mock)
4247 ("python-responses" ,python-responses)
4248 ("python-unittest2" ,python-unittest2)))
4249 (home-page "https://github.com/mozilla/PyFxA")
4250 (synopsis "Firefox Accounts client library for Python")
4252 "This is a Python library for interacting with the Firefox Accounts
4254 (license license:mpl2.0)))
4256 (define-public python-hyperlink
4258 (name "python-hyperlink")
4263 (uri (pypi-uri "hyperlink" version))
4266 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
4267 (build-system python-build-system)
4269 `(("python-idna" ,python-idna)))
4270 (home-page "https://github.com/python-hyper/hyperlink")
4271 (synopsis "Python module to create immutable URLs according to spec")
4272 (description "This package provides a Python module to create immutable, and
4273 correct URLs for Python according to RFCs 3986 and 3987.")
4274 (license license:expat)))
4276 (define-public python-treq
4278 (name "python-treq")
4283 (uri (pypi-uri "treq" version))
4286 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
4287 (build-system python-build-system)
4289 `(("python-attrs" ,python-attrs)
4290 ("python-idna" ,python-idna)
4291 ("python-incremental" ,python-incremental)
4292 ("python-requests" ,python-requests)
4293 ("python-service-identity" ,python-service-identity)
4294 ("python-twisted" ,python-twisted)))
4295 (home-page "https://github.com/twisted/treq")
4296 (synopsis "Requests-like API built on top of twisted.web's Agent")
4297 (description "This package provides an HTTP library inspired by
4298 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
4299 high level API for making HTTP requests when using Twisted.")
4300 (license license:expat)))
4302 (define-public python-autobahn
4304 (name "python-autobahn")
4309 (uri (pypi-uri "autobahn" version))
4312 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
4313 (build-system python-build-system)
4315 ;; The tests fail to run:
4316 ;; https://github.com/crossbario/autobahn-python/issues/1117
4319 `(("python-cffi" ,python-cffi)
4320 ("python-twisted" ,python-twisted)
4321 ("python-txaio" ,python-txaio)))
4322 (home-page "https://crossbar.io/autobahn/")
4323 (synopsis "Web Application Messaging Protocol implementation")
4324 (description "This package provides an implementation of the @dfn{Web Application
4325 Messaging Protocol} (WAMP). WAMP connects components in distributed
4326 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
4327 Calls (rRPC). It is ideal for distributed, multi-client and server applications
4328 such as IoT applications or multi-user database-driven business applications.")
4329 (license license:expat)))
4331 (define-public python-ws4py
4333 (name "python-ws4py")
4338 (uri (pypi-uri "ws4py" version))
4341 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
4342 (build-system python-build-system)
4345 (modify-phases %standard-phases
4346 (add-after 'unpack 'python3.7-compatibility
4348 (substitute* '("ws4py/server/tulipserver.py"
4349 "ws4py/async_websocket.py")
4351 "asyncio.ensure_future"))
4353 ;; We don't have a package for cherrypy.
4354 (add-after 'unpack 'remove-cherrypy-support
4356 (delete-file "ws4py/server/cherrypyserver.py")
4359 `(("python-gevent" ,python-gevent)
4360 ("python-tornado" ,python-tornado)))
4361 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
4362 (synopsis "WebSocket client and server library")
4364 "This package provides a WebSocket client and server library for
4366 (license license:bsd-3)))
4368 (define-public python-slugify
4370 (name "python-slugify")
4375 (uri (pypi-uri "python-slugify" version))
4377 (base32 "0w22fapghmzk3xdasc4dn7h8sl58l08d1h5zbf72dh80drv1g9b9"))))
4379 `(("python-unidecode" ,python-unidecode)))
4382 (modify-phases %standard-phases
4385 (invoke "python" "test.py"))))))
4386 (build-system python-build-system)
4387 (home-page "https://github.com/un33k/python-slugify")
4388 (synopsis "Python Slugify application that handles Unicode")
4389 (description "This package provides a @command{slufigy} command and
4390 library to create slugs from unicode strings while keeping it DRY.")
4391 (license license:expat)))
4393 (define-public python-branca
4395 (name "python-branca")
4400 (uri (pypi-uri "branca" version))
4403 "0pmigd521j2228xf8x34vbx0niwvms7xl7za0lymywj0vydjqxiy"))))
4404 (build-system python-build-system)
4406 `(("python-jinja2" ,python-jinja2)
4407 ("python-six" ,python-six)))
4409 `(("python-pytest" ,python-pytest)))
4410 (home-page "https://github.com/python-visualization/branca")
4411 (synopsis "Generate complex HTML+JS pages with Python")
4412 (description "Generate complex HTML+JS pages with Python")
4413 (license license:expat)))
4415 (define-public python-tinycss2
4417 (name "python-tinycss2")
4422 (uri (pypi-uri "tinycss2" version))
4424 (base32 "12p16k8x8ig51gpfcwz3k3kxpxrwwkn41a1avdgvh3nn8hqarp7v"))))
4425 (build-system python-build-system)
4427 ;; Test data is missing from the PyPI archive, and the build system is
4428 ;; based on Flit, which wants an unmaintained and unpackaged
4429 ;; python-pytoml dependency.
4432 `(("python-webencodings" ,python-webencodings)))
4433 (home-page "https://tinycss2.readthedocs.io/")
4434 (synopsis "Low-level CSS parser for Python")
4435 (description "@code{tinycss2} can parse strings, return Python objects
4436 representing tokens and blocks, and generate CSS strings corresponding to
4439 Based on the CSS Syntax Level 3 specification, @code{tinycss2} knows the
4440 grammar of CSS but doesn’t know specific rules, properties or values supported
4441 in various CSS modules.")
4442 (license license:bsd-3)))
4444 (define-public python-cssselect2
4446 (name "python-cssselect2")
4451 (uri (pypi-uri "cssselect2" version))
4453 (base32 "1j2fcr217rsvkipsg6zjq03rl64rxnvb5hqqpx0dv58fhspvkywk"))))
4454 (build-system python-build-system)
4457 (modify-phases %standard-phases
4459 (lambda _ (invoke "pytest"))))))
4461 `(("python-tinycss2" ,python-tinycss2)))
4463 `(("python-pytest-cov" ,python-pytest-cov)
4464 ("python-pytest-flake8" ,python-pytest-flake8)
4465 ("python-pytest-isort" ,python-pytest-isort)
4466 ("python-pytest-runner" ,python-pytest-runner)))
4467 (home-page "https://cssselect2.readthedocs.io/")
4468 (synopsis "CSS selectors for Python ElementTree")
4469 (description "@code{cssselect2} is a straightforward implementation of
4470 CSS3 Selectors for markup documents (HTML, XML, etc.) that can be read by
4471 ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.).
4473 Unlike the Python package @code{cssselect}, it does not translate selectors to
4474 XPath and therefore does not have all the correctness corner cases that are
4475 hard or impossible to fix in cssselect.")
4476 (license license:bsd-3)))
4478 (define-public python-uvloop
4480 (name "python-uvloop")
4485 (uri (pypi-uri "uvloop" version))
4487 (base32 "07j678z9gf41j98w72ysrnb5sa41pl5yxd7ib17lcwfxqz0cjfhj"))))
4488 (build-system python-build-system)
4490 '(#:tests? #f ;FIXME: tests hang and with some errors in the way
4492 (modify-phases %standard-phases
4493 (add-after 'unpack 'preparations
4495 ;; Use packaged libuv.
4496 (substitute* "setup.py" (("self.use_system_libuv = False")
4497 "self.use_system_libuv = True"))
4500 `(("python-aiohttp" ,python-aiohttp)
4501 ("python-cython" ,python-cython)
4502 ("python-flake8" ,python-flake8)
4503 ("python-psutil" ,python-psutil)
4504 ("python-pyopenssl" ,python-pyopenssl)
4505 ("python-twine" ,python-twine)))
4507 `(("libuv" ,libuv)))
4508 (home-page "https://github.com/MagicStack/uvloop")
4509 (synopsis "Fast implementation of asyncio event loop on top of libuv")
4511 "@code{uvloop} is a fast, drop-in replacement of the built-in asyncio
4512 event loop. It is implemented in Cython and uses libuv under the hood.")
4513 (license license:expat)))
4515 (define-public gunicorn
4522 (uri (pypi-uri "gunicorn" version))
4525 "09n6fc019bgrvph1s5h1lwhn2avcsprw6ncd203qhra3i8mvn10r"))))
4526 (outputs '("out" "doc"))
4527 (build-system python-build-system)
4530 (modify-phases %standard-phases
4531 (add-after 'build 'build-doc
4533 (invoke "make" "-C" "docs" "PAPER=a4" "html" "info")
4534 (delete-file "docs/build/texinfo/Makefile")
4535 (delete-file "docs/build/texinfo/Gunicorn.texi")
4539 (setenv "PYTHONPATH"
4540 (string-append ".:" (getenv "PYTHONPATH")))
4542 (add-after 'install 'install-doc
4543 (lambda* (#:key outputs #:allow-other-keys)
4544 (let* ((doc (string-append (assoc-ref outputs "doc")
4545 "/share/doc/" ,name "-" ,version))
4546 (html (string-append doc "/html"))
4547 (info (string-append doc "/info"))
4548 (examples (string-append doc "/examples")))
4552 (copy-recursively "docs/build/html" html)
4553 (copy-recursively "docs/build/texinfo" info)
4554 (copy-recursively "examples" examples)
4555 (for-each (lambda (file)
4556 (copy-file file (string-append doc "/" file)))
4557 '("README.rst" "NOTICE" "LICENSE" "THANKS")))
4560 `(("binutils" ,binutils) ;; for ctypes.util.find_library()
4561 ("python-aiohttp" ,python-aiohttp)
4562 ("python-pytest" ,python-pytest)
4563 ("python-pytest-cov" ,python-pytest-cov)
4564 ("python-sphinx" ,python-sphinx)
4565 ("texinfo" ,texinfo)))
4566 (home-page "https://gunicorn.org/")
4567 (synopsis "Python WSGI HTTP Server for UNIX")
4568 (description "Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP
4569 Server for UNIX. It’s a pre-fork worker model ported from Ruby’s
4570 Unicorn project. The Gunicorn server is broadly compatible with
4571 various web frameworks, simply implemented, light on server resources,
4572 and fairly speedy.")
4573 (license license:expat)))
4575 ;; break cyclic dependency for python-aiohttp, which depends on gunicorn for
4577 (define-public gunicorn-bootstrap
4581 (arguments `(#:tests? #f))
4582 (properties '((hidden? . #t)))
4583 (native-inputs `())))
4585 (define-public python-httptools
4587 (name "python-httptools")
4591 ;; PyPI tarball comes with a vendored http-parser and no tests.
4594 (url "https://github.com/MagicStack/httptools")
4595 (commit (string-append "v" version))))
4596 (file-name (git-file-name name version))
4598 (base32 "0g08128x2ixsiwrzskxc6c8ymgzs39wbzr5mhy0mjk30q9pqqv77"))))
4599 (build-system python-build-system)
4602 (modify-phases %standard-phases
4603 (add-after 'unpack 'preparations
4605 ;; Skip a failing test (AssertionError). Bug report:
4606 ;; https://github.com/MagicStack/httptools/issues/10.
4607 (substitute* "tests/test_parser.py"
4608 ((" def test_parser_response_1")
4610 " @unittest.skip(\"Disabled.\")\n"
4611 " def test_parser_response_1")))
4612 ;; Use packaged http-parser.
4613 (substitute* "setup.py" (("self.use_system_http_parser = False")
4614 "self.use_system_http_parser = True"))
4615 ;; This path is hardcoded. Hardcode our own.
4616 (substitute* "httptools/parser/cparser.pxd"
4617 (("../../vendor/http-parser")
4618 (string-append (assoc-ref %build-inputs "http-parser")
4620 ;; Don't force Cython version.
4621 (substitute* "setup.py" (("Cython==") "Cython>="))
4624 `(("python-cython" ,python-cython)
4625 ("python-pytest" ,python-pytest)))
4627 `(("http-parser" ,http-parser)))
4628 (home-page "https://github.com/MagicStack/httptools")
4629 (synopsis "Collection of framework independent HTTP protocol utils")
4631 "@code{httptools} is a Python binding for the nodejs HTTP parser.")
4632 (license license:expat)))
4634 (define-public python-uvicorn
4636 (name "python-uvicorn")
4640 ;; PyPI tarball has no tests.
4643 (url "https://github.com/encode/uvicorn")
4645 (file-name (git-file-name name version))
4647 (base32 "00iidg5ysp7k00bw3kmkvr8mghnh4jdi0p2ryiarhryf8wz2r3fy"))))
4648 (build-system python-build-system)
4651 (modify-phases %standard-phases
4653 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
4654 (add-installed-pythonpath inputs outputs)
4655 (invoke "pytest" "-vv"))))))
4657 `(("python-black" ,python-black)
4658 ("python-codecov" ,python-codecov)
4659 ("python-flake8" ,python-flake8)
4660 ("python-isort" ,python-isort)
4661 ("python-mypy" ,python-mypy)
4662 ("python-pytest" ,python-pytest)
4663 ("python-pytest-cov" ,python-pytest-cov)
4664 ("python-pytest-mock" ,python-pytest-mock)
4665 ("python-requests" ,python-requests)))
4667 `(("python-click" ,python-click)
4668 ("python-h11" ,python-h11)
4669 ("python-httptools" ,python-httptools)
4670 ("python-pyyaml" ,python-pyyaml)
4671 ("python-uvloop" ,python-uvloop)
4672 ("python-watchgod" ,python-watchgod)
4673 ("python-websockets" ,python-websockets)
4674 ("python-wsproto" ,python-wsproto)))
4675 (home-page "https://github.com/encode/uvicorn")
4676 (synopsis "Fast ASGI server implementation")
4678 "@code{uvicorn} is a fast ASGI server implementation, using @code{uvloop}
4679 and @code{httptools}. It currently supports HTTP/1.1 and WebSockets. Support
4680 for HTTP/2 is planned.")
4681 (license license:bsd-3)))
4683 (define-public python-translation-finder
4685 (name "python-translation-finder")
4690 (uri (pypi-uri "translation-finder" version))
4693 "1pcy9z8gmb8x41gjhw9x0lkr0d2mv5mdxcs2hwg6q8mxs857j589"))))
4694 (build-system python-build-system)
4697 (modify-phases %standard-phases
4698 (add-before 'build 'remove-failing-test
4700 (delete-file "translation_finder/test_api.py")
4703 `(("python-chardet" ,python-chardet)
4704 ("python-pathlib2" ,python-pathlib2)
4705 ("python-ruamel.yaml" ,python-ruamel.yaml)
4706 ("python-six" ,python-six)))
4708 `(("python-codecov" ,python-codecov)
4709 ("python-codacy-coverage" ,python-codacy-coverage)
4710 ("python-pytest-cov" ,python-pytest-cov)
4711 ("python-pytest-runner" ,python-pytest-runner)
4712 ("python-twine" ,python-twine)))
4713 (home-page "https://weblate.org/")
4714 (synopsis "Translation file finder for Weblate")
4715 (description "This package provides a function to find translation file in
4716 the source code of a project. It supports many translation file formats and
4717 is part of the Weblate translation platform.")
4718 (license license:gpl3+)))
4720 (define-public python-gitlab
4722 (name "python-gitlab")
4727 (uri (pypi-uri "python-gitlab" version))
4730 "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5"))))
4731 (build-system python-build-system)
4733 `(("python-requests" ,python-requests)
4734 ("python-six" ,python-six)))
4736 `(("python-httmock" ,python-httmock)
4737 ("python-mock" ,python-mock)))
4739 "https://github.com/python-gitlab/python-gitlab")
4740 (synopsis "Interact with GitLab API")
4741 (description "This package provides an extended library for interacting
4742 with GitLab instances through their API.")
4743 (license license:lgpl3+)))
4745 (define-public python-path-and-address
4747 (name "python-path-and-address")
4751 ;; The source distributed on PyPI doesn't include tests.
4754 (url "https://github.com/joeyespo/path-and-address")
4755 (commit (string-append "v" version))))
4756 (file-name (git-file-name name version))
4759 "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6"))))
4760 (build-system python-build-system)
4763 (modify-phases %standard-phases
4765 (lambda* (#:key inputs outputs #:allow-other-keys)
4766 (add-installed-pythonpath inputs outputs)
4767 (invoke "py.test"))))))
4769 `(("python-pytest" ,python-pytest)))
4770 (home-page "https://github.com/joeyespo/path-and-address")
4771 (synopsis "Functions for command-line server tools used by humans")
4772 (description "Path-and-address resolves ambiguities of command-line
4773 interfaces, inferring which argument is the path, and which is the address.")
4774 (license license:expat)))
4777 ;; No release by upstream for quite some time, some bugs fixed since. See:
4778 ;; https://github.com/joeyespo/grip/issues/304
4779 (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3"))
4782 (version (git-version "4.5.2" "1" commit))
4787 (url "https://github.com/joeyespo/grip")
4789 (file-name (git-file-name name version))
4792 "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w"))))
4793 (build-system python-build-system)
4795 `(("python-docopt" ,python-docopt)
4796 ("python-flask" ,python-flask)
4797 ("python-markdown" ,python-markdown)
4798 ("python-path-and-address" ,python-path-and-address)
4799 ("python-pygments" ,python-pygments)
4800 ("python-requests" ,python-requests)))
4802 `(("python-pytest" ,python-pytest)
4803 ("python-responses" ,python-responses)))
4806 (modify-phases %standard-phases
4808 (lambda* (#:key inputs outputs #:allow-other-keys)
4809 (add-installed-pythonpath inputs outputs)
4810 (setenv "PATH" (string-append
4812 (assoc-ref %outputs "out") "/bin"))
4813 (invoke "py.test" "-m" "not assumption"))))))
4814 (home-page "https://github.com/joeyespo/grip")
4815 (synopsis "Preview Markdown files using the GitHub API")
4816 (description "Grip is a command-line server application written in Python
4817 that uses the GitHub Markdown API to render a local Markdown file. The styles
4818 and rendering come directly from GitHub, so you'll know exactly how it will
4819 appear. Changes you make to the file will be instantly reflected in the browser
4820 without requiring a page refresh.")
4821 (license license:expat))))
4823 (define-public python-port-for
4825 (name "python-port-for")
4830 (uri (pypi-uri "port-for" version))
4833 "1pncxlj25ggw99r0ijfbkq70gd7cbhqdx5ivsxy4jdp0z14cpda7"))))
4834 (build-system python-build-system)
4837 (modify-phases %standard-phases
4838 (add-after 'unpack 'use-urllib3
4840 (substitute* "port_for/_download_ranges.py"
4841 (("urllib2") "urllib3"))
4844 `(("python-urllib3" ,python-urllib3)))
4846 `(("python-mock" ,python-mock)))
4847 (home-page "https://github.com/kmike/port-for/")
4848 (synopsis "TCP localhost port finder and association manager")
4850 "This package provides a utility that helps with local TCP ports
4851 management. It can find an unused TCP localhost port and remember the
4853 (license license:expat)))
4855 (define-public python-livereload
4857 (name "python-livereload")
4862 (uri (pypi-uri "livereload" version))
4865 "0rhggz185bxc3zjnfpmhcvibyzi86i624za1lfh7x7ajsxw4y9c9"))))
4866 (build-system python-build-system)
4868 `(("python-six" ,python-six)
4869 ("python-tornado" ,python-tornado)))
4870 (home-page "https://github.com/lepture/python-livereload")
4871 (synopsis "Python LiveReload")
4873 "Python LiveReload provides a command line utility, @command{livereload},
4874 for starting a web server in a directory. It can trigger arbitrary commands
4875 and serve updated contents upon changes to the directory.")
4876 (license license:bsd-3)))
4878 (define-public python-vf-1
4880 (name "python-vf-1")
4885 (uri (pypi-uri "VF-1" version))
4888 "0xlqsaxsiayk1sd07kpz8abbcnab582y29a1y4882fq6j4gma5xi"))))
4889 (build-system python-build-system)
4890 (home-page "https://github.com/solderpunk/VF-1")
4891 (synopsis "Command line gopher client")
4892 (description "@code{VF-1} is a command line gopher client with
4893 @acronym{TLS, Transport Layer Security} support.")
4894 (license license:bsd-2)))
4896 (define-public python-httpcore
4898 (name "python-httpcore")
4902 ;; PyPI tarball does not contain tests.
4905 (url "https://github.com/encode/httpcore")
4907 (file-name (git-file-name name version))
4909 (base32 "1nrwwfdqjfc2a1k3j41cdwkprwvplf95fwmypdl2aq2qgp3209q0"))))
4910 (build-system python-build-system)
4912 `(#:tests? #f ; Tests hang at 98%
4914 (modify-phases %standard-phases
4916 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
4918 (add-installed-pythonpath inputs outputs)
4919 (invoke "pytest" "-vv" "--cov=httpcore"
4920 "--cov=tests" "tests"))
4923 `(("python-autoflake" ,python-autoflake)
4924 ("python-flake8" ,python-flake8)
4925 ("python-flake8-bugbear" ,python-flake8-bugbear)
4926 ("python-flake8-pie" ,python-flake8-pie)
4927 ("python-isort" ,python-isort)
4928 ("python-mypy" ,python-mypy)
4929 ("python-pytest" ,python-pytest)
4930 ("python-pytest-asyncio" ,python-pytest-asyncio)
4931 ("python-pytest-cov" ,python-pytest-cov)
4932 ("python-pytest-trio" ,python-pytest-trio)
4933 ("python-uvicorn" ,python-uvicorn)
4934 ("python-trustme" ,python-trustme)))
4936 `(("python-h11" ,python-h11)
4937 ("python-h2" ,python-h2)
4938 ("python-sniffio" ,python-sniffio)
4939 ("python-trio" ,python-trio)
4940 ("python-trio-typing" ,python-trio-typing)))
4941 (home-page "https://github.com/encode/httpcore")
4942 (synopsis "Minimal, low-level HTTP client")
4944 "HTTP Core provides a minimal and low-level HTTP client, which does one
4945 thing only: send HTTP requests.
4947 Some things HTTP Core does do:
4950 @item Sending HTTP requests.
4951 @item Provides both sync and async interfaces.
4952 @item Supports HTTP/1.1 and HTTP/2.
4953 @item Async backend support for asyncio and trio.
4954 @item Automatic connection pooling.
4955 @item HTTP(S) proxy support.
4957 (license license:bsd-3)))
4959 (define-public python-httpx
4961 (name "python-httpx")
4965 ;; PyPI tarball does not contain tests.
4968 (url "https://github.com/encode/httpx")
4970 (file-name (git-file-name name version))
4972 (base32 "00gmq45fckcqkj910bvd7pyqz1mvgsdvz4s0k7dzbnc5czzq1f4a"))))
4973 (build-system python-build-system)
4976 (modify-phases %standard-phases
4979 (invoke "pytest" "-vv" "-k"
4980 ;; These tests try to open an outgoing connection.
4982 "not test_connect_timeout"
4983 " and not test_that_send_cause_async_client_to_be_not_"
4985 " and not test_that_async_client_caused_warning_when_"
4987 " and not test_that_send_cause_client_to_be_not_closed"
4988 " and not test_async_proxy_close"
4989 " and not test_sync_proxy_close")))))))
4991 `(("python-autoflake" ,python-autoflake)
4992 ("python-black" ,python-black)
4993 ("python-cryptography" ,python-cryptography)
4994 ("python-flake8" ,python-flake8)
4995 ("python-flake8-bugbear" ,python-flake8-bugbear)
4996 ("python-flake8-pie" ,python-flake8-pie)
4997 ("python-isort" ,python-isort)
4998 ("python-mypy" ,python-mypy)
4999 ("python-pytest" ,python-pytest)
5000 ("python-pytest-asyncio" ,python-pytest-asyncio)
5001 ("python-pytest-trio" ,python-pytest-trio)
5002 ("python-pytest-cov" ,python-pytest-cov)
5003 ("python-trio" ,python-trio)
5004 ("python-trio-typing" ,python-trio-typing)
5005 ("python-trustme" ,python-trustme)
5006 ("python-uvicorn" ,python-uvicorn)))
5008 `(("python-brotli" ,python-brotli)
5009 ("python-certifi" ,python-certifi)
5010 ("python-chardet" ,python-chardet)
5011 ("python-httpcore" ,python-httpcore)
5012 ("python-idna" ,python-idna)
5013 ("python-rfc3986" ,python-rfc3986)
5014 ("python-sniffio" ,python-sniffio)))
5015 (home-page "https://www.python-httpx.org/")
5016 (synopsis "HTTP client for Python")
5018 "HTTPX is a fully featured HTTP client for Python 3, which provides sync
5019 and async APIs, and support for both HTTP/1.1 and HTTP/2.
5021 HTTPX builds on the well-established usability of requests, and gives you:
5024 @item A broadly requests-compatible API.
5025 @item Standard synchronous interface, but with async support if you need it.
5026 @item HTTP/1.1 and HTTP/2 support.
5027 @item Ability to make requests directly to WSGI applications or ASGI applications.
5028 @item Strict timeouts everywhere.
5029 @item Fully type annotated.
5030 @item 99% test coverage.
5033 Plus all the standard features of requests:
5036 @item International Domains and URLs
5037 @item Keep-Alive & Connection Pooling
5038 @item Sessions with Cookie Persistence
5039 @item Browser-style SSL Verification
5040 @item Basic/Digest Authentication
5041 @item Elegant Key/Value Cookies
5042 @item Automatic Decompression
5043 @item Automatic Content Decoding
5044 @item Unicode Response Bodies
5045 @item Multipart File Uploads
5046 @item HTTP(S) Proxy Support
5047 @item Connection Timeouts
5048 @item Streaming Downloads
5049 @item .netrc Support
5050 @item Chunked Requests
5052 (license license:bsd-3)))
5054 (define-public python-websockets
5056 (name "python-websockets")
5061 (uri (pypi-uri "websockets" version))
5064 "03s3ml6sbki24aajllf8aily0xzrn929zxi84p50zkkbikdd4raw"))))
5065 (build-system python-build-system)
5066 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
5067 (home-page "https://github.com/aaugustin/websockets")
5069 "Python implementation of the WebSocket Protocol (RFC 6455 & 7692)")
5071 "@code{websockets} is a library for building WebSocket servers and clients
5072 in Python with a focus on correctness and simplicity.
5074 Built on top of @code{asyncio}, Python's standard asynchronous I/O framework,
5075 it provides an elegant coroutine-based API.")
5076 (license license:bsd-3)))
5078 (define-public python-selenium
5080 (name "python-selenium")
5085 (uri (pypi-uri "selenium" version))
5088 "039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy"))))
5089 (build-system python-build-system)
5091 `(("python-urllib3" ,python-urllib3)))
5093 "https://github.com/SeleniumHQ/selenium/")
5094 (synopsis "Python bindings for Selenium")
5095 (description "Selenium enables web browser automation.
5096 Selenium specifically provides infrastructure for the W3C WebDriver specification
5097 — a platform and language-neutral coding interface compatible with all
5098 major web browsers.")
5099 (license license:asl2.0)))
5101 (define-public python-rapidjson
5103 (name "python-rapidjson")
5108 (uri (pypi-uri "python-rapidjson" version))
5111 "18cl2dhx3gds5vg52jxmh9wjlbiy8dx06c3n482rfpdi9dzbv05d"))
5112 (modules '((guix build utils)))
5114 '(begin (delete-file-recursively "rapidjson") #t))))
5115 (build-system python-build-system)
5118 (list (string-append "--rj-include-dir="
5119 (assoc-ref %build-inputs "rapidjson")
5120 "/include/rapidjson"))
5122 (modify-phases %standard-phases
5124 (lambda* (#:key inputs #:allow-other-keys)
5125 (invoke "python" "setup.py" "build"
5126 (string-append "--rj-include-dir="
5127 (assoc-ref %build-inputs "rapidjson")
5128 "/include/rapidjson"))))
5130 (lambda* (#:key inputs outputs #:allow-other-keys)
5131 (add-installed-pythonpath inputs outputs)
5132 ;; Some tests are broken.
5133 (delete-file "tests/test_base_types.py")
5134 (delete-file "tests/test_validator.py")
5135 (invoke "python" "-m" "pytest" "tests"))))))
5137 `(("rapidjson" ,rapidjson)
5138 ("python-pytest" ,python-pytest)
5139 ("python-pytz" ,python-pytz)))
5140 (home-page "https://github.com/python-rapidjson/python-rapidjson")
5141 (synopsis "Python wrapper around rapidjson")
5142 (description "This package provides a python wrapper around rapidjson.")
5143 (license license:expat)))
5145 (define-public python-venusian
5147 (name "python-venusian")
5152 (uri (pypi-uri "venusian" version))
5154 (base32 "0f7f67dkgxxcjfhpdd5frb9pszkf04lyzzpn5069q0xi89r2p17n"))))
5155 (build-system python-build-system)
5157 `(("python-pytest" ,python-pytest)
5158 ("python-runner" ,python-pytest-runner)
5159 ("python-pytest-cov" ,python-pytest-cov)))
5160 (arguments '(#:test-target "pytest"))
5161 (home-page "https://docs.pylonsproject.org/projects/venusian")
5162 (synopsis "Library for deferring decorator actions")
5164 "Venusian is a library which allows framework authors to defer decorator
5165 actions. Instead of taking actions when a function (or class) decorator is
5166 executed at import time, you can defer the action usually taken by the
5167 decorator until a separate scan phase.")
5168 (license license:repoze)))
5170 (define-public python-zope-deprecation
5172 (name "python-zope-deprecation")
5176 (uri (pypi-uri "zope.deprecation" version))
5179 "1pz2cv7gv9y1r3m0bdv7ks1alagmrn5msm5spwdzkb2by0w36i8d"))))
5180 (build-system python-build-system)
5182 (propagated-inputs `())
5183 (home-page "https://zopedeprecation.readthedocs.io/")
5184 (synopsis "Function for marking deprecations")
5185 (description "The @code{zope.deprecation} module provides a function for
5186 marking modules, classes, functions, methods and properties as deprecated,
5187 displaying warnings when usaged in application code.")
5188 (license license:zpl2.1)))
5190 (define-public python-translationstring
5192 (name "python-translationstring")
5196 (uri (pypi-uri "translationstring" version))
5199 "0bdpcnd9pv0131dl08h4zbcwmgc45lyvq3pa224xwan5b3x4rr2f"))))
5200 (build-system python-build-system)
5201 (home-page "http://docs.pylonsproject.org/projects/translationstring")
5202 (synopsis "Internationalization tooling for the Pylons project")
5203 (description "This package provides a library used by various Pylons
5204 project packages for internationalization (i18n) duties related to
5206 (license license:repoze)))
5208 (define-public python-plaster
5210 (name "python-plaster")
5214 (uri (pypi-uri "plaster" version))
5217 "1hy8k0nv2mxq94y5aysk6hjk9ryb4bsd13g83m60hcyzxz3wflc3"))))
5218 (build-system python-build-system)
5220 `(("python-pytest" ,python-pytest)))
5221 (home-page "https://docs.pylonsproject.org/projects/plaster/en/latest/")
5222 (synopsis "Configuration loader for multiple config file formats")
5224 "Plaster is a loader interface around multiple config file formats. It
5225 exists to define a common API for applications to use when they wish to load
5226 configuration. The library itself does not aim to handle anything except a
5227 basic API that applications may use to find and load configuration settings.
5228 Any specific constraints should be implemented in a pluggable loader which can
5229 be registered via an entrypoint.")
5230 (license license:repoze)))
5232 (define-public python-plaster-pastedeploy
5234 (name "python-plaster-pastedeploy")
5238 (uri (pypi-uri "plaster_pastedeploy" version))
5241 "1zg7gcsvc1kzay1ry5p699rg2qavfsxqwl17mqxzr0gzw6j9679r"))))
5242 (build-system python-build-system)
5244 `(("python-pytest" ,python-pytest)))
5246 `(("python-plaster" ,python-plaster)
5247 ("python-pastedeploy" ,python-pastedeploy)))
5248 (home-page "https://github.com/Pylons/plaster_pastedeploy")
5249 (synopsis "Plugin for python-plaster adding PasteDeploy syntax")
5251 "This plugin for @code{python-plaster} adds support for PasteDeploy
5252 syntax, it provides a plaster @code{Loader} object that can parse ini files
5253 according to the standard set by PasteDeploy ")
5254 (license license:expat)))
5256 (define-public python-hupper
5258 (name "python-hupper")
5262 (uri (pypi-uri "hupper" version))
5265 "0am0p6g5cz6xmcaf04xq8q6dzdd9qz0phj6gcmpsckf2mcyza61q"))))
5266 (build-system python-build-system)
5267 (arguments '(#:test-target "pytest"))
5269 `(("python-pytest" ,python-pytest)
5270 ("python-pytest-runner" ,python-pytest-runner)
5271 ("python-watchdog" ,python-watchdog)
5272 ("python-mock" ,python-mock)
5273 ("python-pytest-cov" ,python-pytest-cov)))
5275 `(("python-pytz" ,python-pytz)))
5276 (home-page "https://readthedocs.org/projects/hupper")
5277 (synopsis "Integrated process monitor tracking changes to imported Python files")
5279 "Hupper is an integrated process monitor that will track changes to any
5280 imported Python files in sys.modules as well as custom paths. When files are
5281 changed the process is restarted.")
5282 (license license:expat)))
5284 (define-public python-pyramid
5286 (name "python-pyramid")
5290 (uri (pypi-uri "pyramid" version))
5293 "0rkxs1ajycg2zh1c94xlmls56mx5m161sn8112skj0amza6cn36q"))))
5294 (build-system python-build-system)
5296 `(("python-hupper" ,python-hupper)
5297 ("python-plaster-pastedeploy" ,python-plaster-pastedeploy)
5298 ("python-translationstring" ,python-translationstring)
5299 ("python-venusian" ,python-venusian)
5300 ("python-webob" ,python-webob)
5301 ("python-zope-deprecation" ,python-zope-deprecation)
5302 ("python-zope-interface" ,python-zope-interface)
5303 ("python-webtest" ,python-webtest)
5304 ("python-zope-component" ,python-zope-component)
5305 ("python-plaster" ,python-plaster)))
5306 (home-page "https://trypyramid.com/")
5307 (synopsis "Python web-framework suitable for small and large sites")
5309 "Pyramid makes it easy to write web applications. From minimal
5310 request/response web apps to larger, grown applications.")
5311 (license license:repoze)))
5313 (define-public python-random-user-agent
5315 (name "python-random-user-agent")
5320 (uri (pypi-uri "random_user_agent" version))
5323 "04nhzdh2ki7ybhjrmghxci6hcm6i03vvin2q2ynj87fbr1pa534g"))))
5324 (build-system python-build-system)
5325 (home-page "https://github.com/Luqman-Ud-Din/random_user_agent")
5326 (synopsis "List of user agents")
5328 "This package provides a list of user agents, from a collection of more
5329 than 326,000 known user-agents. Users can pick a random one, or select one
5331 (license license:expat)))
5333 (define-public python-flask-restx
5335 (name "python-flask-restx")
5338 ;; We fetch from the Git repo because there are no tests in the PyPI
5343 (url "https://github.com/python-restx/flask-restx")
5345 (file-name (git-file-name name version))
5347 (base32 "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7"))))
5348 (build-system python-build-system)
5350 `(("python-aniso8601" ,python-aniso8601)
5351 ("python-flask" ,python-flask)
5352 ("python-jsonschema" ,python-jsonschema)
5353 ("python-pytz" ,python-pytz)))
5355 `(("python-blinker" ,python-blinker)
5356 ("python-faker" ,python-faker)
5357 ("python-pytest" ,python-pytest)
5358 ("python-pytest-benchmark"
5359 ,python-pytest-benchmark)
5360 ("python-pytest-flask" ,python-pytest-flask)
5361 ("python-pytest-mock" ,python-pytest-mock)))
5364 (modify-phases %standard-phases
5367 (invoke "pytest" "--benchmark-skip" "-k"
5368 ;; Those tests need internet access
5369 "not test_check and not test_valid_value_check"))))))
5370 (home-page "https://github.com/python-restx/flask-restx")
5372 "Framework for fast, easy and documented API development with Flask")
5374 "Flask-RESTX is an extension for Flask that adds support for quickly building
5375 REST APIs. Flask-RESTX encourages best practices with minimal setup. If you are familiar
5376 with Flask, Flask-RESTX should be easy to pick up. It provides a coherent collection of
5377 decorators and tools to describe your API and expose its documentation properly using
5379 (license license:bsd-3)))
5381 (define-public python-manuel
5383 (name "python-manuel")
5388 (uri (pypi-uri "manuel" version))
5391 "1bdzay7j70fly5fy6wbdi8fbrxjrrlxnxnw226rwry1c8a351rpy"))))
5392 (build-system python-build-system)
5394 `(("python-six" ,python-six)))
5396 `(("python-zope-testing" ,python-zope-testing)))
5397 (home-page "https://pypi.org/project/manuel/")
5398 (synopsis "Build tested documentation")
5400 "Manuel lets you mix and match traditional doctests with custom test syntax.")
5401 (license license:asl2.0)))
5403 (define-public python-persistent
5405 (name "python-persistent")
5410 (uri (pypi-uri "persistent" version))
5413 "0imm9ji03lhkpcfmhid7x5209ix8g2rlgki9ik1qxks4b8sm8gzq"))))
5414 (build-system python-build-system)
5416 `(("python-cffi" ,python-cffi)
5417 ("python-zope-interface" ,python-zope-interface)))
5419 `(("python-manuel" ,python-manuel)
5420 ("python-zope-testrunner" ,python-zope-testrunner)))
5421 (home-page "https://github.com/zopefoundation/persistent/")
5422 (synopsis "Translucent persistent objects")
5423 (description "This package contains a generic persistence implementation for
5424 Python. It forms the core protocol for making objects interact
5425 \"transparently\" with a database such as the ZODB.")
5426 (license license:zpl2.1)))
5428 (define-public python-btrees
5430 (name "python-btrees")
5435 (uri (pypi-uri "BTrees" version))
5438 "0iiq0g9k1g6qgqq84q9h6639vlvzznk1rgdm0rfcnnqkbkmsbr3w"))))
5439 (build-system python-build-system)
5441 `(("python-persistent" ,python-persistent)
5442 ("python-zope-interface" ,python-zope-interface)))
5444 `(("python-persistent" ,python-persistent)
5445 ("python-transaction" ,python-transaction)
5446 ("python-zope-testrunner" ,python-zope-testrunner)))
5447 (home-page "https://github.com/zopefoundation/BTrees")
5448 (synopsis "Scalable persistent object containers")
5450 "This package contains a set of persistent object containers built around a
5451 modified BTree data structure. The trees are optimized for use inside ZODB's
5452 \"optimistic concurrency\" paradigm, and include explicit resolution of
5453 conflicts detected by that mechanism.")
5454 (license license:zpl2.1)))
5456 (define-public python-transaction
5458 (name "python-transaction")
5463 (uri (pypi-uri "transaction" version))
5466 "0bdaks31bgfh78wnj3sij24bfysmqk25crsis6amz8kzrc0d82iv"))))
5467 (build-system python-build-system)
5469 `(("python-zope-interface" ,python-zope-interface)))
5471 `(("python-coverage" ,python-coverage)
5472 ("python-mock" ,python-mock)
5473 ("python-nose" ,python-nose)))
5474 (home-page "https://github.com/zopefoundation/transaction")
5475 (synopsis "Transaction management for Python")
5476 (description "This package contains a generic transaction implementation
5477 for Python. It is mainly used by the ZODB.")
5478 (license license:zpl2.1)))
5480 (define-public python-robot-detection
5482 (name "python-robot-detection")
5487 (uri (pypi-uri "robot-detection" version))
5490 "1xd2jm3yn31bnk1kqzggils2rxj26ylxsfz3ap7bhr3ilhnbg3rx"))))
5491 (build-system python-build-system)
5492 (arguments '(#:tests? #f)) ; Tests not shipped in pypi release.
5493 (propagated-inputs `(("python-six" ,python-six)))
5494 (home-page "https://github.com/rory/robot-detection")
5495 (synopsis "Detect web crawlers")
5497 "@code{robot_detection} is a python module to detect if a given HTTP User
5498 Agent is a web crawler. It uses the list of registered robots from
5499 @url{http://www.robotstxt.org}.")
5500 (license license:gpl3+)))
5502 (define-public python-pysolr
5504 (name "python-pysolr")
5509 (uri (pypi-uri "pysolr" version))
5512 "1rj5jmscvxjwcmlfi6hmkj44l4x6n3ln5p7d8d18j566hzmmzw3f"))))
5513 (build-system python-build-system)
5515 '(#:tests? #f)) ; Tests require network access.
5517 `(("python-requests" ,python-requests)))
5519 `(("python-setuptools-scm" ,python-setuptools-scm)))
5520 (home-page "https://github.com/django-haystack/pysolr/")
5521 (synopsis "Lightweight python wrapper for Apache Solr")
5523 "This module provides an interface that queries the Apache Solr server
5524 using a pure Python implementation.")
5525 (license license:bsd-3)))
5527 (define-public python-http-ece
5529 (name "python-http-ece")
5535 (url "https://github.com/web-push-libs/encrypted-content-encoding")
5536 (commit (string-append "v" version))))
5537 (file-name (git-file-name name version))
5540 "0bp4cc0xc123i72h80ax3qz3ixfwx3j7pw343kc7i6kdvfi8klx7"))))
5541 (build-system python-build-system)
5544 (modify-phases %standard-phases
5545 (add-after 'unpack 'change-directory
5546 (lambda _ (chdir "python") #t)))))
5548 `(("python-cryptography" ,python-cryptography)))
5550 `(("python-coverage" ,python-coverage)
5551 ("python-flake8" ,python-flake8)
5552 ("python-mock" ,python-mock)
5553 ("python-nose" ,python-nose)))
5554 (home-page "https://github.com/web-push-libs/encrypted-content-encoding")
5555 (synopsis "Encrypted Content Encoding for HTTP")
5557 "This package provices a simple implementation of Encrypted Content
5558 Encoding for HTTP.")
5559 (license license:expat)))
5561 (define-public python-cloudscraper
5563 (name "python-cloudscraper")
5568 (uri (pypi-uri "cloudscraper" version))
5570 (base32 "0qjxzb0z5bprvmdhx42ayqhlhi2h49d9dwc0vvycj817s71f2sxv"))
5571 (modules '((guix build utils)))
5573 '(with-directory-excursion "cloudscraper"
5574 (for-each delete-file
5575 '("captcha/2captcha.py"
5577 "captcha/anticaptcha.py"
5578 "captcha/deathbycaptcha.py"))
5579 (substitute* "__init__.py"
5580 ;; Perhaps it's a joke, but don't promote proprietary software.
5581 (("([Th]is feature is not available) in the .*'" _ prefix)
5582 (string-append prefix ".'")))
5584 (build-system python-build-system)
5587 (modify-phases %standard-phases
5588 ;; XXX: Dependencies, that have not yet been packaged
5589 ;; and cause an import error when included.
5590 (add-after 'unpack 'drop-unsupported-sources
5592 (with-directory-excursion "cloudscraper"
5593 (for-each delete-file
5594 '("interpreters/js2py.py"
5595 "interpreters/v8.py")))
5598 `(("python-requests" ,python-requests)
5599 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
5600 ("python-pyparsing" ,python-pyparsing-2.4.7)))
5602 `(("python-pytest" ,python-pytest)))
5603 (home-page "https://github.com/venomous/cloudscraper")
5604 (synopsis "Cloudflare anti-bot bypass")
5606 "This module acts as a webbrowser solving Cloudflare's Javascript
5608 (license license:expat)))
5610 (define-public python-imap-tools
5612 (name "python-imap-tools")
5617 (uri (pypi-uri "imap_tools" version))
5620 "0x122jwpc74wwyw2rsv2fvh6p12y31019ndfr9717jzjkj2d3lhb"))))
5621 (build-system python-build-system)
5622 (arguments '(#:tests? #f)) ; tests require internet access
5623 (home-page "https://github.com/ikvk/imap_tools")
5624 (synopsis "Work with email and mailbox by IMAP")
5626 "This Python library provides tools to deal with email and mailboxes
5630 @item Parsed email message attributes
5631 @item Query builder for searching emails
5632 @item Work with emails in folders (copy, delete, flag, move, seen)
5633 @item Work with mailbox folders (list, set, get, create, exists, rename, delete, status)
5635 (license license:asl2.0)))
5637 (define-public python-hstspreload
5639 (name "python-hstspreload")
5640 (version "2020.10.20")
5644 (uri (pypi-uri "hstspreload" version))
5647 "1qah80p2xlib1rhivvdj9v5y3girxrj7dwp1mnh8mwaj5wy32y8a"))))
5648 (build-system python-build-system)
5650 "https://github.com/sethmlarson/hstspreload")
5652 "Chromium HSTS Preload list as a Python package")
5654 "@code{python-hstspreload} contains Chromium HSTS Preload list
5655 as a Python package.")
5656 (license license:bsd-3)))
5658 (define-public python-sanic
5660 (name "python-sanic")
5665 (uri (pypi-uri "sanic" version))
5668 "06p0lsxqbfbka2yaqlpp0bg5pf7ma44zi6kq7qbb6hhry48dp1w6"))))
5669 (build-system python-build-system)
5672 (modify-phases %standard-phases
5673 (add-after 'unpack 'use-recent-pytest
5674 ;; Allow using recent dependencies.
5675 (lambda* (#:key inputs #:allow-other-keys)
5676 (substitute* "setup.py"
5677 (("httpcore==0.3.0") "httpcore")
5678 (("pytest==5.2.1") "pytest")
5679 (("multidict==5.0.0") "multidict")
5680 (("httpx==0\\.15\\.4") "httpx"))
5683 (lambda* (#:key inputs outputs #:allow-other-keys)
5684 (add-installed-pythonpath inputs outputs)
5685 (invoke "pytest" "-vv" "./tests" "-k"
5686 "not test_zero_downtime and not test_gunicorn_worker"))))))
5688 `(("python-aiofiles" ,python-aiofiles)
5689 ("python-httptools" ,python-httptools)
5690 ("python-httpx" ,python-httpx)
5691 ("python-multidict" ,python-multidict)
5692 ("python-ujson" ,python-ujson)
5693 ("python-uvloop" ,python-uvloop)
5694 ("python-websockets" ,python-websockets)))
5696 `(("gunicorn" ,gunicorn)
5697 ("python-beautifulsoup4" ,python-beautifulsoup4)
5698 ("python-hstspreload" ,python-hstspreload)
5699 ("python-httpcore" ,python-httpcore)
5700 ("python-pytest" ,python-pytest)
5701 ("python-pytest-cov" ,python-pytest-cov)
5702 ("python-pytest-benchmark" ,python-pytest-benchmark)
5703 ("python-pytest-sanic" ,python-pytest-sanic)
5704 ("python-pytest-sugar" ,python-pytest-sugar)
5705 ("python-urllib3" ,python-urllib3)
5706 ("python-uvicorn" ,python-uvicorn)))
5708 "https://github.com/huge-success/sanic/")
5710 "Async Python 3.6+ web server/framework")
5712 "Sanic is a Python 3.6+ web server and web framework
5713 that's written to go fast. It allows the usage of the
5714 @code{async/await} syntax added in Python 3.5, which makes
5715 your code non-blocking and speedy.")
5716 (license license:expat)))
5718 (define-public python-socks
5720 (name "python-socks")
5725 (uri (pypi-uri "python-socks" version))
5728 "06mgv3icsyglv50w3sb71x6cpbskza20pqd93l5xk59x574i6xgs"))))
5729 (build-system python-build-system)
5731 `(#:tests? #f ; tests not included
5733 (modify-phases %standard-phases
5735 (lambda* (#:key tests? #:allow-other-keys)
5737 (invoke "pytest" "tests/" "-s"))
5740 `(("python-async-timeout" ,python-async-timeout)
5741 ("python-curio" ,python-curio)
5742 ("python-trio" ,python-trio)))
5744 `(("python-pytest" ,python-pytest)))
5745 (home-page "https://github.com/romis2012/python-socks")
5747 "Core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality for Python")
5749 "Socks is a library providing core proxy (SOCKS4, SOCKS5, HTTP tunneling)
5751 (license license:asl2.0)))