gnu: Remove python-requests@2.7.
[jackhill/guix/guix.git] / gnu / packages / python-web.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
3 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
5 ;;; Copyright © 2016, 2017 Danny Milosavljevic <dannym+a@scratchpost.org>
6 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
7 ;;; Copyright © 2016, 2017, 2020 Marius Bakke <mbakke@fastmail.com>
8 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
10 ;;; Copyright © 2016, 2017, 2020 Julien Lepiller <julien@lepiller.eu>
11 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
12 ;;; Copyright © 2014, 2017 Eric Bavier <bavier@member.fsf.org>
13 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
14 ;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com>
15 ;;; Copyright © 2015, 2016, 2017, 2019 Leo Famulari <leo@famulari.name>
16 ;;; Copyright © 2016, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
17 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
18 ;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
19 ;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
20 ;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com>
21 ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
22 ;;; Copyright © 2016 David Craven <david@craven.ch>
23 ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
24 ;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
25 ;;; Copyright © 2017 Mark Meyer <mark@ofosos.org>
26 ;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
27 ;;; Copyright © 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
28 ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
29 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vagrant Cascadian <vagrant@debian.org>
31 ;;; Copyright © 2019 Brendan Tildesley <mail@brendan.scot>
32 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
33 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
34 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
35 ;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
36 ;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
37 ;;; Copyright © 2020 Holger Peters <holger.peters@posteo.de>
38 ;;; Copyright © 2020 Noisytoot <noisytoot@gmail.com>
39 ;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
40 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
41 ;;;
42 ;;; This file is part of GNU Guix.
43 ;;;
44 ;;; GNU Guix is free software; you can redistribute it and/or modify it
45 ;;; under the terms of the GNU General Public License as published by
46 ;;; the Free Software Foundation; either version 3 of the License, or (at
47 ;;; your option) any later version.
48 ;;;
49 ;;; GNU Guix is distributed in the hope that it will be useful, but
50 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
51 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52 ;;; GNU General Public License for more details.
53 ;;;
54 ;;; You should have received a copy of the GNU General Public License
55 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
56
57 (define-module (gnu packages python-web)
58 #:use-module (guix packages)
59 #:use-module (guix download)
60 #:use-module (guix git-download)
61 #:use-module (guix build-system python)
62 #:use-module (guix utils)
63 #:use-module (gnu packages)
64 #:use-module (gnu packages base)
65 #:use-module (gnu packages check)
66 #:use-module (gnu packages compression)
67 #:use-module (gnu packages curl)
68 #:use-module (gnu packages databases)
69 #:use-module (gnu packages django)
70 #:use-module (gnu packages groff)
71 #:use-module (gnu packages libffi)
72 #:use-module (gnu packages pkg-config)
73 #:use-module (gnu packages python)
74 #:use-module (gnu packages python-check)
75 #:use-module (gnu packages python-crypto)
76 #:use-module (gnu packages python-xyz)
77 #:use-module (gnu packages serialization)
78 #:use-module (gnu packages sphinx)
79 #:use-module (gnu packages texinfo)
80 #:use-module (gnu packages tls)
81 #:use-module (gnu packages time)
82 #:use-module (gnu packages web)
83 #:use-module (gnu packages xml)
84 #:use-module ((guix licenses) #:prefix license:)
85 #:use-module (srfi srfi-1))
86
87 (define-public python-aiohttp
88 (package
89 (name "python-aiohttp")
90 (version "3.6.2")
91 (source
92 (origin
93 (method url-fetch)
94 (uri (pypi-uri "aiohttp" version))
95 (sha256
96 (base32
97 "09pkw6f1790prnrq0k8cqgnf1qy57ll8lpmc6kld09q7zw4vi6i5"))
98 (patches (search-patches "python-aiohttp-3.6.2-no-warning-fail.patch"))))
99 (build-system python-build-system)
100 (arguments
101 '(#:phases
102 (modify-phases %standard-phases
103 (add-after 'unpack 'fix-tests
104 (lambda _
105 ;; disable brotli tests, because we’re not providing that optional library
106 (substitute* "tests/test_http_parser.py"
107 ((" async def test_feed_eof_no_err_brotli")
108 " @pytest.mark.xfail\n async def test_feed_eof_no_err_brotli"))
109 ;; make sure the timestamp of this file is > 1990, because a few
110 ;; tests like test_static_file_if_modified_since_past_date depend on it
111 (invoke "touch" "-d" "2020-01-01" "tests/data.unknown_mime_type")
112
113 ;; FIXME: These tests are failing due to deprecation warnings
114 ;; in Python 3.8. Remove this when updating to aiohttp >= 3.7.
115 ;; https://github.com/aio-libs/aiohttp/issues/4477
116 ;; https://github.com/aio-libs/aiohttp/issues/4525
117 (with-directory-excursion "tests"
118 (for-each delete-file '("test_client_session.py"
119 "test_multipart.py"
120 "test_web_middleware.py"
121 "test_web_protocol.py"
122 "test_web_urldispatcher.py")))
123 #t)))))
124 (propagated-inputs
125 `(("python-aiodns" ,python-aiodns)
126 ("python-async-timeout" ,python-async-timeout)
127 ("python-attrs" ,python-attrs)
128 ("python-chardet" ,python-chardet)
129 ("python-idna-ssl" ,python-idna-ssl)
130 ("python-multidict" ,python-multidict)
131 ("python-yarl" ,python-yarl)))
132 (native-inputs
133 `(("python-pytest-runner" ,python-pytest-runner)
134 ("python-pytest-xdit" ,python-pytest-xdist)
135 ("python-pytest-timeout" ,python-pytest-timeout)
136 ("python-pytest-forked" ,python-pytest-forked)
137 ("python-pytest-mock" ,python-pytest-mock)
138 ("gunicorn" ,gunicorn-bootstrap)
139 ("python-freezegun" ,python-freezegun)
140 ("python-async-generator" ,python-async-generator)))
141 (home-page "https://github.com/aio-libs/aiohttp/")
142 (synopsis "Async HTTP client/server framework (asyncio)")
143 (description "@code{aiohttp} is an asynchronous HTTP client/server
144 framework.
145
146 Its main features are:
147 @itemize
148 @item Supports both client and server side of HTTP protocol.
149 @item Supports both client and server Web-Sockets out-of-the-box without the
150 Callback Hell.
151 @item Web-server has middlewares and pluggable routing.
152 @end itemize")
153 (license license:asl2.0)))
154
155 (define-public python-aiohttp-socks
156 (package
157 (name "python-aiohttp-socks")
158 (version "0.2.2")
159 (source
160 (origin
161 (method url-fetch)
162 (uri (pypi-uri "aiohttp_socks" version))
163 (sha256
164 (base32
165 "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
166 (build-system python-build-system)
167 (propagated-inputs
168 `(("python-aiohttp" ,python-aiohttp)))
169 (home-page "https://github.com/romis2012/aiohttp-socks")
170 (synopsis "SOCKS proxy connector for aiohttp")
171 (description "This package provides a SOCKS proxy connector for
172 aiohttp. It supports SOCKS4(a) and SOCKS5.")
173 (license license:asl2.0)))
174
175 (define-public python-aiodns
176 (package
177 (name "python-aiodns")
178 (version "1.1.1")
179 (source
180 (origin
181 (method url-fetch)
182 (uri (pypi-uri "aiodns" version))
183 (sha256
184 (base32
185 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
186 (build-system python-build-system)
187 (inputs
188 `(("python-pycares" ,python-pycares)))
189 (arguments
190 `(#:tests? #f)) ;tests require internet access
191 (home-page "https://github.com/saghul/aiodns")
192 (synopsis "Simple DNS resolver for asyncio")
193 (description "@code{aiodns} provides a simple way for doing
194 asynchronous DNS resolutions with a synchronous looking interface by
195 using @url{https://github.com/saghul/pycares,pycares}.")
196 (license license:expat)))
197
198 (define-public python-aiorpcx
199 (package
200 (name "python-aiorpcx")
201 (version "0.18.3")
202 (source
203 (origin
204 (method url-fetch)
205 (uri (pypi-uri "aiorpcX" version))
206 (sha256
207 (base32
208 "0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp"))))
209 (build-system python-build-system)
210 (propagated-inputs
211 `(("python-attrs" ,python-attrs)))
212 (home-page "https://github.com/kyuupichan/aiorpcX")
213 (synopsis "Generic asyncio RPC implementation")
214 (description
215 "The aiorpcX library is a generic asyncio implementation of RPC suitable
216 for an application that is a client, server or both.
217
218 The package includes a module with full coverage of JSON RPC versions 1.0 and
219 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
220 comes with a SOCKS proxy client.")
221 (license (list license:expat license:bsd-2))))
222
223 (define-public python-falcon
224 (package
225 (name "python-falcon")
226 (version "2.0.0")
227 (source
228 (origin
229 (method url-fetch)
230 (uri (pypi-uri "falcon" version))
231 (sha256
232 (base32
233 "1z6mqfv574x6jiawf67ib52g4kk20c2x7xk7wrn1573b8v7r79gf"))
234 (modules '((guix build utils)))
235 (snippet
236 '(begin
237 (delete-file-recursively "falcon/vendor")
238 (substitute* "setup.py"
239 ((".*falcon\\.vendor\\.mimeparse.*") ""))
240 (substitute* '("falcon/media/handlers.py"
241 "falcon/request.py")
242 (("from falcon\\.vendor ") ""))
243 (substitute* "falcon.egg-info/SOURCES.txt"
244 (("falcon/vendor.*") ""))
245 #t))))
246 (build-system python-build-system)
247 (arguments
248 `(#:phases
249 (modify-phases %standard-phases
250 (replace 'check
251 (lambda* (#:key inputs outputs #:allow-other-keys)
252 ;; Skip orjson, which requires rust to build.
253 (substitute* "tests/test_media_handlers.py"
254 (("== 'CPython") "!= 'CPython"))
255 (add-installed-pythonpath inputs outputs)
256 (invoke "pytest" "--ignore" "falcon"))))))
257 (propagated-inputs
258 `(("python-mimeparse" ,python-mimeparse)))
259 (native-inputs
260 `(("python-cython" ,python-cython) ;for faster binaries
261 ("python-mujson" ,python-mujson)
262 ("python-msgpack" ,python-msgpack)
263 ("python-pytest" ,python-pytest)
264 ("python-pytest-runner" ,python-pytest-runner)
265 ("python-pyyaml" ,python-pyyaml)
266 ("python-rapidjson" ,python-rapidjson)
267 ("python-requests" ,python-requests)
268 ("python-testtools" ,python-testtools)
269 ("python-ujson" ,python-ujson)))
270 (home-page "https://falconframework.org")
271 (synopsis
272 "Web framework for building APIs and application backends")
273 (description
274 "Falcon is a web API framework for building microservices, application
275 backends and higher-level frameworks. Among its features are:
276 @itemize
277 @item Optimized and extensible code base
278 @item Routing via URI templates and REST-inspired resource
279 classes
280 @item Access to headers and bodies through request and response
281 classes
282 @item Request processing via middleware components and hooks
283 @item Idiomatic HTTP error responses
284 @item Straightforward exception handling
285 @item Unit testing support through WSGI helpers and mocks
286 @item Compatible with both CPython and PyPy
287 @item Cython support for better performance when used with CPython
288 @end itemize")
289 (properties `((python2-variant . ,(delay python2-falcon))))
290 (license license:asl2.0)))
291
292 (define-public python2-falcon
293 (let ((falcon (package-with-python2 (strip-python2-variant python-falcon))))
294 (package
295 (inherit falcon)
296 (native-inputs
297 (alist-delete "python-rapidjson" (package-native-inputs falcon))))))
298
299 (define-public python-falcon-cors
300 (package
301 (name "python-falcon-cors")
302 (version "1.1.7")
303 (source
304 (origin
305 (method url-fetch)
306 (uri (pypi-uri "falcon-cors" version))
307 (sha256
308 (base32
309 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
310 (build-system python-build-system)
311 (native-inputs
312 `(("python-falcon" ,python-falcon)))
313 (home-page
314 "https://github.com/lwcolton/falcon-cors")
315 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
316 (description "This middleware provides @dfn{cross-origin resource
317 sharing} (CORS) support for Falcon. It allows applying a specially crafted
318 CORS object to the incoming requests, enabling the ability to serve resources
319 over a different origin than that of the web application.")
320 (license license:asl2.0)))
321
322 (define-public python2-falcon-cors
323 (package-with-python2 python-falcon-cors))
324
325 (define-public python-furl
326 (package
327 (name "python-furl")
328 (version "2.0.0")
329 (source
330 (origin
331 (method url-fetch)
332 (uri (pypi-uri "furl" version))
333 (sha256
334 (base32
335 "1v2lakx03d5w8954a39ki44xv5mllnq0a0avhxykv9hrzg0yvjpx"))))
336 (build-system python-build-system)
337 (propagated-inputs
338 `(("python-six" ,python-six)
339 ("python-orderedmultidict" ,python-orderedmultidict)))
340 (native-inputs
341 `(("python-flake8" ,python-flake8)))
342 (home-page "https://github.com/gruns/furl")
343 (synopsis "URL manipulation in Python")
344 (description "Furl provides an easy-to-use alternative to the
345 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
346 (license license:unlicense)))
347
348 (define-public python2-furl
349 (package-with-python2 python-furl))
350
351 (define-public python-httplib2
352 (package
353 (name "python-httplib2")
354 (version "0.9.2")
355 (source
356 (origin
357 (method url-fetch)
358 (uri (pypi-uri "httplib2" version))
359 (sha256
360 (base32
361 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
362 (build-system python-build-system)
363 (home-page "https://github.com/jcgregorio/httplib2")
364 (synopsis "Comprehensive HTTP client library")
365 (description
366 "A comprehensive HTTP client library supporting many features left out of
367 other HTTP libraries.")
368 (license license:expat)))
369
370 (define-public python2-httplib2
371 (package-with-python2 python-httplib2))
372
373 (define-public httpie
374 (package
375 (name "httpie")
376 (version "2.2.0")
377 (source
378 (origin
379 (method url-fetch)
380 (uri (pypi-uri "httpie" version))
381 (sha256
382 (base32
383 "18058k0i3cc4ixvgzj882w693lf40283flvspbrvd876iq42ib1i"))))
384 (build-system python-build-system)
385 (arguments
386 ;; The tests attempt to access external web servers, so we cannot run them.
387 '(#:tests? #f))
388 (propagated-inputs
389 `(("python-colorama" ,python-colorama)
390 ("python-pygments" ,python-pygments)
391 ("python-requests" ,python-requests)))
392 (home-page "https://httpie.org/")
393 (synopsis "cURL-like tool for humans")
394 (description
395 "A command line HTTP client with an intuitive UI, JSON support,
396 syntax highlighting, wget-like downloads, plugins, and more. It consists of
397 a single http command designed for painless debugging and interaction with
398 HTTP servers, RESTful APIs, and web services.")
399 (license license:bsd-3)))
400
401 (define-public python-html2text
402 (package
403 (name "python-html2text")
404 (version "2019.8.11")
405 (source
406 (origin
407 (method url-fetch)
408 (uri (pypi-uri "html2text" version))
409 (sha256
410 (base32
411 "0ppgjplg06kmv9sj0x8p7acczcq2mcfgk1jdjwm4w5w40b0vj5pm"))))
412 (build-system python-build-system)
413 (arguments
414 '(#:phases
415 (modify-phases %standard-phases
416 (replace 'check
417 (lambda _
418 (invoke "pytest" "test/"))))))
419 (native-inputs
420 `(("python-pytest" ,python-pytest)))
421 (home-page "https://github.com/Alir3z4/html2text")
422 (synopsis "Convert HTML into plain text")
423 (description "html2text takes HTML and converts it into plain ASCII text
424 which is also valid markdown. html2text was originally written by Aaron
425 Swartz.")
426 (license license:gpl3+)))
427
428 (define-public python2-html2text
429 (package-with-python2 python-html2text))
430
431 (define-public python-mechanicalsoup
432 (package
433 (name "python-mechanicalsoup")
434 (version "0.11.0")
435 (source
436 (origin
437 (method url-fetch)
438 (uri (pypi-uri "MechanicalSoup" version))
439 (sha256
440 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
441 (build-system python-build-system)
442 (arguments
443 ;; TODO: Enable tests when python-flake8@3.5 hits master.
444 `(#:tests? #f))
445 (propagated-inputs
446 `(("python-beautifulsoup4" ,python-beautifulsoup4)
447 ("python-lxml" ,python-lxml)
448 ("python-requests" ,python-requests)
449 ("python-six" ,python-six)))
450 ;; (native-inputs
451 ;; ;; For tests.
452 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
453 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
454 ;; ("python-pytest-mock" ,python-pytest-mock)
455 ;; ("python-pytest-runner" ,python-pytest-runner)
456 ;; ("python-requests-mock" ,python-requests-mock)))
457 (home-page "https://mechanicalsoup.readthedocs.io/")
458 (synopsis "Python library for automating website interaction")
459 (description
460 "MechanicalSoup is a Python library for automating interaction with
461 websites. It automatically stores and sends cookies, follows redirects, and can
462 follow links and submit forms. It doesn’t do JavaScript.")
463 (license license:expat)))
464
465 (define-public python2-mechanicalsoup
466 (package-with-python2 python-mechanicalsoup))
467
468 (define-public python-hyperframe
469 (package
470 (name "python-hyperframe")
471 (version "5.2.0")
472 (source
473 (origin
474 (method url-fetch)
475 (uri (pypi-uri "hyperframe" version))
476 (sha256
477 (base32 "07xlf44l1cw0ghxx46sbmkgzil8vqv8kxwy42ywikiy35izw3xd9"))))
478 (build-system python-build-system)
479 (arguments
480 `(#:phases
481 (modify-phases %standard-phases
482 (replace 'check
483 (lambda* (#:key inputs outputs #:allow-other-keys)
484 (add-installed-pythonpath inputs outputs)
485 (invoke "pytest" "-vv" "test"))))))
486 (native-inputs
487 `(("python-pytest" ,python-pytest)))
488 (home-page "https://github.com/python-hyper/hyperframe")
489 (synopsis "HTTP/2 framing layer for Python")
490 (description
491 "This library contains the HTTP/2 framing code used in the hyper project.
492 It provides a pure-Python codebase that is capable of decoding a binary stream
493 into HTTP/2 frames.")
494 (license license:expat)))
495
496 (define-public python-hpack
497 (package
498 (name "python-hpack")
499 (version "3.0.0")
500 (source
501 (origin
502 ;; PyPI tarball is missing some files necessary for the tests.
503 (method git-fetch)
504 (uri (git-reference
505 (url "https://github.com/python-hyper/hpack")
506 (commit (string-append "v" version))))
507 (file-name (git-file-name name version))
508 (sha256
509 (base32 "0w8hkz50a6lzkmgi41ryicm0mh9ca9cx29pm3s0xlpn0vs29xrmd"))))
510 (build-system python-build-system)
511 (arguments
512 `(#:phases
513 (modify-phases %standard-phases
514 (replace 'check
515 (lambda* (#:key inputs outputs #:allow-other-keys)
516 (add-installed-pythonpath inputs outputs)
517 (invoke "pytest" "-vv" "test" "-k"
518 ;; This test will be fixed in the next version. See:
519 ;; https://github.com/python-hyper/hpack/issues/168.
520 "not test_get_by_index_out_of_range"))))))
521 (native-inputs
522 `(("python-pytest" ,python-pytest)))
523 (home-page "https://hyper.rtfd.org")
524 (synopsis "Pure-Python HPACK header compression")
525 (description
526 "This module contains a pure-Python HTTP/2 header encoding (HPACK) logic
527 for use in Python programs that implement HTTP/2.")
528 (license license:expat)))
529
530 (define-public python-h11
531 (package
532 (name "python-h11")
533 (version "0.9.0")
534 (source
535 (origin
536 (method url-fetch)
537 (uri (pypi-uri "h11" version))
538 (sha256
539 (base32 "1qfad70h59hya21vrzz8dqyyaiqhac0anl2dx3s3k80gpskvrm1k"))))
540 (build-system python-build-system)
541 (arguments
542 `(#:phases
543 (modify-phases %standard-phases
544 (replace 'check
545 (lambda _
546 (invoke "pytest" "-vv"))))))
547 (native-inputs
548 `(("python-pytest" ,python-pytest)))
549 (home-page "https://github.com/python-hyper/h11")
550 (synopsis "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1")
551 (description
552 "This is a little HTTP/1.1 library written from scratch in Python, heavily
553 inspired by hyper-h2. It's a bring-your-own-I/O library; h11 contains no IO
554 code whatsoever. This means you can hook h11 up to your favorite network API,
555 and that could be anything you want.")
556 (license license:expat)))
557
558 (define-public python-h2
559 (package
560 (name "python-h2")
561 (version "3.2.0")
562 (source
563 (origin
564 (method url-fetch)
565 (uri (pypi-uri "h2" version))
566 (sha256
567 (base32 "051gg30aca26rdxsmr9svwqm06pdz9bv21ch4n0lgi7jsvml2pw7"))))
568 (build-system python-build-system)
569 (arguments
570 `(#:phases
571 (modify-phases %standard-phases
572 (replace 'check
573 (lambda* (#:key inputs outputs #:allow-other-keys)
574 (add-installed-pythonpath inputs outputs)
575 (invoke "pytest" "-vv" "test"))))))
576 (native-inputs
577 `(("python-pytest" ,python-pytest)))
578 (propagated-inputs
579 `(("python-hpack" ,python-hpack)
580 ("python-hyperframe" ,python-hyperframe)))
581 (home-page "https://github.com/python-hyper/hyper-h2")
582 (synopsis "HTTP/2 State-Machine based protocol implementation")
583 (description
584 "This module contains a pure-Python implementation of a HTTP/2 protocol
585 stack. It does not provide a parsing layer, a network layer, or any rules
586 about concurrency. Instead, it's a purely in-memory solution, defined in
587 terms of data actions and HTTP/2 frames. This is one building block of a full
588 Python HTTP implementation.")
589 (license license:expat)))
590
591 (define-public python-sockjs-tornado
592 (package
593 (name "python-sockjs-tornado")
594 (version "1.0.6")
595 (source
596 (origin
597 (method url-fetch)
598 (uri (pypi-uri "sockjs-tornado" version))
599 (sha256
600 (base32
601 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
602 (build-system python-build-system)
603 (arguments
604 `(;; There are no tests, and running the test phase requires missing
605 ;; dependencies
606 #:tests? #f))
607 (propagated-inputs
608 `(("python-tornado" ,python-tornado)))
609 (home-page "https://github.com/mrjoes/sockjs-tornado/")
610 (synopsis
611 "SockJS Python server implementation on top of the Tornado framework")
612 (description
613 "SockJS-tornado provides the server-side counterpart to a SockJS client
614 library, through the Tornado framework.
615
616 SockJS provides a low-latency, full-duplex, cross-domain communication channel
617 between a web browser and web server.")
618 (license license:expat)))
619
620 (define-public python2-sockjs-tornado
621 (package-with-python2 python-sockjs-tornado))
622
623 (define-public python-flask-babel
624 (package
625 (name "python-flask-babel")
626 (version "1.0.0")
627 (source
628 (origin
629 (method url-fetch)
630 (uri (pypi-uri "Flask-Babel" version))
631 (sha256
632 (base32
633 "0gmb165vkwv5v7dxsxa2i3zhafns0fh938m2zdcrv4d8z5l099yn"))))
634 (build-system python-build-system)
635 (arguments
636 '(#:phases (modify-phases %standard-phases
637 (replace 'check
638 (lambda _
639 (with-directory-excursion "tests"
640 (invoke "python" "tests.py")))))))
641 (propagated-inputs
642 `(("python-flask" ,python-flask)
643 ("python-babel" ,python-babel)
644 ("python-jinja2" ,python-jinja2)
645 ("python-pytz" ,python-pytz)))
646 (home-page "https://github.com/python-babel/flask-babel")
647 (synopsis "Add i18n/l10n support to Flask applications")
648 (description "This package implements internationalization and localization
649 support for Flask. This is based on the Python babel module as well as pytz -
650 both of which are installed automatically if you install this library.")
651 (license license:bsd-3)))
652
653 (define-public python2-flask-babel
654 (package-with-python2 python-flask-babel))
655
656 (define-public python-html5lib
657 (package
658 (name "python-html5lib")
659 (version "1.0.1")
660 (source
661 (origin
662 (method url-fetch)
663 (uri (pypi-uri "html5lib" version))
664 (sha256
665 (base32
666 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
667 (build-system python-build-system)
668 (propagated-inputs
669 `(("python-six" ,python-six)
670 ("python-webencodings" ,python-webencodings)))
671 (arguments
672 `(#:test-target "check"))
673 (home-page
674 "https://github.com/html5lib/html5lib-python")
675 (synopsis
676 "Python HTML parser based on the WHATWG HTML specifcation")
677 (description
678 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
679 and written in Python.")
680 (license license:expat)))
681
682 (define-public python2-html5lib
683 (package-with-python2 python-html5lib))
684
685 ;; Needed for python-bleach, a dependency of python-notebook
686 (define-public python-html5lib-0.9
687 (package
688 (inherit python-html5lib)
689 (version "0.999")
690 (source
691 (origin
692 (method url-fetch)
693 (uri (pypi-uri "html5lib" version))
694 (sha256
695 (base32
696 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
697
698 (define-public python2-html5lib-0.9
699 (package-with-python2 python-html5lib-0.9))
700
701 (define-public python-html5-parser
702 (package
703 (name "python-html5-parser")
704 (version "0.4.9")
705 (source (origin
706 (method url-fetch)
707 (uri (pypi-uri "html5-parser" version))
708 (sha256
709 (base32
710 "13yl3vnf3sxl05m0nhpngnrz3g1jvyahd33lys3m3hfb91l8zzi5"))))
711 (build-system python-build-system)
712 (native-inputs
713 `(("pkg-config" ,pkg-config)))
714 (inputs
715 `(("libxml2" ,libxml2)))
716 (propagated-inputs
717 `(("python-lxml" ,python-lxml)
718 ("python-beautifulsoup4" ,python-beautifulsoup4)))
719 (home-page "https://html5-parser.readthedocs.io")
720 (synopsis "Fast C-based HTML5 parsing for Python")
721 (description "This package provides a fast implementation of the HTML5
722 parsing spec for Python. Parsing is done in C using a variant of the gumbo
723 parser. The gumbo parse tree is then transformed into an lxml tree, also in
724 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
725 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
726 ;; indicate ASL2.0, including the LICENSE file for the whole project.
727 (license (list license:asl2.0 license:gpl3))))
728
729 (define-public python2-html5-parser
730 (package-with-python2 python-html5-parser))
731
732 (define-public python-pycurl
733 (package
734 (name "python-pycurl")
735 (version "7.43.0.5")
736 (source
737 (origin
738 (method url-fetch)
739 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
740 version ".tar.gz"))
741 (sha256
742 (base32 "1cwlb76vddqp2mxqvjbhf367caddzy82rhangddjjhjqaj8x4zgc"))))
743 (build-system python-build-system)
744 (arguments
745 ;; The tests attempt to access external web servers, so we cannot run
746 ;; them. Furthermore, they are skipped altogether when using Python 2.
747 '(#:tests? #f
748 #:phases (modify-phases %standard-phases
749 (add-before 'build 'configure-tls-backend
750 (lambda _
751 ;; XXX: PycURL fails to automatically determine which TLS
752 ;; backend to use when cURL is built with --disable-static.
753 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
754 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
755 #t)))))
756 (native-inputs
757 `(("python-nose" ,python-nose)
758 ("python-bottle" ,python-bottle)))
759 (inputs
760 `(("curl" ,curl)
761 ("gnutls" ,gnutls)))
762 (home-page "http://pycurl.io/")
763 (synopsis "Lightweight Python wrapper around libcurl")
764 (description "Pycurl is a lightweight wrapper around libcurl. It provides
765 high-speed transfers via libcurl and frequently outperforms alternatives.")
766
767 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
768 ;; under the terms of LGPLv2.1+ or Expat.
769 (license (list license:lgpl2.1+ license:expat))))
770
771 (define-public python2-pycurl
772 (package-with-python2 python-pycurl))
773
774 (define-public python-webencodings
775 (package
776 (name "python-webencodings")
777 (version "0.5.1")
778 (source (origin
779 (method url-fetch)
780 (uri (pypi-uri "webencodings" version))
781 (sha256
782 (base32
783 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
784 (build-system python-build-system)
785 (arguments
786 '(#:phases
787 (modify-phases %standard-phases
788 (replace 'check
789 (lambda _
790 (invoke "py.test" "-v" "webencodings/tests.py")
791 #t)))))
792 (native-inputs
793 `(("python-pytest" ,python-pytest)))
794 (home-page "https://github.com/SimonSapin/python-webencodings")
795 (synopsis "Character encoding aliases for legacy web content")
796 (description
797 "In order to be compatible with legacy web content when interpreting
798 something like @code{Content-Type: text/html; charset=latin1}, tools need
799 to use a particular set of aliases for encoding labels as well as some
800 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
801 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
802 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
803 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
804 defines all such details so that implementations do not have to
805 reverse-engineer each other.
806
807 This module implements the Encoding standard and has encoding labels and
808 BOM detection, but the actual implementation for encoders and decoders
809 is Python’s.")
810 (license license:bsd-3)))
811
812 (define-public python2-webencodings
813 (package-with-python2 python-webencodings))
814
815 (define-public python-openid
816 (package
817 (name "python-openid")
818 (version "3.1.0")
819 (source
820 (origin
821 (method url-fetch)
822 (uri (pypi-uri "python3-openid" version))
823 (sha256
824 (base32
825 "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
826 (build-system python-build-system)
827 (arguments
828 `(#:phases
829 (modify-phases %standard-phases
830 (replace 'check
831 (lambda _
832 (invoke "coverage" "run" "-m"
833 "unittest" "openid.test.test_suite"))))))
834 (properties `((python2-variant . ,(delay python2-openid))))
835 (propagated-inputs
836 `(("python-defusedxml" ,python-defusedxml)))
837 (native-inputs
838 `(("python-coverage" ,python-coverage)
839 ("python-psycopg2" ,python-psycopg2)
840 ("python-django" ,python-django)))
841 (home-page "https://github.com/necaris/python3-openid")
842 (synopsis "OpenID support for servers and consumers")
843 (description "This library provides OpenID authentication for Python, both
844 for clients and servers.")
845 (license license:asl2.0)))
846
847 (define-public python2-openid
848 (package
849 (name "python2-openid")
850 (version "2.2.5")
851 (source
852 (origin
853 (method url-fetch)
854 (uri (pypi-uri "python-openid" version))
855 (sha256
856 (base32
857 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
858 (build-system python-build-system)
859 (arguments
860 ;; Python 3 support is in `python3-openid`, a separate package.
861 `(#:python ,python-2
862 ;; Tests aren't initialized correctly.
863 #:tests? #f))
864 (home-page "https://github.com/openid/python-openid")
865 (synopsis "OpenID support for servers and consumers")
866 (description "This library provides OpenID authentication for Python, both
867 for clients and servers.")
868 (license license:asl2.0)))
869
870 (define-public python-cssutils
871 (package
872 (name "python-cssutils")
873 (version "1.0.2")
874 (source
875 (origin
876 (method url-fetch)
877 (uri (pypi-uri "cssutils" version))
878 (sha256
879 (base32
880 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
881 (build-system python-build-system)
882 (native-inputs
883 `(("unzip" ,unzip))) ; for unpacking the source
884 (arguments
885 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
886 (home-page "http://cthedot.de/cssutils/")
887 (synopsis
888 "CSS Cascading Style Sheets library for Python")
889 (description
890 "Cssutils is a Python package for parsing and building CSS
891 Cascading Style Sheets. Currently it provides a DOM only and no rendering
892 options.")
893 (license license:lgpl3+)))
894
895 (define-public python2-cssutils
896 (package-with-python2 python-cssutils))
897
898 (define-public python-css-parser
899 (package
900 (inherit python-cssutils)
901 (name "python-css-parser")
902 (version "1.0.4")
903 (source
904 (origin
905 (method url-fetch)
906 (uri (pypi-uri "css-parser" version ".tar.gz"))
907 (sha256
908 (base32
909 "0i4xfykiffxzr4f6y0m2ggqvx1rzam6pw6krlr5k6ldf29akbay7"))))
910 (home-page "https://github.com/ebook-utils/css-parser")
911 (synopsis "Fork of cssutils modified for parsing ebooks")
912 (description
913 "Css-parser is a fork of cssutils 1.0.2, updated and modified for parsing
914 ebooks, due to cssutils not receiving updates as of 1.0.2.")
915 (license license:lgpl3+)))
916
917 (define-public python2-css-parser
918 (package-with-python2 python-css-parser))
919
920 (define-public python-cssselect
921 (package
922 (name "python-cssselect")
923 (version "1.1.0")
924 (source (origin
925 ;; The PyPI release does not contain tests.
926 (method git-fetch)
927 (uri (git-reference
928 (url "https://github.com/scrapy/cssselect")
929 (commit (string-append "v" version))))
930 (file-name (git-file-name name version))
931 (sha256
932 (base32
933 "0xslrnhbrmgakp4xg6k26qffay3kqffp3a2z2sk27c65rwxa79kc"))))
934 (build-system python-build-system)
935 (arguments
936 `(#:phases (modify-phases %standard-phases
937 (replace 'check
938 (lambda _
939 (invoke "pytest" "-vv"))))))
940 (native-inputs
941 `(("python-lxml" ,python-lxml)
942 ("python-pytest" ,python-pytest)))
943 (home-page "https://github.com/scrapy/cssselect")
944 (synopsis "CSS3 selector parser and translator to XPath 1.0")
945 (description
946 "Cssselect ia a Python module that parses CSS3 Selectors and translates
947 them to XPath 1.0 expressions. Such expressions can be used in lxml or
948 another XPath engine to find the matching elements in an XML or HTML document.")
949 (license license:bsd-3)))
950
951 (define-public python2-cssselect
952 (package-with-python2 python-cssselect))
953
954 (define-public python-openid-cla
955 (package
956 (name "python-openid-cla")
957 (version "1.2")
958 (source
959 (origin
960 (method url-fetch)
961 (uri (pypi-uri "python-openid-cla" version))
962 (sha256
963 (base32
964 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
965 (build-system python-build-system)
966 (arguments '(#:tests? #f)) ; No tests.
967 (home-page "https://github.com/puiterwijk/python-openid-cla/")
968 (synopsis "Implementation of the OpenID CLA extension for python-openid")
969 (description "@code{openid-cla} is an implementation of the OpenID
970 contributor license agreement extension for python-openid.")
971 (license license:bsd-3)))
972
973 (define-public python2-openid-cla
974 (package-with-python2 python-openid-cla))
975
976 (define-public python-openid-teams
977 (package
978 (name "python-openid-teams")
979 (version "1.1")
980 (source
981 (origin
982 (method url-fetch)
983 (uri (pypi-uri "python-openid-teams" version))
984 (sha256
985 (base32
986 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
987 (build-system python-build-system)
988 (arguments '(#:tests? #f)) ; No tests.
989 (home-page "https://github.com/puiterwijk/python-openid-teams/")
990 (synopsis "Implementation of the OpenID teams extension for python-openid")
991 (description
992 "@code{openid-teams} is an implementation of the OpenID
993 teams extension for python-openid.")
994 (license license:bsd-3)))
995
996 (define-public python2-openid-teams
997 (package-with-python2 python-openid-teams))
998
999 (define-public python-priority
1000 (package
1001 (name "python-priority")
1002 (version "1.3.0")
1003 (source
1004 (origin
1005 (method url-fetch)
1006 (uri (pypi-uri "priority" version))
1007 (sha256
1008 (base32 "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb"))))
1009 (build-system python-build-system)
1010 (arguments
1011 `(#:phases
1012 (modify-phases %standard-phases
1013 (replace 'check
1014 (lambda* (#:key inputs outputs #:allow-other-keys)
1015 (add-installed-pythonpath inputs outputs)
1016 (invoke "pytest" "-vv" "test" "-k"
1017 ;; This test exceeded the Hypothesis deadline.
1018 "not test_period_of_repetition"))))))
1019 (native-inputs
1020 `(("python-hypothesis" ,python-hypothesis)
1021 ("python-pytest" ,python-pytest)
1022 ("python-pytest-cov" ,python-pytest-cov)
1023 ("python-pytest-xdist" ,python-pytest-xdist)))
1024 (home-page "https://python-hyper.org/projects/priority/en/latest/")
1025 (synopsis "Pure-Python implementation of the HTTP/2 priority tree")
1026 (description
1027 "Priority is a pure-Python implementation of the priority logic for HTTP/2,
1028 set out in RFC 7540 Section 5.3 (Stream Priority).")
1029 (license license:expat)))
1030
1031 (define-public python-wsproto
1032 (package
1033 (name "python-wsproto")
1034 (version "0.15.0")
1035 (source
1036 (origin
1037 (method url-fetch)
1038 (uri (pypi-uri "wsproto" version))
1039 (sha256
1040 (base32 "17gsxlli4w8am1wwwl3k90hpdfa213ax40ycbbvb7hjx1v1rhiv1"))))
1041 (build-system python-build-system)
1042 (arguments
1043 `(#:phases
1044 (modify-phases %standard-phases
1045 (replace 'check
1046 (lambda* (#:key inputs outputs #:allow-other-keys)
1047 (add-installed-pythonpath inputs outputs)
1048 (invoke "pytest" "-vv" "test"))))))
1049 (native-inputs
1050 `(("python-pytest" ,python-pytest)))
1051 (propagated-inputs
1052 `(("python-h11" ,python-h11)))
1053 (home-page "https://github.com/python-hyper/wsproto/")
1054 (synopsis "WebSockets state-machine based protocol implementation")
1055 (description
1056 "@code{wsproto} is a pure-Python implementation of a WebSocket protocol
1057 stack. It's written from the ground up to be embeddable in whatever program you
1058 choose to use, ensuring that you can communicate via WebSockets, as defined in
1059 RFC6455, regardless of your programming paradigm.")
1060 (license license:expat)))
1061
1062 (define-public python-hypercorn
1063 (package
1064 (name "python-hypercorn")
1065 (version "0.10.2")
1066 (source
1067 (origin
1068 (method url-fetch)
1069 (uri (pypi-uri "Hypercorn" version))
1070 (sha256
1071 (base32 "15dgy47a18w2ls3hwykra1cyf7yzxmfjqnsqml482p12cxr2xwqr"))))
1072 (build-system python-build-system)
1073 (arguments
1074 `(#:phases
1075 (modify-phases %standard-phases
1076 (replace 'check
1077 (lambda* (#:key inputs outputs #:allow-other-keys)
1078 (add-installed-pythonpath inputs outputs)
1079 (invoke "pytest" "-vv"))))))
1080 (propagated-inputs
1081 `(("python-h11" ,python-h11)
1082 ("python-h2" ,python-h2)
1083 ("python-priority" ,python-priority)
1084 ("python-toml" ,python-toml)
1085 ("python-typing-extensions" ,python-typing-extensions)
1086 ("python-wsproto" ,python-wsproto)))
1087 (native-inputs
1088 `(("python-hypothesis" ,python-hypothesis)
1089 ("python-mock" ,python-mock)
1090 ("python-pytest" ,python-pytest)
1091 ("python-pytest-asyncio" ,python-pytest-asyncio)
1092 ("python-pytest-cov" ,python-pytest-cov)
1093 ("python-pytest-trio" ,python-pytest-trio)
1094 ("python-trio" ,python-trio)))
1095 (home-page "https://gitlab.com/pgjones/hypercorn/")
1096 (synopsis "ASGI Server based on Hyper libraries")
1097 (description
1098 "Hypercorn is an ASGI web server based on the sans-io hyper, h11, h2, and
1099 wsproto libraries and inspired by Gunicorn. It supports HTTP/1, HTTP/2,
1100 WebSockets (over HTTP/1 and HTTP/2), ASGI/2, and ASGI/3 specifications. It can
1101 utilise asyncio, uvloop, or trio worker types.")
1102 (license license:expat)))
1103
1104 (define-public python-tornado
1105 (package
1106 (name "python-tornado")
1107 (version "5.1.1")
1108 (source
1109 (origin
1110 (method url-fetch)
1111 (uri (pypi-uri "tornado" version))
1112 (sha256
1113 (base32
1114 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
1115 (build-system python-build-system)
1116 (arguments
1117 '(;; FIXME: Two tests error out with:
1118 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
1119 ;; #:phases
1120 ;; (modify-phases %standard-phases
1121 ;; (replace 'check
1122 ;; (lambda _
1123 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
1124 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
1125 ;; (invoke "python" "-m" "tornado.test.runtests")
1126 ;; #t)))
1127 #:tests? #f))
1128 (native-inputs
1129 `(("python-certifi" ,python-certifi)))
1130 (home-page "https://www.tornadoweb.org/")
1131 (synopsis "Python web framework and asynchronous networking library")
1132 (description
1133 "Tornado is a Python web framework and asynchronous networking library,
1134 originally developed at FriendFeed. By using non-blocking network I/O,
1135 Tornado can scale to tens of thousands of open connections, making it ideal
1136 for long polling, WebSockets, and other applications that require a long-lived
1137 connection to each user.")
1138 (license license:asl2.0)
1139 (properties `((python2-variant . ,(delay python2-tornado))))))
1140
1141 (define-public python-tornado-6
1142 (package
1143 (name "python-tornado")
1144 (version "6.0.4")
1145 (source
1146 (origin
1147 (method url-fetch)
1148 (uri (pypi-uri "tornado" version))
1149 (sha256
1150 (base32
1151 "1p5n7sw4580pkybywg93p8ddqdj9lhhy72rzswfa801vlidx9qhg"))))
1152 (build-system python-build-system)
1153 (arguments
1154 '(#:phases
1155 (modify-phases %standard-phases
1156 (replace 'check
1157 (lambda _
1158 (invoke "python" "-m" "tornado.test.runtests")
1159 #t)))))
1160 (native-inputs
1161 `(("python-certifi" ,python-certifi)))
1162 (home-page "https://www.tornadoweb.org/")
1163 (synopsis "Python web framework and asynchronous networking library")
1164 (description
1165 "Tornado is a Python web framework and asynchronous networking library,
1166 originally developed at FriendFeed. By using non-blocking network I/O,
1167 Tornado can scale to tens of thousands of open connections, making it ideal
1168 for long polling, WebSockets, and other applications that require a long-lived
1169 connection to each user.")
1170 (license license:asl2.0)))
1171
1172 (define-public python2-tornado
1173 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
1174 (package (inherit tornado)
1175 (propagated-inputs
1176 `(("python2-backport-ssl-match-hostname"
1177 ,python2-backport-ssl-match-hostname)
1178 ("python2-backports-abc" ,python2-backports-abc)
1179 ("python2-singledispatch" ,python2-singledispatch)
1180 ,@(package-propagated-inputs tornado))))))
1181
1182 (define-public python-tornado-http-auth
1183 (package
1184 (name "python-tornado-http-auth")
1185 (version "1.1.1")
1186 (source
1187 (origin
1188 (method url-fetch)
1189 (uri (pypi-uri "tornado-http-auth" version))
1190 (sha256
1191 (base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x"))))
1192 (build-system python-build-system)
1193 (propagated-inputs
1194 `(("python-tornado" ,python-tornado)))
1195 (home-page "https://github.com/gvalkov/tornado-http-auth")
1196 (synopsis "Digest and basic authentication module for Tornado")
1197 (description
1198 "Provides support for adding authentication to services using the Tornado
1199 web framework, either via the basic or digest authentication schemes.")
1200 (license license:asl2.0)))
1201
1202 (define-public python-terminado
1203 (package
1204 (name "python-terminado")
1205 (version "0.8.1")
1206 (source
1207 (origin
1208 (method url-fetch)
1209 (uri (pypi-uri "terminado" version))
1210 (sha256
1211 (base32
1212 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
1213 (build-system python-build-system)
1214 (propagated-inputs
1215 `(("python-tornado" ,python-tornado)
1216 ("python-ptyprocess" ,python-ptyprocess)))
1217 (native-inputs
1218 `(("python-nose" ,python-nose)))
1219 (arguments
1220 `(#:phases
1221 (modify-phases %standard-phases
1222 (replace 'check
1223 (lambda _ (invoke "nosetests") #t)))))
1224 (home-page "https://github.com/takluyver/terminado")
1225 (synopsis "Terminals served to term.js using Tornado websockets")
1226 (description "This package provides a Tornado websocket backend for the
1227 term.js Javascript terminal emulator library.")
1228 (license license:bsd-2)
1229 (properties `((python2-variant . ,(delay python2-terminado))))))
1230
1231 (define-public python2-terminado
1232 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
1233 (package (inherit terminado)
1234 (propagated-inputs
1235 `(("python2-backport-ssl-match-hostname"
1236 ,python2-backport-ssl-match-hostname)
1237 ("python2-futures" ,python2-futures)
1238 ,@(package-propagated-inputs terminado))))))
1239
1240 (define-public python-wsgi-intercept
1241 (package
1242 (name "python-wsgi-intercept")
1243 (version "1.2.2")
1244 (source (origin
1245 (method url-fetch)
1246 (uri (pypi-uri "wsgi_intercept" version))
1247 (sha256
1248 (base32
1249 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
1250 (build-system python-build-system)
1251 (propagated-inputs
1252 `(("python-six" ,python-six)))
1253 (native-inputs
1254 `(("python-pytest" ,python-pytest)
1255 ("python-httplib2" ,python-httplib2)
1256 ("python-requests" ,python-requests)
1257 ("python-urllib3" ,python-urllib3)))
1258 (synopsis "Puts a WSGI application in place of a real URI for testing")
1259 (description "Wsgi_intercept installs a WSGI application in place of a real
1260 URI for testing. Testing a WSGI application normally involves starting a
1261 server at a local host and port, then pointing your test code to that address.
1262 Instead, this library lets you intercept calls to any specific host/port
1263 combination and redirect them into a WSGI application importable by your test
1264 program. Thus, you can avoid spawning multiple processes or threads to test
1265 your Web app.")
1266 (home-page "https://github.com/cdent/wsgi-intercept")
1267 (license license:expat)))
1268
1269 (define-public python-webob
1270 (package
1271 (name "python-webob")
1272 (version "1.8.6")
1273 (source
1274 (origin
1275 (method url-fetch)
1276 (uri (pypi-uri "WebOb" version))
1277 (sha256
1278 (base32
1279 "026i3z99nr3px75isa9mbnky5i7rffiv4d124h5kxfjjsxz92fma"))))
1280 (build-system python-build-system)
1281 (native-inputs
1282 `(("python-nose" ,python-nose)))
1283 (home-page "https://webob.org/")
1284 (synopsis "WSGI request and response object")
1285 (description
1286 "WebOb provides wrappers around the WSGI request environment, and an
1287 object to help create WSGI responses.")
1288 (license license:expat)))
1289
1290 (define-public python2-webob
1291 (package-with-python2 python-webob))
1292
1293 (define-public python-zope-event
1294 (package
1295 (name "python-zope-event")
1296 (version "4.4")
1297 (source
1298 (origin
1299 (method url-fetch)
1300 (uri (pypi-uri "zope.event" version))
1301 (sha256
1302 (base32
1303 "1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9"))))
1304 (build-system python-build-system)
1305 (home-page "https://pypi.org/project/zope.event/")
1306 (synopsis "Event publishing system for Python")
1307 (description "Zope.event provides an event publishing API, intended for
1308 use by applications which are unaware of any subscribers to their events. It
1309 is a simple event-dispatching system on which more sophisticated event
1310 dispatching systems can be built.")
1311 (license license:zpl2.1)))
1312
1313 (define-public python2-zope-event
1314 (package-with-python2 python-zope-event))
1315
1316 (define-public python-zope-interface
1317 (package
1318 (name "python-zope-interface")
1319 (version "5.1.0")
1320 (source
1321 (origin
1322 (method url-fetch)
1323 (uri (pypi-uri "zope.interface" version))
1324 (sha256
1325 (base32
1326 "03nrl6b8cb600dnnh46y149awvrm0gxyqgwq5hdw3lvys8mw9r20"))))
1327 (build-system python-build-system)
1328 (arguments '(#:tests? #f)) ; test suite can't find python-zope-testing
1329 (native-inputs
1330 `(("python-coverage" ,python-coverage)
1331 ("python-nose" ,python-nose)
1332 ("python-zope-event" ,python-zope-event)
1333 ("python-zope-testing" ,python-zope-testing)))
1334 (home-page "https://github.com/zopefoundation/zope.interface")
1335 (synopsis "Python implementation of the \"design by contract\"
1336 methodology")
1337 (description "Zope.interface provides an implementation of \"object
1338 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
1339 conforming to a given API or contract.")
1340 (license license:zpl2.1)))
1341
1342 (define-public python2-zope-interface
1343 (package-with-python2 python-zope-interface))
1344
1345 (define-public python-zope-exceptions
1346 (package
1347 (name "python-zope-exceptions")
1348 (version "4.4")
1349 (source
1350 (origin
1351 (method url-fetch)
1352 (uri (pypi-uri "zope.exceptions" version))
1353 (sha256
1354 (base32
1355 "1nkgfwawswmyc6i0b8g3ymvja4mb507m8yhid8s4rbxq3dmqhwhd"))))
1356 (build-system python-build-system)
1357 (arguments
1358 '(#:phases
1359 (modify-phases %standard-phases
1360 (replace 'check
1361 (lambda _
1362 (invoke "zope-testrunner" "--test-path=src"))))))
1363 (native-inputs
1364 `(("python-zope-testrunner" ,python-zope-testrunner-bootstrap)))
1365 (propagated-inputs
1366 `(("python-zope-interface" ,python-zope-interface)))
1367 (home-page "https://pypi.org/project/zope.exceptions/")
1368 (synopsis "Zope exceptions")
1369 (description "Zope.exceptions provides general-purpose exception types
1370 that have uses outside of the Zope framework.")
1371 (license license:zpl2.1)))
1372
1373 (define-public python-zope-exceptions-bootstrap
1374 (package
1375 (inherit python-zope-exceptions)
1376 (arguments `(#:tests? #f))
1377 (propagated-inputs `())
1378 (native-inputs `())
1379 (properties `((hidden? . #t)))))
1380
1381 (define-public python2-zope-exceptions
1382 (package-with-python2 python-zope-exceptions))
1383
1384 (define-public python-zope-testing
1385 (package
1386 (name "python-zope-testing")
1387 (version "4.7")
1388 (source
1389 (origin
1390 (method url-fetch)
1391 (uri (pypi-uri "zope.testing" version))
1392 (sha256
1393 (base32
1394 "1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn"))))
1395 (build-system python-build-system)
1396 (home-page "https://pypi.org/project/zope.testing/")
1397 (synopsis "Zope testing helpers")
1398 (description "Zope.testing provides a number of testing utilities for HTML
1399 forms, HTTP servers, regular expressions, and more.")
1400 (license license:zpl2.1)))
1401
1402 (define-public python2-zope-testing
1403 (package-with-python2 python-zope-testing))
1404
1405 (define-public python-zope-testrunner
1406 (package
1407 (name "python-zope-testrunner")
1408 (version "5.2")
1409 (source
1410 (origin
1411 (method url-fetch)
1412 (uri (pypi-uri "zope.testrunner" version))
1413 (sha256
1414 (base32
1415 "0jyyf1dcz156q95x2y7yw2v420q2xn3cff0c5aci7hmdmcbn0gc7"))))
1416 (build-system python-build-system)
1417 (arguments
1418 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1419 (native-inputs
1420 `(("python-zope-testing" ,python-zope-testing)))
1421 (propagated-inputs
1422 `(("python-six" ,python-six)
1423 ("python-zope-exceptions" ,python-zope-exceptions)
1424 ("python-zope-interface" ,python-zope-interface)))
1425 (home-page "https://pypi.org/project/zope.testrunner/")
1426 (synopsis "Zope testrunner script")
1427 (description "Zope.testrunner provides a script for running Python
1428 tests.")
1429 (license license:zpl2.1)))
1430
1431 (define-public python-zope-testrunner-bootstrap
1432 (package
1433 (inherit python-zope-testrunner)
1434 (arguments `(#:tests? #f))
1435 (propagated-inputs
1436 `(("python-six" ,python-six)
1437 ("python-zope-exceptions" ,python-zope-exceptions-bootstrap)))
1438 (properties `((hidden? . #t)))))
1439
1440 (define-public python2-zope-testrunner
1441 (package-with-python2 python-zope-testrunner))
1442
1443 (define-public python-zope-i18nmessageid
1444 (package
1445 (name "python-zope-i18nmessageid")
1446 (version "5.0.1")
1447 (source
1448 (origin
1449 (method url-fetch)
1450 (uri (pypi-uri "zope.i18nmessageid" version))
1451 (sha256
1452 (base32
1453 "0ndhn4w1qgwkfbwf9vm2bgq418z5g0wmfsgl0d9nz62cd0mi8d4m"))))
1454 (build-system python-build-system)
1455 (native-inputs
1456 `(("python-coverage" ,python-coverage)
1457 ("python-zope-testrunner" ,python-zope-testrunner)))
1458 (propagated-inputs
1459 `(("python-six" ,python-six)))
1460 (home-page "https://pypi.org/project/zope.i18nmessageid/")
1461 (synopsis "Message identifiers for internationalization")
1462 (description "Zope.i18nmessageid provides facilities for declaring
1463 internationalized messages within program source text.")
1464 (license license:zpl2.1)))
1465
1466 (define-public python2-zope-i18nmessageid
1467 (package-with-python2 python-zope-i18nmessageid))
1468
1469 (define-public python-zope-schema
1470 (package
1471 (name "python-zope-schema")
1472 (version "6.0.0")
1473 (source
1474 (origin
1475 (method url-fetch)
1476 (uri (pypi-uri "zope.schema" version))
1477 (sha256
1478 (base32
1479 "09jg47bxhfg1ahr1jxb5y0cbiszyk1j6fn1r1r7s6svjl3lbryr0"))))
1480 (build-system python-build-system)
1481 (arguments
1482 `(#:phases
1483 (modify-phases %standard-phases
1484 (replace 'check
1485 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
1486 (add-installed-pythonpath inputs outputs)
1487 (if tests?
1488 (invoke "zope-testrunner" "--test-path=src")
1489 #t))))))
1490 (propagated-inputs
1491 `(("python-zope-event" ,python-zope-event)
1492 ("python-zope-interface" ,python-zope-interface)))
1493 (native-inputs
1494 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1495 ("python-zope-testing" ,python-zope-testing)
1496 ("python-zope-testrunner" ,python-zope-testrunner)))
1497 (home-page "https://pypi.org/project/zope.schema/")
1498 (synopsis "Zope data schemas")
1499 (description "Zope.scheme provides extensions to zope.interface for
1500 defining data schemas.")
1501 (license license:zpl2.1)))
1502
1503 (define-public python2-zope-schema
1504 (package-with-python2 python-zope-schema))
1505
1506 (define-public python-zope-configuration
1507 (package
1508 (name "python-zope-configuration")
1509 (version "4.4.0")
1510 (source (origin
1511 (method url-fetch)
1512 (uri (pypi-uri "zope.configuration" version))
1513 (sha256
1514 (base32
1515 "0g6vrl7y27z9cj5xyrww9xlzk4npj55mgmlrcd9d2nj08jn2pw79"))))
1516 (build-system python-build-system)
1517 (native-inputs
1518 `(("python-manuel" ,python-manuel)
1519 ("python-zope-testing" ,python-zope-testing)
1520 ("python-zope-testrunner" ,python-zope-testrunner)))
1521 (propagated-inputs
1522 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1523 ("python-zope-interface" ,python-zope-interface)
1524 ("python-zope-schema" ,python-zope-schema)))
1525 (home-page "https://pypi.org/project/zope.configuration/")
1526 (synopsis "Zope Configuration Markup Language")
1527 (description "Zope.configuration implements ZCML, the Zope Configuration
1528 Markup Language.")
1529 (license license:zpl2.1)))
1530
1531 (define-public python-zope-configuration-bootstrap
1532 (package
1533 (inherit python-zope-configuration)
1534 (arguments `(#:tests? #f))
1535 (native-inputs `())
1536 (properties `((hidden? . #t)))))
1537
1538 (define-public python2-zope-configuration
1539 (package-with-python2 python-zope-configuration))
1540
1541 (define-public python-zope-copy
1542 (package
1543 (name "python-zope-copy")
1544 (version "4.2")
1545 (source
1546 (origin
1547 (method url-fetch)
1548 (uri (pypi-uri "zope.copy" version))
1549 (sha256
1550 (base32
1551 "06m75434krl57n6p73c2qj55k5i3fixg887j8ss01ih6zw4rvfs7"))))
1552 (build-system python-build-system)
1553 (arguments
1554 '(#:phases
1555 (modify-phases %standard-phases
1556 (replace 'check
1557 (lambda _
1558 (invoke "zope-testrunner" "--test-path=src" "\\[]"))))))
1559 (propagated-inputs
1560 `(("python-zope-interface" ,python-zope-interface)))
1561 (native-inputs
1562 `(("python-zope-component" ,python-zope-component-bootstrap)
1563 ("python-zope-location" ,python-zope-location-bootstrap)
1564 ("python-zope-testing" ,python-zope-testing)
1565 ("python-zope-testrunner" ,python-zope-testrunner)))
1566 (home-page "https://github.com/zopefoundation/zope.copy")
1567 (synopsis "Pluggable object copying mechanism")
1568 (description
1569 "This package provides a pluggable mechanism for copying persistent objects.")
1570 (license license:zpl2.1)))
1571
1572 (define-public python-zope-proxy
1573 (package
1574 (name "python-zope-proxy")
1575 (version "4.3.5")
1576 (source
1577 (origin
1578 (method url-fetch)
1579 (uri (pypi-uri "zope.proxy" version))
1580 (sha256
1581 (base32
1582 "14h7nyfbl5vpfk0rbviy4ygdfx0yx5kncvg6jpbdb0dhwna0ssm6"))))
1583 (build-system python-build-system)
1584 (native-inputs
1585 `(("python-zope-security" ,python-zope-security-bootstrap)
1586 ("python-zope-testrunner" ,python-zope-testrunner)))
1587 (propagated-inputs
1588 `(("python-zope-interface" ,python-zope-interface)))
1589 (home-page "https://pypi.org/project/zope.proxy/")
1590 (synopsis "Generic, transparent proxies")
1591 (description "Zope.proxy provides generic, transparent proxies for Python.
1592 Proxies are special objects which serve as mostly-transparent wrappers around
1593 another object, intervening in the apparent behavior of the wrapped object
1594 only when necessary to apply the policy (e.g., access checking, location
1595 brokering, etc.) for which the proxy is responsible.")
1596 (license license:zpl2.1)))
1597
1598 (define-public python-zope-proxy-bootstrap
1599 (package
1600 (inherit python-zope-proxy)
1601 (arguments `(#:tests? #f))
1602 (native-inputs `())
1603 (properties `((hidden? . #t)))))
1604
1605 (define-public python2-zope-proxy
1606 (package-with-python2 python-zope-proxy))
1607
1608 (define-public python-zope-hookable
1609 (package
1610 (name "python-zope-hookable")
1611 (version "5.0.1")
1612 (source
1613 (origin
1614 (method url-fetch)
1615 (uri (pypi-uri "zope.hookable" version))
1616 (sha256
1617 (base32
1618 "0hc82lfr7bk53nvbxvjkibkarngyrzgfk2i6bg8wshl0ly0pdl19"))))
1619 (build-system python-build-system)
1620 (native-inputs
1621 `(("python-coverage" ,python-coverage)
1622 ("python-zope-testing" ,python-zope-testing)))
1623 (home-page "https://github.com/zopefoundation/zope.hookable")
1624 (synopsis "Zope hookable")
1625 (description "This package supports the efficient creation of hookable
1626 objects, which are callable objects that are meant to be optionally replaced.
1627 The idea is that you create a function that does some default thing and make i
1628 hookable. Later, someone can modify what it does by calling its sethook method
1629 and changing its implementation. All users of the function, including those
1630 that imported it, will see the change.")
1631 (license license:zpl2.1)))
1632
1633 (define-public python-zope-location
1634 (package
1635 (name "python-zope-location")
1636 (version "4.2")
1637 (source
1638 (origin
1639 (method url-fetch)
1640 (uri (pypi-uri "zope.location" version))
1641 (sha256
1642 (base32
1643 "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857"))))
1644 (build-system python-build-system)
1645 (arguments
1646 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1647 (native-inputs
1648 `(("python-zope-testrunner" ,python-zope-testrunner)))
1649 (propagated-inputs
1650 `(("python-zope-interface" ,python-zope-interface)
1651 ("python-zope-proxy" ,python-zope-proxy)
1652 ("python-zope-schema" ,python-zope-schema)))
1653 (home-page "https://pypi.org/project/zope.location/")
1654 (synopsis "Zope location library")
1655 (description "Zope.location implements the concept of \"locations\" in
1656 Zope3, which are are special objects that have a structural location.")
1657 (license license:zpl2.1)))
1658
1659 (define-public python-zope-location-bootstrap
1660 (package
1661 (inherit python-zope-location)
1662 (arguments `(#:tests? #f))
1663 (native-inputs `())
1664 (properties `((hidden? . #t)))))
1665
1666 (define-public python2-zope-location
1667 (package-with-python2 python-zope-location))
1668
1669 (define-public python-zope-security
1670 (package
1671 (name "python-zope-security")
1672 (version "5.1.1")
1673 (source
1674 (origin
1675 (method url-fetch)
1676 (uri (pypi-uri "zope.security" version))
1677 (sha256
1678 (base32
1679 "11lfw67cigscfax9c5j63xcvz2qcj724zx5fcdqyc94am2glim0h"))))
1680 (build-system python-build-system)
1681 (propagated-inputs
1682 `(("python-zope-component" ,python-zope-component)
1683 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1684 ("python-zope-interface" ,python-zope-interface)
1685 ("python-zope-location" ,python-zope-location)
1686 ("python-zope-proxy" ,python-zope-proxy)
1687 ("python-zope-schema" ,python-zope-schema)))
1688 (native-inputs
1689 `(("python-btrees" ,python-btrees)
1690 ("python-zope-component" ,python-zope-component-bootstrap)
1691 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
1692 ("python-zope-location" ,python-zope-location-bootstrap)
1693 ("python-zope-testing" ,python-zope-testing)
1694 ("python-zope-testrunner" ,python-zope-testrunner)))
1695 (home-page "https://pypi.org/project/zope.security/")
1696 (synopsis "Zope security framework")
1697 (description "Zope.security provides a generic mechanism to implement
1698 security policies on Python objects.")
1699 (license license:zpl2.1)))
1700
1701 (define-public python-zope-security-bootstrap
1702 (package
1703 (inherit python-zope-security)
1704 (arguments `(#:tests? #f))
1705 (propagated-inputs
1706 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1707 ("python-zope-interface" ,python-zope-interface)
1708 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
1709 ("python-zope-schema" ,python-zope-schema)))
1710 (native-inputs `())
1711 (properties `((hidden? . #t)))))
1712
1713 (define-public python2-zope-security
1714 (package-with-python2 python-zope-security))
1715
1716 (define-public python-zope-component
1717 (package
1718 (name "python-zope-component")
1719 (version "4.6.2")
1720 (source
1721 (origin
1722 (method url-fetch)
1723 (uri (pypi-uri "zope.component" version))
1724 (sha256
1725 (base32
1726 "14iwp95hh6q5dj4k9h1iw75cbp89bs27nany4dinyglb44c8jqli"))))
1727 (build-system python-build-system)
1728 (arguments
1729 '(#:phases
1730 (modify-phases %standard-phases
1731 (replace 'check
1732 (lambda* (#:key inputs outputs #:allow-other-keys)
1733 (add-installed-pythonpath inputs outputs)
1734 (invoke "python" "setup.py" "test"))))))
1735 (native-inputs
1736 `(("python-persistent" ,python-persistent)
1737 ("python-zope-configuration" ,python-zope-configuration-bootstrap)
1738 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1739 ("python-zope-location" ,python-zope-location-bootstrap)
1740 ("python-zope-proxy" ,python-zope-proxy-bootstrap)
1741 ("python-zope-security" ,python-zope-security-bootstrap)
1742 ("python-zope-testing" ,python-zope-testing)
1743 ("python-zope-testrunner" ,python-zope-testrunner)))
1744 (propagated-inputs
1745 `(("python-zope-deferredimport" ,python-zope-deferredimport)
1746 ("python-zope-deprecation" ,python-zope-deprecation)
1747 ("python-zope-event" ,python-zope-event)
1748 ("python-zope-hookable" ,python-zope-hookable)
1749 ("python-zope-interface" ,python-zope-interface)))
1750 (home-page "https://github.com/zopefoundation/zope.component")
1751 (synopsis "Zope Component Architecture")
1752 (description "Zope.component represents the core of the Zope Component
1753 Architecture. Together with the zope.interface package, it provides
1754 facilities for defining, registering and looking up components.")
1755 (license license:zpl2.1)))
1756
1757 (define-public python-zope-component-bootstrap
1758 (package
1759 (inherit python-zope-component)
1760 (arguments `(#:tests? #f))
1761 (native-inputs `())
1762 (properties `((hidden? . #t)))))
1763
1764 (define-public python2-zope-component
1765 (package-with-python2 python-zope-component))
1766
1767 (define-public python-zope-deferredimport
1768 (package
1769 (name "python-zope-deferredimport")
1770 (version "4.3.1")
1771 (source
1772 (origin
1773 (method url-fetch)
1774 (uri (pypi-uri "zope.deferredimport" version))
1775 (sha256
1776 (base32
1777 "1q89v54dwniiqypjbwywwdfjdr4kdkqlyqsgrpplgvsygdg39cjp"))))
1778 (build-system python-build-system)
1779 (propagated-inputs
1780 `(("python-zope-proxy" ,python-zope-proxy)))
1781 (native-inputs
1782 `(("python-zope-testrunner" ,python-zope-testrunner)))
1783 (home-page "https://github.com/zopefoundation/zope.deferredimport")
1784 (synopsis "Defer imports until used by code")
1785 (description
1786 "Often, especially for package modules, you want to import names for
1787 convenience, but not actually perform the imports until necessary. The
1788 @code{zope.deferredimport} package provided facilities for defining names in
1789 modules that will be imported from somewhere else when used. You can also cause
1790 deprecation warnings to be issued when a variable is used.")
1791 (license license:zpl2.1)))
1792
1793 (define-public python-ndg-httpsclient
1794 (package
1795 (name "python-ndg-httpsclient")
1796 (version "0.5.1")
1797 (source (origin
1798 (method url-fetch)
1799 (uri (pypi-uri "ndg_httpsclient" version))
1800 (sha256
1801 (base32
1802 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1803 (build-system python-build-system)
1804 (arguments
1805 '(;; The tests appear to require networking.
1806 #:tests? #f))
1807 (propagated-inputs
1808 `(("python-pyopenssl" ,python-pyopenssl)))
1809 (synopsis "HTTPS support for Python's httplib and urllib2")
1810 (description "This is a HTTPS client implementation for httplib and urllib2
1811 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1812 over the default provided with Python and, importantly, enables full
1813 verification of the SSL peer.")
1814 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1815 (license license:bsd-3)))
1816
1817 ;; python2-openssl requires special care, so package-with-python2 is
1818 ;; insufficient.
1819 (define-public python2-ndg-httpsclient
1820 (package (inherit python-ndg-httpsclient)
1821 (name "python2-ndg-httpsclient")
1822 (arguments
1823 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1824 ((#:python _) python-2)))
1825 (propagated-inputs
1826 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1827
1828 (define-public python-websocket-client
1829 (package
1830 (name "python-websocket-client")
1831 (version "0.54.0")
1832 (source
1833 (origin
1834 (method url-fetch)
1835 (uri (pypi-uri "websocket_client" version))
1836 (sha256
1837 (base32
1838 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
1839 (build-system python-build-system)
1840 (propagated-inputs
1841 `(("python-six" ,python-six)))
1842 (home-page "https://github.com/liris/websocket-client")
1843 (synopsis "WebSocket client for Python")
1844 (description "The Websocket-client module provides the low level APIs for
1845 WebSocket usage in Python programs.")
1846 (properties `((python2-variant . ,(delay python2-websocket-client))))
1847 (license license:lgpl2.1+)))
1848
1849 (define-public python2-websocket-client
1850 (let ((base (package-with-python2
1851 (strip-python2-variant python-websocket-client))))
1852 (package
1853 (inherit base)
1854 (native-inputs
1855 `(("python2-backport-ssl-match-hostname"
1856 ,python2-backport-ssl-match-hostname)
1857 ,@(package-native-inputs base))))))
1858
1859 (define-public python-requests
1860 (package
1861 (name "python-requests")
1862 (version "2.23.0")
1863 (source (origin
1864 (method url-fetch)
1865 (uri (pypi-uri "requests" version))
1866 (sha256
1867 (base32
1868 "1rhpg0jb08v0gd7f19jjiwlcdnxpmqi1fhvw7r4s9avddi4kvx5k"))))
1869 (build-system python-build-system)
1870 (propagated-inputs
1871 `(("python-certifi" ,python-certifi)
1872 ("python-chardet" ,python-chardet)
1873 ("python-idna" ,python-idna)
1874 ("python-urllib3" ,python-urllib3)))
1875 (arguments
1876 ;; FIXME: Some tests require network access.
1877 '(#:tests? #f))
1878 (home-page "http://python-requests.org/")
1879 (synopsis "Python HTTP library")
1880 (description
1881 "Requests is a Python HTTP client library. It aims to be easier to use
1882 than Python’s urllib2 library.")
1883 (license license:asl2.0)))
1884
1885 ;; Some software requires an older version of Requests, notably Docker/Docker
1886 ;; Compose.
1887 (define-public python-requests-2.20
1888 (package (inherit python-requests)
1889 (version "2.20.1")
1890 (source (origin
1891 (method url-fetch)
1892 (uri (pypi-uri "requests" version))
1893 (sha256
1894 (base32
1895 "0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
1896 (propagated-inputs
1897 `(("python-urllib3" ,python-urllib3-1.24)
1898 ("python-idna" ,python-idna-2.7)
1899 ,@(package-propagated-inputs python-requests)))))
1900
1901 (define-public python2-requests
1902 (package-with-python2 python-requests))
1903
1904 (define-public python-requests_ntlm
1905 (package
1906 (name "python-requests_ntlm")
1907 (version "1.1.0")
1908 (source
1909 (origin
1910 (method url-fetch)
1911 (uri (pypi-uri "requests_ntlm" version))
1912 (sha256
1913 (base32
1914 "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
1915 (build-system python-build-system)
1916 (propagated-inputs
1917 `(("python-cryptography" ,python-cryptography)
1918 ("python-ntlm-auth" ,python-ntlm-auth)
1919 ("python-requests" ,python-requests)))
1920 (home-page "https://github.com/requests/requests-ntlm")
1921 (synopsis
1922 "NTLM authentication support for Requests")
1923 (description
1924 "This package allows for HTTP NTLM authentication using the requests
1925 library.")
1926 (license license:isc)))
1927
1928 (define-public python-requests-mock
1929 (package
1930 (name "python-requests-mock")
1931 (version "1.3.0")
1932 (source
1933 (origin
1934 (method url-fetch)
1935 (uri (pypi-uri "requests-mock" version))
1936 (sha256
1937 (base32
1938 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1939 (build-system python-build-system)
1940 (propagated-inputs
1941 `(("python-requests" ,python-requests)
1942 ("python-six" ,python-six)))
1943 (native-inputs
1944 `(("python-pbr" ,python-pbr)
1945 ("python-discover" ,python-discover)
1946 ("python-docutils" ,python-docutils)
1947 ("python-fixtures" ,python-fixtures)
1948 ("python-mock" ,python-mock)
1949 ("python-sphinx" ,python-sphinx)
1950 ("python-testrepository" ,python-testrepository)
1951 ("python-testtools" ,python-testtools)))
1952 (home-page "https://requests-mock.readthedocs.org/")
1953 (synopsis "Mock out responses from the requests package")
1954 (description
1955 "This module provides a building block to stub out the HTTP requests
1956 portions of your testing code.")
1957 (properties `((python2-variant . ,(delay python2-requests-mock))))
1958 (license license:asl2.0)))
1959
1960 (define-public python2-requests-mock
1961 (package (inherit (package-with-python2
1962 (strip-python2-variant python-requests-mock)))
1963 (arguments
1964 `(#:python ,python-2
1965 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1966 #:tests? #f))))
1967
1968 (define-public python-requests-toolbelt
1969 (package
1970 (name "python-requests-toolbelt")
1971 (version "0.8.0")
1972 (source (origin
1973 (method url-fetch)
1974 (uri (pypi-uri "requests-toolbelt" version))
1975 (sha256
1976 (base32
1977 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1978 (build-system python-build-system)
1979 (native-inputs
1980 `(("python-betamax" ,python-betamax)
1981 ("python-mock" ,python-mock)
1982 ("python-pytest" ,python-pytest)))
1983 (propagated-inputs
1984 `(("python-requests" ,python-requests)))
1985 (synopsis "Extensions to python-requests")
1986 (description "This is a toolbelt of useful classes and functions to be used
1987 with python-requests.")
1988 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1989 (license license:asl2.0)))
1990
1991 (define-public python2-requests-toolbelt
1992 (package-with-python2 python-requests-toolbelt))
1993
1994 (define-public python-requests-toolbelt-0.9.1
1995 (package
1996 (inherit python-requests-toolbelt)
1997 (version "0.9.1")
1998 (source (origin
1999 (method url-fetch)
2000 (uri (pypi-uri "requests-toolbelt" version))
2001 (sha256
2002 (base32
2003 "1h3gm88dcjbd7gm229a7x5qkkhnsqsjz0m0l2xyavm2ab3a8k04n"))))
2004 (arguments
2005 `(;; FIXME: Some tests require network access.
2006 #:tests? #f))))
2007
2008 (define-public python-oauthlib
2009 (package
2010 (name "python-oauthlib")
2011 (version "3.0.1")
2012 (source (origin
2013 (method url-fetch)
2014 (uri (pypi-uri "oauthlib" version))
2015 (sha256
2016 (base32
2017 "163jg4a8f7c5ki655grrr47kgljy12wri3qly7ijf64sk1fjrqqc"))))
2018 (build-system python-build-system)
2019 (arguments
2020 `(#:phases (modify-phases %standard-phases
2021 (replace 'check
2022 (lambda _
2023 (invoke "pytest" "-vv"))))))
2024 (native-inputs
2025 `(("python-pytest" ,python-pytest)
2026 ("python-pytest-cov" ,python-pytest-cov)
2027 ("python-mock" ,python-mock)))
2028 (propagated-inputs
2029 `(("python-cryptography" ,python-cryptography)
2030 ("python-pyjwt" ,python-pyjwt)
2031 ("python-blinker" ,python-blinker)))
2032 (home-page "https://github.com/oauthlib/oauthlib")
2033 (synopsis "OAuth implementation for Python")
2034 (description
2035 "Oauthlib is a generic, spec-compliant, thorough implementation of the
2036 OAuth request-signing logic.")
2037 (license license:bsd-3)))
2038
2039 (define-public python2-oauthlib
2040 (package-with-python2 python-oauthlib))
2041
2042 (define-public python-rauth
2043 (package
2044 (name "python-rauth")
2045 (version "0.7.3")
2046 (source
2047 (origin
2048 (method url-fetch)
2049 (uri (pypi-uri "rauth" version))
2050 (sha256
2051 (base32
2052 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
2053 (build-system python-build-system)
2054 (arguments
2055 `(#:test-target "check"))
2056 (propagated-inputs
2057 `(("python-requests" ,python-requests)))
2058 (home-page "https://github.com/litl/rauth")
2059 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
2060 (description
2061 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
2062 provides service wrappers for convenient connection initialization and
2063 authenticated session objects providing things like keep-alive.")
2064 (license license:expat)
2065 (properties `((python2-variant . ,(delay python2-rauth))))))
2066
2067 (define-public python2-rauth
2068 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
2069 (package
2070 (inherit base)
2071 (native-inputs `(("python2-unittest2" ,python2-unittest2)
2072 ,@(package-native-inputs base))))))
2073
2074 (define-public python-urllib3
2075 (package
2076 (name "python-urllib3")
2077 (version "1.25.9")
2078 (source
2079 (origin
2080 (method url-fetch)
2081 (uri (pypi-uri "urllib3" version))
2082 (sha256
2083 (base32
2084 "09rmjqm5syhhc8fx3v06h3yv6cqy0b1081jg8wm5grpwpr72j61h"))))
2085 (build-system python-build-system)
2086 (arguments `(#:tests? #f))
2087 (propagated-inputs
2088 `(;; These 5 inputs are used to build urrlib3[secure]
2089 ("python-certifi" ,python-certifi)
2090 ("python-cryptography" ,python-cryptography)
2091 ("python-idna" ,python-idna)
2092 ("python-ipaddress" ,python-ipaddress)
2093 ("python-pyopenssl" ,python-pyopenssl)
2094 ("python-pysocks" ,python-pysocks)))
2095 (home-page "https://urllib3.readthedocs.io/")
2096 (synopsis "HTTP library with thread-safe connection pooling")
2097 (description
2098 "Urllib3 supports features left out of urllib and urllib2 libraries. It
2099 can reuse the same socket connection for multiple requests, it can POST files,
2100 supports url redirection and retries, and also gzip and deflate decoding.")
2101 (license license:expat)))
2102
2103 ;; Some software requires an older version of urllib3, notably Docker.
2104 (define-public python-urllib3-1.24
2105 (package (inherit python-urllib3)
2106 (version "1.24.3")
2107 (source (origin
2108 (method url-fetch)
2109 (uri (pypi-uri "urllib3" version))
2110 (sha256
2111 (base32
2112 "1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
2113
2114
2115 (define-public python2-urllib3
2116 (package-with-python2 python-urllib3))
2117
2118 (define-public awscli
2119 (package
2120 (name "awscli")
2121 (version "1.18.6")
2122 (source
2123 (origin
2124 (method url-fetch)
2125 (uri (pypi-uri name version))
2126 (sha256
2127 (base32
2128 "0p479mfs9r0m82a217pap8156ijwvhv6r3kqa4k267gd05wgvygm"))))
2129 (build-system python-build-system)
2130 (arguments
2131 ;; FIXME: The 'pypi' release does not contain tests.
2132 '(#:tests? #f
2133 #:phases
2134 (modify-phases %standard-phases
2135 (add-after 'unpack 'fix-reference-to-groff
2136 (lambda _
2137 (substitute* "awscli/help.py"
2138 (("if not self._exists_on_path\\('groff'\\):") "")
2139 (("raise ExecutableNotFoundError\\('groff'\\)") "")
2140 (("cmdline = \\['groff'")
2141 (string-append "cmdline = ['" (which "groff") "'")))
2142 #t)))))
2143 (propagated-inputs
2144 `(("python-colorama" ,python-colorama)
2145 ("python-botocore" ,python-botocore)
2146 ("python-s3transfer" ,python-s3transfer)
2147 ("python-docutils" ,python-docutils)
2148 ("python-pyyaml" ,python-pyyaml)
2149 ("python-rsa" ,python-rsa)))
2150 (native-inputs
2151 `(("groff" ,groff)))
2152 (home-page "https://aws.amazon.com/cli/")
2153 (synopsis "Command line client for AWS")
2154 (description "AWS CLI provides a unified command line interface to the
2155 Amazon Web Services (AWS) API.")
2156 (license license:asl2.0)))
2157
2158 (define-public python-wsgiproxy2
2159 (package
2160 (name "python-wsgiproxy2")
2161 (version "0.4.6")
2162 (source
2163 (origin
2164 (method url-fetch)
2165 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
2166 (sha256
2167 (base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf"))))
2168 (build-system python-build-system)
2169 (native-inputs
2170 `(("python-webtest" ,python-webtest)))
2171 (propagated-inputs
2172 `(("python-requests" ,python-requests)
2173 ("python-six" ,python-six)
2174 ("python-urllib3" ,python-urllib3)
2175 ("python-webob" ,python-webob)))
2176 (home-page "https://github.com/gawel/WSGIProxy2/")
2177 (synopsis "WSGI Proxy with various http client backends")
2178 (description "WSGI turns HTTP requests into WSGI function calls.
2179 WSGIProxy turns WSGI function calls into HTTP requests.
2180 It also includes code to sign requests and pass private data,
2181 and to spawn subprocesses to handle requests.")
2182 (license license:expat)))
2183
2184 (define-public python2-wsgiproxy2
2185 (package-with-python2 python-wsgiproxy2))
2186
2187 (define-public python-pastedeploy
2188 (package
2189 (name "python-pastedeploy")
2190 (version "2.1.0")
2191 (source
2192 (origin
2193 (method url-fetch)
2194 (uri (pypi-uri "PasteDeploy" version))
2195 (sha256
2196 (base32 "16qsq5y6mryslmbp5pn35x4z8z3ndp5rpgl42h226879nrw9hmg7"))))
2197 (build-system python-build-system)
2198 (arguments
2199 '(#:test-target "pytest"))
2200 (native-inputs
2201 `(("python-pytest" ,python-pytest)
2202 ("python-pytest-runner" ,python-pytest-runner)))
2203 (home-page "https://pylonsproject.org/")
2204 (synopsis
2205 "Load, configure, and compose WSGI applications and servers")
2206 (description
2207 "This tool provides code to load WSGI applications and servers from URIs;
2208 these URIs can refer to Python Eggs for INI-style configuration files. Paste
2209 Script provides commands to serve applications based on this configuration
2210 file.")
2211 (license license:expat)))
2212
2213 (define-public python2-pastedeploy
2214 (package-with-python2 python-pastedeploy))
2215
2216 (define-public python-webtest
2217 (package
2218 (name "python-webtest")
2219 (version "2.0.33")
2220 (source
2221 (origin
2222 (method url-fetch)
2223 (uri (pypi-uri "WebTest" version))
2224 (sha256
2225 (base32
2226 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
2227 (build-system python-build-system)
2228 (arguments
2229 ;; Tests require python-pyquery, which creates a circular dependency.
2230 `(#:tests? #f))
2231 (propagated-inputs
2232 `(("python-waitress" ,python-waitress)
2233 ("python-webob" ,python-webob)
2234 ("python-six" ,python-six)
2235 ("python-beautifulsoup4" ,python-beautifulsoup4)))
2236 (home-page "https://docs.pylonsproject.org/projects/webtest/")
2237 (synopsis "Helper to test WSGI applications")
2238 (description "Webtest allows you to test your Python web applications
2239 without starting an HTTP server. It supports anything that supports the
2240 minimum of WSGI.")
2241 (license license:expat)))
2242
2243 (define-public python2-webtest
2244 (package-with-python2 python-webtest))
2245
2246 (define-public python-flask
2247 (package
2248 (name "python-flask")
2249 (version "1.1.2")
2250 (source (origin
2251 (method url-fetch)
2252 (uri (pypi-uri "Flask" version))
2253 (sha256
2254 (base32
2255 "0q3h295izcil7lswkzfnyg3k5gq4hpmqmpl6i7s5m1n9szi1myjf"))))
2256 (build-system python-build-system)
2257 (arguments
2258 '(#:phases
2259 (modify-phases %standard-phases
2260 (replace 'check
2261 (lambda _
2262 (setenv "PYTHONPATH" (string-append "./build/lib:"
2263 (getenv "PYTHONPATH")))
2264 (invoke "pytest" "-vv" "tests"))))))
2265 (native-inputs
2266 `(("python-pytest" ,python-pytest)))
2267 (propagated-inputs
2268 `(("python-itsdangerous" ,python-itsdangerous)
2269 ("python-jinja2" ,python-jinja2)
2270 ("python-click" ,python-click)
2271 ("python-werkzeug" ,python-werkzeug)))
2272 (home-page "https://www.palletsprojects.com/p/flask/")
2273 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
2274 (description "Flask is a micro web framework based on the Werkzeug toolkit
2275 and Jinja2 template engine. It is called a micro framework because it does not
2276 presume or force a developer to use a particular tool or library.")
2277 (license license:bsd-3)))
2278
2279 (define-public python2-flask
2280 (package-with-python2 python-flask))
2281
2282 (define-public python-flask-wtf
2283 (package
2284 (name "python-flask-wtf")
2285 (version "0.14.3")
2286 (source
2287 (origin
2288 (method url-fetch)
2289 (uri (pypi-uri "Flask-WTF" version))
2290 (sha256
2291 (base32
2292 "086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl"))))
2293 (build-system python-build-system)
2294 (arguments
2295 '(#:phases
2296 (modify-phases %standard-phases
2297 (replace 'check
2298 (lambda _
2299 (setenv "PYTHONPATH" (string-append "./build/lib:"
2300 (getenv "PYTHONPATH")))
2301 (invoke "pytest" "-vv"))))))
2302 (propagated-inputs
2303 `(("python-flask-babel" ,python-flask-babel)
2304 ("python-babel" ,python-babel)
2305 ("python-wtforms" ,python-wtforms)))
2306 (native-inputs
2307 `(("python-pytest" ,python-pytest)))
2308 (home-page "https://github.com/lepture/flask-wtf")
2309 (synopsis "Simple integration of Flask and WTForms")
2310 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
2311 upload, and reCAPTCHA.")
2312 (license license:bsd-3)))
2313
2314 (define-public python2-flask-wtf
2315 (package-with-python2 python-flask-wtf))
2316
2317 (define-public python-flask-multistatic
2318 (package
2319 (name "python-flask-multistatic")
2320 (version "1.0")
2321 (source
2322 (origin
2323 (method url-fetch)
2324 (uri (pypi-uri "flask-multistatic" version))
2325 (sha256
2326 (base32
2327 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
2328 (build-system python-build-system)
2329 (propagated-inputs
2330 `(("python-flask" ,python-flask)))
2331 (home-page "https://pagure.io/flask-multistatic")
2332 (synopsis "Flask plugin to allow overriding static files")
2333 (description "@code{flask-multistatic} is a flask plugin that adds support
2334 for overriding static files.")
2335 (license license:gpl3+)))
2336
2337 (define-public python2-flask-multistatic
2338 (package-with-python2 python-flask-multistatic))
2339
2340 (define-public python-cookies
2341 (package
2342 (name "python-cookies")
2343 (version "2.2.1")
2344 (source (origin
2345 (method url-fetch)
2346 (uri (pypi-uri "cookies" version))
2347 (sha256
2348 (base32
2349 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
2350 (build-system python-build-system)
2351 (arguments
2352 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
2353 #:tests? #f))
2354 (native-inputs
2355 `(("python-pytest" ,python-pytest)))
2356 (synopsis "HTTP cookie parser and renderer")
2357 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
2358 Python.")
2359 (home-page "https://gitlab.com/sashahart/cookies")
2360 (license license:expat)))
2361
2362 (define-public python2-cookies
2363 (package-with-python2 python-cookies))
2364
2365 (define-public python-responses
2366 (package
2367 (name "python-responses")
2368 (version "0.10.6")
2369 (source (origin
2370 (method url-fetch)
2371 (uri (pypi-uri "responses" version))
2372 (sha256
2373 (base32
2374 "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah"))))
2375 (build-system python-build-system)
2376 (arguments
2377 `(;; Test suite is not distributed:
2378 ;; https://github.com/getsentry/responses/issues/38
2379 #:tests? #f))
2380 (native-inputs
2381 `(("python-mock" ,python-mock)))
2382 (propagated-inputs
2383 `(("python-requests" ,python-requests)
2384 ("python-cookies" ,python-cookies)
2385 ("python-six" ,python-six)))
2386 (home-page "https://github.com/getsentry/responses")
2387 (synopsis "Utility for mocking out the `requests` Python library")
2388 (description "A utility library for mocking out the `requests` Python
2389 library.")
2390 (license license:asl2.0)))
2391
2392 (define-public python2-responses
2393 (package-with-python2 python-responses))
2394
2395 (define-public python-grequests
2396 (package
2397 (name "python-grequests")
2398 (version "0.3.0")
2399 (source
2400 (origin
2401 (method url-fetch)
2402 (uri (pypi-uri "grequests" version))
2403 (sha256
2404 (base32
2405 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
2406 (build-system python-build-system)
2407 (propagated-inputs
2408 `(("python-gevent" ,python-gevent)
2409 ("python-requests" ,python-requests)))
2410 (native-inputs
2411 `(("python-nose" ,python-nose)
2412 ("python-zope.interface" ,python-zope-interface)
2413 ("python-zope.event" ,python-zope-event)))
2414 (home-page "https://github.com/kennethreitz/grequests")
2415 (synopsis "Python library for asynchronous HTTP requests")
2416 (description "GRequests is a Python library that allows you to use
2417 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
2418 (license license:bsd-2)))
2419
2420 (define-public python-geventhttpclient
2421 (package
2422 (name "python-geventhttpclient")
2423 (version "1.3.1")
2424 (source (origin
2425 (method url-fetch)
2426 (uri (pypi-uri "geventhttpclient" version))
2427 (sha256
2428 (base32
2429 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
2430 (modules '((guix build utils)))
2431 (snippet
2432 '(begin
2433 ;; Delete pre-compiled files.
2434 (for-each delete-file (find-files "src/geventhttpclient"
2435 ".*\\.pyc"))
2436 #t))))
2437 (build-system python-build-system)
2438 (arguments
2439 '(#:phases
2440 (modify-phases %standard-phases
2441 (add-after 'unpack 'delete-network-tests
2442 (lambda _
2443 (delete-file "src/geventhttpclient/tests/test_client.py")
2444 #t))
2445 (replace 'check
2446 (lambda* (#:key inputs outputs #:allow-other-keys)
2447 (add-installed-pythonpath inputs outputs)
2448 (invoke "py.test" "src/geventhttpclient/tests" "-v"
2449 ;; Append the test modules to sys.path to avoid
2450 ;; namespace conflict which breaks SSL tests.
2451 "--import-mode=append"
2452 ;; XXX: Disable test fails with Python 3.8:
2453 ;; https://github.com/gwik/geventhttpclient/issues/119
2454 "-k" (string-append "not test_cookielib_compatibility"))
2455 #t)))))
2456 (native-inputs
2457 `(("python-pytest" ,python-pytest)))
2458 (propagated-inputs
2459 `(("python-certifi" ,python-certifi)
2460 ("python-gevent" ,python-gevent)
2461 ("python-six" ,python-six)))
2462 (home-page "https://github.com/gwik/geventhttpclient")
2463 (synopsis "HTTP client library for gevent")
2464 (description "@code{python-geventhttpclient} is a high performance,
2465 concurrent HTTP client library for python using @code{gevent}.")
2466 (license license:expat)))
2467
2468 (define-public python2-geventhttpclient
2469 (package-with-python2 python-geventhttpclient))
2470
2471 (define-public python-requests-oauthlib
2472 (package
2473 (name "python-requests-oauthlib")
2474 (version "1.2.0")
2475 (source
2476 (origin
2477 (method url-fetch)
2478 (uri (pypi-uri "requests-oauthlib" version))
2479 (sha256
2480 (base32
2481 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
2482 (build-system python-build-system)
2483 (arguments
2484 `(#:phases
2485 (modify-phases %standard-phases
2486 ;; removes tests that require network access
2487 (add-before 'check 'pre-check
2488 (lambda _
2489 (delete-file "tests/test_core.py")
2490 #t)))))
2491 (native-inputs
2492 `(("python-pyjwt" ,python-pyjwt)
2493 ("python-requests-mock" ,python-requests-mock)
2494 ("python-mock" ,python-mock)))
2495 (propagated-inputs
2496 `(("python-oauthlib" ,python-oauthlib)
2497 ("python-requests" ,python-requests)))
2498 (home-page
2499 "https://github.com/requests/requests-oauthlib")
2500 (synopsis
2501 "OAuthlib authentication support for Requests")
2502 (description
2503 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
2504 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
2505 (license license:isc)))
2506
2507 (define-public python2-requests-oauthlib
2508 (package-with-python2 python-requests-oauthlib))
2509
2510 (define-public python-url
2511 (package
2512 (name "python-url")
2513 (version "0.2.0")
2514 (source (origin
2515 (method url-fetch)
2516 (uri (pypi-uri "url" version))
2517 (sha256
2518 (base32
2519 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
2520 (build-system python-build-system)
2521 (propagated-inputs
2522 `(("python-publicsuffix" ,python-publicsuffix)))
2523 (native-inputs
2524 `(("python-coverage" ,python-coverage)
2525 ("python-nose" ,python-nose)))
2526 (arguments
2527 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
2528 (home-page "https://github.com/seomoz/url-py")
2529 (synopsis "URL Parsing")
2530 (description "Library for parsing urls.")
2531 (license license:expat)
2532 (properties `((python2-variant . ,(delay python2-url))))))
2533
2534 (define-public python2-url
2535 (let ((base (package-with-python2 (strip-python2-variant python-url))))
2536 (package (inherit base)
2537 (propagated-inputs
2538 `(("python2-publicsuffix" ,python2-publicsuffix))))))
2539
2540 (define-public python-cachecontrol
2541 (package
2542 (name "python-cachecontrol")
2543 (version "0.12.5")
2544 (source
2545 (origin
2546 (method git-fetch)
2547 ;; Pypi does not have tests.
2548 (uri (git-reference
2549 (url "https://github.com/ionrock/cachecontrol")
2550 (commit (string-append "v" version))))
2551 (file-name (git-file-name name version))
2552 (sha256
2553 (base32
2554 "03lgc65sl04n0cgzmmgg99bk83f9i6k8yrmcd4hpl46q1pymn0kz"))))
2555 (build-system python-build-system)
2556 (arguments
2557 ;; Versions > 0.11.6 depend on CherryPy for testing.
2558 ;; It's too much work to package CherryPy for now.
2559 `(#:tests? #f))
2560 (propagated-inputs
2561 `(("python-requests" ,python-requests)
2562 ("python-msgpack" ,python-msgpack)
2563 ("python-lockfile" ,python-lockfile)))
2564 (home-page "https://github.com/ionrock/cachecontrol")
2565 (synopsis "The httplib2 caching algorithms for use with requests")
2566 (description "CacheControl is a port of the caching algorithms in
2567 @code{httplib2} for use with @code{requests} session objects.")
2568 (license license:asl2.0)))
2569
2570 (define-public python2-cachecontrol
2571 (package-with-python2 python-cachecontrol))
2572
2573 (define-public python-betamax
2574 (package
2575 (name "python-betamax")
2576 (version "0.8.1")
2577 (source
2578 (origin
2579 (method url-fetch)
2580 (uri (pypi-uri "betamax" version))
2581 (sha256
2582 (base32
2583 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
2584 (build-system python-build-system)
2585 (arguments
2586 '(;; Many tests fail because they require networking.
2587 #:tests? #f))
2588 (propagated-inputs
2589 `(("python-requests" ,python-requests)))
2590 (home-page "https://github.com/sigmavirus24/betamax")
2591 (synopsis "Record HTTP interactions with python-requests")
2592 (description "Betamax will record your test suite's HTTP interactions and
2593 replay them during future tests. It is designed to work with python-requests.")
2594 (license license:expat)))
2595
2596 (define-public python2-betamax
2597 (package-with-python2 python-betamax))
2598
2599 (define-public python-betamax-matchers
2600 (package
2601 (name "python-betamax-matchers")
2602 (version "0.4.0")
2603 (source
2604 (origin
2605 (method url-fetch)
2606 (uri (pypi-uri "betamax-matchers" version))
2607 (sha256
2608 (base32
2609 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
2610 (build-system python-build-system)
2611 (propagated-inputs
2612 `(("python-betamax" ,python-betamax)
2613 ("python-requests-toolbelt" ,python-requests-toolbelt)))
2614 (home-page "https://github.com/sigmavirus24/betamax_matchers")
2615 (synopsis "VCR imitation for python-requests")
2616 (description "@code{betamax-matchers} provides a set of Matchers for
2617 Betamax.")
2618 (license license:asl2.0)))
2619
2620 (define-public python2-betamax-matchers
2621 (package-with-python2 python-betamax-matchers))
2622
2623 (define-public python-s3transfer
2624 (package
2625 (name "python-s3transfer")
2626 (version "0.2.0")
2627 (source (origin
2628 (method url-fetch)
2629 (uri (pypi-uri "s3transfer" version))
2630 (sha256
2631 (base32
2632 "08fhj73b1ai52hrs2q3nggshq3pswn1gq8ch3m009cb2v2vmqggj"))))
2633 (build-system python-build-system)
2634 (arguments
2635 `(#:phases
2636 (modify-phases %standard-phases
2637 (add-after 'unpack 'patch
2638 (lambda _
2639 ;; There's a small issue with one test with Python 3.8, this
2640 ;; change has been suggested upstream:
2641 ;; https://github.com/boto/s3transfer/pull/164
2642 (substitute* "tests/unit/test_s3transfer.py"
2643 (("super\\(FailedDownloadParts, self\\)\\.submit\\(function\\)")
2644 "futures.Future()"))
2645 #t))
2646 (replace 'check
2647 (lambda _
2648 ;; Some of the 'integration' tests require network access or
2649 ;; login credentials.
2650 (invoke "nosetests" "--exclude=integration")
2651 #t)))))
2652 (native-inputs
2653 `(("python-docutils" ,python-docutils)
2654 ("python-mock" ,python-mock)
2655 ("python-nose" ,python-nose)))
2656 (propagated-inputs
2657 `(("python-botocore" ,python-botocore)
2658 ("python-urllib3" ,python-urllib3)))
2659 (synopsis "Amazon S3 Transfer Manager")
2660 (description "S3transfer is a Python library for managing Amazon S3
2661 transfers.")
2662 (home-page "https://github.com/boto/s3transfer")
2663 (license license:asl2.0)
2664 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2665
2666 (define-public python2-s3transfer
2667 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2668 (package
2669 (inherit base)
2670 (native-inputs
2671 `(("python2-futures" ,python2-futures)
2672 ,@(package-native-inputs base))))))
2673
2674 (define-public python-slimit
2675 (package
2676 (name "python-slimit")
2677 (version "0.8.1")
2678 (source
2679 (origin
2680 (method url-fetch)
2681 (uri (pypi-uri "slimit" version ".zip"))
2682 (sha256
2683 (base32
2684 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2685 (build-system python-build-system)
2686 (native-inputs
2687 `(("unzip" ,unzip)))
2688 (propagated-inputs
2689 `(("python-ply" ,python-ply)))
2690 (home-page "https://slimit.readthedocs.io/")
2691 (synopsis "JavaScript minifier, parser and lexer written in Python")
2692 (description
2693 "SlimIt is a JavaScript minifier written in Python. It compiles
2694 JavaScript into more compact code so that it downloads and runs faster.
2695 SlimIt also provides a library that includes a JavaScript parser, lexer,
2696 pretty printer and a tree visitor.")
2697 (license license:expat)))
2698
2699 (define-public python-flask-restful
2700 (package
2701 (name "python-flask-restful")
2702 (version "0.3.8")
2703 (source
2704 (origin
2705 (method url-fetch)
2706 (uri (pypi-uri "Flask-RESTful" version))
2707 (patches (search-patches "python-flask-restful-werkzeug-compat.patch"))
2708 (sha256
2709 (base32
2710 "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
2711 (build-system python-build-system)
2712 (propagated-inputs
2713 `(("python-aniso8601" ,python-aniso8601)
2714 ("python-flask" ,python-flask)
2715 ("python-pycrypto" ,python-pycrypto)
2716 ("python-pytz" ,python-pytz)))
2717 (native-inputs
2718 `(;; Optional dependency of Flask. Tests need it.
2719 ("python-blinker" ,python-blinker)
2720 ("python-mock" ,python-mock) ; For tests
2721 ("python-nose" ,python-nose))) ;for tests
2722 (home-page
2723 "https://www.github.com/flask-restful/flask-restful/")
2724 (synopsis
2725 "Flask module for creating REST APIs")
2726 (description
2727 "This package contains a Flask module for creating REST APIs.")
2728 (license license:bsd-3)))
2729
2730 (define-public python-flask-basicauth
2731 (package
2732 (name "python-flask-basicauth")
2733 (version "0.2.0")
2734 (source
2735 (origin
2736 (method url-fetch)
2737 (uri (pypi-uri "Flask-BasicAuth" version))
2738 (sha256
2739 (base32
2740 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2741 (build-system python-build-system)
2742 (propagated-inputs
2743 `(("python-flask" ,python-flask)))
2744 (home-page
2745 "https://github.com/jpvanhal/flask-basicauth")
2746 (synopsis
2747 "HTTP basic access authentication for Flask")
2748 (description
2749 "This package provides HTTP basic access authentication for Flask.")
2750 (license license:bsd-3)))
2751
2752 (define-public python-flask-htpasswd
2753 (package
2754 (name "python-flask-htpasswd")
2755 (version "0.3.1")
2756 (source
2757 (origin
2758 (method url-fetch)
2759 (uri (pypi-uri "flask-htpasswd" version))
2760 (sha256
2761 (base32
2762 "14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra"))))
2763 (build-system python-build-system)
2764 (propagated-inputs
2765 `(("python-flask" ,python-flask)
2766 ("python-itsdangerous" ,python-itsdangerous)
2767 ("python-passlib" ,python-passlib)
2768 ("python-tox" ,python-tox)))
2769 (home-page "https://github.com/carsongee/flask-htpasswd")
2770 (synopsis "Basic authentication via htpasswd files in Flask applications")
2771 (description "This package provides Basic authentication via
2772 @file{htpasswd} files and access_token authentication in Flask
2773 applications.")
2774 (license license:bsd-3)))
2775
2776 (define-public python-flask-sqlalchemy
2777 (package
2778 (name "python-flask-sqlalchemy")
2779 (version "2.4.4")
2780 (source (origin
2781 (method url-fetch)
2782 (uri (pypi-uri "Flask-SQLAlchemy" version))
2783 (sha256
2784 (base32
2785 "1rgsj49gnx361hnb3vn6c1h17497qh22yc3r70l1r6w0mw71bixz"))))
2786 (build-system python-build-system)
2787 (propagated-inputs
2788 `(("python-flask" ,python-flask)
2789 ("python-sqlalchemy" ,python-sqlalchemy)))
2790 (home-page "https://github.com/mitsuhiko/flask-sqlalchemy")
2791 (synopsis "Module adding SQLAlchemy support to your Flask application")
2792 (description
2793 "This package adds SQLAlchemy support to your Flask application.")
2794 (license license:bsd-3)))
2795
2796 (define-public python-flask-restplus
2797 (package
2798 (name "python-flask-restplus")
2799 (version "0.9.2")
2800 (source
2801 (origin
2802 (method url-fetch)
2803 (uri (pypi-uri "flask-restplus" version))
2804 (sha256
2805 (base32
2806 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2807 (build-system python-build-system)
2808 (arguments
2809 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2810 ;; #:phases
2811 ;; (modify-phases %standard-phases
2812 ;; (replace 'check
2813 ;; (lambda _
2814 ;; (invoke "nosetests")
2815 ;; #t)))))
2816 (propagated-inputs
2817 `(("python-aniso8601" ,python-aniso8601)
2818 ("python-flask" ,python-flask)
2819 ("python-jsonschema" ,python-jsonschema)
2820 ("python-pytz" ,python-pytz)
2821 ("python-six" ,python-six)))
2822 (native-inputs
2823 `(("python-tzlocal" ,python-tzlocal)
2824 ("python-blinker" ,python-blinker)
2825 ("python-nose" ,python-nose)
2826 ("python-rednose" ,python-rednose)))
2827 (home-page "https://github.com/noirbizarre/flask-restplus")
2828 (synopsis "Framework for documented API development with Flask")
2829 (description "This package provides a framework for API development with
2830 the Flask web framework in Python. It is similar to package
2831 @code{python-flask-restful} but supports the @code{python-swagger}
2832 documentation builder.")
2833 (license license:expat)))
2834
2835 (define-public python-flask-restful-swagger
2836 (package
2837 (name "python-flask-restful-swagger")
2838 (version "0.20.1")
2839 (source
2840 (origin
2841 (method url-fetch)
2842 (uri (pypi-uri "flask-restful-swagger" version))
2843 (sha256
2844 (base32
2845 "1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq"))))
2846 (build-system python-build-system)
2847 (arguments '(#:tests? #f)) ;no tests
2848 (propagated-inputs
2849 `(("python-flask-restful" ,python-flask-restful)))
2850 (home-page "https://github.com/rantav/flask-restful-swagger")
2851 (synopsis "Extract Swagger specs from Flask-Restful projects")
2852 (description "This package lets you extract Swagger API documentation
2853 specs from your Flask-Restful projects.")
2854 (license license:expat)))
2855
2856 (define-public python2-flask-restful-swagger
2857 (package-with-python2 python-flask-restful-swagger))
2858
2859 (define-public python-htmlmin
2860 (package
2861 (name "python-htmlmin")
2862 (version "0.1.12")
2863 (source
2864 (origin
2865 (method url-fetch)
2866 (uri (pypi-uri "htmlmin" version))
2867 (sha256
2868 (base32
2869 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2870 (arguments
2871 `(#:tests? #f)) ; no tests
2872 (build-system python-build-system)
2873 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2874 (synopsis "HTML minifier")
2875 (description "@code{htmlmin} is an HTML minifier that just works.
2876 It comes with safe defaults and easily configurable options.")
2877 (license license:bsd-3)))
2878
2879 (define-public python2-htmlmin
2880 (package-with-python2 python-htmlmin))
2881
2882 (define-public python-flask-htmlmin
2883 (package
2884 (name "python-flask-htmlmin")
2885 (version "1.2")
2886 (source
2887 (origin
2888 (method url-fetch)
2889 (uri (pypi-uri "Flask-HTMLmin" version))
2890 (sha256
2891 (base32
2892 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2893 (propagated-inputs
2894 `(("python-flask" ,python-flask)
2895 ("python-htmlmin" ,python-htmlmin)))
2896 (build-system python-build-system)
2897 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2898 (synopsis "HTML response minifier for Flask")
2899 (description
2900 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2901 (license license:bsd-3)))
2902
2903 (define-public python2-flask-htmlmin
2904 (package-with-python2 python-flask-htmlmin))
2905
2906 (define-public python-jsmin
2907 (package
2908 (name "python-jsmin")
2909 (version "2.2.2")
2910 (source
2911 (origin
2912 (method url-fetch)
2913 (uri (pypi-uri "jsmin" version))
2914 (sha256
2915 (base32
2916 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2917 (build-system python-build-system)
2918 (home-page "https://github.com/tikitu/jsmin/")
2919 (synopsis "Python JavaScript minifier")
2920 (description
2921 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2922 on the command line.")
2923 (license license:expat)))
2924
2925 (define-public python-flask-login
2926 (package
2927 (name "python-flask-login")
2928 (version "0.5.0")
2929 (source
2930 (origin
2931 (method git-fetch)
2932 (uri (git-reference
2933 (url "https://github.com/maxcountryman/flask-login")
2934 (commit version)))
2935 (file-name (git-file-name name version))
2936 (sha256
2937 (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
2938 (build-system python-build-system)
2939 (propagated-inputs
2940 `(("python-flask" ,python-flask)))
2941 (native-inputs
2942 ;; For tests.
2943 `(("python-blinker" ,python-blinker)
2944 ("python-coverage" ,python-coverage)
2945 ("python-mock" ,python-mock)
2946 ("python-pycodestyle" ,python-pycodestyle)
2947 ("python-pyflakes" ,python-pyflakes)
2948 ("python-pytest" ,python-pytest)
2949 ("python-semantic-version" ,python-semantic-version)
2950 ("python-werkzeug" ,python-werkzeug)))
2951 (home-page "https://github.com/maxcountryman/flask-login")
2952 (synopsis "User session management for Flask")
2953 (description
2954 "@code{Flask-Login} provides user session management for Flask. It
2955 handles the common tasks of logging in, logging out, and remembering your
2956 users' sessions over extended periods of time.")
2957 (license license:expat)))
2958
2959 (define-public python2-flask-login
2960 (package-with-python2 python-flask-login))
2961
2962 (define-public python-oauth2client
2963 (package
2964 (name "python-oauth2client")
2965 (version "4.0.0")
2966 (source
2967 (origin
2968 (method url-fetch)
2969 (uri (pypi-uri "oauth2client" version))
2970 (sha256
2971 (base32
2972 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2973 (build-system python-build-system)
2974 (arguments
2975 `(#:tests? #f))
2976 (propagated-inputs
2977 `(("python-httplib2" ,python-httplib2)
2978 ("python-pyasn1" ,python-pyasn1)
2979 ("python-pyasn1-modules" ,python-pyasn1-modules)
2980 ("python-rsa" ,python-rsa)
2981 ("python-six" ,python-six)))
2982 (home-page "https://github.com/google/oauth2client/")
2983 (synopsis "OAuth 2.0 client library")
2984 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2985 library for Python")
2986 (license license:asl2.0)))
2987
2988 (define-public python2-oauth2client
2989 (package-with-python2 python-oauth2client))
2990
2991 (define-public python-flask-oidc
2992 (package
2993 (name "python-flask-oidc")
2994 (version "1.1.1")
2995 (source
2996 (origin
2997 (method url-fetch)
2998 (uri (pypi-uri "flask-oidc" version))
2999 (sha256
3000 (base32
3001 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
3002 (build-system python-build-system)
3003 (propagated-inputs
3004 `(("python-flask" ,python-flask)
3005 ("python-itsdangerous" ,python-itsdangerous)
3006 ("python-oauth2client" ,python-oauth2client)
3007 ("python-six" ,python-six)))
3008 (native-inputs
3009 `(("python-nose" ,python-nose)
3010 ("python-mock" ,python-mock)))
3011 (home-page "https://github.com/puiterwijk/flask-oidc")
3012 (synopsis "OpenID Connect extension for Flask")
3013 (description "@code{python-flask-oidc} provides an OpenID Connect extension
3014 for Flask.")
3015 (license license:bsd-2)))
3016
3017 (define-public python-webassets
3018 (package
3019 (name "python-webassets")
3020 (version "0.12.1")
3021 (source
3022 (origin
3023 (method url-fetch)
3024 (uri (pypi-uri "webassets" version))
3025 (sha256
3026 (base32
3027 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
3028 (build-system python-build-system)
3029 (native-inputs
3030 `(("python-jinja2" ,python-jinja2)
3031 ("python-mock" ,python-mock)
3032 ("python-nose" ,python-nose)
3033 ("python-pytest" ,python-pytest)))
3034 (home-page "https://github.com/miracle2k/webassets")
3035 (synopsis "Media asset management")
3036 (description "Merges, minifies and compresses Javascript and CSS files,
3037 supporting a variety of different filters, including YUI, jsmin, jspacker or
3038 CSS tidy. Also supports URL rewriting in CSS files.")
3039 (license license:bsd-2)))
3040
3041 (define-public python-cssmin
3042 (package
3043 (name "python-cssmin")
3044 (version "0.2.0")
3045 (source
3046 (origin
3047 (method url-fetch)
3048 (uri (pypi-uri "cssmin" version))
3049 (sha256
3050 (base32
3051 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
3052 (build-system python-build-system)
3053 (home-page "https://github.com/zacharyvoase/cssmin")
3054 (synopsis "Python port of the YUI CSS Compressor")
3055 (description "Python port of the YUI CSS Compressor.")
3056 (license (list license:expat license:bsd-3))))
3057
3058 (define-public python2-cssmin
3059 (package-with-python2 python-cssmin))
3060
3061 (define-public python-elasticsearch
3062 (package
3063 (name "python-elasticsearch")
3064 (version "7.1.0")
3065 (source
3066 (origin
3067 (method url-fetch)
3068 (uri (pypi-uri "elasticsearch" version))
3069 (sha256
3070 (base32
3071 "0rnjvlhw4v3vg14l519qliy1s1zpmx3827q0xfviwvk42rr7hh01"))))
3072 (build-system python-build-system)
3073 (native-inputs
3074 `(("python-mock" ,python-mock)
3075 ("python-nosexcover" ,python-nosexcover)
3076 ("python-pyaml" ,python-pyaml)
3077 ("python-requests" ,python-requests)))
3078 (propagated-inputs
3079 `(("urllib3" ,python-urllib3)))
3080 (arguments
3081 ;; tests require the test_elasticsearch module but it is not distributed.
3082 `(#:tests? #f))
3083 (home-page "https://github.com/elastic/elasticsearch-py")
3084 (synopsis "Low-level client for Elasticsearch")
3085 (description "Official low-level client for Elasticsearch. Its goal is to
3086 provide common ground for all Elasticsearch-related code in Python; because of
3087 this it tries to be opinion-free and very extendable.")
3088 (license license:expat)))
3089
3090 (define-public python2-elasticsearch
3091 (package-with-python2 python-elasticsearch))
3092
3093 (define-public python-flask-script
3094 (package
3095 (name "python-flask-script")
3096 (version "2.0.6")
3097 (source
3098 (origin
3099 (method url-fetch)
3100 (uri (pypi-uri "Flask-Script" version))
3101 (sha256
3102 (base32
3103 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
3104 (build-system python-build-system)
3105 (arguments
3106 `(#:phases
3107 (modify-phases %standard-phases
3108 (add-after 'unpack 'patch-tests
3109 (lambda _
3110 (substitute* "tests.py"
3111 (("flask\\.ext\\.script") "flask_script"))
3112 #t)))))
3113 (propagated-inputs
3114 `(("python-flask" ,python-flask)
3115 ("python-argcomplete" ,python-argcomplete)
3116 ("python-werkzeug" ,python-werkzeug)))
3117 (native-inputs
3118 `(("python-pytest" ,python-pytest)))
3119 (home-page
3120 "https://github.com/smurfix/flask-script")
3121 (synopsis "Scripting support for Flask")
3122 (description "The Flask-Script extension provides support for writing
3123 external scripts in Flask. This includes running a development server,
3124 a customised Python shell, scripts to set up your database, cronjobs,
3125 and other command-line tasks that belong outside the web application
3126 itself.")
3127 (license license:bsd-3)))
3128
3129 (define-public python2-flask-script
3130 (package-with-python2 python-flask-script))
3131
3132 (define-public python-flask-migrate
3133 (package
3134 (name "python-flask-migrate")
3135 (version "2.5.3")
3136 (source
3137 (origin
3138 (method url-fetch)
3139 (uri (pypi-uri "Flask-Migrate" version))
3140 (sha256
3141 (base32
3142 "1vip9ww6l18dxffjsggm83k71zkvihxpnhaswpv8klh95s6517d6"))))
3143 (build-system python-build-system)
3144 (propagated-inputs
3145 `(("python-flask" ,python-flask)
3146 ("python-alembic" ,python-alembic)
3147 ("python-sqlalchemy" ,python-sqlalchemy)
3148 ("python-flask-script" ,python-flask-script)
3149 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
3150 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
3151 (synopsis "SQLAlchemy database migrations for Flask programs using
3152 Alembic")
3153 (description "This package contains SQLAlchemy database migration tools
3154 for Flask programs that are using @code{python-alembic}.")
3155 (license license:expat)))
3156
3157 (define-public python-genshi
3158 (package
3159 (name "python-genshi")
3160 (version "0.7.3")
3161 (source
3162 (origin
3163 (method git-fetch)
3164 (uri (git-reference
3165 (url "https://github.com/edgewall/genshi")
3166 (commit version)))
3167 (file-name (git-file-name name version))
3168 (sha256
3169 (base32 "04bw7nd4wyn8ixnhik57hny2xpjjpn80k5hp6691inix5gc6rxaf"))))
3170 (build-system python-build-system)
3171 (home-page "https://genshi.edgewall.org/")
3172 (synopsis "Toolkit for generation of output for the web")
3173 (description "Genshi is a Python library that provides an integrated set
3174 of components for parsing, generating, and processing HTML, XML or other
3175 textual content for output generation on the web.")
3176 (license license:bsd-3)))
3177
3178 (define-public python2-genshi
3179 (package-with-python2 python-genshi))
3180
3181 (define-public python-flask-principal
3182 (package
3183 (name "python-flask-principal")
3184 (version "0.4.0")
3185 (source
3186 (origin
3187 (method url-fetch)
3188 (uri (pypi-uri "Flask-Principal" version))
3189 (sha256
3190 (base32
3191 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
3192 (build-system python-build-system)
3193 (propagated-inputs
3194 `(("python-blinker" ,python-blinker)))
3195 (native-inputs
3196 `(("python-flask" ,python-flask)
3197 ("python-nose" ,python-nose)))
3198 (home-page "https://pythonhosted.org/Flask-Principal/")
3199 (synopsis "Identity management for Flask")
3200 (description "@code{flask_principal} is a identity management library for
3201 Flask. It supports managing both authentication and authorization data in a
3202 thread-local variable.")
3203 (license license:expat)))
3204
3205 (define-public python2-flask-principal
3206 (package-with-python2 python-flask-principal))
3207
3208 (define-public python-flask-httpauth
3209 (package
3210 (name "python-flask-httpauth")
3211 (version "3.2.3")
3212 (source
3213 (origin
3214 (method url-fetch)
3215 (uri (pypi-uri "Flask-HTTPAuth" version))
3216 (sha256
3217 (base32
3218 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
3219 (build-system python-build-system)
3220 (native-inputs
3221 `(("python-flask" ,python-flask)))
3222 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
3223 (synopsis "Basic and Digest HTTP authentication for Flask routes")
3224 (description "@code{flask_httpauth} provides Basic and Digest HTTP
3225 authentication for Flask routes.")
3226 (license license:expat)))
3227
3228 (define-public python2-flask-httpauth
3229 (package-with-python2 python-flask-httpauth))
3230
3231 (define-public python-uritemplate
3232 (package
3233 (name "python-uritemplate")
3234 (version "3.0.0")
3235 (source
3236 (origin
3237 (method url-fetch)
3238 (uri (pypi-uri "uritemplate" version))
3239 (sha256
3240 (base32
3241 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
3242 (build-system python-build-system)
3243 (home-page "https://uritemplate.readthedocs.org")
3244 (synopsis "Library to deal with URI Templates")
3245 (description "@code{uritemplate} provides Python library to deal with URI
3246 Templates.")
3247 (license license:bsd-2)))
3248
3249 (define-public python2-uritemplate
3250 (package-with-python2 python-uritemplate))
3251
3252 (define-public python-publicsuffix
3253 (package
3254 (name "python-publicsuffix")
3255 (version "1.1.0")
3256 (source (origin
3257 (method url-fetch)
3258 (uri (pypi-uri "publicsuffix" version))
3259 (sha256
3260 (base32
3261 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
3262 (build-system python-build-system)
3263 (arguments
3264 `(#:tests? #f)) ; tests use the internet
3265 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
3266 (synopsis "Get suffix for a domain name")
3267 (description "Get a public suffix for a domain name using the Public Suffix
3268 List.")
3269 (license license:expat)))
3270
3271 (define-public python2-publicsuffix
3272 (package-with-python2 python-publicsuffix))
3273
3274 (define-public python-publicsuffix2
3275 (package
3276 (name "python-publicsuffix2")
3277 (version "2.20191221")
3278 (source
3279 (origin
3280 (method url-fetch)
3281 (uri (pypi-uri "publicsuffix2" version))
3282 (sha256
3283 (base32 "0yzysvfj1najr1mb4pcqrbmjir3xpb69rlffln95a3cdm8qwry00"))))
3284 (build-system python-build-system)
3285 (arguments
3286 '(#:phases
3287 (modify-phases %standard-phases
3288 (add-after 'unpack 'ignore-maintainer-inputs
3289 (lambda _
3290 ;; Comment out a demand for python-requests, which is used only by
3291 ;; the unused ‘update_psl’ helper command.
3292 (substitute* "setup.py"
3293 (("'requests " match)
3294 (format #f "# ~a" match)))
3295 #t)))
3296 #:tests? #f)) ; the test suite requires network access
3297 (home-page "https://github.com/pombredanne/python-publicsuffix2")
3298 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
3299 (description "Get a public suffix for a domain name using the Public Suffix
3300 List. Forked from and using the same API as the publicsuffix package.")
3301 (license (list license:expat license:mpl2.0))))
3302
3303 (define-public python2-publicsuffix2
3304 (package-with-python2 python-publicsuffix2))
3305
3306 (define-public python-werkzeug
3307 (package
3308 (name "python-werkzeug")
3309 (version "1.0.0")
3310 (source
3311 (origin
3312 (method url-fetch)
3313 (uri (pypi-uri "Werkzeug" version))
3314 (sha256
3315 (base32
3316 "15kh0z61klp62mrc1prka13xsshxn0rsp1j1s2964iw86yisi6qn"))))
3317 (build-system python-build-system)
3318 (arguments
3319 '(#:phases
3320 (modify-phases %standard-phases
3321 (delete 'check)
3322 (add-after 'install 'check
3323 (lambda* (#:key inputs outputs #:allow-other-keys)
3324 (add-installed-pythonpath inputs outputs)
3325 (invoke "python" "-m" "pytest"))))))
3326 (propagated-inputs
3327 `(("python-requests" ,python-requests)))
3328 (native-inputs
3329 `(("python-pytest" ,python-pytest)
3330 ("python-pytest-timeout" ,python-pytest-timeout)))
3331 (home-page "https://www.palletsprojects.org/p/werkzeug/")
3332 (synopsis "Utilities for WSGI applications")
3333 (description "One of the most advanced WSGI utility modules. It includes a
3334 powerful debugger, full-featured request and response objects, HTTP utilities to
3335 handle entity tags, cache control headers, HTTP dates, cookie handling, file
3336 uploads, a powerful URL routing system and a bunch of community-contributed
3337 addon modules.")
3338 (license license:x11)))
3339
3340 (define-public python2-werkzeug
3341 (package-with-python2 python-werkzeug))
3342
3343 (define-public python-bottle
3344 (package
3345 (name "python-bottle")
3346 (version "0.12.18")
3347 (source
3348 (origin
3349 (method url-fetch)
3350 (uri (pypi-uri "bottle" version))
3351 (sha256
3352 (base32
3353 "17pn43kzr7m6czjbm4nda7kzs4ap9mmb30qfbhifyzas2i5vf688"))))
3354 (build-system python-build-system)
3355 (home-page "http://bottlepy.org/")
3356 (synopsis "WSGI framework for small web-applications.")
3357 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
3358 (license license:expat)))
3359
3360 (define-public python2-bottle
3361 (package-with-python2 python-bottle))
3362
3363 (define-public python-wtforms
3364 (package
3365 (name "python-wtforms")
3366 (version "2.1")
3367 (source
3368 (origin
3369 (method url-fetch)
3370 (uri (pypi-uri "WTForms" version ".zip"))
3371 (sha256
3372 (base32
3373 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
3374 (build-system python-build-system)
3375 (arguments
3376 '(#:phases
3377 (modify-phases %standard-phases
3378 (add-after 'unpack 'remove-django-test
3379 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
3380 (lambda _
3381 (substitute*
3382 "tests/runtests.py"
3383 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
3384 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
3385 #t)))))
3386 (native-inputs
3387 `(("unzip" ,unzip)))
3388 (home-page "http://wtforms.simplecodes.com/")
3389 (synopsis
3390 "Form validation and rendering library for Python web development")
3391 (description
3392 "WTForms is a flexible forms validation and rendering library
3393 for Python web development. It is very similar to the web form API
3394 available in Django, but is a standalone package.")
3395 (license license:bsd-3)))
3396
3397 (define-public python2-wtforms
3398 (package-with-python2 python-wtforms))
3399
3400 (define-public python-paste
3401 (package
3402 (name "python-paste")
3403 (version "3.0.6")
3404 (source
3405 (origin
3406 (method url-fetch)
3407 (uri (pypi-uri "Paste" version))
3408 (sha256
3409 (base32
3410 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
3411 (patches (search-patches "python-paste-remove-timing-test.patch"))
3412 (modules '((guix build utils)))
3413 (snippet
3414 '(begin
3415 ;; This test calls out to the internet.
3416 (delete-file "tests/test_proxy.py") #t))))
3417 (build-system python-build-system)
3418 (native-inputs
3419 `(("python-pytest" ,python-pytest)
3420 ("python-pytest-runner" ,python-pytest-runner)
3421 ("python-nose" ,python-nose)))
3422 (propagated-inputs
3423 `(("python-six" ,python-six)))
3424 (home-page "https://pythonpaste.readthedocs.io/")
3425 (synopsis
3426 "Python web development tools, focusing on WSGI")
3427 (description
3428 "Paste provides a variety of web development tools and middleware which
3429 can be nested together to build web applications. Paste's design closely
3430 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
3431 (license license:expat)))
3432
3433 (define-public python2-paste
3434 (package-with-python2 python-paste))
3435
3436 (define-public python-pastescript
3437 (package
3438 (name "python-pastescript")
3439 (version "2.0.2")
3440 (source
3441 (origin
3442 (method url-fetch)
3443 (uri (pypi-uri "PasteScript" version))
3444 (sha256
3445 (base32
3446 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
3447 (build-system python-build-system)
3448 (native-inputs
3449 `(("python-nose" ,python-nose)))
3450 (propagated-inputs
3451 `(("python-paste" ,python-paste)
3452 ("python-pastedeploy" ,python-pastedeploy)))
3453 (home-page (string-append "https://web.archive.org/web/20161025192515/"
3454 "http://pythonpaste.org/script/"))
3455 (arguments
3456 '(;; Unfortunately, this requires the latest unittest2,
3457 ;; but that requires traceback2 which requires linecache2 which requires
3458 ;; unittest2. So we're skipping tests for now.
3459 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
3460 ;; so in theory we could get around this situation somehow.)
3461 #:tests? #f))
3462 (synopsis
3463 "Pluggable command line tool for serving web applications and more")
3464 (description
3465 "PasteScript is a plugin-friendly command line tool which provides a
3466 variety of features, from launching web applications to bootstrapping project
3467 layouts.")
3468 (license license:expat)))
3469
3470 (define-public python2-pastescript
3471 (package-with-python2 python-pastescript))
3472
3473 (define-public python2-urlgrabber
3474 (package
3475 (name "python2-urlgrabber")
3476 (version "3.10.2")
3477 (source
3478 (origin
3479 (method url-fetch)
3480 (uri (pypi-uri "urlgrabber" version))
3481 (sha256
3482 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
3483 (build-system python-build-system)
3484 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
3485 (home-page "http://urlgrabber.baseurl.org")
3486 (synopsis "High-level cross protocol url-grabber")
3487 (description "@code{urlgrabber} is Python2 library that unifies access to
3488 files available on web, FTP or locally. It supports HTTP, FTP and file://
3489 protocols, it supports features like HTTP keep-alive, reget, throttling and
3490 more.")
3491 (license license:lgpl2.1+)))
3492
3493 (define-public python-pycares
3494 (package
3495 (name "python-pycares")
3496 (version "2.3.0")
3497 (source
3498 (origin
3499 (method url-fetch)
3500 (uri (pypi-uri "pycares" version))
3501 (sha256
3502 (base32
3503 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
3504 (build-system python-build-system)
3505 (arguments
3506 `(#:tests? #f)) ;tests require internet access
3507 (home-page "https://github.com/saghul/pycares")
3508 (synopsis "Python interface for @code{c-ares}")
3509 (description "@code{pycares} is a Python module which provides an
3510 interface to @code{c-ares}, a C library that performs DNS requests and
3511 name resolutions asynchronously.")
3512 (license license:expat)))
3513
3514 (define-public python-yarl
3515 (package
3516 (name "python-yarl")
3517 (version "1.1.1")
3518 (source
3519 (origin
3520 (method url-fetch)
3521 (uri (pypi-uri "yarl" version))
3522 (sha256
3523 (base32
3524 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
3525 (build-system python-build-system)
3526 (native-inputs
3527 `(("python-pytest" ,python-pytest)
3528 ("python-pytest-runner" ,python-pytest-runner)))
3529 (propagated-inputs
3530 `(("python-idna" ,python-idna)
3531 ("python-multidict" ,python-multidict)))
3532 (home-page "https://github.com/aio-libs/yarl/")
3533 (synopsis "Yet another URL library")
3534 (description "@code{yarl} module provides handy @code{URL} class
3535 for URL parsing and changing.")
3536 (license license:asl2.0)))
3537
3538 (define-public python-google-api-client
3539 (package
3540 (name "python-google-api-client")
3541 (version "1.6.7")
3542 (source
3543 (origin
3544 (method url-fetch)
3545 (uri (pypi-uri "google-api-python-client" version))
3546 (sha256
3547 (base32
3548 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
3549 (build-system python-build-system)
3550 (arguments
3551 '(#:tests? #f)) ; tests require internet access
3552 (native-inputs
3553 `(("python-httplib2" ,python-httplib2)
3554 ("python-six" ,python-six)
3555 ("python-oauth2client" ,python-oauth2client)
3556 ("python-uritemplate" ,python-uritemplate)))
3557 (home-page "https://github.com/google/google-api-python-client")
3558 (synopsis "Core Python library for accessing Google APIs")
3559 (description "Python client library for Google's discovery based APIs")
3560 (license license:asl2.0)))
3561
3562 (define-public python2-google-api-client
3563 (package-with-python2 python-google-api-client))
3564
3565 (define-public python-hawkauthlib
3566 (package
3567 (name "python-hawkauthlib")
3568 (version "2.0.0")
3569 (source
3570 (origin
3571 (method url-fetch)
3572 (uri (pypi-uri "hawkauthlib" version))
3573 (sha256
3574 (base32
3575 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
3576 (build-system python-build-system)
3577 (propagated-inputs
3578 `(("python-requests" ,python-requests)
3579 ("python-webob" ,python-webob)))
3580 (home-page "https://github.com/mozilla-services/hawkauthlib")
3581 (synopsis "Hawk Access Authentication protocol")
3582 (description
3583 "This is a low-level Python library for implementing Hawk Access Authentication,
3584 a simple HTTP request-signing scheme.")
3585 (license license:mpl2.0)))
3586
3587 (define-public python-pybrowserid
3588 (package
3589 (name "python-pybrowserid")
3590 (version "0.14.0")
3591 (source
3592 (origin
3593 (method url-fetch)
3594 (uri (pypi-uri "PyBrowserID" version))
3595 (sha256
3596 (base32
3597 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
3598 (build-system python-build-system)
3599 (propagated-inputs
3600 `(("python-requests" ,python-requests)))
3601 (native-inputs
3602 `(("python-mock" ,python-mock)))
3603 (home-page "https://github.com/mozilla/PyBrowserID")
3604 (synopsis "Python library for the BrowserID protocol")
3605 (description
3606 "This is a Python client library for the BrowserID protocol that
3607 underlies Mozilla Persona.")
3608 (license license:mpl2.0)))
3609
3610 (define-public python-pyfxa
3611 (package
3612 (name "python-pyfxa")
3613 (version "0.6.0")
3614 (source
3615 (origin
3616 (method url-fetch)
3617 (uri (pypi-uri "PyFxA" version))
3618 (sha256
3619 (base32
3620 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
3621 (build-system python-build-system)
3622 (arguments '(#:tests? #f)) ; 17 tests require network access
3623 (propagated-inputs
3624 `(("python-cryptography" ,python-cryptography)
3625 ("python-hawkauthlib" ,python-hawkauthlib)
3626 ("python-pybrowserid" ,python-pybrowserid)
3627 ("python-requests" ,python-requests)
3628 ("python-six" ,python-six)))
3629 (native-inputs
3630 `(("python-grequests" ,python-grequests)
3631 ("python-mock" ,python-mock)
3632 ("python-responses" ,python-responses)
3633 ("python-unittest2" ,python-unittest2)))
3634 (home-page "https://github.com/mozilla/PyFxA")
3635 (synopsis "Firefox Accounts client library for Python")
3636 (description
3637 "This is a Python library for interacting with the Firefox Accounts
3638 ecosystem.")
3639 (license license:mpl2.0)))
3640
3641 (define-public python-hyperlink
3642 (package
3643 (name "python-hyperlink")
3644 (version "19.0.0")
3645 (source
3646 (origin
3647 (method url-fetch)
3648 (uri (pypi-uri "hyperlink" version))
3649 (sha256
3650 (base32
3651 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
3652 (build-system python-build-system)
3653 (propagated-inputs
3654 `(("python-idna" ,python-idna)))
3655 (home-page "https://github.com/python-hyper/hyperlink")
3656 (synopsis "Python module to create immutable URLs according to spec")
3657 (description "This package provides a Python module to create immutable, and
3658 correct URLs for Python according to RFCs 3986 and 3987.")
3659 (license license:expat)))
3660
3661 (define-public python-treq
3662 (package
3663 (name "python-treq")
3664 (version "18.6.0")
3665 (source
3666 (origin
3667 (method url-fetch)
3668 (uri (pypi-uri "treq" version))
3669 (sha256
3670 (base32
3671 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
3672 (build-system python-build-system)
3673 (propagated-inputs
3674 `(("python-attrs" ,python-attrs)
3675 ("python-idna" ,python-idna)
3676 ("python-incremental" ,python-incremental)
3677 ("python-requests" ,python-requests)
3678 ("python-service-identity" ,python-service-identity)
3679 ("python-twisted" ,python-twisted)))
3680 (home-page "https://github.com/twisted/treq")
3681 (synopsis "Requests-like API built on top of twisted.web's Agent")
3682 (description "This package provides an HTTP library inspired by
3683 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3684 high level API for making HTTP requests when using Twisted.")
3685 (license license:expat)))
3686
3687 (define-public python-autobahn
3688 (package
3689 (name "python-autobahn")
3690 (version "19.2.1")
3691 (source
3692 (origin
3693 (method url-fetch)
3694 (uri (pypi-uri "autobahn" version))
3695 (sha256
3696 (base32
3697 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3698 (build-system python-build-system)
3699 (arguments
3700 ;; The tests fail to run:
3701 ;; https://github.com/crossbario/autobahn-python/issues/1117
3702 `(#:tests? #f))
3703 (propagated-inputs
3704 `(("python-cffi" ,python-cffi)
3705 ("python-twisted" ,python-twisted)
3706 ("python-txaio" ,python-txaio)))
3707 (home-page "https://crossbar.io/autobahn/")
3708 (synopsis "Web Application Messaging Protocol implementation")
3709 (description "This package provides an implementation of the @dfn{Web Application
3710 Messaging Protocol} (WAMP). WAMP connects components in distributed
3711 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3712 Calls (rRPC). It is ideal for distributed, multi-client and server applications
3713 such as IoT applications or multi-user database-driven business applications.")
3714 (license license:expat)))
3715
3716 (define-public python-ws4py
3717 (package
3718 (name "python-ws4py")
3719 (version "0.5.1")
3720 (source
3721 (origin
3722 (method url-fetch)
3723 (uri (pypi-uri "ws4py" version))
3724 (sha256
3725 (base32
3726 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3727 (build-system python-build-system)
3728 (arguments
3729 `(#:phases
3730 (modify-phases %standard-phases
3731 (add-after 'unpack 'python3.7-compatibility
3732 (lambda _
3733 (substitute* '("ws4py/server/tulipserver.py"
3734 "ws4py/async_websocket.py")
3735 (("asyncio.async")
3736 "asyncio.ensure_future"))
3737 #t))
3738 ;; We don't have a package for cherrypy.
3739 (add-after 'unpack 'remove-cherrypy-support
3740 (lambda _
3741 (delete-file "ws4py/server/cherrypyserver.py")
3742 #t)))))
3743 (propagated-inputs
3744 `(("python-gevent" ,python-gevent)
3745 ("python-tornado" ,python-tornado)))
3746 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3747 (synopsis "WebSocket client and server library")
3748 (description
3749 "This package provides a WebSocket client and server library for
3750 Python.")
3751 (license license:bsd-3)))
3752
3753 (define-public python-slugify
3754 (package
3755 (name "python-slugify")
3756 (version "4.0.1")
3757 (source
3758 (origin
3759 (method url-fetch)
3760 (uri (pypi-uri "python-slugify" version))
3761 (sha256
3762 (base32 "0w22fapghmzk3xdasc4dn7h8sl58l08d1h5zbf72dh80drv1g9b9"))))
3763 (propagated-inputs
3764 `(("python-unidecode" ,python-unidecode)))
3765 (arguments
3766 `(#:phases
3767 (modify-phases %standard-phases
3768 (replace 'check
3769 (lambda _
3770 (invoke "python" "test.py"))))))
3771 (build-system python-build-system)
3772 (home-page "https://github.com/un33k/python-slugify")
3773 (synopsis "Python Slugify application that handles Unicode")
3774 (description "This package provides a @command{slufigy} command and
3775 library to create slugs from unicode strings while keeping it DRY.")
3776 (license license:expat)))
3777
3778 (define-public python-branca
3779 (package
3780 (name "python-branca")
3781 (version "0.3.1")
3782 (source
3783 (origin
3784 (method url-fetch)
3785 (uri (pypi-uri "branca" version))
3786 (sha256
3787 (base32
3788 "0pmigd521j2228xf8x34vbx0niwvms7xl7za0lymywj0vydjqxiy"))))
3789 (build-system python-build-system)
3790 (propagated-inputs
3791 `(("python-jinja2" ,python-jinja2)
3792 ("python-six" ,python-six)))
3793 (native-inputs
3794 `(("python-pytest" ,python-pytest)))
3795 (home-page "https://github.com/python-visualization/branca")
3796 (synopsis "Generate complex HTML+JS pages with Python")
3797 (description "Generate complex HTML+JS pages with Python")
3798 (license license:expat)))
3799
3800 (define-public python-tinycss2
3801 (package
3802 (name "python-tinycss2")
3803 (version "1.0.2")
3804 (source
3805 (origin
3806 (method url-fetch)
3807 (uri (pypi-uri "tinycss2" version))
3808 (patches (search-patches "python-tinycss2-flake8-compat.patch"))
3809 (sha256
3810 (base32 "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4"))))
3811 (build-system python-build-system)
3812 (arguments
3813 `(#:phases
3814 (modify-phases %standard-phases
3815 (replace 'check
3816 (lambda _ (invoke "pytest"))))))
3817 (propagated-inputs
3818 `(("python-webencodings" ,python-webencodings)))
3819 (native-inputs
3820 `(("python-pytest-flake8" ,python-pytest-flake8)
3821 ("python-pytest-isort" ,python-pytest-isort)
3822 ("python-pytest-runner" ,python-pytest-runner)))
3823 (home-page "https://tinycss2.readthedocs.io/")
3824 (synopsis "Low-level CSS parser for Python")
3825 (description "@code{tinycss2} can parse strings, return Python objects
3826 representing tokens and blocks, and generate CSS strings corresponding to
3827 these objects.
3828
3829 Based on the CSS Syntax Level 3 specification, @code{tinycss2} knows the
3830 grammar of CSS but doesn’t know specific rules, properties or values supported
3831 in various CSS modules.")
3832 (license license:bsd-3)))
3833
3834 (define-public python-cssselect2
3835 (package
3836 (name "python-cssselect2")
3837 (version "0.2.2")
3838 (source
3839 (origin
3840 (method url-fetch)
3841 (uri (pypi-uri "cssselect2" version))
3842 (sha256
3843 (base32 "0skymzb4ncrm2zdsy80f53vi0arf776lvbp51hzh4ayp1il5lj3h"))))
3844 (build-system python-build-system)
3845 (arguments
3846 `(#:phases
3847 (modify-phases %standard-phases
3848 (replace 'check
3849 (lambda _ (invoke "pytest"))))))
3850 (propagated-inputs
3851 `(("python-tinycss2" ,python-tinycss2)))
3852 (native-inputs
3853 `(("python-pytest-cov" ,python-pytest-cov)
3854 ("python-pytest-flake8" ,python-pytest-flake8)
3855 ("python-pytest-isort" ,python-pytest-isort)
3856 ("python-pytest-runner" ,python-pytest-runner)))
3857 (home-page "https://cssselect2.readthedocs.io/")
3858 (synopsis "CSS selectors for Python ElementTree")
3859 (description "@code{cssselect2} is a straightforward implementation of
3860 CSS3 Selectors for markup documents (HTML, XML, etc.) that can be read by
3861 ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.).
3862
3863 Unlike the Python package @code{cssselect}, it does not translate selectors to
3864 XPath and therefore does not have all the correctness corner cases that are
3865 hard or impossible to fix in cssselect.")
3866 (license license:bsd-3)))
3867
3868 (define-public gunicorn
3869 (package
3870 (name "gunicorn")
3871 (version "20.0.4")
3872 (source
3873 (origin
3874 (method url-fetch)
3875 (uri (pypi-uri "gunicorn" version))
3876 (sha256
3877 (base32
3878 "09n6fc019bgrvph1s5h1lwhn2avcsprw6ncd203qhra3i8mvn10r"))))
3879 (outputs '("out" "doc"))
3880 (build-system python-build-system)
3881 (arguments
3882 `(#:phases
3883 (modify-phases %standard-phases
3884 (add-after 'build 'build-doc
3885 (lambda _
3886 (invoke "make" "-C" "docs" "PAPER=a4" "html" "info")
3887 (delete-file "docs/build/texinfo/Makefile")
3888 (delete-file "docs/build/texinfo/Gunicorn.texi")
3889 #t))
3890 (replace 'check
3891 (lambda _
3892 (setenv "PYTHONPATH"
3893 (string-append ".:" (getenv "PYTHONPATH")))
3894 (invoke "pytest")))
3895 (add-after 'install 'install-doc
3896 (lambda* (#:key outputs #:allow-other-keys)
3897 (let* ((doc (string-append (assoc-ref outputs "doc")
3898 "/share/doc/" ,name "-" ,version))
3899 (html (string-append doc "/html"))
3900 (info (string-append doc "/info"))
3901 (examples (string-append doc "/examples")))
3902 (mkdir-p html)
3903 (mkdir-p info)
3904 (mkdir-p examples)
3905 (copy-recursively "docs/build/html" html)
3906 (copy-recursively "docs/build/texinfo" info)
3907 (copy-recursively "examples" examples)
3908 (for-each (lambda (file)
3909 (copy-file file (string-append doc "/" file)))
3910 '("README.rst" "NOTICE" "LICENSE" "THANKS")))
3911 #t)))))
3912 (native-inputs
3913 `(("binutils" ,binutils) ;; for ctypes.util.find_library()
3914 ("python-aiohttp", python-aiohttp)
3915 ("python-pytest" ,python-pytest)
3916 ("python-pytest-cov" ,python-pytest-cov)
3917 ("python-sphinx" ,python-sphinx)
3918 ("texinfo" ,texinfo)))
3919 (home-page "https://gunicorn.org/")
3920 (synopsis "Python WSGI HTTP Server for UNIX")
3921 (description "Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP
3922 Server for UNIX. It’s a pre-fork worker model ported from Ruby’s
3923 Unicorn project. The Gunicorn server is broadly compatible with
3924 various web frameworks, simply implemented, light on server resources,
3925 and fairly speedy.")
3926 (license license:expat)))
3927
3928 ;; break cyclic dependency for python-aiohttp, which depends on gunicorn for
3929 ;; its tests
3930 (define-public gunicorn-bootstrap
3931 (package
3932 (inherit gunicorn)
3933 (name "gunicorn")
3934 (arguments `(#:tests? #f))
3935 (properties '((hidden? . #t)))
3936 (native-inputs `())))
3937
3938 (define-public python-translation-finder
3939 (package
3940 (name "python-translation-finder")
3941 (version "1.7")
3942 (source
3943 (origin
3944 (method url-fetch)
3945 (uri (pypi-uri "translation-finder" version))
3946 (sha256
3947 (base32
3948 "1pcy9z8gmb8x41gjhw9x0lkr0d2mv5mdxcs2hwg6q8mxs857j589"))))
3949 (build-system python-build-system)
3950 (arguments
3951 `(#:phases
3952 (modify-phases %standard-phases
3953 (add-before 'build 'remove-failing-test
3954 (lambda _
3955 (delete-file "translation_finder/test_api.py")
3956 #t)))))
3957 (propagated-inputs
3958 `(("python-chardet" ,python-chardet)
3959 ("python-pathlib2" ,python-pathlib2)
3960 ("python-ruamel.yaml" ,python-ruamel.yaml)
3961 ("python-six" ,python-six)))
3962 (native-inputs
3963 `(("python-codecov" ,python-codecov)
3964 ("python-codacy-coverage" ,python-codacy-coverage)
3965 ("python-pytest-cov" ,python-pytest-cov)
3966 ("python-pytest-runner" ,python-pytest-runner)
3967 ("python-twine" ,python-twine)))
3968 (home-page "https://weblate.org/")
3969 (synopsis "Translation file finder for Weblate")
3970 (description "This package provides a function to find translation file in
3971 the source code of a project. It supports many translation file formats and
3972 is part of the Weblate translation platform.")
3973 (license license:gpl3+)))
3974
3975 (define-public python-gitlab
3976 (package
3977 (name "python-gitlab")
3978 (version "1.15.0")
3979 (source
3980 (origin
3981 (method url-fetch)
3982 (uri (pypi-uri "python-gitlab" version))
3983 (sha256
3984 (base32
3985 "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5"))))
3986 (build-system python-build-system)
3987 (propagated-inputs
3988 `(("python-requests" ,python-requests)
3989 ("python-six" ,python-six)))
3990 (native-inputs
3991 `(("python-httmock" ,python-httmock)
3992 ("python-mock" ,python-mock)))
3993 (home-page
3994 "https://github.com/python-gitlab/python-gitlab")
3995 (synopsis "Interact with GitLab API")
3996 (description "This package provides an extended library for interacting
3997 with GitLab instances through their API.")
3998 (license license:lgpl3+)))
3999
4000 (define-public python-path-and-address
4001 (package
4002 (name "python-path-and-address")
4003 (version "2.0.1")
4004 (source
4005 (origin
4006 ;; The source distributed on PyPI doesn't include tests.
4007 (method git-fetch)
4008 (uri (git-reference
4009 (url "https://github.com/joeyespo/path-and-address")
4010 (commit (string-append "v" version))))
4011 (file-name (git-file-name name version))
4012 (sha256
4013 (base32
4014 "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6"))))
4015 (build-system python-build-system)
4016 (arguments
4017 `(#:phases
4018 (modify-phases %standard-phases
4019 (replace 'check
4020 (lambda* (#:key inputs outputs #:allow-other-keys)
4021 (add-installed-pythonpath inputs outputs)
4022 (invoke "py.test"))))))
4023 (native-inputs
4024 `(("python-pytest" ,python-pytest)))
4025 (home-page "https://github.com/joeyespo/path-and-address")
4026 (synopsis "Functions for command-line server tools used by humans")
4027 (description "Path-and-address resolves ambiguities of command-line
4028 interfaces, inferring which argument is the path, and which is the address.")
4029 (license license:expat)))
4030
4031 (define-public grip
4032 ;; No release by upstream for quite some time, some bugs fixed since. See:
4033 ;; https://github.com/joeyespo/grip/issues/304
4034 (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3"))
4035 (package
4036 (name "grip")
4037 (version (git-version "4.5.2" "1" commit))
4038 (source
4039 (origin
4040 (method git-fetch)
4041 (uri (git-reference
4042 (url "https://github.com/joeyespo/grip")
4043 (commit commit)))
4044 (file-name (git-file-name name version))
4045 (sha256
4046 (base32
4047 "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w"))))
4048 (build-system python-build-system)
4049 (propagated-inputs
4050 `(("python-docopt" ,python-docopt)
4051 ("python-flask" ,python-flask)
4052 ("python-markdown" ,python-markdown)
4053 ("python-path-and-address" ,python-path-and-address)
4054 ("python-pygments" ,python-pygments)
4055 ("python-requests" ,python-requests)))
4056 (native-inputs
4057 `(("python-pytest" ,python-pytest)
4058 ("python-responses" ,python-responses)))
4059 (arguments
4060 `(#:phases
4061 (modify-phases %standard-phases
4062 (replace 'check
4063 (lambda* (#:key inputs outputs #:allow-other-keys)
4064 (add-installed-pythonpath inputs outputs)
4065 (setenv "PATH" (string-append
4066 (getenv "PATH") ":"
4067 (assoc-ref %outputs "out") "/bin"))
4068 (invoke "py.test" "-m" "not assumption"))))))
4069 (home-page "https://github.com/joeyespo/grip")
4070 (synopsis "Preview Markdown files using the GitHub API")
4071 (description "Grip is a command-line server application written in Python
4072 that uses the GitHub Markdown API to render a local Markdown file. The styles
4073 and rendering come directly from GitHub, so you'll know exactly how it will
4074 appear. Changes you make to the file will be instantly reflected in the browser
4075 without requiring a page refresh.")
4076 (license license:expat))))
4077
4078 (define-public python-port-for
4079 (package
4080 (name "python-port-for")
4081 (version "0.4")
4082 (source
4083 (origin
4084 (method url-fetch)
4085 (uri (pypi-uri "port-for" version))
4086 (sha256
4087 (base32
4088 "1pncxlj25ggw99r0ijfbkq70gd7cbhqdx5ivsxy4jdp0z14cpda7"))))
4089 (build-system python-build-system)
4090 (arguments
4091 `(#:phases
4092 (modify-phases %standard-phases
4093 (add-after 'unpack 'use-urllib3
4094 (lambda _
4095 (substitute* "port_for/_download_ranges.py"
4096 (("urllib2") "urllib3"))
4097 #t)))))
4098 (propagated-inputs
4099 `(("python-urllib3" ,python-urllib3)))
4100 (native-inputs
4101 `(("python-mock" ,python-mock)))
4102 (home-page "https://github.com/kmike/port-for/")
4103 (synopsis "TCP localhost port finder and association manager")
4104 (description
4105 "This package provides a utility that helps with local TCP ports
4106 management. It can find an unused TCP localhost port and remember the
4107 association.")
4108 (license license:expat)))
4109
4110 (define-public python-livereload
4111 (package
4112 (name "python-livereload")
4113 (version "2.6.1")
4114 (source
4115 (origin
4116 (method url-fetch)
4117 (uri (pypi-uri "livereload" version))
4118 (sha256
4119 (base32
4120 "0rhggz185bxc3zjnfpmhcvibyzi86i624za1lfh7x7ajsxw4y9c9"))))
4121 (build-system python-build-system)
4122 (propagated-inputs
4123 `(("python-six" ,python-six)
4124 ("python-tornado" ,python-tornado)))
4125 (home-page "https://github.com/lepture/python-livereload")
4126 (synopsis "Python LiveReload")
4127 (description
4128 "Python LiveReload provides a command line utility, @command{livereload},
4129 for starting a web server in a directory. It can trigger arbitrary commands
4130 and serve updated contents upon changes to the directory.")
4131 (license license:bsd-3)))
4132
4133 (define-public python-vf-1
4134 (package
4135 (name "python-vf-1")
4136 (version "0.0.11")
4137 (source
4138 (origin
4139 (method url-fetch)
4140 (uri (pypi-uri "VF-1" version))
4141 (sha256
4142 (base32
4143 "0xlqsaxsiayk1sd07kpz8abbcnab582y29a1y4882fq6j4gma5xi"))))
4144 (build-system python-build-system)
4145 (home-page "https://github.com/solderpunk/VF-1")
4146 (synopsis "Command line gopher client")
4147 (description "@code{VF-1} is a command line gopher client with
4148 @acronym{TLS, Transport Layer Security} support.")
4149 (license license:bsd-2)))
4150
4151 (define-public python-websockets
4152 (package
4153 (name "python-websockets")
4154 (version "8.1")
4155 (source
4156 (origin
4157 (method url-fetch)
4158 (uri (pypi-uri "websockets" version))
4159 (sha256
4160 (base32
4161 "03s3ml6sbki24aajllf8aily0xzrn929zxi84p50zkkbikdd4raw"))))
4162 (build-system python-build-system)
4163 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
4164 (home-page "https://github.com/aaugustin/websockets")
4165 (synopsis
4166 "Python implementation of the WebSocket Protocol (RFC 6455 & 7692)")
4167 (description
4168 "@code{websockets} is a library for building WebSocket servers and clients
4169 in Python with a focus on correctness and simplicity.
4170
4171 Built on top of @code{asyncio}, Python's standard asynchronous I/O framework,
4172 it provides an elegant coroutine-based API.")
4173 (license license:bsd-3)))
4174
4175 (define-public python-selenium
4176 (package
4177 (name "python-selenium")
4178 (version "3.141.0")
4179 (source
4180 (origin
4181 (method url-fetch)
4182 (uri (pypi-uri "selenium" version))
4183 (sha256
4184 (base32
4185 "039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy"))))
4186 (build-system python-build-system)
4187 (propagated-inputs
4188 `(("python-urllib3" ,python-urllib3)))
4189 (home-page
4190 "https://github.com/SeleniumHQ/selenium/")
4191 (synopsis "Python bindings for Selenium")
4192 (description "Selenium enables web browser automation.
4193 Selenium specifically provides infrastructure for the W3C WebDriver specification
4194 — a platform and language-neutral coding interface compatible with all
4195 major web browsers.")
4196 (license license:asl2.0)))
4197
4198 (define-public python-rapidjson
4199 (package
4200 (name "python-rapidjson")
4201 (version "0.9.1")
4202 (source
4203 (origin
4204 (method url-fetch)
4205 (uri (pypi-uri "python-rapidjson" version))
4206 (sha256
4207 (base32
4208 "18cl2dhx3gds5vg52jxmh9wjlbiy8dx06c3n482rfpdi9dzbv05d"))
4209 (modules '((guix build utils)))
4210 (snippet
4211 '(begin (delete-file-recursively "rapidjson") #t))))
4212 (build-system python-build-system)
4213 (arguments
4214 `(#:configure-flags
4215 (list (string-append "--rj-include-dir="
4216 (assoc-ref %build-inputs "rapidjson")
4217 "/include/rapidjson"))
4218 #:phases
4219 (modify-phases %standard-phases
4220 (replace 'build
4221 (lambda* (#:key inputs #:allow-other-keys)
4222 (invoke "python" "setup.py" "build"
4223 (string-append "--rj-include-dir="
4224 (assoc-ref %build-inputs "rapidjson")
4225 "/include/rapidjson"))))
4226 (replace 'check
4227 (lambda* (#:key inputs outputs #:allow-other-keys)
4228 (add-installed-pythonpath inputs outputs)
4229 ;; Some tests are broken.
4230 (delete-file "tests/test_base_types.py")
4231 (delete-file "tests/test_validator.py")
4232 (invoke "python" "-m" "pytest" "tests"))))))
4233 (native-inputs
4234 `(("rapidjson" ,rapidjson)
4235 ("python-pytest" ,python-pytest)
4236 ("python-pytz" ,python-pytz)))
4237 (home-page "https://github.com/python-rapidjson/python-rapidjson")
4238 (synopsis "Python wrapper around rapidjson")
4239 (description "This package provides a python wrapper around rapidjson.")
4240 (license license:expat)))
4241
4242 (define-public python-venusian
4243 (package
4244 (name "python-venusian")
4245 (version "3.0.0")
4246 (source
4247 (origin
4248 (method url-fetch)
4249 (uri (pypi-uri "venusian" version))
4250 (sha256
4251 (base32 "0f7f67dkgxxcjfhpdd5frb9pszkf04lyzzpn5069q0xi89r2p17n"))))
4252 (build-system python-build-system)
4253 (native-inputs
4254 `(("python-pytest" ,python-pytest)
4255 ("python-runner" ,python-pytest-runner)
4256 ("python-pytest-cov" ,python-pytest-cov)))
4257 (arguments '(#:test-target "pytest"))
4258 (home-page "https://docs.pylonsproject.org/projects/venusian")
4259 (synopsis "Library for defering decorator actions")
4260 (description
4261 "Venusian is a library which allows framework authors to defer decorator
4262 actions. Instead of taking actions when a function (or class) decorator is
4263 executed at import time, you can defer the action usually taken by the
4264 decorator until a separate scan phase.")
4265 (license license:repoze)))
4266
4267 (define-public python-zope-deprecation
4268 (package
4269 (name "python-zope-deprecation")
4270 (version "4.4.0")
4271 (source (origin
4272 (method url-fetch)
4273 (uri (pypi-uri "zope.deprecation" version))
4274 (sha256
4275 (base32
4276 "1pz2cv7gv9y1r3m0bdv7ks1alagmrn5msm5spwdzkb2by0w36i8d"))))
4277 (build-system python-build-system)
4278 (native-inputs `())
4279 (propagated-inputs `())
4280 (home-page "https://zopedeprecation.readthedocs.io/")
4281 (synopsis "Function for marking deprecations")
4282 (description "The @code{zope.deprecation} module provides a function for
4283 marking modules, classes, functions, methods and properties as deprecated,
4284 displaying warnings when usaged in application code.")
4285 (license license:zpl2.1)))
4286
4287 (define-public python-translationstring
4288 (package
4289 (name "python-translationstring")
4290 (version "1.3")
4291 (source (origin
4292 (method url-fetch)
4293 (uri (pypi-uri "translationstring" version))
4294 (sha256
4295 (base32
4296 "0bdpcnd9pv0131dl08h4zbcwmgc45lyvq3pa224xwan5b3x4rr2f"))))
4297 (build-system python-build-system)
4298 (home-page "http://docs.pylonsproject.org/projects/translationstring")
4299 (synopsis "Internationalization tooling for the Pylons project")
4300 (description "This package provides a library used by various Pylons
4301 project packages for internationalization (i18n) duties related to
4302 translation.")
4303 (license license:repoze)))
4304
4305 (define-public python-plaster
4306 (package
4307 (name "python-plaster")
4308 (version "1.0")
4309 (source (origin
4310 (method url-fetch)
4311 (uri (pypi-uri "plaster" version))
4312 (sha256
4313 (base32
4314 "1hy8k0nv2mxq94y5aysk6hjk9ryb4bsd13g83m60hcyzxz3wflc3"))))
4315 (build-system python-build-system)
4316 (native-inputs
4317 `(("python-pytest" ,python-pytest)))
4318 (home-page "https://docs.pylonsproject.org/projects/plaster/en/latest/")
4319 (synopsis "Configuration loader for multiple config file formats")
4320 (description
4321 "Plaster is a loader interface around multiple config file formats. It
4322 exists to define a common API for applications to use when they wish to load
4323 configuration. The library itself does not aim to handle anything except a
4324 basic API that applications may use to find and load configuration settings.
4325 Any specific constraints should be implemented in a pluggable loader which can
4326 be registered via an entrypoint.")
4327 (license license:repoze)))
4328
4329 (define-public python-plaster-pastedeploy
4330 (package
4331 (name "python-plaster-pastedeploy")
4332 (version "0.7")
4333 (source (origin
4334 (method url-fetch)
4335 (uri (pypi-uri "plaster_pastedeploy" version))
4336 (sha256
4337 (base32
4338 "1zg7gcsvc1kzay1ry5p699rg2qavfsxqwl17mqxzr0gzw6j9679r"))))
4339 (build-system python-build-system)
4340 (native-inputs
4341 `(("python-pytest" ,python-pytest)))
4342 (propagated-inputs
4343 `(("python-plaster" ,python-plaster)
4344 ("python-pastedeploy" ,python-pastedeploy)))
4345 (home-page "https://github.com/Pylons/plaster_pastedeploy")
4346 (synopsis "Plugin for python-plaster adding PasteDeploy syntax")
4347 (description
4348 "This plugin for @code{python-plaster} adds support for PasteDeploy
4349 syntax, it provides a plaster @code{Loader} object that can parse ini files
4350 according to the standard set by PasteDeploy ")
4351 (license license:expat)))
4352
4353 (define-public python-hupper
4354 (package
4355 (name "python-hupper")
4356 (version "1.10.2")
4357 (source (origin
4358 (method url-fetch)
4359 (uri (pypi-uri "hupper" version))
4360 (sha256
4361 (base32
4362 "0am0p6g5cz6xmcaf04xq8q6dzdd9qz0phj6gcmpsckf2mcyza61q"))))
4363 (build-system python-build-system)
4364 (arguments '(#:test-target "pytest"))
4365 (native-inputs
4366 `(("python-pytest" ,python-pytest)
4367 ("python-pytest-runner" ,python-pytest-runner)
4368 ("python-watchdog" ,python-watchdog)
4369 ("python-mock" ,python-mock)
4370 ("python-pytest-cov" ,python-pytest-cov)))
4371 (propagated-inputs
4372 `(("python-pytz" ,python-pytz)))
4373 (home-page "https://readthedocs.org/projects/hupper")
4374 (synopsis "Integrated process monitor tracking changes to imported Python files")
4375 (description
4376 "Hupper is an integrated process monitor that will track changes to any
4377 imported Python files in sys.modules as well as custom paths. When files are
4378 changed the process is restarted.")
4379 (license license:expat)))
4380
4381 (define-public python-pyramid
4382 (package
4383 (name "python-pyramid")
4384 (version "1.10.4")
4385 (source (origin
4386 (method url-fetch)
4387 (uri (pypi-uri "pyramid" version))
4388 (sha256
4389 (base32
4390 "0rkxs1ajycg2zh1c94xlmls56mx5m161sn8112skj0amza6cn36q"))))
4391 (build-system python-build-system)
4392 (propagated-inputs
4393 `(("python-hupper" ,python-hupper)
4394 ("python-plaster-pastedeploy" ,python-plaster-pastedeploy)
4395 ("python-translationstring" ,python-translationstring)
4396 ("python-venusian" ,python-venusian)
4397 ("python-webob" ,python-webob)
4398 ("python-zope-deprecation" ,python-zope-deprecation)
4399 ("python-zope-interface" ,python-zope-interface)
4400 ("python-webtest" ,python-webtest)
4401 ("python-zope-component" ,python-zope-component)
4402 ("python-plaster" ,python-plaster)))
4403 (home-page "https://trypyramid.com/")
4404 (synopsis "Python web-framework suitable for small and large sites")
4405 (description
4406 "Pyramid makes it easy to write web applications. From minimal
4407 request/response web apps to larger, grown applications.")
4408 (license license:repoze)))
4409
4410 (define-public python-random-user-agent
4411 (package
4412 (name "python-random-user-agent")
4413 (version "1.0.1")
4414 (source
4415 (origin
4416 (method url-fetch)
4417 (uri (pypi-uri "random_user_agent" version))
4418 (sha256
4419 (base32
4420 "04nhzdh2ki7ybhjrmghxci6hcm6i03vvin2q2ynj87fbr1pa534g"))))
4421 (build-system python-build-system)
4422 (home-page "https://github.com/Luqman-Ud-Din/random_user_agent")
4423 (synopsis "List of user agents")
4424 (description
4425 "This package provides a list of user agents, from a collection of more
4426 than 326,000 known user-agents. Users can pick a random one, or select one
4427 based on filters.")
4428 (license license:expat)))
4429
4430 (define-public python-flask-restx
4431 (package
4432 (name "python-flask-restx")
4433 (version "0.2.0")
4434 (source
4435 ;; We fetch from the Git repo because there are no tests in the PyPI
4436 ;; archive.
4437 (origin
4438 (method git-fetch)
4439 (uri (git-reference
4440 (url "https://github.com/python-restx/flask-restx")
4441 (commit version)))
4442 (file-name (git-file-name name version))
4443 (sha256
4444 (base32 "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7"))))
4445 (build-system python-build-system)
4446 (propagated-inputs
4447 `(("python-aniso8601" ,python-aniso8601)
4448 ("python-flask" ,python-flask)
4449 ("python-jsonschema" ,python-jsonschema)
4450 ("python-pytz" ,python-pytz)))
4451 (native-inputs
4452 `(("python-blinker" ,python-blinker)
4453 ("python-faker" ,python-faker)
4454 ("python-pytest" ,python-pytest)
4455 ("python-pytest-benchmark"
4456 ,python-pytest-benchmark)
4457 ("python-pytest-flask" ,python-pytest-flask)
4458 ("python-pytest-mock" ,python-pytest-mock)))
4459 (arguments
4460 `(#:phases
4461 (modify-phases %standard-phases
4462 (replace 'check
4463 (lambda _
4464 (invoke "pytest" "--benchmark-skip" "-k"
4465 ;; Those tests need internet access
4466 "not test_check and not test_valid_value_check"))))))
4467 (home-page "https://github.com/python-restx/flask-restx")
4468 (synopsis
4469 "Framework for fast, easy and documented API development with Flask")
4470 (description
4471 "Flask-RESTX is an extension for Flask that adds support for quickly building
4472 REST APIs. Flask-RESTX encourages best practices with minimal setup. If you are familiar
4473 with Flask, Flask-RESTX should be easy to pick up. It provides a coherent collection of
4474 decorators and tools to describe your API and expose its documentation properly using
4475 Swagger.")
4476 (license license:bsd-3)))
4477
4478 (define-public python-manuel
4479 (package
4480 (name "python-manuel")
4481 (version "1.10.1")
4482 (source
4483 (origin
4484 (method url-fetch)
4485 (uri (pypi-uri "manuel" version))
4486 (sha256
4487 (base32
4488 "1bdzay7j70fly5fy6wbdi8fbrxjrrlxnxnw226rwry1c8a351rpy"))))
4489 (build-system python-build-system)
4490 (propagated-inputs
4491 `(("python-six" ,python-six)))
4492 (native-inputs
4493 `(("python-zope-testing" ,python-zope-testing)))
4494 (home-page "https://pypi.org/project/manuel/")
4495 (synopsis "Build tested documentation")
4496 (description
4497 "Manuel lets you mix and match traditional doctests with custom test syntax.")
4498 (license license:asl2.0)))
4499
4500 (define-public python-persistent
4501 (package
4502 (name "python-persistent")
4503 (version "4.6.4")
4504 (source
4505 (origin
4506 (method url-fetch)
4507 (uri (pypi-uri "persistent" version))
4508 (sha256
4509 (base32
4510 "0imm9ji03lhkpcfmhid7x5209ix8g2rlgki9ik1qxks4b8sm8gzq"))))
4511 (build-system python-build-system)
4512 (propagated-inputs
4513 `(("python-cffi" ,python-cffi)
4514 ("python-zope-interface" ,python-zope-interface)))
4515 (native-inputs
4516 `(("python-manuel" ,python-manuel)
4517 ("python-zope-testrunner" ,python-zope-testrunner)))
4518 (home-page "https://github.com/zopefoundation/persistent/")
4519 (synopsis "Translucent persistent objects")
4520 (description "This package contains a generic persistence implementation for
4521 Python. It forms the core protocol for making objects interact
4522 \"transparently\" with a database such as the ZODB.")
4523 (license license:zpl2.1)))
4524
4525 (define-public python-btrees
4526 (package
4527 (name "python-btrees")
4528 (version "4.7.2")
4529 (source
4530 (origin
4531 (method url-fetch)
4532 (uri (pypi-uri "BTrees" version))
4533 (sha256
4534 (base32
4535 "0iiq0g9k1g6qgqq84q9h6639vlvzznk1rgdm0rfcnnqkbkmsbr3w"))))
4536 (build-system python-build-system)
4537 (propagated-inputs
4538 `(("python-persistent" ,python-persistent)
4539 ("python-zope-interface" ,python-zope-interface)))
4540 (native-inputs
4541 `(("python-persistent" ,python-persistent)
4542 ("python-transaction" ,python-transaction)
4543 ("python-zope-testrunner" ,python-zope-testrunner)))
4544 (home-page "https://github.com/zopefoundation/BTrees")
4545 (synopsis "Scalable persistent object containers")
4546 (description
4547 "This package contains a set of persistent object containers built around a
4548 modified BTree data structure. The trees are optimized for use inside ZODB's
4549 \"optimistic concurrency\" paradigm, and include explicit resolution of
4550 conflicts detected by that mechanism.")
4551 (license license:zpl2.1)))
4552
4553 (define-public python-transaction
4554 (package
4555 (name "python-transaction")
4556 (version "3.0.0")
4557 (source
4558 (origin
4559 (method url-fetch)
4560 (uri (pypi-uri "transaction" version))
4561 (sha256
4562 (base32
4563 "0bdaks31bgfh78wnj3sij24bfysmqk25crsis6amz8kzrc0d82iv"))))
4564 (build-system python-build-system)
4565 (propagated-inputs
4566 `(("python-zope-interface" ,python-zope-interface)))
4567 (native-inputs
4568 `(("python-coverage" ,python-coverage)
4569 ("python-mock" ,python-mock)
4570 ("python-nose" ,python-nose)))
4571 (home-page "https://github.com/zopefoundation/transaction")
4572 (synopsis "Transaction management for Python")
4573 (description "This package contains a generic transaction implementation
4574 for Python. It is mainly used by the ZODB.")
4575 (license license:zpl2.1)))
4576
4577 (define-public python-robot-detection
4578 (package
4579 (name "python-robot-detection")
4580 (version "0.4")
4581 (source
4582 (origin
4583 (method url-fetch)
4584 (uri (pypi-uri "robot-detection" version))
4585 (sha256
4586 (base32
4587 "1xd2jm3yn31bnk1kqzggils2rxj26ylxsfz3ap7bhr3ilhnbg3rx"))))
4588 (build-system python-build-system)
4589 (arguments '(#:tests? #f)) ; Tests not shipped in pypi release.
4590 (propagated-inputs `(("python-six" ,python-six)))
4591 (home-page "https://github.com/rory/robot-detection")
4592 (synopsis "Detect web crawlers")
4593 (description
4594 "@code{robot_detection} is a python module to detect if a given HTTP User
4595 Agent is a web crawler. It uses the list of registered robots from
4596 @url{http://www.robotstxt.org}.")
4597 (license license:gpl3+)))
4598
4599 (define-public python-pysolr
4600 (package
4601 (name "python-pysolr")
4602 (version "3.9.0")
4603 (source
4604 (origin
4605 (method url-fetch)
4606 (uri (pypi-uri "pysolr" version))
4607 (sha256
4608 (base32
4609 "1rj5jmscvxjwcmlfi6hmkj44l4x6n3ln5p7d8d18j566hzmmzw3f"))))
4610 (build-system python-build-system)
4611 (arguments
4612 '(#:tests? #f)) ; Tests require network access.
4613 (propagated-inputs
4614 `(("python-requests" ,python-requests)))
4615 (native-inputs
4616 `(("python-setuptools-scm" ,python-setuptools-scm)))
4617 (home-page "https://github.com/django-haystack/pysolr/")
4618 (synopsis "Lightweight python wrapper for Apache Solr")
4619 (description
4620 "This module provides an interface that queries the Apache Solr server
4621 using a pure Python implementation.")
4622 (license license:bsd-3)))
4623
4624 (define-public python-http-ece
4625 (package
4626 (name "python-http-ece")
4627 (version "1.1.0")
4628 (source
4629 (origin
4630 (method git-fetch)
4631 (uri (git-reference
4632 (url "https://github.com/web-push-libs/encrypted-content-encoding")
4633 (commit (string-append "v" version))))
4634 (file-name (git-file-name name version))
4635 (sha256
4636 (base32
4637 "0bp4cc0xc123i72h80ax3qz3ixfwx3j7pw343kc7i6kdvfi8klx7"))))
4638 (build-system python-build-system)
4639 (arguments
4640 `(#:phases
4641 (modify-phases %standard-phases
4642 (add-after 'unpack 'change-directory
4643 (lambda _ (chdir "python") #t)))))
4644 (propagated-inputs
4645 `(("python-cryptography" ,python-cryptography)))
4646 (native-inputs
4647 `(("python-coverage" ,python-coverage)
4648 ("python-flake8" ,python-flake8)
4649 ("python-mock" ,python-mock)
4650 ("python-nose" ,python-nose)))
4651 (home-page "https://github.com/web-push-libs/encrypted-content-encoding")
4652 (synopsis "Encrypted Content Encoding for HTTP")
4653 (description
4654 "This package provices a simple implementation of Encrypted Content
4655 Encoding for HTTP.")
4656 (license license:expat)))
4657
4658 (define-public python-cloudscraper
4659 (package
4660 (name "python-cloudscraper")
4661 (version "1.2.46")
4662 (source
4663 (origin
4664 (method url-fetch)
4665 (uri (pypi-uri "cloudscraper" version))
4666 (sha256
4667 (base32
4668 "1br4p648yassywsd7whz1c7s10rwdysnd7wdqfjq9bksqfxrac3r"))
4669 (modules '((guix build utils)))
4670 (snippet
4671 '(with-directory-excursion "cloudscraper"
4672 (for-each delete-file
4673 '("captcha/2captcha.py"
4674 "captcha/9kw.py"
4675 "captcha/anticaptcha.py"
4676 "captcha/deathbycaptcha.py"
4677 "interpreters/js2py.py"
4678 "interpreters/v8.py"))
4679 #t))))
4680 (build-system python-build-system)
4681 (propagated-inputs
4682 `(("python-requests" ,python-requests)
4683 ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
4684 ("python-pyparsing" ,python-pyparsing-2.4.7)))
4685 (native-inputs
4686 `(("python-pytest" ,python-pytest)))
4687 (home-page "https://github.com/venomous/cloudscraper")
4688 (synopsis "Cloudflare anti-bot bypass")
4689 (description
4690 "This module acts as a webbrowser solving Cloudflare's Javascript
4691 challenges.")
4692 (license license:expat)))