1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
3 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 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, 2021 Marius Bakke <marius@gnu.org>
8 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2017, 2021 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, 2021 Eric Bavier <bavier@posteo.net>
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–2021 Tobias Geerinckx-Rice <me@tobias.gr>
18 ;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
19 ;;; Copyright © 2015, 2016 Christine Lemmer-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, 2021 Vinicius Monego <monego@posteo.net>
41 ;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
42 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
43 ;;; Copyright © 2021 Ekaitz Zarraga <ekaitz@elenq.tech>
44 ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
45 ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
46 ;;; Copyright © 2021 Pradana Aumars <paumars@courrier.dev>
48 ;;; This file is part of GNU Guix.
50 ;;; GNU Guix is free software; you can redistribute it and/or modify it
51 ;;; under the terms of the GNU General Public License as published by
52 ;;; the Free Software Foundation; either version 3 of the License, or (at
53 ;;; your option) any later version.
55 ;;; GNU Guix is distributed in the hope that it will be useful, but
56 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
57 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
58 ;;; GNU General Public License for more details.
60 ;;; You should have received a copy of the GNU General Public License
61 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
63 (define-module (gnu packages python-web)
64 #:use-module (guix packages)
65 #:use-module (guix download)
66 #:use-module (guix git-download)
67 #:use-module (guix build-system python)
68 #:use-module (guix gexp)
69 #:use-module (guix utils)
70 #:use-module (gnu packages)
71 #:use-module (gnu packages base)
72 #:use-module (gnu packages check)
73 #:use-module (gnu packages compression)
74 #:use-module (gnu packages curl)
75 #:use-module (gnu packages databases)
76 #:use-module (gnu packages django)
77 #:use-module (gnu packages graphviz)
78 #:use-module (gnu packages groff)
79 #:use-module (gnu packages libevent)
80 #:use-module (gnu packages libffi)
81 #:use-module (gnu packages pkg-config)
82 #:use-module (gnu packages python)
83 #:use-module (gnu packages python-build)
84 #:use-module (gnu packages python-check)
85 #:use-module (gnu packages python-compression)
86 #:use-module (gnu packages python-crypto)
87 #:use-module (gnu packages python-science)
88 #:use-module (gnu packages python-xyz)
89 #:use-module (gnu packages serialization)
90 #:use-module (gnu packages sphinx)
91 #:use-module (gnu packages texinfo)
92 #:use-module (gnu packages tls)
93 #:use-module (gnu packages time)
94 #:use-module (gnu packages web)
95 #:use-module (gnu packages xml)
96 #:use-module ((guix licenses) #:prefix license:)
97 #:use-module (srfi srfi-1))
99 (define-public python-prawcore
101 (name "python-prawcore")
106 (uri (pypi-uri "prawcore" version))
108 (base32 "1l9nrn4s03xl8fvkyybdk86bm9cyyk43alkxf9g014a9ynvdk65l"))))
109 (build-system python-build-system)
111 `(("python-betamax" ,python-betamax)
112 ("python-betamax-matchers" ,python-betamax-matchers)
113 ("python-betamax-serializers" ,python-betamax-serializers)
114 ("python-mock" ,python-mock)
115 ("python-pytest" ,python-pytest)
116 ("python-testfixtures" ,python-testfixtures)))
118 `(("python-requests" ,python-requests)))
119 (synopsis "Core component of PRAW")
120 (description "PRAWcore is a low-level communication layer used by PRAW.")
121 (home-page "https://praw.readthedocs.io/en/latest/")
122 (license license:bsd-2)))
124 (define-public python-praw
131 (uri (pypi-uri "praw" version))
133 (base32 "0ll1a0n8xs8gykizdsfrw63jp6bc39ab0pk3yzwcak96fyxh0ij3"))))
134 (build-system python-build-system)
137 (modify-phases %standard-phases
138 (add-after 'unpack 'disable-failing-tests
140 (with-directory-excursion "tests"
141 ;; Require networking.
142 (for-each delete-file-recursively
143 '("integration/models" "unit/models"))
144 ;; https://github.com/praw-dev/praw/issues/1699
145 ;; #issuecomment-795336704
146 (delete-file "unit/test_config.py"))
149 (lambda* (#:key tests? #:allow-other-keys)
154 `(("python-betamax" ,python-betamax)
155 ("python-betamax-matchers" ,python-betamax-matchers)
156 ("python-pytest" ,python-pytest)))
158 `(("python-prawcore" ,python-prawcore)
159 ("python-websocket-client" ,python-websocket-client)))
160 (synopsis "Python Reddit API Wrapper")
161 (description "PRAW is a Python package that allows for simple access to
162 Reddit’s API. It aims to be easy to use and internally follows all of Reddit’s
164 (home-page "https://praw.readthedocs.io/en/latest/")
165 (license license:bsd-2)))
167 (define-public python-aiohttp
169 (name "python-aiohttp")
174 (uri (pypi-uri "aiohttp" version))
176 (base32 "1pn79h8fng4xi5gl1f6saw31nxgmgyxl41yf3vba1l21673yr12x"))))
177 (build-system python-build-system)
180 (modify-phases %standard-phases
181 (add-after 'unpack 'fix-tests
183 ;; disable brotli tests, because we’re not providing that optional library
184 (substitute* "tests/test_http_parser.py"
185 ((" async def test_feed_eof_no_err_brotli")
186 " @pytest.mark.xfail\n async def test_feed_eof_no_err_brotli"))
187 ;; make sure the timestamp of this file is > 1990, because a few
188 ;; tests like test_static_file_if_modified_since_past_date depend on it
189 (let ((late-90s (* 60 60 24 365 30)))
190 (utime "tests/data.unknown_mime_type" late-90s late-90s))
192 ;; Disable test that attempts to access httpbin.org.
193 (substitute* "tests/test_formdata.py"
194 (("async def test_mark_formdata_as_processed.*" all)
195 (string-append "@pytest.mark.xfail\n" all)))
197 ;; Don't test the aiohttp pytest plugin to avoid a dependency loop.
198 (delete-file "tests/test_pytest_plugin.py")))
200 (lambda* (#:key tests? #:allow-other-keys)
202 (invoke "pytest" "-vv"
203 ;; Disable loading the aiohttp coverage plugin
204 ;; to avoid a circular dependency (code coverage
205 ;; is not very interesting to us anyway).
207 (format #t "test suite not run~%")))))))
209 `(("python-aiodns" ,python-aiodns)
210 ("python-async-timeout" ,python-async-timeout)
211 ("python-attrs" ,python-attrs) ;note: remove for > 3.7
212 ("python-chardet" ,python-chardet)
213 ("python-idna-ssl" ,python-idna-ssl)
214 ("python-multidict" ,python-multidict)
215 ("python-typing-extensions" ,python-typing-extensions)
216 ("python-yarl" ,python-yarl)))
218 `(("python-pytest" ,python-pytest)
219 ("python-pytest-mock" ,python-pytest-mock)
220 ("python-re-assert" ,python-re-assert)
221 ("gunicorn" ,gunicorn-bootstrap)
222 ("python-freezegun" ,python-freezegun)
223 ("python-async-generator" ,python-async-generator)))
224 (home-page "https://github.com/aio-libs/aiohttp/")
225 (synopsis "Async HTTP client/server framework (asyncio)")
226 (description "@code{aiohttp} is an asynchronous HTTP client/server
229 Its main features are:
231 @item Supports both client and server side of HTTP protocol.
232 @item Supports both client and server Web-Sockets out-of-the-box without the
234 @item Web-server has middlewares and pluggable routing.
236 (license license:asl2.0)))
238 (define-public python-aiohttp-socks
240 (name "python-aiohttp-socks")
245 (uri (pypi-uri "aiohttp_socks" version))
248 "0jmhb0l1w8k1nishij3awd9zv8zbyb5l35a2pdalrqxxasbhbcif"))))
249 (build-system python-build-system)
251 `(("python-aiohttp" ,python-aiohttp)
252 ("python-attrs" ,python-attrs)
253 ("python-socks" ,python-socks)))
254 (home-page "https://github.com/romis2012/aiohttp-socks")
255 (synopsis "SOCKS proxy connector for aiohttp")
256 (description "This package provides a SOCKS proxy connector for
257 aiohttp. It supports SOCKS4(a) and SOCKS5.")
258 (license license:asl2.0)))
260 (define-public python-aiodns
262 (name "python-aiodns")
267 (uri (pypi-uri "aiodns" version))
270 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
271 (build-system python-build-system)
273 `(("python-pycares" ,python-pycares)))
275 `(#:tests? #f)) ;tests require internet access
276 (home-page "https://github.com/saghul/aiodns")
277 (synopsis "Simple DNS resolver for asyncio")
278 (description "@code{aiodns} provides a simple way for doing
279 asynchronous DNS resolutions with a synchronous looking interface by
280 using @url{https://github.com/saghul/pycares,pycares}.")
281 (license license:expat)))
283 (define-public python-aiorpcx
285 (name "python-aiorpcx")
290 (uri (pypi-uri "aiorpcX" version))
293 "0lx54bcinp44fmr8q4bbffsqbkg8kdcwykf9i5jj0bj3sfzgf9k0"))))
294 (build-system python-build-system)
296 `(("python-attrs" ,python-attrs)))
297 (home-page "https://github.com/kyuupichan/aiorpcX")
298 (synopsis "Generic asyncio RPC implementation")
300 "The aiorpcX library is a generic asyncio implementation of RPC suitable
301 for an application that is a client, server or both.
303 The package includes a module with full coverage of JSON RPC versions 1.0 and
304 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
305 comes with a SOCKS proxy client.")
306 (license (list license:expat license:bsd-2))))
308 (define-public python-aiorpcx-0.18
310 (inherit python-aiorpcx)
315 (uri (pypi-uri "aiorpcX" version))
318 "1rswrspv27x33xa5bnhrkjqzhv0sknv5kd7pl1vidw9d2z4rx2l0"))))))
320 (define-public python-asgiref
322 (name "python-asgiref")
326 (uri (pypi-uri "asgiref" version))
329 "0y0vdzldjkbs4pxf10pi6jpxq9b2sfp1rlwm153jcf5nvzxns8fi"))))
330 (build-system python-build-system)
332 '(#:phases (modify-phases %standard-phases
335 (invoke "pytest" "-vv"))))))
337 `(("python-pytest" ,python-pytest)
338 ("python-pytest-asyncio" ,python-pytest-asyncio)))
339 (home-page "https://github.com/django/asgiref/")
340 (synopsis "ASGI specs, helper code, and adapters")
342 "ASGI is a standard for Python asynchronous web apps and servers to
343 communicate with each other, and positioned as an asynchronous successor to
344 WSGI. This package includes libraries for implementing ASGI servers.")
345 (license license:bsd-3)))
347 (define-public python-css-html-js-minify
349 (name "python-css-html-js-minify")
353 (uri (pypi-uri "css-html-js-minify" version ".zip"))
356 "0v3l2dqdk2y4r6ax259gs4ij1zzm9yxg6491s6254vs9w3vi37sa"))))
357 (build-system python-build-system)
358 ;; XXX: The git repository has no tags, and the PyPI releases do not
360 (arguments '(#:tests? #f))
361 (native-inputs `(("unzip" ,unzip)))
362 (home-page "https://github.com/juancarlospaco/css-html-js-minify")
363 (synopsis "CSS/HTML/JS minifier")
365 "This package provides a single-file minifier for CSS, HTML, and JavaScript.")
366 ;; XXX: The README just says "GNU GPL and GNU LGPL and MIT". From
367 ;; <https://github.com/juancarlospaco/css-html-js-minify/issues/9> it
368 ;; looks like the user can choose a license.
369 (license (list license:gpl3+ license:lgpl3+ license:expat))))
371 (define-public python-aws-sam-translator
373 (name "python-aws-sam-translator")
377 (uri (pypi-uri "aws-sam-translator" version))
380 "1djwlsjpbh13m4biglimrm9lq7hmla0k29giay7k3cjsrylxvjhf"))))
381 (build-system python-build-system)
383 `(;; XXX: Tests are not distributed with the PyPI archive, and would
384 ;; introduce a circular dependency on python-cfn-lint.
386 #:phases (modify-phases %standard-phases
387 (add-after 'unpack 'loosen-requirements
389 ;; The package needlessly specifies exact versions
390 ;; of dependencies, when it works fine with others.
391 (substitute* "requirements/base.txt"
392 (("(.*)(~=[0-9\\.]+)" all package version)
396 `(("python-boto3" ,python-boto3)
397 ("python-jsonschema" ,python-jsonschema)
398 ("python-six" ,python-six)))
399 (home-page "https://github.com/awslabs/serverless-application-model")
400 (synopsis "Transform AWS SAM templates into AWS CloudFormation templates")
402 "AWS SAM Translator is a library that transform @dfn{Serverless Application
403 Model} (SAM) templates into AWS CloudFormation templates.")
404 (license license:asl2.0)))
406 (define-public python-aws-xray-sdk
408 (name "python-aws-xray-sdk")
410 (home-page "https://github.com/aws/aws-xray-sdk-python")
413 (uri (git-reference (url home-page) (commit version)))
414 (file-name (git-file-name name version))
417 "12fzr0ylpa1lx3xr1x2f1jx8iiyzcr6g57fb9jign0j0lxdlbzpv"))))
418 (build-system python-build-system)
420 `(#:phases (modify-phases %standard-phases
421 (add-after 'unpack 'disable-tests
423 (for-each delete-file
424 '(;; These tests require packages not yet in Guix.
425 "tests/ext/aiobotocore/test_aiobotocore.py"
426 "tests/ext/aiohttp/test_middleware.py"
427 "tests/ext/pg8000/test_pg8000.py"
428 "tests/ext/psycopg2/test_psycopg2.py"
429 "tests/ext/pymysql/test_pymysql.py"
430 "tests/ext/pynamodb/test_pynamodb.py"
431 "tests/test_async_recorder.py"
433 ;; FIXME: Why is this failing?
434 "tests/test_patcher.py"
436 ;; TODO: How to configure Django for these tests.
437 "tests/ext/django/test_db.py"
438 "tests/ext/django/test_middleware.py"
440 ;; These tests want to access httpbin.org.
441 "tests/ext/requests/test_requests.py"
442 "tests/ext/httplib/test_httplib.py"
443 "tests/ext/aiohttp/test_client.py"))))
446 (invoke "pytest" "-vv" "tests"))))))
448 `(;; These are required for the test suite.
449 ("python-bottle" ,python-bottle)
450 ("python-flask" ,python-flask)
451 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)
452 ("python-pymysql" ,python-pymysql)
453 ("python-pytest" ,python-pytest)
454 ("python-pytest-aiohttp" ,python-pytest-aiohttp)
455 ("python-requests" ,python-requests)
456 ("python-sqlalchemy" ,python-sqlalchemy)
457 ("python-webtest" ,python-webtest)))
459 `(("python-aiohttp" ,python-aiohttp)
460 ("python-botocore" ,python-botocore)
461 ("python-future" ,python-future)
462 ("python-jsonpickle" ,python-jsonpickle)
463 ("python-urllib3" ,python-urllib3)
464 ("python-wrapt" ,python-wrapt)))
465 (synopsis "Profile applications on AWS X-Ray")
467 "The AWS X-Ray SDK for Python enables Python developers to record and
468 emit information from within their applications to the AWS X-Ray service.")
469 (license license:asl2.0)))
471 (define-public python-cfn-lint
473 (name "python-cfn-lint")
475 (home-page "https://github.com/aws-cloudformation/cfn-python-lint")
480 (commit (string-append "v" version))))
481 (file-name (git-file-name name version))
484 "161mzzlpbi85q43kwzrj39qb32l6wg6xhnbbd4z860yrfbymsn87"))))
485 (build-system python-build-system)
487 `(#:phases (modify-phases %standard-phases
489 (lambda* (#:key outputs #:allow-other-keys)
490 (let ((out (assoc-ref outputs "out")))
491 ;; Remove test for the documentation update scripts
492 ;; to avoid a dependency on 'git'.
494 "test/unit/module/maintenance/test_update_documentation.py")
496 "test/unit/module/maintenance/test_update_resource_specs.py")
497 (invoke "python" "-m" "unittest" "discover" "-v"
500 `(("python-pydot" ,python-pydot)
501 ("python-mock" ,python-mock)))
503 `(("python-aws-sam-translator" ,python-aws-sam-translator)
504 ("python-jsonpatch" ,python-jsonpatch)
505 ("python-jsonschema" ,python-jsonschema)
506 ("python-junit-xml" ,python-junit-xml)
507 ("python-networkx" ,python-networkx)
508 ("python-pyyaml" ,python-pyyaml)
509 ("python-six" ,python-six)))
510 (synopsis "Validate CloudFormation templates")
512 "This package lets you validate CloudFormation YAML/JSON templates against
513 the CloudFormation spec and additional checks. Includes checking valid values
514 for resource properties and best practices.")
515 (license license:expat)))
517 (define-public python-falcon
519 (name "python-falcon")
524 (uri (pypi-uri "falcon" version))
527 "1z6mqfv574x6jiawf67ib52g4kk20c2x7xk7wrn1573b8v7r79gf"))
528 (modules '((guix build utils)))
531 (delete-file-recursively "falcon/vendor")
532 (substitute* "setup.py"
533 ((".*falcon\\.vendor\\.mimeparse.*") ""))
534 (substitute* '("falcon/media/handlers.py"
536 (("from falcon\\.vendor ") ""))
537 (substitute* "falcon.egg-info/SOURCES.txt"
538 (("falcon/vendor.*") ""))
540 (build-system python-build-system)
543 (modify-phases %standard-phases
545 (lambda* (#:key inputs outputs #:allow-other-keys)
546 ;; Skip orjson, which requires rust to build.
547 (substitute* "tests/test_media_handlers.py"
548 (("== 'CPython") "!= 'CPython"))
549 (add-installed-pythonpath inputs outputs)
550 (invoke "pytest" "--ignore" "falcon"))))))
552 `(("python-mimeparse" ,python-mimeparse)))
554 `(("python-cython" ,python-cython) ;for faster binaries
555 ("python-mujson" ,python-mujson)
556 ("python-msgpack" ,python-msgpack)
557 ("python-pytest" ,python-pytest)
558 ("python-pytest-runner" ,python-pytest-runner)
559 ("python-pyyaml" ,python-pyyaml)
560 ("python-rapidjson" ,python-rapidjson)
561 ("python-requests" ,python-requests)
562 ("python-testtools" ,python-testtools)
563 ("python-ujson" ,python-ujson)))
564 (home-page "https://falconframework.org")
566 "Web framework for building APIs and application backends")
568 "Falcon is a web API framework for building microservices, application
569 backends and higher-level frameworks. Among its features are:
571 @item Optimized and extensible code base
572 @item Routing via URI templates and REST-inspired resource
574 @item Access to headers and bodies through request and response
576 @item Request processing via middleware components and hooks
577 @item Idiomatic HTTP error responses
578 @item Straightforward exception handling
579 @item Unit testing support through WSGI helpers and mocks
580 @item Compatible with both CPython and PyPy
581 @item Cython support for better performance when used with CPython
583 (license license:asl2.0)))
585 (define-public python-falcon-cors
587 (name "python-falcon-cors")
592 (uri (pypi-uri "falcon-cors" version))
595 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
596 (build-system python-build-system)
598 `(("python-falcon" ,python-falcon)))
600 "https://github.com/lwcolton/falcon-cors")
601 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
602 (description "This middleware provides @dfn{cross-origin resource
603 sharing} (CORS) support for Falcon. It allows applying a specially crafted
604 CORS object to the incoming requests, enabling the ability to serve resources
605 over a different origin than that of the web application.")
606 (license license:asl2.0)))
608 (define-public python-furl
615 (uri (pypi-uri "furl" version))
618 "1v2lakx03d5w8954a39ki44xv5mllnq0a0avhxykv9hrzg0yvjpx"))))
619 (build-system python-build-system)
621 `(("python-six" ,python-six)
622 ("python-orderedmultidict" ,python-orderedmultidict)))
624 `(("python-flake8" ,python-flake8)))
625 (home-page "https://github.com/gruns/furl")
626 (synopsis "URL manipulation in Python")
627 (description "Furl provides an easy-to-use alternative to the
628 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
629 (license license:unlicense)))
631 (define-public python-httplib2
633 (name "python-httplib2")
638 (uri (pypi-uri "httplib2" version))
641 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
642 (build-system python-build-system)
643 (home-page "https://github.com/jcgregorio/httplib2")
644 (synopsis "Comprehensive HTTP client library")
646 "A comprehensive HTTP client library supporting many features left out of
647 other HTTP libraries.")
648 (license license:expat)))
650 (define-public python2-httplib2
651 (package-with-python2 python-httplib2))
653 (define-public httpie
660 (uri (pypi-uri "httpie" version))
663 "15ngl3yc186gkgqdx8iav9bpj8gxjpzz26y32z92jwyhj4cmfh6m"))))
664 (build-system python-build-system)
666 ;; The tests attempt to access external web servers, so we cannot run them.
669 `(("python-colorama" ,python-colorama)
670 ("python-pygments" ,python-pygments)
671 ("python-requests" ,python-requests)
672 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)))
673 (home-page "https://httpie.io")
674 (synopsis "cURL-like tool for humans")
676 "A command line HTTP client with an intuitive UI, JSON support,
677 syntax highlighting, wget-like downloads, plugins, and more. It consists of
678 a single http command designed for painless debugging and interaction with
679 HTTP servers, RESTful APIs, and web services.")
680 ;; This was fixed in 1.0.3.
681 (properties `((lint-hidden-cve . ("CVE-2019-10751"))))
682 (license license:bsd-3)))
684 (define-public python-html2text
686 (name "python-html2text")
687 (version "2020.1.16")
691 (uri (pypi-uri "html2text" version))
694 "1fvv4z6dblii2wk1x82981ag8yhxbim1v2ksgywxsndh2s7335p2"))))
695 (build-system python-build-system)
698 (modify-phases %standard-phases
701 (invoke "pytest" "test/"))))))
703 `(("python-pytest" ,python-pytest)))
704 (home-page "https://github.com/Alir3z4/html2text")
705 (synopsis "Convert HTML into plain text")
706 (description "html2text takes HTML and converts it into plain ASCII text
707 which is also valid markdown. html2text was originally written by Aaron
709 (license license:gpl3+)))
711 (define-public python2-html2text
712 (let ((base (package-with-python2 python-html2text)))
715 ;; This is the last version with support for Python 2.
716 (version "2019.8.11")
719 (uri (pypi-uri "html2text" version))
722 "0ppgjplg06kmv9sj0x8p7acczcq2mcfgk1jdjwm4w5w40b0vj5pm")))))))
724 (define-public python-jose
728 (home-page "https://github.com/mpdavis/python-jose")
731 (uri (git-reference (url home-page) (commit version)))
732 (file-name (git-file-name name version))
735 "1xmnf8whzv2gnkkdv0fqcn9qwmcc7y647p4kw9fi3lvcp9kch8vi"))))
736 (build-system python-build-system)
739 (modify-phases %standard-phases
741 (lambda* (#:key tests? #:allow-other-keys)
743 (invoke "pytest" "-vv")
744 (format #t "test suite not run~%"))
747 `(;; All native inputs are for tests.
748 ("python-pyasn1" ,python-pyasn1)
749 ("python-pytest" ,python-pytest)
750 ("python-pytest-cov" ,python-pytest-cov)
751 ("python-pytest-runner" ,python-pytest-runner)))
753 `(("python-cryptography" ,python-cryptography)
754 ("python-rsa" ,python-rsa)
755 ("python-six" ,python-six)))
756 (synopsis "JOSE implementation in Python")
758 "The @dfn{JavaScript Object Signing and Encryption} (JOSE) technologies
759 - JSON Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and
760 JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or sign
761 content using a variety of algorithms.")
762 (license license:expat)))
764 (define-public python-jsonpickle
766 (name "python-jsonpickle")
770 (uri (pypi-uri "jsonpickle" version))
773 "1fn86z468hamw8njh2grw2xdhsm7g48dyxs3lw0n10nn1g6vgm78"))))
774 (build-system python-build-system)
776 `(#:phases (modify-phases %standard-phases
779 (invoke "pytest" "-vv"
780 ;; Prevent running the flake8 and black
781 ;; pytest plugins, which only tests style
782 ;; and frequently causes harmless failures.
783 "-o" "addopts=''"))))))
785 `(("python-setuptools-scm" ,python-setuptools-scm)
786 ("python-toml" ,python-toml) ;XXX: for setuptools_scm[toml]
788 ("python-numpy" ,python-numpy)
789 ("python-pandas" ,python-pandas)
790 ("python-pytest" ,python-pytest)))
791 (home-page "https://jsonpickle.github.io/")
792 (synopsis "Serialize object graphs into JSON")
794 "This package provides a Python library for serializing any arbitrary
795 object graph to and from JSON.")
796 (license license:bsd-3)))
798 (define-public python-mechanicalsoup
800 (name "python-mechanicalsoup")
805 (uri (pypi-uri "MechanicalSoup" version))
807 (base32 "01sddjxy3rznh63hnl5lbv1hhk6xyiviwmkiw4x7v4ap35fb3lrp"))))
808 (build-system python-build-system)
810 `(("python-beautifulsoup4" ,python-beautifulsoup4)
811 ("python-lxml" ,python-lxml)
812 ("python-requests" ,python-requests)
813 ("python-six" ,python-six)))
815 `(("python-pytest-cov" ,python-pytest-cov)
816 ("python-pytest-flake8" ,python-pytest-flake8)
817 ("python-pytest-httpbin" ,python-pytest-httpbin)
818 ("python-pytest-mock" ,python-pytest-mock)
819 ("python-pytest-runner" ,python-pytest-runner)
820 ("python-requests-mock" ,python-requests-mock)))
821 (home-page "https://mechanicalsoup.readthedocs.io/")
822 (synopsis "Python library for automating website interaction")
824 "MechanicalSoup is a Python library for automating interaction with
825 websites. It automatically stores and sends cookies, follows redirects, and can
826 follow links and submit forms. It doesn’t do JavaScript.")
827 (license license:expat)))
829 (define-public python-hyperframe
831 (name "python-hyperframe")
836 (uri (pypi-uri "hyperframe" version))
838 (base32 "07xlf44l1cw0ghxx46sbmkgzil8vqv8kxwy42ywikiy35izw3xd9"))))
839 (build-system python-build-system)
842 (modify-phases %standard-phases
844 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
846 (add-installed-pythonpath inputs outputs)
847 (invoke "pytest" "-vv" "test")))))))
849 `(("python-pytest" ,python-pytest)))
850 (home-page "https://github.com/python-hyper/hyperframe")
851 (synopsis "HTTP/2 framing layer for Python")
853 "This library contains the HTTP/2 framing code used in the hyper project.
854 It provides a pure-Python codebase that is capable of decoding a binary stream
855 into HTTP/2 frames.")
856 (license license:expat)))
858 (define-public python-hpack
860 (name "python-hpack")
864 ;; PyPI tarball is missing some files necessary for the tests.
867 (url "https://github.com/python-hyper/hpack")
868 (commit (string-append "v" version))))
869 (file-name (git-file-name name version))
871 (base32 "0w8hkz50a6lzkmgi41ryicm0mh9ca9cx29pm3s0xlpn0vs29xrmd"))))
872 (build-system python-build-system)
875 (modify-phases %standard-phases
877 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
879 (add-installed-pythonpath inputs outputs)
880 (invoke "pytest" "-vv" "test" "-k"
881 ;; This test will be fixed in the next version. See:
882 ;; https://github.com/python-hyper/hpack/issues/168.
883 "not test_get_by_index_out_of_range")))))))
885 `(("python-pytest" ,python-pytest)))
886 (home-page "https://hyper.rtfd.org")
887 (synopsis "Pure-Python HPACK header compression")
889 "This module contains a pure-Python HTTP/2 header encoding (HPACK) logic
890 for use in Python programs that implement HTTP/2.")
891 (license license:expat)))
893 (define-public python-h11
900 (uri (pypi-uri "h11" version))
902 (base32 "1qfad70h59hya21vrzz8dqyyaiqhac0anl2dx3s3k80gpskvrm1k"))))
903 (build-system python-build-system)
906 (modify-phases %standard-phases
908 (lambda* (#:key tests? #:allow-other-keys)
910 (invoke "pytest" "-vv")))))))
912 `(("python-pytest" ,python-pytest)))
913 (home-page "https://github.com/python-hyper/h11")
914 (synopsis "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1")
916 "This is a little HTTP/1.1 library written from scratch in Python, heavily
917 inspired by hyper-h2. It's a bring-your-own-I/O library; h11 contains no IO
918 code whatsoever. This means you can hook h11 up to your favorite network API,
919 and that could be anything you want.")
920 (license license:expat)))
922 (define-public python-h2
929 (uri (pypi-uri "h2" version))
931 (base32 "051gg30aca26rdxsmr9svwqm06pdz9bv21ch4n0lgi7jsvml2pw7"))))
932 (build-system python-build-system)
935 (modify-phases %standard-phases
937 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
939 (add-installed-pythonpath inputs outputs)
940 (invoke "pytest" "-vv" "test")))))))
942 `(("python-pytest" ,python-pytest)))
944 `(("python-hpack" ,python-hpack)
945 ("python-hyperframe" ,python-hyperframe)))
946 (home-page "https://github.com/python-hyper/hyper-h2")
947 (synopsis "HTTP/2 State-Machine based protocol implementation")
949 "This module contains a pure-Python implementation of a HTTP/2 protocol
950 stack. It does not provide a parsing layer, a network layer, or any rules
951 about concurrency. Instead, it's a purely in-memory solution, defined in
952 terms of data actions and HTTP/2 frames. This is one building block of a full
953 Python HTTP implementation.")
954 (license license:expat)))
956 (define-public python-sockjs-tornado
958 (name "python-sockjs-tornado")
963 (uri (pypi-uri "sockjs-tornado" version))
966 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
967 (build-system python-build-system)
969 `(;; There are no tests, and running the test phase requires missing
973 `(("python-tornado" ,python-tornado)))
974 (home-page "https://github.com/mrjoes/sockjs-tornado/")
976 "SockJS Python server implementation on top of the Tornado framework")
978 "SockJS-tornado provides the server-side counterpart to a SockJS client
979 library, through the Tornado framework.
981 SockJS provides a low-latency, full-duplex, cross-domain communication channel
982 between a web browser and web server.")
983 (license license:expat)))
985 (define-public python2-sockjs-tornado
986 (package-with-python2 python-sockjs-tornado))
988 (define-public python-flask-babel
990 (name "python-flask-babel")
995 (uri (pypi-uri "Flask-Babel" version))
998 "0gmb165vkwv5v7dxsxa2i3zhafns0fh938m2zdcrv4d8z5l099yn"))))
999 (build-system python-build-system)
1001 '(#:phases (modify-phases %standard-phases
1004 (with-directory-excursion "tests"
1005 (invoke "python" "tests.py")))))))
1007 `(("python-flask" ,python-flask)
1008 ("python-babel" ,python-babel)
1009 ("python-jinja2" ,python-jinja2)
1010 ("python-pytz" ,python-pytz)))
1011 (home-page "https://github.com/python-babel/flask-babel")
1012 (synopsis "Add i18n/l10n support to Flask applications")
1013 (description "This package implements internationalization and localization
1014 support for Flask. This is based on the Python babel module as well as pytz -
1015 both of which are installed automatically if you install this library.")
1016 (license license:bsd-3)))
1018 (define-public python-flask-cors
1020 (name "python-flask-cors")
1024 (uri (pypi-uri "Flask-Cors" version))
1027 "1f36hkaxc92zn12f88fkzwifdvlvsnmlp1dv3p5inpcc500c3kvb"))))
1028 (build-system python-build-system)
1030 `(("python-flask" ,python-flask)
1031 ("python-nose" ,python-nose)
1032 ("python-packaging" ,python-packaging)))
1034 `(("python-six" ,python-six)))
1035 (home-page "https://flask-cors.readthedocs.io/en/latest/")
1036 (synopsis "Handle Cross-Origin Resource Sharing with Flask")
1038 "This package provides a Flask extension for handling @acronym{CORS,Cross
1039 Origin Resource Sharing}, making cross-origin AJAX possible.")
1040 (license license:expat)))
1042 (define-public python-flask-markdown
1044 (name "python-flask-markdown")
1049 (uri (pypi-uri "Flask-Markdown" version))
1052 "0l32ikv4f7va926jlq4f7gx0xid247bhlxl6bd9av5dk8ljz1hyq"))))
1053 (build-system python-build-system)
1055 '(#:tests? #f)) ; Tests seem to be incompatible with latest python
1057 `(("python-markdown" ,python-markdown)
1058 ("python-flask" ,python-flask)))
1060 `(("python-nose" ,python-nose)))
1061 (home-page "https://github.com/dcolish/flask-markdown")
1062 (synopsis "Small extension to help with using Markdown in Flask")
1064 "Flask-Markdown supports several extensions for Markdown and integrates
1065 into Jinja2 by default.")
1066 (license license:bsd-3)))
1068 (define-public python-flask-misaka
1070 (name "python-flask-misaka")
1075 (uri (pypi-uri "Flask-Misaka" version))
1078 "12gm6hq3lvlj0ddw8p6lk5pky8jk3pw758ihffjl49shnnzc68zl"))))
1079 (build-system python-build-system)
1081 `(("python-coverage" ,python-coverage)
1082 ("python-mock" ,python-mock)))
1084 `(("python-flask" ,python-flask)
1085 ("python-misaka" ,python-misaka)))
1086 (home-page "https://github.com/singingwolfboy/flask-misaka/")
1087 (synopsis "Flask interface to Misaka, a Markdown parsing library")
1089 "This package provides an interface between the Flask web framework and
1090 the Misaka Markdown parser.")
1091 (license license:expat)))
1093 (define-public python-flask-session
1095 (name "python-flask-session")
1100 (uri (pypi-uri "Flask-Session" version))
1103 "08s4msg8jzb8vgb9bd491zvrzhrdldxdw6vimb0kx5kgy2xy4s07"))))
1104 (build-system python-build-system)
1106 '(#:tests? #f)) ; Tests require the various storage backends to be present
1108 `(("python-flask" ,python-flask)))
1109 (home-page "https://github.com/fengsp/flask-session")
1110 (synopsis "Adds server-side session support to your Flask application")
1112 "Flask-Session is an extension for Flask that adds support for
1113 Server-side sessions, with a variety of different backends for session
1115 (license license:bsd-3)))
1117 (define-public python-html5lib
1119 (name "python-html5lib")
1124 (uri (pypi-uri "html5lib" version))
1127 "0vqlhk0hgbsfkh7ybmby93xhlx8dq6pr5blf356ka3z2c41b9rdj"))))
1128 (build-system python-build-system)
1130 `(("python-six" ,python-six)
1131 ("python-webencodings" ,python-webencodings)
1132 ;; Required by Calibre 5.
1133 ("python-chardet" ,python-chardet)))
1135 `(#:test-target "check"))
1137 "https://github.com/html5lib/html5lib-python")
1139 "Python HTML parser based on the WHATWG HTML specification")
1141 "Html5lib is an HTML parser based on the WHATWG HTML specification
1142 and written in Python.")
1143 (license license:expat)))
1145 (define-public python2-html5lib
1146 (package-with-python2 python-html5lib))
1148 ;; Needed for python-bleach, a dependency of python-notebook
1149 (define-public python-html5lib-0.9
1151 (inherit python-html5lib)
1156 (uri (pypi-uri "html5lib" version))
1159 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
1161 (define-public python2-html5lib-0.9
1162 (package-with-python2 python-html5lib-0.9))
1164 (define-public python-html5-parser
1166 (name "python-html5-parser")
1170 (uri (pypi-uri "html5-parser" version))
1173 "13yl3vnf3sxl05m0nhpngnrz3g1jvyahd33lys3m3hfb91l8zzi5"))))
1174 (build-system python-build-system)
1176 `(("pkg-config" ,pkg-config)))
1178 `(("libxml2" ,libxml2)))
1180 `(("python-lxml" ,python-lxml)
1181 ("python-beautifulsoup4" ,python-beautifulsoup4)
1182 ("python-chardet" ,python-chardet)))
1183 (home-page "https://html5-parser.readthedocs.io")
1184 (synopsis "Fast C-based HTML5 parsing for Python")
1185 (description "This package provides a fast implementation of the HTML5
1186 parsing spec for Python. Parsing is done in C using a variant of the gumbo
1187 parser. The gumbo parse tree is then transformed into an lxml tree, also in
1188 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
1189 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
1190 ;; indicate ASL2.0, including the LICENSE file for the whole project.
1191 (license (list license:asl2.0 license:gpl3))))
1193 (define-public python2-html5-parser
1194 (package-with-python2 python-html5-parser))
1196 (define-public python-minio
1198 (name "python-minio")
1202 (uri (pypi-uri "minio" version))
1205 "1cxpa0m7mdvpdbc1g6wlihq6ja4g4paxkl6f3q84bbnx07zpbllp"))))
1206 (build-system python-build-system)
1208 '(#:phases (modify-phases %standard-phases
1209 (add-before 'check 'disable-failing-tests
1211 ;; This test requires network access.
1212 (delete-file "tests/unit/credentials_test.py")
1215 `(("python-faker" ,python-faker)
1216 ("python-mock" ,python-mock)
1217 ("python-nose" ,python-nose)))
1219 `(("python-certifi" ,python-certifi)
1220 ("python-configparser" ,python-configparser)
1221 ("python-dateutil" ,python-dateutil)
1222 ("python-pytz" ,python-pytz)
1223 ("python-urllib3" ,python-urllib3)))
1224 (home-page "https://github.com/minio/minio-py")
1225 (synopsis "Programmatically access Amazon S3 from Python")
1227 "This package provides a Python library for interacting with any
1228 Amazon S3 compatible object storage server.")
1229 (license license:asl2.0)))
1231 (define-public python-pycurl
1233 (name "python-pycurl")
1234 (version "7.43.0.5")
1238 (uri (pypi-uri "pycurl" version))
1240 (base32 "1cwlb76vddqp2mxqvjbhf367caddzy82rhangddjjhjqaj8x4zgc"))))
1241 (build-system python-build-system)
1243 ;; The tests attempt to access external web servers, so we cannot run
1244 ;; them. Furthermore, they are skipped altogether when using Python 2.
1246 #:phases (modify-phases %standard-phases
1247 (add-before 'build 'configure-tls-backend
1249 ;; XXX: PycURL fails to automatically determine which TLS
1250 ;; backend to use when cURL is built with --disable-static.
1251 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
1252 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
1255 `(("python-nose" ,python-nose)
1256 ("python-bottle" ,python-bottle)))
1259 ("gnutls" ,gnutls)))
1260 (home-page "http://pycurl.io/")
1261 (synopsis "Lightweight Python wrapper around libcurl")
1262 (description "Pycurl is a lightweight wrapper around libcurl. It provides
1263 high-speed transfers via libcurl and frequently outperforms alternatives.")
1265 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
1266 ;; under the terms of LGPLv2.1+ or Expat.
1267 (license (list license:lgpl2.1+ license:expat))))
1269 (define-public python2-pycurl
1270 (package-with-python2 python-pycurl))
1272 (define-public python-webencodings
1274 (name "python-webencodings")
1278 (uri (pypi-uri "webencodings" version))
1281 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
1282 (build-system python-build-system)
1285 (modify-phases %standard-phases
1288 (invoke "py.test" "-v" "webencodings/tests.py")
1291 `(("python-pytest" ,python-pytest)))
1292 (home-page "https://github.com/SimonSapin/python-webencodings")
1293 (synopsis "Character encoding aliases for legacy web content")
1295 "In order to be compatible with legacy web content when interpreting
1296 something like @code{Content-Type: text/html; charset=latin1}, tools need
1297 to use a particular set of aliases for encoding labels as well as some
1298 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
1299 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
1300 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
1301 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
1302 defines all such details so that implementations do not have to
1303 reverse-engineer each other.
1305 This module implements the Encoding standard and has encoding labels and
1306 BOM detection, but the actual implementation for encoders and decoders
1308 (license license:bsd-3)))
1310 (define-public python2-webencodings
1311 (package-with-python2 python-webencodings))
1313 (define-public python-openid
1315 (name "python-openid")
1320 (uri (pypi-uri "python3-openid" version))
1323 "1bxf9a3ny1js422j962zfzl4a9dhj192pvai05whn7j0iy9gdyrk"))))
1324 (build-system python-build-system)
1327 (modify-phases %standard-phases
1330 (invoke "coverage" "run" "-m"
1331 "unittest" "openid.test.test_suite"))))))
1332 (properties `((python2-variant . ,(delay python2-openid))))
1334 `(("python-defusedxml" ,python-defusedxml)))
1336 `(("python-coverage" ,python-coverage)
1337 ("python-psycopg2" ,python-psycopg2)
1338 ("python-django" ,python-django)))
1339 (home-page "https://github.com/necaris/python3-openid")
1340 (synopsis "OpenID support for servers and consumers")
1341 (description "This library provides OpenID authentication for Python, both
1342 for clients and servers.")
1343 (license license:asl2.0)))
1345 (define-public python2-openid
1347 (name "python2-openid")
1352 (uri (pypi-uri "python-openid" version))
1355 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
1356 (build-system python-build-system)
1358 ;; Python 3 support is in `python3-openid`, a separate package.
1359 `(#:python ,python-2
1360 ;; Tests aren't initialized correctly.
1362 (home-page "https://github.com/openid/python-openid")
1363 (synopsis "OpenID support for servers and consumers")
1364 (description "This library provides OpenID authentication for Python, both
1365 for clients and servers.")
1366 (license license:asl2.0)))
1368 (define-public python-cssutils
1370 (name "python-cssutils")
1375 (uri (pypi-uri "cssutils" version))
1378 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
1379 (build-system python-build-system)
1381 `(("unzip" ,unzip))) ; for unpacking the source
1383 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
1384 (home-page "http://cthedot.de/cssutils/")
1386 "CSS Cascading Style Sheets library for Python")
1388 "Cssutils is a Python package for parsing and building CSS
1389 Cascading Style Sheets. Currently it provides a DOM only and no rendering
1391 (license license:lgpl3+)))
1393 (define-public python2-cssutils
1394 (package-with-python2 python-cssutils))
1396 (define-public python-css-parser
1398 (inherit python-cssutils)
1399 (name "python-css-parser")
1404 (uri (pypi-uri "css-parser" version ".tar.gz"))
1406 (base32 "0bmg4kiiir6pj9x3sd12x4dz2c1xpp2bn5nn60fxnbk2lnl4im2f"))))
1407 (home-page "https://github.com/ebook-utils/css-parser")
1408 (synopsis "Fork of cssutils modified for parsing ebooks")
1410 "Css-parser is a Python package for parsing and building CSS
1411 Cascading Style Sheets. Currently it provides a DOM only and no rendering
1414 It's a fork of cssutils 1.0.2, updated and modified for parsing ebooks, due to
1415 cssutils not receiving updates as of 1.0.2.")
1416 (license license:lgpl3+)))
1418 (define-public python2-css-parser
1419 (package-with-python2 python-css-parser))
1421 (define-public python-cssselect
1423 (name "python-cssselect")
1426 ;; The PyPI release does not contain tests.
1429 (url "https://github.com/scrapy/cssselect")
1430 (commit (string-append "v" version))))
1431 (file-name (git-file-name name version))
1434 "0xslrnhbrmgakp4xg6k26qffay3kqffp3a2z2sk27c65rwxa79kc"))))
1435 (build-system python-build-system)
1437 `(#:phases (modify-phases %standard-phases
1440 (invoke "pytest" "-vv"))))))
1442 `(("python-lxml" ,python-lxml)
1443 ("python-pytest" ,python-pytest)))
1444 (home-page "https://github.com/scrapy/cssselect")
1445 (synopsis "CSS3 selector parser and translator to XPath 1.0")
1447 "Cssselect ia a Python module that parses CSS3 Selectors and translates
1448 them to XPath 1.0 expressions. Such expressions can be used in lxml or
1449 another XPath engine to find the matching elements in an XML or HTML document.")
1450 (license license:bsd-3)))
1452 (define-public python2-cssselect
1453 (package-with-python2 python-cssselect))
1455 (define-public python-databricks-cli
1457 (name "python-databricks-cli")
1459 (home-page "https://github.com/databricks/databricks-cli")
1462 (uri (git-reference (url home-page) (commit version)))
1463 (file-name (git-file-name name version))
1466 "03w19rzh72jll9phai23wp0c2mlv39qsrv50mhckziy39z60yxh8"))))
1467 (build-system python-build-system)
1469 `(#:phases (modify-phases %standard-phases
1472 (invoke "pytest" "tests" "-vv"
1473 ;; XXX: This fails with newer Pytest
1474 ;; (upstream uses Pytest 3..).
1475 "-k" "not test_get_request_with_list"))))))
1478 ("python-decorator" ,python-decorator)
1479 ("python-mock" ,python-mock)
1480 ("python-pytest" ,python-pytest)
1481 ("python-requests-mock" ,python-requests-mock)))
1483 `(("python-click" ,python-click)
1484 ("python-configparser" ,python-configparser)
1485 ("python-requests" ,python-requests)
1486 ("python-six" ,python-six)
1487 ("python-tabulate" ,python-tabulate)))
1488 (synopsis "Command line interface for Databricks")
1490 "The Databricks Command Line Interface is a tool which provides an easy
1491 to use interface to the Databricks platform. The CLI is built on top of the
1492 Databricks REST APIs.")
1493 (license license:asl2.0)))
1495 (define-public python-openid-cla
1497 (name "python-openid-cla")
1502 (uri (pypi-uri "python-openid-cla" version))
1505 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
1506 (build-system python-build-system)
1507 (arguments '(#:tests? #f)) ; No tests.
1508 (home-page "https://github.com/puiterwijk/python-openid-cla/")
1509 (synopsis "Implementation of the OpenID CLA extension for python-openid")
1510 (description "@code{openid-cla} is an implementation of the OpenID
1511 contributor license agreement extension for python-openid.")
1512 (license license:bsd-3)))
1514 (define-public python2-openid-cla
1515 (package-with-python2 python-openid-cla))
1517 (define-public python-openid-teams
1519 (name "python-openid-teams")
1524 (uri (pypi-uri "python-openid-teams" version))
1527 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
1528 (build-system python-build-system)
1529 (arguments '(#:tests? #f)) ; No tests.
1530 (home-page "https://github.com/puiterwijk/python-openid-teams/")
1531 (synopsis "Implementation of the OpenID teams extension for python-openid")
1533 "@code{openid-teams} is an implementation of the OpenID
1534 teams extension for python-openid.")
1535 (license license:bsd-3)))
1537 (define-public python2-openid-teams
1538 (package-with-python2 python-openid-teams))
1540 (define-public python-priority
1542 (name "python-priority")
1547 (uri (pypi-uri "priority" version))
1549 (base32 "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb"))))
1550 (build-system python-build-system)
1553 (modify-phases %standard-phases
1555 (lambda* (#:key inputs outputs #:allow-other-keys)
1556 (add-installed-pythonpath inputs outputs)
1557 (invoke "pytest" "-vv" "test" "-k"
1558 ;; This test exceeded the Hypothesis deadline.
1559 "not test_period_of_repetition"))))))
1561 `(("python-hypothesis" ,python-hypothesis)
1562 ("python-pytest" ,python-pytest)
1563 ("python-pytest-cov" ,python-pytest-cov)
1564 ("python-pytest-xdist" ,python-pytest-xdist)))
1565 (home-page "https://python-hyper.org/projects/priority/en/latest/")
1566 (synopsis "Pure-Python implementation of the HTTP/2 priority tree")
1568 "Priority is a pure-Python implementation of the priority logic for HTTP/2,
1569 set out in RFC 7540 Section 5.3 (Stream Priority).")
1570 (license license:expat)))
1572 (define-public python-wsproto
1574 (name "python-wsproto")
1579 (uri (pypi-uri "wsproto" version))
1581 (base32 "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1"))))
1582 (build-system python-build-system)
1585 (modify-phases %standard-phases
1587 (lambda* (#:key inputs outputs #:allow-other-keys)
1588 (add-installed-pythonpath inputs outputs)
1589 (invoke "pytest" "-vv" "test"))))))
1591 `(("python-pytest" ,python-pytest)))
1593 `(("python-h11" ,python-h11)))
1594 (home-page "https://github.com/python-hyper/wsproto/")
1595 (synopsis "WebSockets state-machine based protocol implementation")
1597 "@code{wsproto} is a pure-Python implementation of a WebSocket protocol
1598 stack. It's written from the ground up to be embeddable in whatever program you
1599 choose to use, ensuring that you can communicate via WebSockets, as defined in
1600 RFC6455, regardless of your programming paradigm.")
1601 (license license:expat)))
1603 (define-public python-hypercorn
1605 (name "python-hypercorn")
1610 (uri (pypi-uri "Hypercorn" version))
1612 (base32 "15dgy47a18w2ls3hwykra1cyf7yzxmfjqnsqml482p12cxr2xwqr"))))
1613 (build-system python-build-system)
1616 (modify-phases %standard-phases
1618 (lambda* (#:key inputs outputs #:allow-other-keys)
1619 (add-installed-pythonpath inputs outputs)
1620 (invoke "pytest" "-vv"))))))
1622 `(("python-h11" ,python-h11)
1623 ("python-h2" ,python-h2)
1624 ("python-priority" ,python-priority)
1625 ("python-toml" ,python-toml)
1626 ("python-typing-extensions" ,python-typing-extensions)
1627 ("python-wsproto" ,python-wsproto)))
1629 `(("python-hypothesis" ,python-hypothesis)
1630 ("python-mock" ,python-mock)
1631 ("python-pytest" ,python-pytest)
1632 ("python-pytest-asyncio" ,python-pytest-asyncio)
1633 ("python-pytest-cov" ,python-pytest-cov)
1634 ("python-pytest-trio" ,python-pytest-trio)
1635 ("python-trio" ,python-trio)))
1636 (home-page "https://gitlab.com/pgjones/hypercorn/")
1637 (synopsis "ASGI Server based on Hyper libraries")
1639 "Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and
1640 wsproto libraries and inspired by Gunicorn. It supports HTTP/1, HTTP/2,
1641 WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications. It can
1642 utilise asyncio, uvloop, or trio worker types.")
1643 (license license:expat)))
1645 (define-public python-querystring-parser
1647 (name "python-querystring-parser")
1651 (uri (pypi-uri "querystring_parser" version))
1654 "0qlar8a0wa003hm2z6wcpb625r6vjj0a70rsni9h8lz0zwfcwkv4"))))
1655 (build-system python-build-system)
1657 `(#:phases (modify-phases %standard-phases
1660 ;; XXX FIXME: This test is broken with Python 3.7:
1661 ;; https://github.com/bernii/querystring-parser/issues/35
1662 (substitute* "querystring_parser/tests.py"
1663 (("self\\.assertEqual\\(self\\.knownValuesNormalized, result\\)")
1665 (invoke "python" "querystring_parser/tests.py"))))))
1667 `(("python-six" ,python-six)))
1668 (home-page "https://github.com/bernii/querystring-parser")
1669 (synopsis "QueryString parser that correctly handles nested dictionaries")
1671 "This package provides a query string parser for Python and Django
1672 projects that correctly creates nested dictionaries from sent form/querystring
1674 (license license:expat)))
1676 (define-public python-tornado
1678 (name "python-tornado")
1683 (uri (pypi-uri "tornado" version))
1686 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
1687 (build-system python-build-system)
1689 '(;; FIXME: Two tests error out with:
1690 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
1692 ;; (modify-phases %standard-phases
1695 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
1696 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
1697 ;; (invoke "python" "-m" "tornado.test.runtests")
1701 `(("python-certifi" ,python-certifi)))
1702 (home-page "https://www.tornadoweb.org/")
1703 (synopsis "Python web framework and asynchronous networking library")
1705 "Tornado is a Python web framework and asynchronous networking library,
1706 originally developed at FriendFeed. By using non-blocking network I/O,
1707 Tornado can scale to tens of thousands of open connections, making it ideal
1708 for long polling, WebSockets, and other applications that require a long-lived
1709 connection to each user.")
1710 (license license:asl2.0)
1711 (properties `((python2-variant . ,(delay python2-tornado))))))
1713 (define-public python-tornado-6
1715 (name "python-tornado")
1720 (uri (pypi-uri "tornado" version))
1723 "14cpzdv6p6qvk6vn02krdh5rcfdi174ifdbr5s6lcnymgcfyiiik"))))
1724 (build-system python-build-system)
1727 (modify-phases %standard-phases
1730 (invoke "python" "-m" "tornado.test.runtests")
1733 `(("python-certifi" ,python-certifi)))
1734 (home-page "https://www.tornadoweb.org/")
1735 (synopsis "Python web framework and asynchronous networking library")
1737 "Tornado is a Python web framework and asynchronous networking library,
1738 originally developed at FriendFeed. By using non-blocking network I/O,
1739 Tornado can scale to tens of thousands of open connections, making it ideal
1740 for long polling, WebSockets, and other applications that require a long-lived
1741 connection to each user.")
1742 (license license:asl2.0)))
1744 (define-public python2-tornado
1745 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
1746 (package/inherit tornado
1748 `(("python2-backport-ssl-match-hostname"
1749 ,python2-backport-ssl-match-hostname)
1750 ("python2-backports-abc" ,python2-backports-abc)
1751 ("python2-singledispatch" ,python2-singledispatch)
1752 ,@(package-propagated-inputs tornado))))))
1754 (define-public python-tornado-http-auth
1756 (name "python-tornado-http-auth")
1761 (uri (pypi-uri "tornado-http-auth" version))
1763 (base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x"))))
1764 (build-system python-build-system)
1766 `(("python-tornado" ,python-tornado)))
1767 (home-page "https://github.com/gvalkov/tornado-http-auth")
1768 (synopsis "Digest and basic authentication module for Tornado")
1770 "Provides support for adding authentication to services using the Tornado
1771 web framework, either via the basic or digest authentication schemes.")
1772 (license license:asl2.0)))
1774 (define-public python-terminado
1776 (name "python-terminado")
1781 (uri (pypi-uri "terminado" version))
1784 "1smvra3sc9sg64w49kfn5yhagshq3x55839748ck5dvxvk4hgza6"))))
1785 (build-system python-build-system)
1787 `(("python-tornado" ,python-tornado-6)
1788 ("python-ptyprocess" ,python-ptyprocess)))
1790 `(("python-pytest" ,python-pytest)))
1793 (modify-phases %standard-phases
1795 (lambda _ (invoke "pytest" "-vv"))))))
1796 (home-page "https://github.com/jupyter/terminado")
1797 (synopsis "Terminals served to term.js using Tornado websockets")
1798 (description "This package provides a Tornado websocket backend for the
1799 term.js Javascript terminal emulator library.")
1800 (license license:bsd-2)))
1802 (define-public python-wsgi-intercept
1804 (name "python-wsgi-intercept")
1808 (uri (pypi-uri "wsgi_intercept" version))
1811 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
1812 (build-system python-build-system)
1814 `(("python-six" ,python-six)))
1816 `(("python-pytest" ,python-pytest)
1817 ("python-httplib2" ,python-httplib2)
1818 ("python-requests" ,python-requests)
1819 ("python-urllib3" ,python-urllib3)))
1820 (synopsis "Puts a WSGI application in place of a real URI for testing")
1821 (description "Wsgi_intercept installs a WSGI application in place of a real
1822 URI for testing. Testing a WSGI application normally involves starting a
1823 server at a local host and port, then pointing your test code to that address.
1824 Instead, this library lets you intercept calls to any specific host/port
1825 combination and redirect them into a WSGI application importable by your test
1826 program. Thus, you can avoid spawning multiple processes or threads to test
1828 (home-page "https://github.com/cdent/wsgi-intercept")
1829 (license license:expat)))
1831 (define-public python-webob
1833 (name "python-webob")
1838 (uri (pypi-uri "WebOb" version))
1841 "026i3z99nr3px75isa9mbnky5i7rffiv4d124h5kxfjjsxz92fma"))))
1842 (build-system python-build-system)
1844 `(("python-nose" ,python-nose)))
1845 (home-page "https://webob.org/")
1846 (synopsis "WSGI request and response object")
1848 "WebOb provides wrappers around the WSGI request environment, and an
1849 object to help create WSGI responses.")
1850 (license license:expat)))
1852 (define-public python2-webob
1853 (package-with-python2 python-webob))
1855 (define-public python-zope-event
1857 (name "python-zope-event")
1862 (uri (pypi-uri "zope.event" version))
1865 "1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9"))))
1866 (build-system python-build-system)
1867 (home-page "https://pypi.org/project/zope.event/")
1868 (synopsis "Event publishing system for Python")
1869 (description "Zope.event provides an event publishing API, intended for
1870 use by applications which are unaware of any subscribers to their events. It
1871 is a simple event-dispatching system on which more sophisticated event
1872 dispatching systems can be built.")
1873 (license license:zpl2.1)))
1875 (define-public python2-zope-event
1876 (package-with-python2 python-zope-event))
1878 (define-public python-zope-interface
1880 (name "python-zope-interface")
1885 (uri (pypi-uri "zope.interface" version))
1888 "03nrl6b8cb600dnnh46y149awvrm0gxyqgwq5hdw3lvys8mw9r20"))))
1889 (build-system python-build-system)
1890 (arguments '(#:tests? #f)) ; test suite can't find python-zope-testing
1892 `(("python-coverage" ,python-coverage)
1893 ("python-nose" ,python-nose)
1894 ("python-zope-event" ,python-zope-event)
1895 ("python-zope-testing" ,python-zope-testing)))
1896 (home-page "https://github.com/zopefoundation/zope.interface")
1897 (synopsis "Python implementation of the \"design by contract\"
1899 (description "Zope.interface provides an implementation of \"object
1900 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
1901 conforming to a given API or contract.")
1902 (license license:zpl2.1)))
1904 (define-public python2-zope-interface
1905 (package-with-python2 python-zope-interface))
1907 (define-public python-zope-exceptions
1909 (name "python-zope-exceptions")
1914 (uri (pypi-uri "zope.exceptions" version))
1917 "1nkgfwawswmyc6i0b8g3ymvja4mb507m8yhid8s4rbxq3dmqhwhd"))))
1918 (build-system python-build-system)
1921 (modify-phases %standard-phases
1924 (invoke "zope-testrunner" "--test-path=src"))))))
1926 `(("python-zope-testrunner" ,python-zope-testrunner-bootstrap)))
1928 `(("python-zope-interface" ,python-zope-interface)))
1929 (home-page "https://pypi.org/project/zope.exceptions/")
1930 (synopsis "Zope exceptions")
1931 (description "Zope.exceptions provides general-purpose exception types
1932 that have uses outside of the Zope framework.")
1933 (license license:zpl2.1)))
1935 (define-public python-zope-exceptions-bootstrap
1937 (inherit python-zope-exceptions)
1938 (arguments `(#:tests? #f))
1939 (propagated-inputs `())
1941 (properties `((hidden? . #t)))))
1943 (define-public python2-zope-exceptions
1944 (package-with-python2 python-zope-exceptions))
1946 (define-public python-zope-testing
1948 (name "python-zope-testing")
1953 (uri (pypi-uri "zope.testing" version))
1956 "1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn"))))
1957 (build-system python-build-system)
1958 (home-page "https://pypi.org/project/zope.testing/")
1959 (synopsis "Zope testing helpers")
1960 (description "Zope.testing provides a number of testing utilities for HTML
1961 forms, HTTP servers, regular expressions, and more.")
1962 (license license:zpl2.1)))
1964 (define-public python2-zope-testing
1965 (package-with-python2 python-zope-testing))
1967 (define-public python-zope-testrunner
1969 (name "python-zope-testrunner")
1974 (uri (pypi-uri "zope.testrunner" version))
1977 "0jyyf1dcz156q95x2y7yw2v420q2xn3cff0c5aci7hmdmcbn0gc7"))))
1978 (build-system python-build-system)
1980 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1982 `(("python-zope-testing" ,python-zope-testing)))
1984 `(("python-six" ,python-six)
1985 ("python-zope-exceptions" ,python-zope-exceptions)
1986 ("python-zope-interface" ,python-zope-interface)))
1987 (home-page "https://pypi.org/project/zope.testrunner/")
1988 (synopsis "Zope testrunner script")
1989 (description "Zope.testrunner provides a script for running Python
1991 (license license:zpl2.1)))
1993 (define-public python-zope-testrunner-bootstrap
1995 (inherit python-zope-testrunner)
1996 (arguments `(#:tests? #f))
1998 `(("python-six" ,python-six)
1999 ("python-zope-exceptions" ,python-zope-exceptions-bootstrap)))
2000 (properties `((hidden? . #t)))))
2002 (define-public python2-zope-testrunner
2003 (package-with-python2 python-zope-testrunner))
2005 (define-public python-zope-i18nmessageid
2007 (name "python-zope-i18nmessageid")
2012 (uri (pypi-uri "zope.i18nmessageid" version))
2015 "0ndhn4w1qgwkfbwf9vm2bgq418z5g0wmfsgl0d9nz62cd0mi8d4m"))))
2016 (build-system python-build-system)
2018 `(("python-coverage" ,python-coverage)
2019 ("python-zope-testrunner" ,python-zope-testrunner)))
2021 `(("python-six" ,python-six)))
2022 (home-page "https://pypi.org/project/zope.i18nmessageid/")
2023 (synopsis "Message identifiers for internationalization")
2024 (description "Zope.i18nmessageid provides facilities for declaring
2025 internationalized messages within program source text.")
2026 (license license:zpl2.1)))
2028 (define-public python2-zope-i18nmessageid
2029 (package-with-python2 python-zope-i18nmessageid))
2031 (define-public python-zope-schema
2033 (name "python-zope-schema")
2038 (uri (pypi-uri "zope.schema" version))
2041 "09jg47bxhfg1ahr1jxb5y0cbiszyk1j6fn1r1r7s6svjl3lbryr0"))))
2042 (build-system python-build-system)
2045 (modify-phases %standard-phases
2047 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
2048 (add-installed-pythonpath inputs outputs)
2050 (invoke "zope-testrunner" "--test-path=src")
2053 `(("python-zope-event" ,python-zope-event)
2054 ("python-zope-interface" ,python-zope-interface)))
2056 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2057 ("python-zope-testing" ,python-zope-testing)
2058 ("python-zope-testrunner" ,python-zope-testrunner)))
2059 (home-page "https://pypi.org/project/zope.schema/")
2060 (synopsis "Zope data schemas")
2061 (description "Zope.scheme provides extensions to zope.interface for
2062 defining data schemas.")
2063 (license license:zpl2.1)))
2065 (define-public python2-zope-schema
2066 (package-with-python2 python-zope-schema))
2068 (define-public python-zope-configuration
2070 (name "python-zope-configuration")
2074 (uri (pypi-uri "zope.configuration" version))
2077 "0g6vrl7y27z9cj5xyrww9xlzk4npj55mgmlrcd9d2nj08jn2pw79"))))
2078 (build-system python-build-system)
2080 `(("python-manuel" ,python-manuel)
2081 ("python-zope-testing" ,python-zope-testing)
2082 ("python-zope-testrunner" ,python-zope-testrunner)))
2084 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2085 ("python-zope-interface" ,python-zope-interface)
2086 ("python-zope-schema" ,python-zope-schema)))
2087 (home-page "https://pypi.org/project/zope.configuration/")
2088 (synopsis "Zope Configuration Markup Language")
2089 (description "Zope.configuration implements ZCML, the Zope Configuration
2091 (license license:zpl2.1)))
2093 (define-public python-zope-configuration-bootstrap
2095 (inherit python-zope-configuration)
2096 (arguments `(#:tests? #f))
2098 (properties `((hidden? . #t)))))
2100 (define-public python2-zope-configuration
2101 (package-with-python2 python-zope-configuration))
2103 (define-public python-zope-copy
2105 (name "python-zope-copy")
2110 (uri (pypi-uri "zope.copy" version))
2113 "06m75434krl57n6p73c2qj55k5i3fixg887j8ss01ih6zw4rvfs7"))))
2114 (build-system python-build-system)
2117 (modify-phases %standard-phases
2120 (invoke "zope-testrunner" "--test-path=src" "\\[]"))))))
2122 `(("python-zope-interface" ,python-zope-interface)))
2124 `(("python-zope-component" ,python-zope-component-bootstrap)
2125 ("python-zope-location" ,python-zope-location-bootstrap)
2126 ("python-zope-testing" ,python-zope-testing)
2127 ("python-zope-testrunner" ,python-zope-testrunner)))
2128 (home-page "https://github.com/zopefoundation/zope.copy")
2129 (synopsis "Pluggable object copying mechanism")
2131 "This package provides a pluggable mechanism for copying persistent objects.")
2132 (license license:zpl2.1)))
2134 (define-public python-zope-proxy
2136 (name "python-zope-proxy")
2141 (uri (pypi-uri "zope.proxy" version))
2144 "14h7nyfbl5vpfk0rbviy4ygdfx0yx5kncvg6jpbdb0dhwna0ssm6"))))
2145 (build-system python-build-system)
2147 `(("python-zope-security" ,python-zope-security-bootstrap)
2148 ("python-zope-testrunner" ,python-zope-testrunner)))
2150 `(("python-zope-interface" ,python-zope-interface)))
2151 (home-page "https://pypi.org/project/zope.proxy/")
2152 (synopsis "Generic, transparent proxies")
2153 (description "Zope.proxy provides generic, transparent proxies for Python.
2154 Proxies are special objects which serve as mostly-transparent wrappers around
2155 another object, intervening in the apparent behavior of the wrapped object
2156 only when necessary to apply the policy (e.g., access checking, location
2157 brokering, etc.) for which the proxy is responsible.")
2158 (license license:zpl2.1)))
2160 (define-public python-zope-proxy-bootstrap
2162 (inherit python-zope-proxy)
2163 (arguments `(#:tests? #f))
2165 (properties `((hidden? . #t)))))
2167 (define-public python2-zope-proxy
2168 (package-with-python2 python-zope-proxy))
2170 (define-public python-zope-hookable
2172 (name "python-zope-hookable")
2177 (uri (pypi-uri "zope.hookable" version))
2180 "0hc82lfr7bk53nvbxvjkibkarngyrzgfk2i6bg8wshl0ly0pdl19"))))
2181 (build-system python-build-system)
2183 `(("python-coverage" ,python-coverage)
2184 ("python-zope-testing" ,python-zope-testing)))
2185 (home-page "https://github.com/zopefoundation/zope.hookable")
2186 (synopsis "Zope hookable")
2187 (description "This package supports the efficient creation of hookable
2188 objects, which are callable objects that are meant to be optionally replaced.
2189 The idea is that you create a function that does some default thing and make i
2190 hookable. Later, someone can modify what it does by calling its sethook method
2191 and changing its implementation. All users of the function, including those
2192 that imported it, will see the change.")
2193 (license license:zpl2.1)))
2195 (define-public python-zope-location
2197 (name "python-zope-location")
2202 (uri (pypi-uri "zope.location" version))
2205 "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857"))))
2206 (build-system python-build-system)
2208 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
2210 `(("python-zope-testrunner" ,python-zope-testrunner)))
2212 `(("python-zope-interface" ,python-zope-interface)
2213 ("python-zope-proxy" ,python-zope-proxy)
2214 ("python-zope-schema" ,python-zope-schema)))
2215 (home-page "https://pypi.org/project/zope.location/")
2216 (synopsis "Zope location library")
2217 (description "Zope.location implements the concept of \"locations\" in
2218 Zope3, which are are special objects that have a structural location.")
2219 (license license:zpl2.1)))
2221 (define-public python-zope-location-bootstrap
2223 (inherit python-zope-location)
2224 (arguments `(#:tests? #f))
2226 (properties `((hidden? . #t)))))
2228 (define-public python2-zope-location
2229 (package-with-python2 python-zope-location))
2231 (define-public python-zope-security
2233 (name "python-zope-security")
2238 (uri (pypi-uri "zope.security" version))
2241 "11lfw67cigscfax9c5j63xcvz2qcj724zx5fcdqyc94am2glim0h"))))
2242 (build-system python-build-system)
2244 `(("python-zope-component" ,python-zope-component)
2245 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2246 ("python-zope-interface" ,python-zope-interface)
2247 ("python-zope-location" ,python-zope-location)
2248 ("python-zope-proxy" ,python-zope-proxy)
2249 ("python-zope-schema" ,python-zope-schema)))
2251 `(("python-btrees" ,python-btrees)
2252 ("python-zope-component" ,python-zope-component-bootstrap)
2253 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
2254 ("python-zope-location" ,python-zope-location-bootstrap)
2255 ("python-zope-testing" ,python-zope-testing)
2256 ("python-zope-testrunner" ,python-zope-testrunner)))
2257 (home-page "https://pypi.org/project/zope.security/")
2258 (synopsis "Zope security framework")
2259 (description "Zope.security provides a generic mechanism to implement
2260 security policies on Python objects.")
2261 (license license:zpl2.1)))
2263 (define-public python-zope-security-bootstrap
2265 (inherit python-zope-security)
2266 (arguments `(#:tests? #f))
2268 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2269 ("python-zope-interface" ,python-zope-interface)
2270 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
2271 ("python-zope-schema" ,python-zope-schema)))
2273 (properties `((hidden? . #t)))))
2275 (define-public python2-zope-security
2276 (package-with-python2 python-zope-security))
2278 (define-public python-zope-component
2280 (name "python-zope-component")
2285 (uri (pypi-uri "zope.component" version))
2288 "14iwp95hh6q5dj4k9h1iw75cbp89bs27nany4dinyglb44c8jqli"))))
2289 (build-system python-build-system)
2292 (modify-phases %standard-phases
2294 (lambda* (#:key inputs outputs #:allow-other-keys)
2295 (add-installed-pythonpath inputs outputs)
2296 (invoke "python" "setup.py" "test"))))))
2298 `(("python-persistent" ,python-persistent)
2299 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
2300 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
2301 ("python-zope-location" ,python-zope-location-bootstrap)
2302 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
2303 ("python-zope-security" ,python-zope-security-bootstrap)
2304 ("python-zope-testing" ,python-zope-testing)
2305 ("python-zope-testrunner" ,python-zope-testrunner)))
2307 `(("python-zope-deferredimport" ,python-zope-deferredimport)
2308 ("python-zope-deprecation" ,python-zope-deprecation)
2309 ("python-zope-event" ,python-zope-event)
2310 ("python-zope-hookable" ,python-zope-hookable)
2311 ("python-zope-interface" ,python-zope-interface)))
2312 (home-page "https://github.com/zopefoundation/zope.component")
2313 (synopsis "Zope Component Architecture")
2314 (description "Zope.component represents the core of the Zope Component
2315 Architecture. Together with the zope.interface package, it provides
2316 facilities for defining, registering and looking up components.")
2317 (license license:zpl2.1)))
2319 (define-public python-zope-component-bootstrap
2321 (inherit python-zope-component)
2322 (arguments `(#:tests? #f))
2324 (properties `((hidden? . #t)))))
2326 (define-public python2-zope-component
2327 (package-with-python2 python-zope-component))
2329 (define-public python-zope-deferredimport
2331 (name "python-zope-deferredimport")
2336 (uri (pypi-uri "zope.deferredimport" version))
2339 "1q89v54dwniiqypjbwywwdfjdr4kdkqlyqsgrpplgvsygdg39cjp"))))
2340 (build-system python-build-system)
2342 `(("python-zope-proxy" ,python-zope-proxy)))
2344 `(("python-zope-testrunner" ,python-zope-testrunner)))
2345 (home-page "https://github.com/zopefoundation/zope.deferredimport")
2346 (synopsis "Defer imports until used by code")
2348 "Often, especially for package modules, you want to import names for
2349 convenience, but not actually perform the imports until necessary. The
2350 @code{zope.deferredimport} package provided facilities for defining names in
2351 modules that will be imported from somewhere else when used. You can also cause
2352 deprecation warnings to be issued when a variable is used.")
2353 (license license:zpl2.1)))
2355 (define-public python-ndg-httpsclient
2357 (name "python-ndg-httpsclient")
2361 (uri (pypi-uri "ndg_httpsclient" version))
2364 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
2365 (build-system python-build-system)
2367 '(;; The tests appear to require networking.
2370 `(("python-pyopenssl" ,python-pyopenssl)))
2371 (synopsis "HTTPS support for Python's httplib and urllib2")
2372 (description "This is a HTTPS client implementation for httplib and urllib2
2373 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
2374 over the default provided with Python and, importantly, enables full
2375 verification of the SSL peer.")
2376 (home-page "https://github.com/cedadev/ndg_httpsclient/")
2377 (license license:bsd-3)))
2379 ;; python2-openssl requires special care, so package-with-python2 is
2381 (define-public python2-ndg-httpsclient
2382 (package/inherit python-ndg-httpsclient
2383 (name "python2-ndg-httpsclient")
2385 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
2386 ((#:python _) python-2)))
2388 `(("python2-pyopenssl" ,python2-pyopenssl)))))
2390 (define-public python-websocket-client
2392 (name "python-websocket-client")
2397 (uri (pypi-uri "websocket_client" version))
2400 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
2401 (build-system python-build-system)
2403 `(("python-six" ,python-six)))
2404 (home-page "https://github.com/liris/websocket-client")
2405 (synopsis "WebSocket client for Python")
2406 (description "The Websocket-client module provides the low level APIs for
2407 WebSocket usage in Python programs.")
2408 (properties `((python2-variant . ,(delay python2-websocket-client))))
2409 (license license:lgpl2.1+)))
2411 (define-public python2-websocket-client
2412 (let ((base (package-with-python2
2413 (strip-python2-variant python-websocket-client))))
2414 (package/inherit base
2416 `(("python2-backport-ssl-match-hostname"
2417 ,python2-backport-ssl-match-hostname)
2418 ,@(package-native-inputs base))))))
2420 (define-public python-purl
2422 (name "python-purl")
2427 (uri (pypi-uri "purl" version))
2430 "15ibnz1xrh5msmn04j0nr00sz4n7jwx6cwd6zlx99kkz3vpin53m"))))
2431 (build-system python-build-system)
2432 (propagated-inputs `(("python-six" ,python-six)))
2434 "https://github.com/codeinthehole/purl")
2436 "Python package for URL manipulation")
2438 "Purl is a Python package for handling URLs.")
2439 (license license:expat)))
2441 (define-public python-apiron
2443 (name "python-apiron")
2448 (uri (pypi-uri "apiron" version))
2450 (base32 "1qwbqn47sf0aqznj1snbv37v8ijx476qqkjf5l9pac7xjkxsr8qk"))))
2451 (build-system python-build-system)
2454 (modify-phases %standard-phases
2456 (lambda* (#:key inputs outputs #:allow-other-keys)
2457 (add-installed-pythonpath inputs outputs)
2458 (invoke "pytest" "-vv" "--cov" "-k"
2459 ;; This test tries to connect to the internet.
2460 "not test_call"))))))
2462 `(("python-requests" ,python-requests)))
2464 `(("python-pytest" ,python-pytest)
2465 ("python-pytest-cov" ,python-pytest-cov)))
2466 (home-page "https://github.com/ithaka/apiron")
2467 (synopsis "Python wrapper for interacting with RESTful APIs")
2469 "@code{apiron} provides a declarative, structured configuration of
2470 services and endpoints with a unified interface for interacting with RESTful
2472 (license license:expat)))
2474 (define-public python-beren
2476 (name "python-beren")
2481 (uri (pypi-uri "beren" version))
2483 (base32 "1v3mdwfqsyza892zvs124ym9w1bkng1j56b7l4dwfjir3723xcgf"))))
2484 (build-system python-build-system)
2486 ;; The test tries to open a connection to a remote server.
2489 `(("python-apiron" ,python-apiron)))
2490 (home-page "https://github.com/teffalump/beren")
2491 (synopsis "REST client for Orthanc DICOM servers")
2493 "@code{beren} provides a REST client for Orthanc, a DICOM server.")
2494 (license license:gpl3+)))
2496 (define-public python-requests
2498 (name "python-requests")
2502 (uri (pypi-uri "requests" version))
2505 "1y6mb8c0ipd64d5axq2p368yxndp3f966hmabjka2q2a5y9hn6kz"))))
2506 (build-system python-build-system)
2508 `(("python-certifi" ,python-certifi)
2509 ("python-chardet" ,python-chardet)
2510 ("python-idna" ,python-idna)
2511 ("python-urllib3" ,python-urllib3)))
2513 ;; FIXME: Some tests require network access.
2515 (home-page "http://python-requests.org/")
2516 (synopsis "Python HTTP library")
2518 "Requests is a Python HTTP client library. It aims to be easier to use
2519 than Python’s urllib2 library.")
2520 (license license:asl2.0)))
2522 ;; Some software requires an older version of Requests, notably Docker/Docker
2524 (define-public python-requests-2.20
2525 (package (inherit python-requests)
2529 (uri (pypi-uri "requests" version))
2532 "0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
2534 `(("python-urllib3" ,python-urllib3-1.24)
2535 ("python-idna" ,python-idna-2.7)
2536 ,@(package-propagated-inputs python-requests)))))
2538 (define-public python2-requests
2539 (package-with-python2 python-requests))
2541 (define-public python-requests-unixsocket
2543 (name "python-requests-unixsocket")
2548 (uri (pypi-uri "requests-unixsocket" version))
2551 "1sn12y4fw1qki5gxy9wg45gmdrxhrndwfndfjxhpiky3mwh1lp4y"))))
2552 (build-system python-build-system)
2555 (modify-phases %standard-phases
2556 (add-after 'unpack 'relax-requirements
2558 (substitute* "test-requirements.txt"
2559 (("(.*)==(.*)" _ name) (string-append name "\n")))))
2561 (lambda* (#:key inputs outputs #:allow-other-keys)
2562 (add-installed-pythonpath inputs outputs)
2563 (invoke "pytest" "-vv"))))))
2565 `(("python-pbr" ,python-pbr)
2566 ("python-requests" ,python-requests)
2567 ("python-urllib3" ,python-urllib3)))
2569 `(("python-apipkg" ,python-apipkg)
2570 ("python-appdirs" ,python-appdirs)
2571 ("python-execnet" ,python-execnet)
2572 ("python-packaging" ,python-packaging)
2573 ("python-pep8" ,python-pep8)
2574 ("python-py" ,python-py)
2575 ("python-pyparsing" ,python-pyparsing)
2576 ("python-pytest" ,python-pytest)
2577 ("python-pytest-cache" ,python-pytest-cache)
2578 ("python-pytest-pep8" ,python-pytest-pep8)
2579 ("python-six" ,python-six)
2580 ("python-waitress" ,python-waitress)))
2581 (home-page "https://github.com/msabramo/requests-unixsocket")
2582 (synopsis "Talk HTTP via a UNIX domain socket")
2584 "This Python package lets you use the @code{requests} library to talk
2585 HTTP via a UNIX domain socket.")
2586 (license license:asl2.0)))
2588 (define-public python-requests_ntlm
2590 (name "python-requests_ntlm")
2595 (uri (pypi-uri "requests_ntlm" version))
2598 "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
2599 (build-system python-build-system)
2601 `(("python-cryptography" ,python-cryptography)
2602 ("python-ntlm-auth" ,python-ntlm-auth)
2603 ("python-requests" ,python-requests)))
2604 (home-page "https://github.com/requests/requests-ntlm")
2606 "NTLM authentication support for Requests")
2608 "This package allows for HTTP NTLM authentication using the requests
2610 (license license:isc)))
2612 (define-public python-requests-mock
2614 (name "python-requests-mock")
2619 (uri (pypi-uri "requests-mock" version))
2622 "09nj8fmyj7xz2mgwyvbw0fl9zybmx2d3qd2hf529vvjc9s24d3z6"))))
2623 (build-system python-build-system)
2625 `(("python-requests" ,python-requests)
2626 ("python-six" ,python-six)))
2628 `(("python-pbr" ,python-pbr)
2629 ("python-discover" ,python-discover)
2630 ("python-docutils" ,python-docutils)
2631 ("python-fixtures" ,python-fixtures)
2632 ("python-mock" ,python-mock)
2633 ("python-purl" ,python-purl)
2634 ("python-pytest" ,python-pytest)
2635 ("python-sphinx" ,python-sphinx)
2636 ("python-testrepository" ,python-testrepository)))
2637 (home-page "https://requests-mock.readthedocs.org/")
2638 (synopsis "Mock out responses from the requests package")
2640 "This module provides a building block to stub out the HTTP requests
2641 portions of your testing code.")
2642 (license license:asl2.0)))
2644 (define-public python-requests-toolbelt
2646 (name "python-requests-toolbelt")
2650 (uri (pypi-uri "requests-toolbelt" version))
2653 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
2654 (build-system python-build-system)
2656 `(("python-betamax" ,python-betamax)
2657 ("python-mock" ,python-mock)
2658 ("python-pytest" ,python-pytest)))
2660 `(("python-requests" ,python-requests)))
2661 (synopsis "Extensions to python-requests")
2662 (description "This is a toolbelt of useful classes and functions to be used
2663 with python-requests.")
2664 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
2665 (license license:asl2.0)))
2667 (define-public python2-requests-toolbelt
2668 (package-with-python2 python-requests-toolbelt))
2670 (define-public python-requests-toolbelt-0.9.1
2672 (inherit python-requests-toolbelt)
2676 (uri (pypi-uri "requests-toolbelt" version))
2679 "1h3gm88dcjbd7gm229a7x5qkkhnsqsjz0m0l2xyavm2ab3a8k04n"))))
2681 `(;; FIXME: Some tests require network access.
2684 (define-public python-requests-ftp
2686 (name "python-requests-ftp")
2691 (uri (pypi-uri "requests-ftp" version))
2694 "0yh5v21v36dsjsgv4y9dx4mmz35741l5jf6pbq9w19d8rfsww13m"))))
2695 (build-system python-build-system)
2697 `(("python-requests" ,python-requests)))
2699 "https://github.com/Lukasa/requests-ftp")
2700 (synopsis "FTP Transport Adapter for Requests")
2702 "Requests-FTP is an implementation of a simple FTP transport
2703 adapter for use with the Requests library.")
2704 (license license:asl2.0)))
2706 (define-public python-oauthlib
2708 (name "python-oauthlib")
2712 (uri (pypi-uri "oauthlib" version))
2715 "12gqnabwck30gdlpwm6af3s28qm9p2yc7b1w8s4fk9ncbz1irr5y"))))
2716 (build-system python-build-system)
2718 `(#:phases (modify-phases %standard-phases
2721 (invoke "pytest" "-vv"))))))
2723 `(("python-pytest" ,python-pytest)
2724 ("python-pytest-cov" ,python-pytest-cov)
2725 ("python-mock" ,python-mock)))
2727 `(("python-cryptography" ,python-cryptography)
2728 ("python-pyjwt" ,python-pyjwt)
2729 ("python-blinker" ,python-blinker)))
2730 (home-page "https://github.com/oauthlib/oauthlib")
2731 (synopsis "OAuth implementation for Python")
2733 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2734 OAuth request-signing logic.")
2735 (license license:bsd-3)))
2737 (define-public python2-oauthlib
2738 (package-with-python2 python-oauthlib))
2740 (define-public python-rauth
2742 (name "python-rauth")
2747 (uri (pypi-uri "rauth" version))
2750 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
2751 (build-system python-build-system)
2753 `(#:test-target "check"))
2755 `(("python-requests" ,python-requests)))
2756 (home-page "https://github.com/litl/rauth")
2757 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
2759 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
2760 provides service wrappers for convenient connection initialization and
2761 authenticated session objects providing things like keep-alive.")
2762 (license license:expat)
2763 (properties `((python2-variant . ,(delay python2-rauth))))))
2765 (define-public python2-rauth
2766 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
2767 (package/inherit base
2768 (native-inputs `(("python2-unittest2" ,python2-unittest2)
2769 ,@(package-native-inputs base))))))
2771 (define-public python-urllib3
2773 (name "python-urllib3")
2778 (uri (pypi-uri "urllib3" version))
2781 "0dw9w9bs3hmr5dp3r3h43jyzzb1g1046ag7lj8pqf58i4kvj3c77"))))
2782 (build-system python-build-system)
2783 (arguments `(#:tests? #f))
2785 `(;; These 5 inputs are used to build urrlib3[secure]
2786 ("python-certifi" ,python-certifi)
2787 ("python-cryptography" ,python-cryptography)
2788 ("python-idna" ,python-idna)
2789 ("python-pyopenssl" ,python-pyopenssl)
2790 ("python-pysocks" ,python-pysocks)))
2791 (home-page "https://urllib3.readthedocs.io/")
2792 (synopsis "HTTP library with thread-safe connection pooling")
2794 "Urllib3 supports features left out of urllib and urllib2 libraries. It
2795 can reuse the same socket connection for multiple requests, it can POST files,
2796 supports url redirection and retries, and also gzip and deflate decoding.")
2797 (properties `((python2-variant . ,(delay python2-urllib3))))
2798 (license license:expat)))
2800 ;; Some software requires an older version of urllib3, notably Docker.
2801 (define-public python-urllib3-1.24
2802 (package (inherit python-urllib3)
2806 (uri (pypi-uri "urllib3" version))
2809 "1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
2812 (define-public python2-urllib3
2813 (let ((base (package-with-python2 (strip-python2-variant python-urllib3))))
2817 `(("python-ipaddress" ,python2-ipaddress)
2818 ,@(package-propagated-inputs base))))))
2820 (define-public awscli
2822 ;; Note: updating awscli typically requires updating botocore as well.
2824 (version "1.18.203")
2828 (uri (pypi-uri name version))
2831 "128zg24961j8nmnq2dxqg6a7zwh3qgv87cmvclsdqwwih9nigxv9"))))
2832 (build-system python-build-system)
2834 ;; FIXME: The 'pypi' release does not contain tests.
2837 (modify-phases %standard-phases
2838 (add-after 'unpack 'fix-reference-to-groff
2840 (substitute* "awscli/help.py"
2841 (("if not self._exists_on_path\\('groff'\\):") "")
2842 (("raise ExecutableNotFoundError\\('groff'\\)") "")
2843 (("cmdline = \\['groff'")
2844 (string-append "cmdline = ['" (which "groff") "'")))
2847 `(("python-colorama" ,python-colorama)
2848 ("python-botocore" ,python-botocore)
2849 ("python-s3transfer" ,python-s3transfer)
2850 ("python-docutils" ,python-docutils)
2851 ("python-pyyaml" ,python-pyyaml)
2852 ("python-rsa" ,python-rsa)))
2854 `(("groff" ,groff)))
2855 (home-page "https://aws.amazon.com/cli/")
2856 (synopsis "Command line client for AWS")
2857 (description "AWS CLI provides a unified command line interface to the
2858 Amazon Web Services (AWS) API.")
2859 (license license:asl2.0)))
2861 (define-public python-wsgiproxy2
2863 (name "python-wsgiproxy2")
2868 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
2870 (base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf"))))
2871 (build-system python-build-system)
2873 `(("python-webtest" ,python-webtest)))
2875 `(("python-requests" ,python-requests)
2876 ("python-six" ,python-six)
2877 ("python-urllib3" ,python-urllib3)
2878 ("python-webob" ,python-webob)))
2879 (home-page "https://github.com/gawel/WSGIProxy2/")
2880 (synopsis "WSGI Proxy with various http client backends")
2881 (description "WSGI turns HTTP requests into WSGI function calls.
2882 WSGIProxy turns WSGI function calls into HTTP requests.
2883 It also includes code to sign requests and pass private data,
2884 and to spawn subprocesses to handle requests.")
2885 (license license:expat)))
2887 (define-public python-pastedeploy
2889 (name "python-pastedeploy")
2894 (uri (pypi-uri "PasteDeploy" version))
2896 (base32 "05s88qdjdwd9d9qs13fap7nqgxs7qs5qfzzjbrc5va13k2mxdskd"))))
2897 (build-system python-build-system)
2899 '(#:test-target "pytest"))
2901 `(("python-pytest" ,python-pytest)
2902 ("python-pytest-runner" ,python-pytest-runner)))
2903 (home-page "https://pylonsproject.org/")
2905 "Load, configure, and compose WSGI applications and servers")
2907 "This tool provides code to load WSGI applications and servers from URIs;
2908 these URIs can refer to Python Eggs for INI-style configuration files. Paste
2909 Script provides commands to serve applications based on this configuration
2911 (license license:expat)))
2913 (define-public python2-pastedeploy
2914 (package-with-python2 python-pastedeploy))
2916 (define-public python-webtest
2918 (name "python-webtest")
2923 (uri (pypi-uri "WebTest" version))
2925 (base32 "11xhgdj251zkvz5w30fvspii08ki2vrpr1im9sph1wmlnasnihda"))))
2926 (build-system python-build-system)
2928 ;; Tests require python-pyquery, which creates a circular dependency.
2931 `(("python-waitress" ,python-waitress)
2932 ("python-webob" ,python-webob)
2933 ("python-six" ,python-six)
2934 ("python-beautifulsoup4" ,python-beautifulsoup4)))
2935 (home-page "https://docs.pylonsproject.org/projects/webtest/")
2936 (synopsis "Helper to test WSGI applications")
2937 (description "Webtest allows you to test your Python web applications
2938 without starting an HTTP server. It supports anything that supports the
2940 (license license:expat)))
2942 (define-public python2-webtest
2943 (package-with-python2 python-webtest))
2945 (define-public python-flask
2947 (name "python-flask")
2951 (uri (pypi-uri "Flask" version))
2954 "0mcgwq7b4qd99mf5bsvs3wphchxarf8kgil4hwww3blj31xjak0w"))))
2955 (build-system python-build-system)
2958 (modify-phases %standard-phases
2960 (lambda* (#:key tests? #:allow-other-keys)
2962 (invoke "pytest" "-vv" "tests")))))))
2964 `(("python-pytest" ,python-pytest)))
2966 `(("python-itsdangerous" ,python-itsdangerous)
2967 ("python-jinja2" ,python-jinja2)
2968 ("python-click" ,python-click)
2969 ("python-werkzeug" ,python-werkzeug)))
2970 (home-page "https://www.palletsprojects.com/p/flask/")
2971 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
2972 (description "Flask is a micro web framework based on the Werkzeug toolkit
2973 and Jinja2 template engine. It is called a micro framework because it does not
2974 presume or force a developer to use a particular tool or library.")
2975 (license license:bsd-3)))
2977 (define-public python-flask-wtf
2979 (name "python-flask-wtf")
2984 (uri (pypi-uri "Flask-WTF" version))
2987 "086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl"))))
2988 (build-system python-build-system)
2991 (modify-phases %standard-phases
2994 (invoke "pytest" "-vv"))))))
2996 `(("python-flask-babel" ,python-flask-babel)
2997 ("python-babel" ,python-babel)
2998 ("python-wtforms" ,python-wtforms)))
3000 `(("python-pytest" ,python-pytest)))
3001 (home-page "https://github.com/lepture/flask-wtf")
3002 (synopsis "Simple integration of Flask and WTForms")
3003 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
3004 upload, and reCAPTCHA.")
3005 (license license:bsd-3)))
3007 (define-public python-flask-multistatic
3009 (name "python-flask-multistatic")
3014 (uri (pypi-uri "flask-multistatic" version))
3017 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
3018 (build-system python-build-system)
3020 `(("python-flask" ,python-flask)))
3021 (home-page "https://pagure.io/flask-multistatic")
3022 (synopsis "Flask plugin to allow overriding static files")
3023 (description "@code{flask-multistatic} is a flask plugin that adds support
3024 for overriding static files.")
3025 (license license:gpl3+)))
3027 (define-public python-cookies
3029 (name "python-cookies")
3033 (uri (pypi-uri "cookies" version))
3036 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
3037 (build-system python-build-system)
3039 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
3042 `(("python-pytest" ,python-pytest)))
3043 (synopsis "HTTP cookie parser and renderer")
3044 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
3046 (home-page "https://gitlab.com/sashahart/cookies")
3047 (license license:expat)))
3049 (define-public python2-cookies
3050 (package-with-python2 python-cookies))
3052 (define-public python-responses
3054 (name "python-responses")
3058 (uri (pypi-uri "responses" version))
3061 "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah"))))
3062 (build-system python-build-system)
3064 `(;; Test suite is not distributed:
3065 ;; https://github.com/getsentry/responses/issues/38
3068 `(("python-mock" ,python-mock)))
3070 `(("python-requests" ,python-requests)
3071 ("python-cookies" ,python-cookies)
3072 ("python-six" ,python-six)))
3073 (home-page "https://github.com/getsentry/responses")
3074 (synopsis "Utility for mocking out the `requests` Python library")
3075 (description "A utility library for mocking out the `requests` Python
3077 (license license:asl2.0)))
3079 (define-public python2-responses
3080 (package-with-python2 python-responses))
3082 (define-public python-grequests
3084 (name "python-grequests")
3089 (uri (pypi-uri "grequests" version))
3092 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
3093 (build-system python-build-system)
3095 `(("python-gevent" ,python-gevent)
3096 ("python-requests" ,python-requests)))
3098 `(("python-nose" ,python-nose)
3099 ("python-zope.interface" ,python-zope-interface)
3100 ("python-zope.event" ,python-zope-event)))
3101 (home-page "https://github.com/kennethreitz/grequests")
3102 (synopsis "Python library for asynchronous HTTP requests")
3103 (description "GRequests is a Python library that allows you to use
3104 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
3105 (license license:bsd-2)))
3107 (define-public python-dpkt
3109 (name "python-dpkt")
3114 (uri (pypi-uri "dpkt" version))
3117 "1d28r8pmhzjjd6hrn1xcddinfhwv8lcl1s59ygmqa8kfmz5pkrgl"))))
3118 (build-system python-build-system)
3119 (home-page "https://github.com/kbandla/dpkt")
3120 (synopsis "Packet generator and parser for TCP/IP protocols")
3121 (description "The dpkt module is a fast, simple packet generator and parser
3122 for the basic TCP/IP protocols.")
3123 (license license:bsd-3)))
3125 (define-public python-geventhttpclient
3127 (name "python-geventhttpclient")
3131 (uri (pypi-uri "geventhttpclient" version))
3134 "1hy4qm9d3r69n5199i7qjji1v7718n7cxbj8ggi0njify99m37pm"))
3135 (modules '((guix build utils)))
3138 ;; Delete pre-compiled files.
3139 (for-each delete-file (find-files "src/geventhttpclient"
3141 (build-system python-build-system)
3144 (modify-phases %standard-phases
3145 (add-after 'unpack 'delete-network-tests
3147 (delete-file "src/geventhttpclient/tests/test_client.py")))
3148 (add-after 'unpack 'fix-compatibility-issue
3149 ;; See: https://github.com/gwik/geventhttpclient/issues/137.
3151 (substitute* "src/geventhttpclient/tests/test_ssl.py"
3152 ((".*sock.last_seen_sni = None.*")
3155 (lambda* (#:key inputs outputs #:allow-other-keys)
3156 (add-installed-pythonpath inputs outputs)
3157 (invoke "py.test" "src/geventhttpclient/tests" "-v"
3158 ;; Append the test modules to sys.path to avoid
3159 ;; namespace conflict which breaks SSL tests.
3160 "--import-mode=append"
3161 ;; XXX: This test fails with Python 3.8:
3162 ;; https://github.com/gwik/geventhttpclient/issues/119
3163 "-k" "not test_cookielib_compatibility"))))))
3165 `(("python-dpkt" ,python-dpkt)
3166 ("python-pytest" ,python-pytest)))
3168 `(("python-certifi" ,python-certifi)
3169 ("python-gevent" ,python-gevent)
3170 ("python-six" ,python-six)))
3171 (home-page "https://github.com/gwik/geventhttpclient")
3172 (synopsis "HTTP client library for gevent")
3173 (description "@code{python-geventhttpclient} is a high performance,
3174 concurrent HTTP client library for python using @code{gevent}.")
3175 (license license:expat)))
3177 (define-public python-requests-oauthlib
3179 (name "python-requests-oauthlib")
3184 (uri (pypi-uri "requests-oauthlib" version))
3187 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
3188 (build-system python-build-system)
3191 (modify-phases %standard-phases
3192 ;; removes tests that require network access
3193 (add-before 'check 'pre-check
3195 (delete-file "tests/test_core.py")
3198 `(("python-pyjwt" ,python-pyjwt)
3199 ("python-requests-mock" ,python-requests-mock)
3200 ("python-mock" ,python-mock)))
3202 `(("python-oauthlib" ,python-oauthlib)
3203 ("python-requests" ,python-requests)))
3205 "https://github.com/requests/requests-oauthlib")
3207 "OAuthlib authentication support for Requests")
3209 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
3210 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
3211 (license license:isc)))
3213 (define-public python-url
3219 (uri (pypi-uri "url" version))
3222 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
3223 (build-system python-build-system)
3225 `(("python-publicsuffix" ,python-publicsuffix)))
3227 `(("python-coverage" ,python-coverage)
3228 ("python-nose" ,python-nose)))
3230 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
3231 (home-page "https://github.com/seomoz/url-py")
3232 (synopsis "URL Parsing")
3233 (description "Library for parsing urls.")
3234 (license license:expat)
3235 (properties `((python2-variant . ,(delay python2-url))))))
3237 (define-public python2-url
3238 (let ((base (package-with-python2 (strip-python2-variant python-url))))
3239 (package/inherit base
3241 `(("python2-publicsuffix" ,python2-publicsuffix))))))
3243 (define-public python-cachecontrol
3245 (name "python-cachecontrol")
3250 ;; Pypi does not have tests.
3252 (url "https://github.com/ionrock/cachecontrol")
3253 (commit (string-append "v" version))))
3254 (file-name (git-file-name name version))
3257 "03lgc65sl04n0cgzmmgg99bk83f9i6k8yrmcd4hpl46q1pymn0kz"))))
3258 (build-system python-build-system)
3260 ;; Versions > 0.11.6 depend on CherryPy for testing.
3261 ;; It's too much work to package CherryPy for now.
3264 `(("python-requests" ,python-requests)
3265 ("python-msgpack" ,python-msgpack)
3266 ("python-lockfile" ,python-lockfile)))
3267 (home-page "https://github.com/ionrock/cachecontrol")
3268 (synopsis "The httplib2 caching algorithms for use with requests")
3269 (description "CacheControl is a port of the caching algorithms in
3270 @code{httplib2} for use with @code{requests} session objects.")
3271 (license license:asl2.0)))
3273 (define-public python-cachecontrol-0.11
3275 (inherit python-cachecontrol)
3276 (name "python-cachecontrol")
3281 (uri (pypi-uri "CacheControl" version))
3284 "07jsfhlbcwgqg6ayz8nznzaqg5rmxqblbzxz1qvg5wc44pcjjy4g"))))))
3286 (define-public python-betamax
3288 (name "python-betamax")
3293 (uri (pypi-uri "betamax" version))
3296 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
3297 (build-system python-build-system)
3299 '(;; Many tests fail because they require networking.
3302 `(("python-requests" ,python-requests)))
3303 (home-page "https://github.com/sigmavirus24/betamax")
3304 (synopsis "Record HTTP interactions with python-requests")
3305 (description "Betamax will record your test suite's HTTP interactions and
3306 replay them during future tests. It is designed to work with python-requests.")
3307 (license license:expat)))
3309 (define-public python2-betamax
3310 (package-with-python2 python-betamax))
3312 (define-public python-betamax-matchers
3314 (name "python-betamax-matchers")
3319 (uri (pypi-uri "betamax-matchers" version))
3322 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
3323 (build-system python-build-system)
3325 `(("python-betamax" ,python-betamax)
3326 ("python-requests-toolbelt" ,python-requests-toolbelt)))
3327 (home-page "https://github.com/sigmavirus24/betamax_matchers")
3328 (synopsis "VCR imitation for python-requests")
3329 (description "@code{betamax-matchers} provides a set of Matchers for
3331 (license license:asl2.0)))
3333 (define-public python2-betamax-matchers
3334 (package-with-python2 python-betamax-matchers))
3336 (define-public python-betamax-serializers
3338 (name "python-betamax-serializers")
3343 (uri (pypi-uri "betamax-serializers" version))
3345 (base32 "0ja9isbjmzzhxdj69s0kdsvw8nkp073w6an6a4liy5vk3fdl2p1l"))))
3346 (build-system python-build-system)
3348 `(("python-betamax" ,python-betamax)
3349 ("python-pyyaml" ,python-pyyaml)))
3350 (synopsis "Set of third-party serializers for Betamax")
3351 (description "Betamax-Serializers are an experimental set of Serializers for
3352 Betamax that may possibly end up in the main package.")
3353 (home-page "https://gitlab.com/betamax/serializers")
3354 (license license:asl2.0)))
3356 (define-public python-s3transfer
3358 (name "python-s3transfer")
3362 (uri (pypi-uri "s3transfer" version))
3365 "1nzp5kwmy9669334shcz9ipg89jgpdqhrmbkgdg18r7wmvi3f6lj"))))
3366 (build-system python-build-system)
3369 (modify-phases %standard-phases
3370 (add-after 'unpack 'patch
3372 ;; There's a small issue with one test with Python 3.8, this
3373 ;; change has been suggested upstream:
3374 ;; https://github.com/boto/s3transfer/pull/164
3375 (substitute* "tests/unit/test_s3transfer.py"
3376 (("super\\(FailedDownloadParts, self\\)\\.submit\\(function\\)")
3377 "futures.Future()"))
3381 ;; Some of the 'integration' tests require network access or
3382 ;; login credentials.
3383 (invoke "nosetests" "--exclude=integration")
3386 `(("python-docutils" ,python-docutils)
3387 ("python-mock" ,python-mock)
3388 ("python-nose" ,python-nose)))
3390 `(("python-botocore" ,python-botocore)
3391 ("python-urllib3" ,python-urllib3)))
3392 (synopsis "Amazon S3 Transfer Manager")
3393 (description "S3transfer is a Python library for managing Amazon S3
3395 (home-page "https://github.com/boto/s3transfer")
3396 (license license:asl2.0)
3397 (properties `((python2-variant . ,(delay python2-s3transfer))))))
3399 (define-public python2-s3transfer
3400 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
3401 (package/inherit base
3403 `(("python2-futures" ,python2-futures)
3404 ,@(package-native-inputs base))))))
3406 (define-public python-slimit
3408 (name "python-slimit")
3413 (uri (pypi-uri "slimit" version ".zip"))
3416 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
3417 (build-system python-build-system)
3419 `(("unzip" ,unzip)))
3421 `(("python-ply" ,python-ply)))
3422 (home-page "https://slimit.readthedocs.io/")
3423 (synopsis "JavaScript minifier, parser and lexer written in Python")
3425 "SlimIt is a JavaScript minifier written in Python. It compiles
3426 JavaScript into more compact code so that it downloads and runs faster.
3427 SlimIt also provides a library that includes a JavaScript parser, lexer,
3428 pretty printer and a tree visitor.")
3429 (license license:expat)))
3431 (define-public python-flask-restful
3433 (name "python-flask-restful")
3438 (uri (pypi-uri "Flask-RESTful" version))
3439 (patches (search-patches "python-flask-restful-werkzeug-compat.patch"))
3442 "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
3443 (build-system python-build-system)
3445 `(("python-aniso8601" ,python-aniso8601)
3446 ("python-flask" ,python-flask)
3447 ("python-pycrypto" ,python-pycrypto)
3448 ("python-pytz" ,python-pytz)))
3450 `(;; Optional dependency of Flask. Tests need it.
3451 ("python-blinker" ,python-blinker)
3452 ("python-mock" ,python-mock) ; For tests
3453 ("python-nose" ,python-nose))) ;for tests
3455 "https://www.github.com/flask-restful/flask-restful/")
3457 "Flask module for creating REST APIs")
3459 "This package contains a Flask module for creating REST APIs.")
3460 (license license:bsd-3)))
3462 (define-public python-flask-basicauth
3464 (name "python-flask-basicauth")
3469 (uri (pypi-uri "Flask-BasicAuth" version))
3472 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
3473 (build-system python-build-system)
3475 `(#:phases (modify-phases %standard-phases
3476 (add-after 'unpack 'fix-imports
3478 (substitute* '("docs/index.rst"
3480 "flask_basicauth.py"
3481 "test_basicauth.py")
3482 (("flask\\.ext\\.basicauth")
3486 `(("python-flask" ,python-flask)))
3487 (home-page "https://github.com/jpvanhal/flask-basicauth")
3488 (synopsis "HTTP basic access authentication for Flask")
3490 "This package provides HTTP basic access authentication for Flask.")
3491 (license license:bsd-3)))
3493 (define-public python-flask-htpasswd
3495 (name "python-flask-htpasswd")
3500 (uri (pypi-uri "flask-htpasswd" version))
3503 "14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra"))))
3504 (build-system python-build-system)
3506 `(("python-flask" ,python-flask)
3507 ("python-itsdangerous" ,python-itsdangerous)
3508 ("python-passlib" ,python-passlib)
3509 ("python-tox" ,python-tox)))
3510 (home-page "https://github.com/carsongee/flask-htpasswd")
3511 (synopsis "Basic authentication via htpasswd files in Flask applications")
3512 (description "This package provides Basic authentication via
3513 @file{htpasswd} files and access_token authentication in Flask
3515 (license license:bsd-3)))
3517 (define-public python-flask-sqlalchemy
3519 (name "python-flask-sqlalchemy")
3523 (uri (pypi-uri "Flask-SQLAlchemy" version))
3526 "04jrx4sjrz1b20j38qk4qin975xwz30krzq59rfv3b3w7ss49nib"))))
3527 (build-system python-build-system)
3529 `(("python-flask" ,python-flask)
3530 ("python-sqlalchemy" ,python-sqlalchemy)))
3531 (home-page "https://github.com/mitsuhiko/flask-sqlalchemy")
3532 (synopsis "Module adding SQLAlchemy support to your Flask application")
3534 "This package adds SQLAlchemy support to your Flask application.")
3535 (license license:bsd-3)))
3537 (define-public python-flask-restplus
3539 (name "python-flask-restplus")
3544 (uri (pypi-uri "flask-restplus" version))
3547 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
3548 (build-system python-build-system)
3550 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
3552 ;; (modify-phases %standard-phases
3555 ;; (invoke "nosetests")
3558 `(("python-aniso8601" ,python-aniso8601)
3559 ("python-flask" ,python-flask)
3560 ("python-jsonschema" ,python-jsonschema)
3561 ("python-pytz" ,python-pytz)
3562 ("python-six" ,python-six)))
3564 `(("python-tzlocal" ,python-tzlocal)
3565 ("python-blinker" ,python-blinker)
3566 ("python-nose" ,python-nose)
3567 ("python-rednose" ,python-rednose)))
3568 (home-page "https://github.com/noirbizarre/flask-restplus")
3569 (synopsis "Framework for documented API development with Flask")
3570 (description "This package provides a framework for API development with
3571 the Flask web framework in Python. It is similar to package
3572 @code{python-flask-restful} but supports the @code{python-swagger}
3573 documentation builder.")
3574 (license license:expat)))
3576 (define-public python-flask-restful-swagger
3578 (name "python-flask-restful-swagger")
3583 (uri (pypi-uri "flask-restful-swagger" version))
3586 "1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq"))))
3587 (build-system python-build-system)
3588 (arguments '(#:tests? #f)) ;no tests
3590 `(("python-flask-restful" ,python-flask-restful)))
3591 (home-page "https://github.com/rantav/flask-restful-swagger")
3592 (synopsis "Extract Swagger specs from Flask-Restful projects")
3593 (description "This package lets you extract Swagger API documentation
3594 specs from your Flask-Restful projects.")
3595 (license license:expat)))
3597 (define-public python-htmlmin
3599 (name "python-htmlmin")
3604 (uri (pypi-uri "htmlmin" version))
3607 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
3609 `(#:tests? #f)) ; no tests
3610 (build-system python-build-system)
3611 (home-page "https://htmlmin.readthedocs.org/en/latest/")
3612 (synopsis "HTML minifier")
3613 (description "@code{htmlmin} is an HTML minifier that just works.
3614 It comes with safe defaults and easily configurable options.")
3615 (license license:bsd-3)))
3617 (define-public python2-htmlmin
3618 (package-with-python2 python-htmlmin))
3620 (define-public python-flask-htmlmin
3622 (name "python-flask-htmlmin")
3627 (uri (pypi-uri "Flask-HTMLmin" version))
3630 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
3632 `(("python-flask" ,python-flask)
3633 ("python-htmlmin" ,python-htmlmin)))
3634 (build-system python-build-system)
3635 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
3636 (synopsis "HTML response minifier for Flask")
3638 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
3639 (license license:bsd-3)))
3641 (define-public python-jsmin
3643 (name "python-jsmin")
3648 (uri (pypi-uri "jsmin" version))
3651 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
3652 (build-system python-build-system)
3653 (home-page "https://github.com/tikitu/jsmin/")
3654 (synopsis "Python JavaScript minifier")
3656 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
3657 on the command line.")
3658 (license license:expat)))
3660 (define-public python-flask-login
3662 (name "python-flask-login")
3668 (url "https://github.com/maxcountryman/flask-login")
3670 (file-name (git-file-name name version))
3672 (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
3673 (build-system python-build-system)
3675 `(("python-flask" ,python-flask)))
3678 `(("python-blinker" ,python-blinker)
3679 ("python-coverage" ,python-coverage)
3680 ("python-mock" ,python-mock)
3681 ("python-pycodestyle" ,python-pycodestyle)
3682 ("python-pyflakes" ,python-pyflakes)
3683 ("python-pytest" ,python-pytest)
3684 ("python-semantic-version" ,python-semantic-version)
3685 ("python-werkzeug" ,python-werkzeug)))
3686 (home-page "https://github.com/maxcountryman/flask-login")
3687 (synopsis "User session management for Flask")
3689 "@code{Flask-Login} provides user session management for Flask. It
3690 handles the common tasks of logging in, logging out, and remembering your
3691 users' sessions over extended periods of time.")
3692 (license license:expat)))
3694 (define-public python-oauth2client
3696 (name "python-oauth2client")
3701 (uri (pypi-uri "oauth2client" version))
3704 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
3705 (build-system python-build-system)
3709 `(("python-httplib2" ,python-httplib2)
3710 ("python-pyasn1" ,python-pyasn1)
3711 ("python-pyasn1-modules" ,python-pyasn1-modules)
3712 ("python-rsa" ,python-rsa)
3713 ("python-six" ,python-six)))
3714 (home-page "https://github.com/google/oauth2client/")
3715 (synopsis "OAuth 2.0 client library")
3716 (description "@code{python-oauth2client} provides an OAuth 2.0 client
3717 library for Python")
3718 (license license:asl2.0)))
3720 (define-public python2-oauth2client
3721 (package-with-python2 python-oauth2client))
3723 (define-public python-flask-oidc
3725 (name "python-flask-oidc")
3730 (uri (pypi-uri "flask-oidc" version))
3733 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
3734 (build-system python-build-system)
3736 `(("python-flask" ,python-flask)
3737 ("python-itsdangerous" ,python-itsdangerous)
3738 ("python-oauth2client" ,python-oauth2client)
3739 ("python-six" ,python-six)))
3741 `(("python-nose" ,python-nose)
3742 ("python-mock" ,python-mock)))
3743 (home-page "https://github.com/puiterwijk/flask-oidc")
3744 (synopsis "OpenID Connect extension for Flask")
3745 (description "@code{python-flask-oidc} provides an OpenID Connect extension
3747 (license license:bsd-2)))
3749 (define-public python-webassets
3751 (name "python-webassets")
3756 (uri (pypi-uri "webassets" version))
3759 "1kc1042jydgk54xpgcp0r1ib4gys91nhy285jzfcxj3pfqrk4w8n"))))
3760 (build-system python-build-system)
3762 '(#:phases (modify-phases %standard-phases
3763 (add-before 'check 'disable-some-tests
3765 ;; This test requires 'postcss' and 'babel' which are
3766 ;; not yet available in Guix.
3767 (delete-file "tests/test_filters.py")))
3770 (invoke "pytest" "-vv"))))))
3772 `(("python-jinja2" ,python-jinja2)
3773 ("python-mock" ,python-mock)
3774 ("python-nose" ,python-nose)
3775 ("python-pytest" ,python-pytest)))
3776 (home-page "https://github.com/miracle2k/webassets")
3777 (synopsis "Media asset management")
3778 (description "Merges, minifies and compresses Javascript and CSS files,
3779 supporting a variety of different filters, including YUI, jsmin, jspacker or
3780 CSS tidy. Also supports URL rewriting in CSS files.")
3781 (license license:bsd-2)))
3783 (define-public python-cssmin
3785 (name "python-cssmin")
3790 (uri (pypi-uri "cssmin" version))
3793 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
3794 (build-system python-build-system)
3795 (home-page "https://github.com/zacharyvoase/cssmin")
3796 (synopsis "Python port of the YUI CSS Compressor")
3797 (description "Python port of the YUI CSS Compressor.")
3798 (license (list license:expat license:bsd-3))))
3800 (define-public python2-cssmin
3801 (package-with-python2 python-cssmin))
3803 (define-public python-elasticsearch
3805 (name "python-elasticsearch")
3810 (uri (pypi-uri "elasticsearch" version))
3813 "1q38w9nh2j2yi82d8rhzb57597l4lq5zx7xzfg45xf7ffrgsipaj"))))
3814 (build-system python-build-system)
3816 `(("python-certifi" ,python-certifi)
3817 ("python-urllib3" ,python-urllib3)))
3819 ;; tests require the test_elasticsearch module but it is not distributed.
3821 (home-page "https://github.com/elastic/elasticsearch-py")
3822 (synopsis "Low-level client for Elasticsearch")
3823 (description "Official low-level client for Elasticsearch. Its goal is to
3824 provide common ground for all Elasticsearch-related code in Python; because of
3825 this it tries to be opinion-free and very extendable.")
3826 (license license:expat)))
3828 (define-public python2-elasticsearch
3829 (package-with-python2 python-elasticsearch))
3831 (define-public python-engineio
3833 (name "python-engineio")
3838 (uri (pypi-uri "python-engineio" version))
3841 "0xqkjjxbxakz9fd7v94rkr2r5r9nrkap2c3gf3abbd0j6ld5qmxv"))))
3842 (build-system python-build-system)
3844 `(("python-aiohttp" ,python-aiohttp)
3845 ("python-requests" ,python-requests)
3846 ("python-websocket-client" ,python-websocket-client)))
3847 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
3848 (home-page "https://github.com/miguelgrinberg/python-engineio/")
3849 (synopsis "Engine.IO server")
3850 (description "Python implementation of the Engine.IO realtime client and
3852 (license license:expat)))
3854 (define-public python-flask-script
3856 (name "python-flask-script")
3861 (uri (pypi-uri "Flask-Script" version))
3864 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
3865 (build-system python-build-system)
3868 (modify-phases %standard-phases
3869 (add-after 'unpack 'patch-tests
3871 (substitute* "tests.py"
3872 (("flask\\.ext\\.script") "flask_script"))
3875 `(("python-flask" ,python-flask)
3876 ("python-argcomplete" ,python-argcomplete)
3877 ("python-werkzeug" ,python-werkzeug)))
3879 `(("python-pytest" ,python-pytest)))
3881 "https://github.com/smurfix/flask-script")
3882 (synopsis "Scripting support for Flask")
3883 (description "The Flask-Script extension provides support for writing
3884 external scripts in Flask. This includes running a development server,
3885 a customised Python shell, scripts to set up your database, cronjobs,
3886 and other command-line tasks that belong outside the web application
3888 (license license:bsd-3)))
3890 (define-public python-flask-migrate
3892 (name "python-flask-migrate")
3897 (uri (pypi-uri "Flask-Migrate" version))
3900 "1vip9ww6l18dxffjsggm83k71zkvihxpnhaswpv8klh95s6517d6"))))
3901 (build-system python-build-system)
3903 `(("python-flask" ,python-flask)
3904 ("python-alembic" ,python-alembic)
3905 ("python-sqlalchemy" ,python-sqlalchemy)
3906 ("python-flask-script" ,python-flask-script)
3907 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
3908 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
3909 (synopsis "SQLAlchemy database migrations for Flask programs using
3911 (description "This package contains SQLAlchemy database migration tools
3912 for Flask programs that are using @code{python-alembic}.")
3913 (license license:expat)))
3915 (define-public python-genshi
3917 (name "python-genshi")
3923 (url "https://github.com/edgewall/genshi")
3925 (file-name (git-file-name name version))
3927 (base32 "04i0caywiwrgw09grz988n15qr9lr31d9n6a529p8v80cy1fv23c"))))
3929 `(("python-six" ,python-six)))
3930 (build-system python-build-system)
3931 (home-page "https://genshi.edgewall.org/")
3932 (synopsis "Toolkit for generation of output for the web")
3933 (description "Genshi is a Python library that provides an integrated set
3934 of components for parsing, generating, and processing HTML, XML or other
3935 textual content for output generation on the web.")
3936 (license license:bsd-3)))
3938 (define-public python2-genshi
3939 (package-with-python2 python-genshi))
3941 (define-public python-flask-principal
3943 (name "python-flask-principal")
3948 (uri (pypi-uri "Flask-Principal" version))
3951 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
3952 (build-system python-build-system)
3954 `(("python-blinker" ,python-blinker)))
3956 `(("python-flask" ,python-flask)
3957 ("python-nose" ,python-nose)))
3958 (home-page "https://pythonhosted.org/Flask-Principal/")
3959 (synopsis "Identity management for Flask")
3960 (description "@code{flask_principal} is a identity management library for
3961 Flask. It supports managing both authentication and authorization data in a
3962 thread-local variable.")
3963 (license license:expat)))
3965 (define-public python-flask-httpauth
3967 (name "python-flask-httpauth")
3972 (uri (pypi-uri "Flask-HTTPAuth" version))
3975 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
3976 (build-system python-build-system)
3978 `(("python-flask" ,python-flask)))
3979 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
3980 (synopsis "Basic and Digest HTTP authentication for Flask routes")
3981 (description "@code{flask_httpauth} provides Basic and Digest HTTP
3982 authentication for Flask routes.")
3983 (license license:expat)))
3985 (define-public python-uritemplate
3987 (name "python-uritemplate")
3992 (uri (pypi-uri "uritemplate" version))
3995 "1bkwmgr0ia9gcn4bszs2xlvml79f0bi2s4a87xg22ky9rq8avy2s"))))
3996 (build-system python-build-system)
3997 (home-page "https://uritemplate.readthedocs.org")
3998 (synopsis "Library to deal with URI Templates")
3999 (description "@code{uritemplate} provides Python library to deal with URI
4001 (license license:bsd-2)))
4003 (define-public python2-uritemplate
4004 (package-with-python2 python-uritemplate))
4006 (define-public python-publicsuffix
4008 (name "python-publicsuffix")
4012 (uri (pypi-uri "publicsuffix" version))
4015 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
4016 (build-system python-build-system)
4018 `(#:tests? #f)) ; tests use the internet
4019 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
4020 (synopsis "Get suffix for a domain name")
4021 (description "Get a public suffix for a domain name using the Public Suffix
4023 (license license:expat)))
4025 (define-public python2-publicsuffix
4026 (package-with-python2 python-publicsuffix))
4028 (define-public python-publicsuffix2
4030 (name "python-publicsuffix2")
4031 (version "2.20191221")
4035 (uri (pypi-uri "publicsuffix2" version))
4037 (base32 "0yzysvfj1najr1mb4pcqrbmjir3xpb69rlffln95a3cdm8qwry00"))))
4038 (build-system python-build-system)
4041 (modify-phases %standard-phases
4042 (add-after 'unpack 'ignore-maintainer-inputs
4044 ;; Comment out a demand for python-requests, which is used only by
4045 ;; the unused ‘update_psl’ helper command.
4046 (substitute* "setup.py"
4047 (("'requests " match)
4048 (format #f "# ~a" match)))
4050 #:tests? #f)) ; the test suite requires network access
4051 (home-page "https://github.com/pombredanne/python-publicsuffix2")
4052 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
4053 (description "Get a public suffix for a domain name using the Public Suffix
4054 List. Forked from and using the same API as the publicsuffix package.")
4055 (license (list license:expat license:mpl2.0))))
4057 (define-public python2-publicsuffix2
4058 (package-with-python2 python-publicsuffix2))
4060 (define-public python-werkzeug
4062 (name "python-werkzeug")
4067 (uri (pypi-uri "Werkzeug" version))
4070 "0hlwawnn8c41f254qify5jnjj8xb97n294h09bqimzqhs0qdpq8x"))))
4071 (build-system python-build-system)
4074 (modify-phases %standard-phases
4076 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
4078 (add-installed-pythonpath inputs outputs)
4079 (invoke "python" "-m" "pytest"
4080 ;; Test tries to use the network.
4081 "-k not test_reloader_sys_path")))))))
4083 `(("python-requests" ,python-requests)))
4085 `(("python-pytest" ,python-pytest)
4086 ("python-pytest-timeout" ,python-pytest-timeout)
4087 ("python-pytest-xprocess" ,python-pytest-xprocess)))
4088 (home-page "https://palletsprojects.com/p/werkzeug/")
4089 (synopsis "Utilities for WSGI applications")
4090 (description "One of the most advanced WSGI utility modules. It includes a
4091 powerful debugger, full-featured request and response objects, HTTP utilities to
4092 handle entity tags, cache control headers, HTTP dates, cookie handling, file
4093 uploads, a powerful URL routing system and a bunch of community-contributed
4095 (license license:x11)))
4097 (define-public python-bottle
4099 (name "python-bottle")
4104 (uri (pypi-uri "bottle" version))
4106 (base32 "0b6s50vc4iad97b6bb3xnyrgajb3nj6n6jbr5p54a4vapky3zmx9"))))
4107 (build-system python-build-system)
4108 (home-page "https://bottlepy.org/")
4109 (synopsis "WSGI framework for small web-applications.")
4110 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
4111 (license license:expat)))
4113 (define-public python2-bottle
4114 (package-with-python2 python-bottle))
4116 (define-public python-wtforms
4118 (name "python-wtforms")
4123 (uri (pypi-uri "WTForms" version))
4126 "17427m7p9nn9byzva697dkykykwcp2br3bxvi8vciywlmkh5s6c1"))))
4127 (build-system python-build-system)
4130 (modify-phases %standard-phases
4131 (add-after 'unpack 'delete-bundled-test
4133 ;; Delete test copied from a third party package that fails
4134 ;; with newer SQLAlchemy. This can be removed for 3.0.
4135 ;; See <https://github.com/wtforms/wtforms/issues/696>.
4136 (delete-file "tests/ext_sqlalchemy.py")))
4138 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
4140 (add-installed-pythonpath inputs outputs)
4141 (invoke "python" "setup.py" "compile_catalog")
4142 (invoke "python" "tests/runtests.py")))))))
4144 `(("python-dateutil" ,python-dateutil)
4145 ("python-sqlalchemy" ,python-sqlalchemy)))
4147 `(("python-babel" ,python-babel)
4148 ("python-email-validator" ,python-email-validator)
4149 ("python-markupsafe" ,python-markupsafe)))
4150 (home-page "http://wtforms.simplecodes.com/")
4152 "Form validation and rendering library for Python web development")
4154 "WTForms is a flexible forms validation and rendering library
4155 for Python web development. It is very similar to the web form API
4156 available in Django, but is a standalone package.")
4157 (license license:bsd-3)))
4159 (define-public python-paste
4161 (name "python-paste")
4166 (uri (pypi-uri "Paste" version))
4169 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
4170 (patches (search-patches "python-paste-remove-timing-test.patch"))
4171 (modules '((guix build utils)))
4174 ;; This test calls out to the internet.
4175 (delete-file "tests/test_proxy.py") #t))))
4176 (build-system python-build-system)
4178 `(("python-pytest" ,python-pytest)
4179 ("python-pytest-runner" ,python-pytest-runner)
4180 ("python-nose" ,python-nose)))
4182 `(("python-six" ,python-six)))
4183 (home-page "https://pythonpaste.readthedocs.io/")
4185 "Python web development tools, focusing on WSGI")
4187 "Paste provides a variety of web development tools and middleware which
4188 can be nested together to build web applications. Paste's design closely
4189 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
4190 (license license:expat)))
4192 (define-public python2-paste
4193 (package-with-python2 python-paste))
4195 (define-public python-pastescript
4197 (name "python-pastescript")
4202 (uri (pypi-uri "PasteScript" version))
4205 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
4206 (build-system python-build-system)
4208 `(("python-nose" ,python-nose)))
4210 `(("python-paste" ,python-paste)
4211 ("python-pastedeploy" ,python-pastedeploy)))
4212 (home-page (string-append "https://web.archive.org/web/20161025192515/"
4213 "http://pythonpaste.org/script/"))
4215 '(;; Unfortunately, this requires the latest unittest2,
4216 ;; but that requires traceback2 which requires linecache2 which requires
4217 ;; unittest2. So we're skipping tests for now.
4218 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
4219 ;; so in theory we could get around this situation somehow.)
4222 "Pluggable command line tool for serving web applications and more")
4224 "PasteScript is a plugin-friendly command line tool which provides a
4225 variety of features, from launching web applications to bootstrapping project
4227 (license license:expat)))
4229 (define-public python2-pastescript
4230 (package-with-python2 python-pastescript))
4232 (define-public python2-urlgrabber
4234 (name "python2-urlgrabber")
4239 (uri (pypi-uri "urlgrabber" version))
4241 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
4242 (build-system python-build-system)
4243 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
4244 (home-page "http://urlgrabber.baseurl.org")
4245 (synopsis "High-level cross protocol url-grabber")
4246 (description "@code{urlgrabber} is Python2 library that unifies access to
4247 files available on web, FTP or locally. It supports HTTP, FTP and file://
4248 protocols, it supports features like HTTP keep-alive, reget, throttling and
4250 (license license:lgpl2.1+)))
4252 (define-public python-pycares
4254 (name "python-pycares")
4259 (uri (pypi-uri "pycares" version))
4262 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
4263 (build-system python-build-system)
4265 `(#:tests? #f)) ;tests require internet access
4266 (home-page "https://github.com/saghul/pycares")
4267 (synopsis "Python interface for @code{c-ares}")
4268 (description "@code{pycares} is a Python module which provides an
4269 interface to @code{c-ares}, a C library that performs DNS requests and
4270 name resolutions asynchronously.")
4271 (license license:expat)))
4273 (define-public python-yarl
4275 (name "python-yarl")
4280 (uri (pypi-uri "yarl" version))
4283 "045z4ssg8g5h0qhz8hnx74hswgkndaldqq1xi5l1n5s0j996d44a"))
4284 (modules '((guix build utils)))
4287 (delete-file "yarl/_quoting_c.c")))))
4288 (build-system python-build-system)
4290 (list #:tests? #f ; test suite can't find yarl._quoting_c
4292 #~(modify-phases %standard-phases
4293 (add-after 'unpack 'cythonize-code
4295 (invoke "cython" "yarl/_quoting_c.pyx")))
4297 (lambda* (#:key tests? inputs outputs #:allow-other-keys)
4299 (substitute* "setup.cfg"
4300 (("--cov=yarl") ""))
4301 (add-installed-pythonpath inputs outputs)
4302 (invoke "python" "-m" "pytest")))))))
4304 `(("python-cython" ,python-cython)
4305 ("python-pytest" ,python-pytest)
4306 ("python-pytest-runner" ,python-pytest-runner)))
4308 `(("python-idna" ,python-idna)
4309 ("python-multidict" ,python-multidict)))
4310 (home-page "https://github.com/aio-libs/yarl/")
4311 (synopsis "Yet another URL library")
4312 (description "@code{yarl} module provides handy @code{URL} class
4313 for URL parsing and changing.")
4314 (license license:asl2.0)))
4316 (define-public python-google
4318 (name "python-google")
4322 (uri (pypi-uri "google" version))
4325 "1gncv3l11za0mpxvmpaf5n5j3jzp282rz62yml4ha4z55q930d8l"))))
4326 (build-system python-build-system)
4328 `(#:tests? #f)) ; There are no tests.
4329 (home-page "https://breakingcode.wordpress.com/")
4330 (synopsis "Python bindings to the Google search engine")
4331 (description "This package provides Python bindings for using the
4332 Google search engine. Its module is called @code{googlesearch}.")
4333 (license license:bsd-3)))
4335 (define-public python-google-api-client
4337 (name "python-google-api-client")
4342 (uri (pypi-uri "google-api-python-client" version))
4345 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
4346 (build-system python-build-system)
4348 `(#:tests? #f ; tests require internet access
4350 (modify-phases %standard-phases
4351 (add-after 'unpack 'fix-setup-py
4353 (substitute* "setup.py"
4354 (("googleapiclient/discovery_cache")
4355 "googleapiclient.discovery_cache"))
4358 `(("python-httplib2" ,python-httplib2)
4359 ("python-six" ,python-six)
4360 ("python-oauth2client" ,python-oauth2client)
4361 ("python-uritemplate" ,python-uritemplate)))
4362 (home-page "https://github.com/google/google-api-python-client")
4363 (synopsis "Core Python library for accessing Google APIs")
4364 (description "Python client library for Google's discovery based APIs")
4365 (license license:asl2.0)))
4367 (define-public python2-google-api-client
4368 (package-with-python2 python-google-api-client))
4370 (define-public python-hawkauthlib
4372 (name "python-hawkauthlib")
4377 (uri (pypi-uri "hawkauthlib" version))
4380 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
4381 (build-system python-build-system)
4383 `(("python-requests" ,python-requests)
4384 ("python-webob" ,python-webob)))
4385 (home-page "https://github.com/mozilla-services/hawkauthlib")
4386 (synopsis "Hawk Access Authentication protocol")
4388 "This is a low-level Python library for implementing Hawk Access Authentication,
4389 a simple HTTP request-signing scheme.")
4390 (license license:mpl2.0)))
4392 (define-public python-pybrowserid
4394 (name "python-pybrowserid")
4399 (uri (pypi-uri "PyBrowserID" version))
4402 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
4403 (build-system python-build-system)
4405 `(("python-requests" ,python-requests)))
4407 `(("python-mock" ,python-mock)))
4408 (home-page "https://github.com/mozilla/PyBrowserID")
4409 (synopsis "Python library for the BrowserID protocol")
4411 "This is a Python client library for the BrowserID protocol that
4412 underlies Mozilla Persona.")
4413 (license license:mpl2.0)))
4415 (define-public python-pyfxa
4417 (name "python-pyfxa")
4422 (uri (pypi-uri "PyFxA" version))
4425 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
4426 (build-system python-build-system)
4427 (arguments '(#:tests? #f)) ; 17 tests require network access
4429 `(("python-cryptography" ,python-cryptography)
4430 ("python-hawkauthlib" ,python-hawkauthlib)
4431 ("python-pybrowserid" ,python-pybrowserid)
4432 ("python-requests" ,python-requests)
4433 ("python-six" ,python-six)))
4435 `(("python-grequests" ,python-grequests)
4436 ("python-mock" ,python-mock)
4437 ("python-responses" ,python-responses)
4438 ("python-unittest2" ,python-unittest2)))
4439 (home-page "https://github.com/mozilla/PyFxA")
4440 (synopsis "Firefox Accounts client library for Python")
4442 "This is a Python library for interacting with the Firefox Accounts
4444 (license license:mpl2.0)))
4446 (define-public python-hyperlink
4448 (name "python-hyperlink")
4453 (uri (pypi-uri "hyperlink" version))
4456 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
4457 (build-system python-build-system)
4459 `(("python-idna" ,python-idna)))
4460 (home-page "https://github.com/python-hyper/hyperlink")
4461 (synopsis "Python module to create immutable URLs according to spec")
4462 (description "This package provides a Python module to create immutable, and
4463 correct URLs for Python according to RFCs 3986 and 3987.")
4464 (license license:expat)))
4466 (define-public python-treq
4468 (name "python-treq")
4473 (uri (pypi-uri "treq" version))
4476 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
4477 (build-system python-build-system)
4479 `(("python-attrs" ,python-attrs)
4480 ("python-idna" ,python-idna)
4481 ("python-incremental" ,python-incremental)
4482 ("python-requests" ,python-requests)
4483 ("python-service-identity" ,python-service-identity)
4484 ("python-twisted" ,python-twisted)))
4485 (home-page "https://github.com/twisted/treq")
4486 (synopsis "Requests-like API built on top of twisted.web's Agent")
4487 (description "This package provides an HTTP library inspired by
4488 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
4489 high level API for making HTTP requests when using Twisted.")
4490 (license license:expat)))
4492 (define-public python-autobahn
4494 (name "python-autobahn")
4499 (uri (pypi-uri "autobahn" version))
4502 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
4503 (build-system python-build-system)
4505 ;; The tests fail to run:
4506 ;; https://github.com/crossbario/autobahn-python/issues/1117
4509 `(("python-cffi" ,python-cffi)
4510 ("python-twisted" ,python-twisted)
4511 ("python-txaio" ,python-txaio)))
4512 (home-page "https://crossbar.io/autobahn/")
4513 (synopsis "Web Application Messaging Protocol implementation")
4514 (description "This package provides an implementation of the @dfn{Web Application
4515 Messaging Protocol} (WAMP). WAMP connects components in distributed
4516 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
4517 Calls (rRPC). It is ideal for distributed, multi-client and server applications
4518 such as IoT applications or multi-user database-driven business applications.")
4519 (license license:expat)))
4521 (define-public python-ws4py
4523 (name "python-ws4py")
4528 (uri (pypi-uri "ws4py" version))
4531 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
4532 (build-system python-build-system)
4535 (modify-phases %standard-phases
4536 (add-after 'unpack 'python3.7-compatibility
4538 (substitute* '("ws4py/server/tulipserver.py"
4539 "ws4py/async_websocket.py")
4541 "asyncio.ensure_future"))
4543 ;; We don't have a package for cherrypy.
4544 (add-after 'unpack 'remove-cherrypy-support
4546 (delete-file "ws4py/server/cherrypyserver.py")
4549 `(("python-gevent" ,python-gevent)
4550 ("python-tornado" ,python-tornado)))
4551 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
4552 (synopsis "WebSocket client and server library")
4554 "This package provides a WebSocket client and server library for
4556 (license license:bsd-3)))
4558 (define-public python-slugify
4560 (name "python-slugify")
4565 (uri (pypi-uri "python-slugify" version))
4567 (base32 "0w22fapghmzk3xdasc4dn7h8sl58l08d1h5zbf72dh80drv1g9b9"))))
4569 `(("python-unidecode" ,python-unidecode)
4570 ("python-text-unidecode" ,python-text-unidecode)))
4573 (modify-phases %standard-phases
4576 (invoke "python" "test.py"))))))
4577 (build-system python-build-system)
4578 (home-page "https://github.com/un33k/python-slugify")
4579 (synopsis "Python Slugify application that handles Unicode")
4580 (description "This package provides a @command{slufigy} command and
4581 library to create slugs from unicode strings while keeping it DRY.")
4582 (license license:expat)))
4584 (define-public python-branca
4586 (name "python-branca")
4591 (uri (pypi-uri "branca" version))
4594 "0pmigd521j2228xf8x34vbx0niwvms7xl7za0lymywj0vydjqxiy"))))
4595 (build-system python-build-system)
4597 `(("python-jinja2" ,python-jinja2)
4598 ("python-six" ,python-six)))
4600 `(("python-pytest" ,python-pytest)))
4601 (home-page "https://github.com/python-visualization/branca")
4602 (synopsis "Generate complex HTML+JS pages with Python")
4603 (description "Generate complex HTML+JS pages with Python")
4604 (license license:expat)))
4606 (define-public python-tinycss
4608 (name "python-tinycss")
4613 (uri (pypi-uri "tinycss" version))
4615 (base32 "0vkifr595h28ymkjhrswwf0bm23lhznh5f44xyp7x7jy1ssnyc0j"))))
4616 (build-system python-build-system)
4619 (modify-phases %standard-phases
4620 (add-after 'unpack 'disable-flake8-isort
4621 ;; Flake8 and isort tests fail.
4623 (substitute* "setup.cfg" ((" --flake8 --isort") ""))
4627 ;; Disable failing test.
4628 (invoke "python" "-m" "pytest" "-k"
4629 "not test_speedups"))))))
4631 `(("python-pytest-cov" ,python-pytest-cov)
4632 ("python-pytest-flake8" ,python-pytest-flake8)
4633 ("python-pytest-isort" ,python-pytest-isort)
4634 ("python-pytest-runner" ,python-pytest-runner)))
4635 (home-page "https://tinycss.readthedocs.io/")
4636 (synopsis "Complete yet simple CSS parser for Python")
4638 "@code{tinycss} is a complete yet simple CSS parser for Python. It
4639 supports the full syntax and error handling for CSS 2.1 as well as some CSS 3
4645 @item CSS Paged Media 3
4647 (license license:bsd-3)))
4649 (define-public python-tinycss2
4651 (name "python-tinycss2")
4657 (url "https://github.com/Kozea/tinycss2")
4658 (commit (string-append "v" version))
4659 (recursive? #true)))
4660 (file-name (git-file-name name version))
4662 (base32 "0zyc48vbmczpqj7f3f0d7zb3bz29fyj50dg0m6bbwbr5i88kq3sq"))))
4663 (build-system python-build-system)
4666 (modify-phases %standard-phases
4669 ;; A ZIP archive should be generated, but it fails with "ZIP does
4670 ;; not support timestamps before 1980". Luckily,
4671 ;; SOURCE_DATE_EPOCH is respected, which we set to some time in
4673 (setenv "SOURCE_DATE_EPOCH" "315532800")
4674 (invoke "flit" "build")))
4676 (lambda* (#:key inputs outputs #:allow-other-keys)
4677 (add-installed-pythonpath inputs outputs)
4678 (let ((out (assoc-ref outputs "out")))
4679 (for-each (lambda (wheel)
4680 (format #true wheel)
4681 (invoke "python" "-m" "pip" "install"
4682 wheel (string-append "--prefix=" out)))
4683 (find-files "dist" "\\.whl$")))))
4685 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
4686 (add-installed-pythonpath inputs outputs)
4687 (invoke "pytest" "-vv"))))))
4689 `(("python-webencodings" ,python-webencodings)))
4691 `(("python-flit" ,python-flit)
4692 ("python-pytest" ,python-pytest)
4693 ("python-pytest-cov" ,python-pytest-cov)
4694 ("python-pytest-flake8" ,python-pytest-flake8)
4695 ("python-pytest-isort" ,python-pytest-isort)))
4696 (home-page "https://tinycss2.readthedocs.io/")
4697 (synopsis "Low-level CSS parser for Python")
4698 (description "@code{tinycss2} can parse strings, return Python objects
4699 representing tokens and blocks, and generate CSS strings corresponding to
4702 Based on the CSS Syntax Level 3 specification, @code{tinycss2} knows the
4703 grammar of CSS but doesn’t know specific rules, properties or values supported
4704 in various CSS modules.")
4705 (license license:bsd-3)))
4707 (define-public python-cssselect2
4709 (name "python-cssselect2")
4714 (uri (pypi-uri "cssselect2" version))
4716 (base32 "1j2fcr217rsvkipsg6zjq03rl64rxnvb5hqqpx0dv58fhspvkywk"))))
4717 (build-system python-build-system)
4720 (modify-phases %standard-phases
4722 (lambda _ (invoke "pytest"))))))
4724 `(("python-tinycss2" ,python-tinycss2)))
4726 `(("python-pytest-cov" ,python-pytest-cov)
4727 ("python-pytest-flake8" ,python-pytest-flake8)
4728 ("python-pytest-isort" ,python-pytest-isort)
4729 ("python-pytest-runner" ,python-pytest-runner)))
4730 (home-page "https://cssselect2.readthedocs.io/")
4731 (synopsis "CSS selectors for Python ElementTree")
4732 (description "@code{cssselect2} is a straightforward implementation of
4733 CSS3 Selectors for markup documents (HTML, XML, etc.) that can be read by
4734 ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.).
4736 Unlike the Python package @code{cssselect}, it does not translate selectors to
4737 XPath and therefore does not have all the correctness corner cases that are
4738 hard or impossible to fix in cssselect.")
4739 (license license:bsd-3)))
4741 (define-public python-uvloop
4743 (name "python-uvloop")
4748 (uri (pypi-uri "uvloop" version))
4750 (base32 "07j678z9gf41j98w72ysrnb5sa41pl5yxd7ib17lcwfxqz0cjfhj"))))
4751 (build-system python-build-system)
4753 '(#:tests? #f ;FIXME: tests hang and with some errors in the way
4755 (modify-phases %standard-phases
4756 (add-after 'unpack 'preparations
4758 ;; Use packaged libuv.
4759 (substitute* "setup.py" (("self.use_system_libuv = False")
4760 "self.use_system_libuv = True"))
4763 `(("python-aiohttp" ,python-aiohttp)
4764 ("python-cython" ,python-cython)
4765 ("python-flake8" ,python-flake8)
4766 ("python-psutil" ,python-psutil)
4767 ("python-pyopenssl" ,python-pyopenssl)
4768 ("python-twine" ,python-twine)))
4770 `(("libuv" ,libuv)))
4771 (home-page "https://github.com/MagicStack/uvloop")
4772 (synopsis "Fast implementation of asyncio event loop on top of libuv")
4774 "@code{uvloop} is a fast, drop-in replacement of the built-in asyncio
4775 event loop. It is implemented in Cython and uses libuv under the hood.")
4776 (license license:expat)))
4778 (define-public gunicorn
4785 (uri (pypi-uri "gunicorn" version))
4788 "1s7670qw36x90bgmazmgib170i5gnpyb2ypxzlla7y0mpasniag0"))))
4789 (outputs '("out" "doc"))
4790 (build-system python-build-system)
4793 (modify-phases %standard-phases
4794 (add-after 'build 'build-doc
4796 (invoke "make" "-C" "docs" "PAPER=a4" "html" "info")
4797 (delete-file "docs/build/texinfo/Makefile")
4798 (delete-file "docs/build/texinfo/Gunicorn.texi")))
4800 (lambda* (#:key tests? #:allow-other-keys)
4803 (invoke "pytest" "-vv"
4804 ;; Disable the geventlet tests because eventlet uses
4805 ;; dnspython, which does not work in the build
4806 ;; container due to lack of /etc/resolv.conf, etc.
4807 "--ignore=tests/workers/test_geventlet.py"))
4808 (format #t "test suite not run~%"))))
4809 (add-after 'install 'install-doc
4810 (lambda* (#:key outputs #:allow-other-keys)
4811 (let* ((doc (string-append (assoc-ref outputs "doc")
4812 "/share/doc/" ,name "-" ,version))
4813 (html (string-append doc "/html"))
4814 (info (string-append doc "/info"))
4815 (examples (string-append doc "/examples")))
4819 (copy-recursively "docs/build/html" html)
4820 (copy-recursively "docs/build/texinfo" info)
4821 (copy-recursively "examples" examples)
4822 (for-each (lambda (file)
4823 (copy-file file (string-append doc "/" file)))
4824 '("README.rst" "NOTICE" "LICENSE" "THANKS")))))
4825 ;; XXX: The wrap phase includes native inputs on PYTHONPATH, (see
4826 ;; <https://bugs.gnu.org/25235>), leading to an inflated closure
4827 ;; size. Override it to only add the essential entries.
4829 (lambda* (#:key native-inputs inputs outputs #:allow-other-keys)
4830 (let* ((out (assoc-ref outputs "out"))
4831 (python (assoc-ref (or native-inputs inputs) "python"))
4832 (sitedir (string-append "/lib/python"
4833 (python-version python)
4835 (wrap-program (string-append out "/bin/gunicorn")
4836 `("PYTHONPATH" ":" prefix
4837 ,(map (lambda (output)
4838 (string-append output sitedir))
4839 (list python out))))))))))
4841 `(("binutils" ,binutils) ;; for ctypes.util.find_library()
4842 ("python-aiohttp" ,python-aiohttp)
4843 ("python-gevent" ,python-gevent)
4844 ("python-pytest" ,python-pytest)
4845 ("python-pytest-cov" ,python-pytest-cov)
4846 ("python-sphinx" ,python-sphinx)
4847 ("texinfo" ,texinfo)))
4848 (home-page "https://gunicorn.org/")
4849 (synopsis "Python WSGI HTTP Server for UNIX")
4850 (description "Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP
4851 Server for UNIX. It’s a pre-fork worker model ported from Ruby’s
4852 Unicorn project. The Gunicorn server is broadly compatible with
4853 various web frameworks, simply implemented, light on server resources,
4854 and fairly speedy.")
4855 (license license:expat)))
4857 ;; break cyclic dependency for python-aiohttp, which depends on gunicorn for
4859 (define-public gunicorn-bootstrap
4863 (arguments `(#:tests? #f))
4864 (properties '((hidden? . #t)))
4865 (native-inputs `())))
4867 (define-public python-httptools
4869 (name "python-httptools")
4873 ;; PyPI tarball comes with a vendored http-parser and no tests.
4876 (url "https://github.com/MagicStack/httptools")
4877 (commit (string-append "v" version))))
4878 (file-name (git-file-name name version))
4880 (base32 "0g08128x2ixsiwrzskxc6c8ymgzs39wbzr5mhy0mjk30q9pqqv77"))))
4881 (build-system python-build-system)
4884 (modify-phases %standard-phases
4885 (add-after 'unpack 'preparations
4887 ;; Skip a failing test (AssertionError). Bug report:
4888 ;; https://github.com/MagicStack/httptools/issues/10.
4889 (substitute* "tests/test_parser.py"
4890 ((" def test_parser_response_1")
4892 " @unittest.skip(\"Disabled.\")\n"
4893 " def test_parser_response_1")))
4894 ;; Use packaged http-parser.
4895 (substitute* "setup.py" (("self.use_system_http_parser = False")
4896 "self.use_system_http_parser = True"))
4897 ;; This path is hardcoded. Hardcode our own.
4898 (substitute* "httptools/parser/cparser.pxd"
4899 (("../../vendor/http-parser")
4900 (string-append (assoc-ref %build-inputs "http-parser")
4902 ;; Don't force Cython version.
4903 (substitute* "setup.py" (("Cython==") "Cython>="))
4906 `(("python-cython" ,python-cython)
4907 ("python-pytest" ,python-pytest)))
4909 `(("http-parser" ,http-parser)))
4910 (home-page "https://github.com/MagicStack/httptools")
4911 (synopsis "Collection of framework independent HTTP protocol utils")
4913 "@code{httptools} is a Python binding for the nodejs HTTP parser.")
4914 (license license:expat)))
4916 (define-public python-uvicorn
4918 (name "python-uvicorn")
4922 ;; PyPI tarball has no tests.
4925 (url "https://github.com/encode/uvicorn")
4927 (file-name (git-file-name name version))
4929 (base32 "00iidg5ysp7k00bw3kmkvr8mghnh4jdi0p2ryiarhryf8wz2r3fy"))))
4930 (build-system python-build-system)
4933 (modify-phases %standard-phases
4935 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
4936 (add-installed-pythonpath inputs outputs)
4937 (invoke "pytest" "-vv"))))))
4939 `(("python-black" ,python-black)
4940 ("python-codecov" ,python-codecov)
4941 ("python-flake8" ,python-flake8)
4942 ("python-isort" ,python-isort)
4943 ("python-mypy" ,python-mypy)
4944 ("python-pytest" ,python-pytest)
4945 ("python-pytest-cov" ,python-pytest-cov)
4946 ("python-pytest-mock" ,python-pytest-mock)
4947 ("python-requests" ,python-requests)))
4949 `(("python-click" ,python-click)
4950 ("python-h11" ,python-h11)
4951 ("python-httptools" ,python-httptools)
4952 ("python-pyyaml" ,python-pyyaml)
4953 ("python-uvloop" ,python-uvloop)
4954 ("python-watchgod" ,python-watchgod)
4955 ("python-websockets" ,python-websockets)
4956 ("python-wsproto" ,python-wsproto)))
4957 (home-page "https://github.com/encode/uvicorn")
4958 (synopsis "Fast ASGI server implementation")
4960 "@code{uvicorn} is a fast ASGI server implementation, using @code{uvloop}
4961 and @code{httptools}. It currently supports HTTP/1.1 and WebSockets. Support
4962 for HTTP/2 is planned.")
4963 (license license:bsd-3)))
4965 (define-public python-translation-finder
4967 (name "python-translation-finder")
4972 (uri (pypi-uri "translation-finder" version))
4975 "1pcy9z8gmb8x41gjhw9x0lkr0d2mv5mdxcs2hwg6q8mxs857j589"))))
4976 (build-system python-build-system)
4979 (modify-phases %standard-phases
4980 (add-before 'build 'remove-failing-test
4982 (delete-file "translation_finder/test_api.py")
4985 `(("python-chardet" ,python-chardet)
4986 ("python-pathlib2" ,python-pathlib2)
4987 ("python-ruamel.yaml" ,python-ruamel.yaml)
4988 ("python-six" ,python-six)))
4990 `(("python-codecov" ,python-codecov)
4991 ("python-codacy-coverage" ,python-codacy-coverage)
4992 ("python-pytest-cov" ,python-pytest-cov)
4993 ("python-pytest-runner" ,python-pytest-runner)
4994 ("python-twine" ,python-twine)))
4995 (home-page "https://weblate.org/")
4996 (synopsis "Translation file finder for Weblate")
4997 (description "This package provides a function to find translation file in
4998 the source code of a project. It supports many translation file formats and
4999 is part of the Weblate translation platform.")
5000 (license license:gpl3+)))
5002 (define-public python-gitlab
5004 (name "python-gitlab")
5009 (uri (pypi-uri "python-gitlab" version))
5012 "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5"))))
5013 (build-system python-build-system)
5015 `(("python-requests" ,python-requests)
5016 ("python-six" ,python-six)))
5018 `(("python-httmock" ,python-httmock)
5019 ("python-mock" ,python-mock)))
5021 "https://github.com/python-gitlab/python-gitlab")
5022 (synopsis "Interact with GitLab API")
5023 (description "This package provides an extended library for interacting
5024 with GitLab instances through their API.")
5025 (license license:lgpl3+)))
5027 (define-public python-path-and-address
5029 (name "python-path-and-address")
5033 ;; The source distributed on PyPI doesn't include tests.
5036 (url "https://github.com/joeyespo/path-and-address")
5037 (commit (string-append "v" version))))
5038 (file-name (git-file-name name version))
5041 "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6"))))
5042 (build-system python-build-system)
5045 (modify-phases %standard-phases
5047 (lambda* (#:key inputs outputs #:allow-other-keys)
5048 (add-installed-pythonpath inputs outputs)
5049 (invoke "py.test"))))))
5051 `(("python-pytest" ,python-pytest)))
5052 (home-page "https://github.com/joeyespo/path-and-address")
5053 (synopsis "Functions for command-line server tools used by humans")
5054 (description "Path-and-address resolves ambiguities of command-line
5055 interfaces, inferring which argument is the path, and which is the address.")
5056 (license license:expat)))
5059 ;; No release by upstream for quite some time, some bugs fixed since. See:
5060 ;; https://github.com/joeyespo/grip/issues/304
5061 (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3"))
5064 (version (git-version "4.5.2" "1" commit))
5069 (url "https://github.com/joeyespo/grip")
5071 (file-name (git-file-name name version))
5074 "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w"))))
5075 (build-system python-build-system)
5077 `(("python-docopt" ,python-docopt)
5078 ("python-flask" ,python-flask)
5079 ("python-markdown" ,python-markdown)
5080 ("python-path-and-address" ,python-path-and-address)
5081 ("python-pygments" ,python-pygments)
5082 ("python-requests" ,python-requests)))
5084 `(("python-pytest" ,python-pytest)
5085 ("python-responses" ,python-responses)))
5088 (modify-phases %standard-phases
5090 (lambda* (#:key inputs outputs #:allow-other-keys)
5091 (add-installed-pythonpath inputs outputs)
5092 (setenv "PATH" (string-append
5094 (assoc-ref %outputs "out") "/bin"))
5095 (invoke "py.test" "-m" "not assumption"))))))
5096 (home-page "https://github.com/joeyespo/grip")
5097 (synopsis "Preview Markdown files using the GitHub API")
5098 (description "Grip is a command-line server application written in Python
5099 that uses the GitHub Markdown API to render a local Markdown file. The styles
5100 and rendering come directly from GitHub, so you'll know exactly how it will
5101 appear. Changes you make to the file will be instantly reflected in the browser
5102 without requiring a page refresh.")
5103 (license license:expat))))
5105 (define-public python-port-for
5107 (name "python-port-for")
5112 (uri (pypi-uri "port-for" version))
5115 "1pncxlj25ggw99r0ijfbkq70gd7cbhqdx5ivsxy4jdp0z14cpda7"))))
5116 (build-system python-build-system)
5119 (modify-phases %standard-phases
5120 (add-after 'unpack 'use-urllib3
5122 (substitute* "port_for/_download_ranges.py"
5123 (("urllib2") "urllib3"))
5126 `(("python-urllib3" ,python-urllib3)))
5128 `(("python-mock" ,python-mock)))
5129 (home-page "https://github.com/kmike/port-for/")
5130 (synopsis "TCP localhost port finder and association manager")
5132 "This package provides a utility that helps with local TCP ports
5133 management. It can find an unused TCP localhost port and remember the
5135 (license license:expat)))
5137 (define-public python-livereload
5139 (name "python-livereload")
5144 (uri (pypi-uri "livereload" version))
5147 "0rhggz185bxc3zjnfpmhcvibyzi86i624za1lfh7x7ajsxw4y9c9"))))
5148 (build-system python-build-system)
5150 `(("python-six" ,python-six)
5151 ("python-tornado" ,python-tornado)))
5152 (home-page "https://github.com/lepture/python-livereload")
5153 (synopsis "Python LiveReload")
5155 "Python LiveReload provides a command line utility, @command{livereload},
5156 for starting a web server in a directory. It can trigger arbitrary commands
5157 and serve updated contents upon changes to the directory.")
5158 (license license:bsd-3)))
5160 (define-public python-vf-1
5162 (name "python-vf-1")
5167 (uri (pypi-uri "VF-1" version))
5170 "0xlqsaxsiayk1sd07kpz8abbcnab582y29a1y4882fq6j4gma5xi"))))
5171 (build-system python-build-system)
5172 (home-page "https://github.com/solderpunk/VF-1")
5173 (synopsis "Command line gopher client")
5174 (description "@code{VF-1} is a command line gopher client with
5175 @acronym{TLS, Transport Layer Security} support.")
5176 (license license:bsd-2)))
5178 (define-public python-httpcore
5180 (name "python-httpcore")
5184 ;; PyPI tarball does not contain tests.
5187 (url "https://github.com/encode/httpcore")
5189 (file-name (git-file-name name version))
5191 (base32 "1nrwwfdqjfc2a1k3j41cdwkprwvplf95fwmypdl2aq2qgp3209q0"))))
5192 (build-system python-build-system)
5194 `(#:tests? #f ; Tests hang at 98%
5196 (modify-phases %standard-phases
5198 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
5200 (add-installed-pythonpath inputs outputs)
5201 (invoke "pytest" "-vv" "--cov=httpcore"
5202 "--cov=tests" "tests"))
5205 `(("python-autoflake" ,python-autoflake)
5206 ("python-flake8" ,python-flake8)
5207 ("python-flake8-bugbear" ,python-flake8-bugbear)
5208 ("python-flake8-pie" ,python-flake8-pie)
5209 ("python-isort" ,python-isort)
5210 ("python-mypy" ,python-mypy)
5211 ("python-pytest" ,python-pytest)
5212 ("python-pytest-asyncio" ,python-pytest-asyncio)
5213 ("python-pytest-cov" ,python-pytest-cov)
5214 ("python-pytest-trio" ,python-pytest-trio)
5215 ("python-uvicorn" ,python-uvicorn)
5216 ("python-trustme" ,python-trustme)))
5218 `(("python-h11" ,python-h11)
5219 ("python-h2" ,python-h2)
5220 ("python-sniffio" ,python-sniffio)
5221 ("python-trio" ,python-trio)
5222 ("python-trio-typing" ,python-trio-typing)))
5223 (home-page "https://github.com/encode/httpcore")
5224 (synopsis "Minimal, low-level HTTP client")
5226 "HTTP Core provides a minimal and low-level HTTP client, which does one
5227 thing only: send HTTP requests.
5229 Some things HTTP Core does do:
5232 @item Sending HTTP requests.
5233 @item Provides both sync and async interfaces.
5234 @item Supports HTTP/1.1 and HTTP/2.
5235 @item Async backend support for asyncio and trio.
5236 @item Automatic connection pooling.
5237 @item HTTP(S) proxy support.
5239 (license license:bsd-3)))
5241 (define-public python-httpx
5243 (name "python-httpx")
5247 ;; PyPI tarball does not contain tests.
5250 (url "https://github.com/encode/httpx")
5252 (file-name (git-file-name name version))
5254 (base32 "00gmq45fckcqkj910bvd7pyqz1mvgsdvz4s0k7dzbnc5czzq1f4a"))))
5255 (build-system python-build-system)
5258 (modify-phases %standard-phases
5261 (invoke "pytest" "-vv" "-k"
5262 ;; These tests try to open an outgoing connection.
5264 "not test_connect_timeout"
5265 " and not test_that_send_cause_async_client_to_be_not_"
5267 " and not test_that_async_client_caused_warning_when_"
5269 " and not test_that_send_cause_client_to_be_not_closed"
5270 " and not test_async_proxy_close"
5271 " and not test_sync_proxy_close")))))))
5273 `(("python-autoflake" ,python-autoflake)
5274 ("python-black" ,python-black)
5275 ("python-cryptography" ,python-cryptography)
5276 ("python-flake8" ,python-flake8)
5277 ("python-flake8-bugbear" ,python-flake8-bugbear)
5278 ("python-flake8-pie" ,python-flake8-pie)
5279 ("python-isort" ,python-isort)
5280 ("python-mypy" ,python-mypy)
5281 ("python-pytest" ,python-pytest)
5282 ("python-pytest-asyncio" ,python-pytest-asyncio)
5283 ("python-pytest-trio" ,python-pytest-trio)
5284 ("python-pytest-cov" ,python-pytest-cov)
5285 ("python-trio" ,python-trio)
5286 ("python-trio-typing" ,python-trio-typing)
5287 ("python-trustme" ,python-trustme)
5288 ("python-uvicorn" ,python-uvicorn)))
5290 `(("python-brotli" ,python-brotli)
5291 ("python-certifi" ,python-certifi)
5292 ("python-chardet" ,python-chardet)
5293 ("python-httpcore" ,python-httpcore)
5294 ("python-idna" ,python-idna)
5295 ("python-rfc3986" ,python-rfc3986)
5296 ("python-sniffio" ,python-sniffio)))
5297 (home-page "https://www.python-httpx.org/")
5298 (synopsis "HTTP client for Python")
5300 "HTTPX is a fully featured HTTP client for Python 3, which provides sync
5301 and async APIs, and support for both HTTP/1.1 and HTTP/2.
5303 HTTPX builds on the well-established usability of requests, and gives you:
5306 @item A broadly requests-compatible API.
5307 @item Standard synchronous interface, but with async support if you need it.
5308 @item HTTP/1.1 and HTTP/2 support.
5309 @item Ability to make requests directly to WSGI applications or ASGI applications.
5310 @item Strict timeouts everywhere.
5311 @item Fully type annotated.
5312 @item 99% test coverage.
5315 Plus all the standard features of requests:
5318 @item International Domains and URLs
5319 @item Keep-Alive & Connection Pooling
5320 @item Sessions with Cookie Persistence
5321 @item Browser-style SSL Verification
5322 @item Basic/Digest Authentication
5323 @item Elegant Key/Value Cookies
5324 @item Automatic Decompression
5325 @item Automatic Content Decoding
5326 @item Unicode Response Bodies
5327 @item Multipart File Uploads
5328 @item HTTP(S) Proxy Support
5329 @item Connection Timeouts
5330 @item Streaming Downloads
5331 @item .netrc Support
5332 @item Chunked Requests
5334 (license license:bsd-3)))
5336 (define-public python-wsgiprox
5338 (name "python-wsgiprox")
5343 (uri (pypi-uri "wsgiprox" version))
5346 "11fsm199pvwbmqx2lccznvws65aam1rqqv0w79gal8hispwgd5rs"))))
5347 (build-system python-build-system)
5349 ;; The test suite hangs (see:
5350 ;; https://github.com/webrecorder/wsgiprox/issues/6).
5353 (modify-phases %standard-phases
5354 (add-after 'unpack 'fix-pytest-argument
5356 ;; See: https://github.com/webrecorder/wsgiprox/issues/7.
5357 (substitute* "setup.py"
5358 (("--doctest-module")
5359 "--doctest-modules")))))))
5361 `(("python-certauth" ,python-certauth)
5362 ("python-gevent" ,python-gevent)
5363 ("python-websocket-client" ,python-websocket-client)))
5365 `(("python-mock" ,python-mock)
5366 ("python-pytest-cov" ,python-pytest-cov)
5367 ("python-waitress" ,python-waitress)))
5368 (home-page "https://github.com/webrecorder/wsgiprox")
5369 (synopsis "HTTP/S proxy with WebSockets over WSGI")
5370 (description "@code{wsgiprox} is a Python WSGI (Web Server Gateway
5371 Interface) middle-ware for adding HTTP and HTTPS proxy support to a WSGI
5372 application. The library accepts HTTP and HTTPS proxy connections, and routes
5373 them to a designated prefix.")
5374 (license license:asl2.0)))
5376 (define-public python-warcio
5377 ;; The PyPI release is missing some test support files (see:
5378 ;; https://github.com/webrecorder/warcio/issues/132).
5379 (let ((revision "0")
5380 (commit "aa702cb321621b233c6e5d2a4780151282a778be"))
5382 (name "python-warcio")
5383 (version (git-version "1.7.4" revision commit))
5388 (url "https://github.com/webrecorder/warcio")
5390 (file-name (git-file-name name version))
5393 "11afr6zy3r6rda81010iq496dazg4xid0izg3smg6ighpmvsnzf2"))))
5394 (build-system python-build-system)
5397 (modify-phases %standard-phases
5398 (add-after 'unpack 'skip-problematic-tests
5400 ;; These tests fail due to networking requirements.
5401 (substitute* "setup.py"
5402 (("pytest.main\\(\\[" all)
5403 (string-append all "'-k', '"
5404 (string-append "not test_post_chunked and "
5405 "not test_remote") "'"))))))))
5407 ;; These inputs are required for the test suite.
5408 `(("python-httpbin" ,python-httpbin)
5409 ("python-pytest-cov" ,python-pytest-cov)
5410 ("python-requests" ,python-requests)
5411 ("python-wsgiprox" ,python-wsgiprox)))
5412 (home-page "https://github.com/webrecorder/warcio")
5413 (synopsis "Streaming web archival archive (WARC) library")
5414 (description "warcio is a Python library to read and write the WARC format
5415 commonly used in Web archives. It is designed for fast, low-level access to
5416 web archival content, oriented around a stream of WARC records rather than
5418 (license license:asl2.0))))
5420 (define-public python-websockets
5422 (name "python-websockets")
5427 (uri (pypi-uri "websockets" version))
5430 "03s3ml6sbki24aajllf8aily0xzrn929zxi84p50zkkbikdd4raw"))))
5431 (build-system python-build-system)
5433 '(#:tests? #f ; Tests not included in release tarball.
5435 (modify-phases %standard-phases
5436 (add-after 'unpack 'fix-websockets-package-name-requirement
5437 (lambda* (#:key inputs #:allow-other-keys)
5438 ;; Python package names use dot as separator.
5439 (substitute* "setup.py"
5440 (("websockets/extensions") "websockets.extensions")))))))
5441 (home-page "https://github.com/aaugustin/websockets")
5443 "Python implementation of the WebSocket Protocol (RFC 6455 & 7692)")
5445 "@code{websockets} is a library for building WebSocket servers and clients
5446 in Python with a focus on correctness and simplicity.
5448 Built on top of @code{asyncio}, Python's standard asynchronous I/O framework,
5449 it provides an elegant coroutine-based API.")
5450 (license license:bsd-3)))
5452 (define-public python-selenium
5454 (name "python-selenium")
5459 (uri (pypi-uri "selenium" version))
5462 "039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy"))))
5463 (build-system python-build-system)
5465 `(("python-urllib3" ,python-urllib3)))
5467 "https://github.com/SeleniumHQ/selenium/")
5468 (synopsis "Python bindings for Selenium")
5469 (description "Selenium enables web browser automation.
5470 Selenium specifically provides infrastructure for the W3C WebDriver specification
5471 — a platform and language-neutral coding interface compatible with all
5472 major web browsers.")
5473 (license license:asl2.0)))
5475 (define-public python-rapidjson
5477 (name "python-rapidjson")
5482 (uri (pypi-uri "python-rapidjson" version))
5485 "18cl2dhx3gds5vg52jxmh9wjlbiy8dx06c3n482rfpdi9dzbv05d"))
5486 (modules '((guix build utils)))
5488 '(begin (delete-file-recursively "rapidjson") #t))))
5489 (build-system python-build-system)
5492 (list (string-append "--rj-include-dir="
5493 (assoc-ref %build-inputs "rapidjson")
5494 "/include/rapidjson"))
5496 (modify-phases %standard-phases
5498 (lambda* (#:key inputs #:allow-other-keys)
5499 (invoke "python" "setup.py" "build"
5500 (string-append "--rj-include-dir="
5501 (assoc-ref %build-inputs "rapidjson")
5502 "/include/rapidjson"))))
5504 (lambda* (#:key inputs outputs #:allow-other-keys)
5505 (add-installed-pythonpath inputs outputs)
5506 ;; Some tests are broken.
5507 (delete-file "tests/test_base_types.py")
5508 (delete-file "tests/test_validator.py")
5509 (invoke "python" "-m" "pytest" "tests"))))))
5511 `(("rapidjson" ,rapidjson)
5512 ("python-pytest" ,python-pytest)
5513 ("python-pytz" ,python-pytz)))
5514 (home-page "https://github.com/python-rapidjson/python-rapidjson")
5515 (synopsis "Python wrapper around rapidjson")
5516 (description "This package provides a python wrapper around rapidjson.")
5517 (license license:expat)))
5519 (define-public python-venusian
5521 (name "python-venusian")
5526 (uri (pypi-uri "venusian" version))
5528 (base32 "0f7f67dkgxxcjfhpdd5frb9pszkf04lyzzpn5069q0xi89r2p17n"))))
5529 (build-system python-build-system)
5531 `(("python-pytest" ,python-pytest)
5532 ("python-runner" ,python-pytest-runner)
5533 ("python-pytest-cov" ,python-pytest-cov)))
5534 (arguments '(#:test-target "pytest"))
5535 (home-page "https://docs.pylonsproject.org/projects/venusian")
5536 (synopsis "Library for deferring decorator actions")
5538 "Venusian is a library which allows framework authors to defer decorator
5539 actions. Instead of taking actions when a function (or class) decorator is
5540 executed at import time, you can defer the action usually taken by the
5541 decorator until a separate scan phase.")
5542 (license license:repoze)))
5544 (define-public python-zope-deprecation
5546 (name "python-zope-deprecation")
5550 (uri (pypi-uri "zope.deprecation" version))
5553 "1pz2cv7gv9y1r3m0bdv7ks1alagmrn5msm5spwdzkb2by0w36i8d"))))
5554 (build-system python-build-system)
5556 (propagated-inputs `())
5557 (home-page "https://zopedeprecation.readthedocs.io/")
5558 (synopsis "Function for marking deprecations")
5559 (description "The @code{zope.deprecation} module provides a function for
5560 marking modules, classes, functions, methods and properties as deprecated,
5561 displaying warnings when usaged in application code.")
5562 (license license:zpl2.1)))
5564 (define-public python-translationstring
5566 (name "python-translationstring")
5570 (uri (pypi-uri "translationstring" version))
5573 "0bdpcnd9pv0131dl08h4zbcwmgc45lyvq3pa224xwan5b3x4rr2f"))))
5574 (build-system python-build-system)
5575 (home-page "http://docs.pylonsproject.org/projects/translationstring")
5576 (synopsis "Internationalization tooling for the Pylons project")
5577 (description "This package provides a library used by various Pylons
5578 project packages for internationalization (i18n) duties related to
5580 (license license:repoze)))
5582 (define-public python-plaster
5584 (name "python-plaster")
5588 (uri (pypi-uri "plaster" version))
5591 "1hy8k0nv2mxq94y5aysk6hjk9ryb4bsd13g83m60hcyzxz3wflc3"))))
5592 (build-system python-build-system)
5594 `(("python-pytest" ,python-pytest)))
5595 (home-page "https://docs.pylonsproject.org/projects/plaster/en/latest/")
5596 (synopsis "Configuration loader for multiple config file formats")
5598 "Plaster is a loader interface around multiple config file formats. It
5599 exists to define a common API for applications to use when they wish to load
5600 configuration. The library itself does not aim to handle anything except a
5601 basic API that applications may use to find and load configuration settings.
5602 Any specific constraints should be implemented in a pluggable loader which can
5603 be registered via an entrypoint.")
5604 (license license:repoze)))
5606 (define-public python-plaster-pastedeploy
5608 (name "python-plaster-pastedeploy")
5612 (uri (pypi-uri "plaster_pastedeploy" version))
5615 "1zg7gcsvc1kzay1ry5p699rg2qavfsxqwl17mqxzr0gzw6j9679r"))))
5616 (build-system python-build-system)
5618 `(("python-pytest" ,python-pytest)))
5620 `(("python-plaster" ,python-plaster)
5621 ("python-pastedeploy" ,python-pastedeploy)))
5622 (home-page "https://github.com/Pylons/plaster_pastedeploy")
5623 (synopsis "Plugin for python-plaster adding PasteDeploy syntax")
5625 "This plugin for @code{python-plaster} adds support for PasteDeploy
5626 syntax, it provides a plaster @code{Loader} object that can parse ini files
5627 according to the standard set by PasteDeploy ")
5628 (license license:expat)))
5630 (define-public python-hupper
5632 (name "python-hupper")
5636 (uri (pypi-uri "hupper" version))
5639 "1nbc648d110jx6ziji980cdmzsd14p8fqrcarsdvr1vm5jvm2vyd"))))
5640 (build-system python-build-system)
5641 (arguments '(#:test-target "pytest"))
5643 `(("python-pytest" ,python-pytest)
5644 ("python-pytest-runner" ,python-pytest-runner)
5645 ("python-watchdog" ,python-watchdog)
5646 ("python-mock" ,python-mock)
5647 ("python-pytest-cov" ,python-pytest-cov)))
5649 `(("python-pytz" ,python-pytz)))
5650 (home-page "https://readthedocs.org/projects/hupper")
5651 (synopsis "Integrated process monitor tracking changes to imported Python files")
5653 "Hupper is an integrated process monitor that will track changes to any
5654 imported Python files in sys.modules as well as custom paths. When files are
5655 changed the process is restarted.")
5656 (license license:expat)))
5658 (define-public python-pyramid
5660 (name "python-pyramid")
5664 (uri (pypi-uri "pyramid" version))
5667 "0rkxs1ajycg2zh1c94xlmls56mx5m161sn8112skj0amza6cn36q"))))
5668 (build-system python-build-system)
5670 `(("python-hupper" ,python-hupper)
5671 ("python-plaster-pastedeploy" ,python-plaster-pastedeploy)
5672 ("python-translationstring" ,python-translationstring)
5673 ("python-venusian" ,python-venusian)
5674 ("python-webob" ,python-webob)
5675 ("python-zope-deprecation" ,python-zope-deprecation)
5676 ("python-zope-interface" ,python-zope-interface)
5677 ("python-webtest" ,python-webtest)
5678 ("python-zope-component" ,python-zope-component)
5679 ("python-plaster" ,python-plaster)))
5680 (home-page "https://trypyramid.com/")
5681 (synopsis "Python web-framework suitable for small and large sites")
5683 "Pyramid makes it easy to write web applications. From minimal
5684 request/response web apps to larger, grown applications.")
5685 (license license:repoze)))
5687 (define-public python-random-user-agent
5689 (name "python-random-user-agent")
5694 (uri (pypi-uri "random_user_agent" version))
5697 "04nhzdh2ki7ybhjrmghxci6hcm6i03vvin2q2ynj87fbr1pa534g"))))
5698 (build-system python-build-system)
5699 (home-page "https://github.com/Luqman-Ud-Din/random_user_agent")
5700 (synopsis "List of user agents")
5702 "This package provides a list of user agents, from a collection of more
5703 than 326,000 known user-agents. Users can pick a random one, or select one
5705 (license license:expat)))
5707 (define-public python-flask-restx
5709 (name "python-flask-restx")
5712 ;; We fetch from the Git repo because there are no tests in the PyPI
5717 (url "https://github.com/python-restx/flask-restx")
5719 (file-name (git-file-name name version))
5721 (base32 "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7"))))
5722 (build-system python-build-system)
5724 `(("python-aniso8601" ,python-aniso8601)
5725 ("python-flask" ,python-flask)
5726 ("python-jsonschema" ,python-jsonschema)
5727 ("python-pytz" ,python-pytz)))
5729 `(("python-blinker" ,python-blinker)
5730 ("python-faker" ,python-faker)
5731 ("python-pytest" ,python-pytest)
5732 ("python-pytest-benchmark"
5733 ,python-pytest-benchmark)
5734 ("python-pytest-flask" ,python-pytest-flask)
5735 ("python-pytest-mock" ,python-pytest-mock)))
5738 (modify-phases %standard-phases
5741 (invoke "pytest" "--benchmark-skip" "-k"
5742 ;; Those tests need internet access
5743 "not test_check and not test_valid_value_check"))))))
5744 (home-page "https://github.com/python-restx/flask-restx")
5746 "Framework for fast, easy and documented API development with Flask")
5748 "Flask-RESTX is an extension for Flask that adds support for quickly building
5749 REST APIs. Flask-RESTX encourages best practices with minimal setup. If you are familiar
5750 with Flask, Flask-RESTX should be easy to pick up. It provides a coherent collection of
5751 decorators and tools to describe your API and expose its documentation properly using
5753 (license license:bsd-3)))
5755 (define-public python-flask-socketio
5757 (name "python-flask-socketio")
5762 (uri (pypi-uri "Flask-SocketIO" version))
5765 "09r2gpj2nbn72v2zaf6xsvlazln77pgqzp2pg2021nja47sijhsw"))))
5766 (build-system python-build-system)
5768 `(("python-flask" ,python-flask)
5769 ("python-socketio" ,python-socketio)))
5770 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
5771 (home-page "https://github.com/miguelgrinberg/Flask-SocketIO/")
5772 (synopsis "Socket.IO integration for Flask applications")
5773 (description "Socket.IO integration for Flask applications")
5774 (license license:expat)))
5776 (define-public python-manuel
5778 (name "python-manuel")
5783 (uri (pypi-uri "manuel" version))
5786 "1bdzay7j70fly5fy6wbdi8fbrxjrrlxnxnw226rwry1c8a351rpy"))))
5787 (build-system python-build-system)
5789 `(("python-six" ,python-six)))
5791 `(("python-zope-testing" ,python-zope-testing)))
5792 (home-page "https://pypi.org/project/manuel/")
5793 (synopsis "Build tested documentation")
5795 "Manuel lets you mix and match traditional doctests with custom test syntax.")
5796 (license license:asl2.0)))
5798 (define-public python-persistent
5800 (name "python-persistent")
5805 (uri (pypi-uri "persistent" version))
5808 "0imm9ji03lhkpcfmhid7x5209ix8g2rlgki9ik1qxks4b8sm8gzq"))))
5809 (build-system python-build-system)
5811 `(("python-cffi" ,python-cffi)
5812 ("python-zope-interface" ,python-zope-interface)))
5814 `(("python-manuel" ,python-manuel)
5815 ("python-zope-testrunner" ,python-zope-testrunner)))
5816 (home-page "https://github.com/zopefoundation/persistent/")
5817 (synopsis "Translucent persistent objects")
5818 (description "This package contains a generic persistence implementation for
5819 Python. It forms the core protocol for making objects interact
5820 \"transparently\" with a database such as the ZODB.")
5821 (license license:zpl2.1)))
5823 (define-public python-btrees
5825 (name "python-btrees")
5830 (uri (pypi-uri "BTrees" version))
5833 "0iiq0g9k1g6qgqq84q9h6639vlvzznk1rgdm0rfcnnqkbkmsbr3w"))))
5834 (build-system python-build-system)
5836 `(("python-persistent" ,python-persistent)
5837 ("python-zope-interface" ,python-zope-interface)))
5839 `(("python-persistent" ,python-persistent)
5840 ("python-transaction" ,python-transaction)
5841 ("python-zope-testrunner" ,python-zope-testrunner)))
5842 (home-page "https://github.com/zopefoundation/BTrees")
5843 (synopsis "Scalable persistent object containers")
5845 "This package contains a set of persistent object containers built around a
5846 modified BTree data structure. The trees are optimized for use inside ZODB's
5847 \"optimistic concurrency\" paradigm, and include explicit resolution of
5848 conflicts detected by that mechanism.")
5849 (license license:zpl2.1)))
5851 (define-public python-transaction
5853 (name "python-transaction")
5858 (uri (pypi-uri "transaction" version))
5861 "0bdaks31bgfh78wnj3sij24bfysmqk25crsis6amz8kzrc0d82iv"))))
5862 (build-system python-build-system)
5864 `(("python-zope-interface" ,python-zope-interface)))
5866 `(("python-coverage" ,python-coverage)
5867 ("python-mock" ,python-mock)
5868 ("python-nose" ,python-nose)))
5869 (home-page "https://github.com/zopefoundation/transaction")
5870 (synopsis "Transaction management for Python")
5871 (description "This package contains a generic transaction implementation
5872 for Python. It is mainly used by the ZODB.")
5873 (license license:zpl2.1)))
5875 (define-public python-robot-detection
5877 (name "python-robot-detection")
5882 (uri (pypi-uri "robot-detection" version))
5885 "1xd2jm3yn31bnk1kqzggils2rxj26ylxsfz3ap7bhr3ilhnbg3rx"))))
5886 (build-system python-build-system)
5887 (arguments '(#:tests? #f)) ; Tests not shipped in pypi release.
5888 (propagated-inputs `(("python-six" ,python-six)))
5889 (home-page "https://github.com/rory/robot-detection")
5890 (synopsis "Detect web crawlers")
5892 "@code{robot_detection} is a python module to detect if a given HTTP User
5893 Agent is a web crawler. It uses the list of registered robots from
5894 @url{http://www.robotstxt.org}.")
5895 (license license:gpl3+)))
5897 (define-public python-pysolr
5899 (name "python-pysolr")
5904 (uri (pypi-uri "pysolr" version))
5907 "1rj5jmscvxjwcmlfi6hmkj44l4x6n3ln5p7d8d18j566hzmmzw3f"))))
5908 (build-system python-build-system)
5910 '(#:tests? #f)) ; Tests require network access.
5912 `(("python-requests" ,python-requests)))
5914 `(("python-setuptools-scm" ,python-setuptools-scm)))
5915 (home-page "https://github.com/django-haystack/pysolr/")
5916 (synopsis "Lightweight python wrapper for Apache Solr")
5918 "This module provides an interface that queries the Apache Solr server
5919 using a pure Python implementation.")
5920 (license license:bsd-3)))
5922 (define-public python-http-ece
5924 (name "python-http-ece")
5930 (url "https://github.com/web-push-libs/encrypted-content-encoding")
5931 (commit (string-append "v" version))))
5932 (file-name (git-file-name name version))
5935 "0bp4cc0xc123i72h80ax3qz3ixfwx3j7pw343kc7i6kdvfi8klx7"))))
5936 (build-system python-build-system)
5939 (modify-phases %standard-phases
5940 (add-after 'unpack 'change-directory
5941 (lambda _ (chdir "python") #t)))))
5943 `(("python-cryptography" ,python-cryptography)))
5945 `(("python-coverage" ,python-coverage)
5946 ("python-flake8" ,python-flake8)
5947 ("python-mock" ,python-mock)
5948 ("python-nose" ,python-nose)))
5949 (home-page "https://github.com/web-push-libs/encrypted-content-encoding")
5950 (synopsis "Encrypted Content Encoding for HTTP")
5952 "This package provices a simple implementation of Encrypted Content
5953 Encoding for HTTP.")
5954 (license license:expat)))
5956 (define-public python-cloudscraper
5958 (name "python-cloudscraper")
5963 (uri (pypi-uri "cloudscraper" version))
5965 (base32 "0qjxzb0z5bprvmdhx42ayqhlhi2h49d9dwc0vvycj817s71f2sxv"))
5966 (modules '((guix build utils)))
5968 '(with-directory-excursion "cloudscraper"
5969 (for-each delete-file
5970 '("captcha/2captcha.py"
5972 "captcha/anticaptcha.py"
5973 "captcha/deathbycaptcha.py"))
5974 (substitute* "__init__.py"
5975 ;; Perhaps it's a joke, but don't promote proprietary software.
5976 (("([Th]is feature is not available) in the .*'" _ prefix)
5977 (string-append prefix ".'")))
5979 (build-system python-build-system)
5982 (modify-phases %standard-phases
5983 ;; XXX: Dependencies, that have not yet been packaged
5984 ;; and cause an import error when included.
5985 (add-after 'unpack 'drop-unsupported-sources
5987 (with-directory-excursion "cloudscraper"
5988 (for-each delete-file
5989 '("interpreters/js2py.py"
5990 "interpreters/v8.py")))
5993 `(("python-requests" ,python-requests)
5994 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
5995 ("python-pyparsing" ,python-pyparsing-2.4.7)))
5997 `(("python-pytest" ,python-pytest)))
5998 (home-page "https://github.com/venomous/cloudscraper")
5999 (synopsis "Cloudflare anti-bot bypass")
6001 "This module acts as a webbrowser solving Cloudflare's Javascript
6003 (license license:expat)))
6005 (define-public python-imap-tools
6007 (name "python-imap-tools")
6012 (uri (pypi-uri "imap_tools" version))
6015 "0x122jwpc74wwyw2rsv2fvh6p12y31019ndfr9717jzjkj2d3lhb"))))
6016 (build-system python-build-system)
6017 (arguments '(#:tests? #f)) ; tests require internet access
6018 (home-page "https://github.com/ikvk/imap_tools")
6019 (synopsis "Work with email and mailbox by IMAP")
6021 "This Python library provides tools to deal with email and mailboxes
6025 @item Parsed email message attributes
6026 @item Query builder for searching emails
6027 @item Work with emails in folders (copy, delete, flag, move, seen)
6028 @item Work with mailbox folders (list, set, get, create, exists, rename, delete, status)
6030 (license license:asl2.0)))
6032 (define-public python-hstspreload
6034 (name "python-hstspreload")
6035 (version "2020.10.20")
6039 (uri (pypi-uri "hstspreload" version))
6042 "1qah80p2xlib1rhivvdj9v5y3girxrj7dwp1mnh8mwaj5wy32y8a"))))
6043 (build-system python-build-system)
6045 "https://github.com/sethmlarson/hstspreload")
6047 "Chromium HSTS Preload list as a Python package")
6049 "@code{python-hstspreload} contains Chromium HSTS Preload list
6050 as a Python package.")
6051 (license license:bsd-3)))
6053 (define-public python-sanic
6055 (name "python-sanic")
6060 (uri (pypi-uri "sanic" version))
6063 "1c02gdp1j18xny9jd33fp0w57qqi7g66zwmaykv2dhcks96f5mxr"))))
6064 (build-system python-build-system)
6067 (modify-phases %standard-phases
6068 (add-after 'unpack 'use-recent-pytest
6069 ;; Allow using recent dependencies.
6070 (lambda* (#:key inputs #:allow-other-keys)
6071 (substitute* "setup.py"
6072 (("pytest==5.2.1") "pytest")
6073 (("multidict>=5.0,<6.0") "multidict")
6074 (("httpx==0\\.15\\.4") "httpx"))
6077 (lambda* (#:key inputs outputs #:allow-other-keys)
6078 (add-installed-pythonpath inputs outputs)
6079 (invoke "pytest" "-vv" "./tests" "-k"
6080 "not test_zero_downtime and not test_gunicorn_worker"))))))
6082 `(("python-aiofiles" ,python-aiofiles)
6083 ("python-httptools" ,python-httptools)
6084 ("python-httpx" ,python-httpx)
6085 ("python-multidict" ,python-multidict)
6086 ("python-ujson" ,python-ujson)
6087 ("python-uvloop" ,python-uvloop)
6088 ("python-websockets" ,python-websockets)))
6090 `(("gunicorn" ,gunicorn)
6091 ("python-beautifulsoup4" ,python-beautifulsoup4)
6092 ("python-hstspreload" ,python-hstspreload)
6093 ("python-httpcore" ,python-httpcore)
6094 ("python-pytest" ,python-pytest)
6095 ("python-pytest-cov" ,python-pytest-cov)
6096 ("python-pytest-benchmark" ,python-pytest-benchmark)
6097 ("python-pytest-sanic" ,python-pytest-sanic)
6098 ("python-pytest-sugar" ,python-pytest-sugar)
6099 ("python-pytest-asyncio" ,python-pytest-asyncio)
6100 ("python-urllib3" ,python-urllib3)
6101 ("python-uvicorn" ,python-uvicorn)))
6103 "https://github.com/sanic-org/sanic/")
6105 "Async Python web server/framework")
6107 "Sanic is a Python web server and web framework
6108 that's written to go fast. It allows the usage of the
6109 @code{async/await} syntax added in Python 3.5, which makes
6110 your code non-blocking and speedy.")
6111 (license license:expat)))
6113 (define-public python-socketio
6115 (name "python-socketio")
6120 (uri (pypi-uri "python-socketio" version))
6123 "14vhpxdn54lz54mhcqlgcks0ssbws9gd1y7ii16a2g3gpfdc531k"))))
6124 (build-system python-build-system)
6126 `(("python-aiohttp" ,python-aiohttp)
6127 ("python-bidict" ,python-bidict)
6128 ("python-engineio" ,python-engineio)
6129 ("python-requests" ,python-requests)
6130 ("python-websocket-client" ,python-websocket-client)
6131 ("python-websockets" ,python-websockets)))
6132 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
6133 (home-page "https://github.com/miguelgrinberg/python-socketio/")
6134 (synopsis "Python Socket.IO server")
6136 "Python implementation of the Socket.IO realtime client and server.")
6137 (license license:expat)))
6139 (define-public python-socks
6141 (name "python-socks")
6146 (uri (pypi-uri "python-socks" version))
6149 "06mgv3icsyglv50w3sb71x6cpbskza20pqd93l5xk59x574i6xgs"))))
6150 (build-system python-build-system)
6152 `(#:tests? #f ; tests not included
6154 (modify-phases %standard-phases
6156 (lambda* (#:key tests? #:allow-other-keys)
6158 (invoke "pytest" "tests/" "-s"))
6161 `(("python-async-timeout" ,python-async-timeout)
6162 ("python-curio" ,python-curio)
6163 ("python-trio" ,python-trio)))
6165 `(("python-pytest" ,python-pytest)))
6166 (home-page "https://github.com/romis2012/python-socks")
6168 "Core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality for Python")
6170 "Socks is a library providing core proxy (SOCKS4, SOCKS5, HTTP tunneling)
6172 (license license:asl2.0)))
6174 (define-public python-azure-nspkg
6176 (name "python-azure-nspkg")
6181 (uri (pypi-uri "azure-nspkg" version ".zip"))
6184 "1l4xwdh0fcnvrv0mzig4g2kgqkfbsy64zjm1ggc6grk3mykcxlz7"))))
6185 (build-system python-build-system)
6186 (native-inputs `(("unzip" ,unzip)))
6187 (home-page "https://github.com/Azure/azure-sdk-for-python")
6188 (synopsis "Azure namespace internals")
6190 "This package is an internal Azure namespace package.")
6191 (license license:expat)))
6193 (define-public python-azure-storage-nspkg
6195 (name "python-azure-storage-nspkg")
6200 (uri (pypi-uri "azure-storage-nspkg" version))
6203 "049qcmgshz7dj9yaqma0fwcgbxwddgwyfcw4gmv45xfmaa3bwfvg"))))
6204 (build-system python-build-system)
6206 `(("python-azure-nspkg" ,python-azure-nspkg)))
6207 (home-page "https://github.com/Azure/azure-storage-python")
6208 (synopsis "Microsoft Azure Storage Namespace package")
6210 "This project provides a client library in Python that makes it easy to
6211 communicate with Microsoft Azure Storage services.")
6212 (license license:expat)))
6214 (define-public python-w3lib
6216 (name "python-w3lib")
6221 (uri (pypi-uri "w3lib" version))
6224 "1pv02lvvmgz2qb61vz1jkjc04fgm4hpfvaj5zm4i3mjp64hd1mha"))))
6225 (build-system python-build-system)
6227 `(("python-six" ,python-six)))
6228 (home-page "https://github.com/scrapy/w3lib")
6229 (synopsis "Python library of web-related functions")
6231 "This is a Python library of web-related functions, such as: remove comments,
6232 or tags from HTML snippets, extract base url from HTML snippets, translate entites
6233 on HTML strings, among other things.")
6234 (license license:bsd-3)))