gnu: Add python2-ws4py-for-kaldi-gstreamer-server.
[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 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 Marius Bakke <mbakke@fastmail.com>
8 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
10 ;;; Copyright © 2016, 2017 Julien Lepiller <julien@lepiller.eu>
11 ;;; Copyright © 2016, 2017 Nils Gillmann <ng0@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 Hartmut Goebel <h.goebel@crazy-compilers.com>
17 ;;; Copyright © 2016, 2017, 2018, 2019 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 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 ;;;
32 ;;; This file is part of GNU Guix.
33 ;;;
34 ;;; GNU Guix is free software; you can redistribute it and/or modify it
35 ;;; under the terms of the GNU General Public License as published by
36 ;;; the Free Software Foundation; either version 3 of the License, or (at
37 ;;; your option) any later version.
38 ;;;
39 ;;; GNU Guix is distributed in the hope that it will be useful, but
40 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
41 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42 ;;; GNU General Public License for more details.
43 ;;;
44 ;;; You should have received a copy of the GNU General Public License
45 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
46
47 (define-module (gnu packages python-web)
48 #:use-module (guix packages)
49 #:use-module (guix download)
50 #:use-module (guix git-download)
51 #:use-module (guix build-system python)
52 #:use-module (guix utils)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages check)
55 #:use-module (gnu packages compression)
56 #:use-module (gnu packages curl)
57 #:use-module (gnu packages databases)
58 #:use-module (gnu packages django)
59 #:use-module (gnu packages libffi)
60 #:use-module (gnu packages pkg-config)
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages python-crypto)
63 #:use-module (gnu packages python-xyz)
64 #:use-module (gnu packages tls)
65 #:use-module (gnu packages time)
66 #:use-module (gnu packages web)
67 #:use-module (gnu packages xml)
68 #:use-module ((guix licenses) #:prefix license:)
69 #:use-module (srfi srfi-1))
70
71 (define-public python-aiohttp
72 (package
73 (name "python-aiohttp")
74 (version "3.4.4")
75 (source
76 (origin
77 (method url-fetch)
78 (uri (pypi-uri "aiohttp" version))
79 (sha256
80 (base32
81 "1ykm6kdjkrg556j0zd7dx2l1rsrbh0d9g27ivr6dmaahz9pyrbsi"))))
82 (build-system python-build-system)
83 (arguments
84 `(#:tests? #f)) ;missing pytest-timeout
85 (propagated-inputs
86 `(("python-aiodns" ,python-aiodns)
87 ("python-async-timeout" ,python-async-timeout)
88 ("python-attrs" ,python-attrs)
89 ("python-chardet" ,python-chardet)
90 ("python-idna-ssl" ,python-idna-ssl)
91 ("python-multidict" ,python-multidict)
92 ("python-yarl" ,python-yarl)))
93 (home-page "https://github.com/aio-libs/aiohttp/")
94 (synopsis "Async HTTP client/server framework (asyncio)")
95 (description "@code{aiohttp} is an asynchronous HTTP client/server
96 framework.
97
98 Its main features are:
99 @itemize
100 @item Supports both client and server side of HTTP protocol.
101 @item Supports both client and server Web-Sockets out-of-the-box without the
102 Callback Hell.
103 @item Web-server has middlewares and pluggable routing.
104 @end itemize")
105 (license license:asl2.0)))
106
107 (define-public python-aiohttp-socks
108 (package
109 (name "python-aiohttp-socks")
110 (version "0.2.2")
111 (source
112 (origin
113 (method url-fetch)
114 (uri (pypi-uri "aiohttp_socks" version))
115 (sha256
116 (base32
117 "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
118 (build-system python-build-system)
119 (propagated-inputs
120 `(("python-aiohttp" ,python-aiohttp)))
121 (home-page "https://github.com/romis2012/aiohttp-socks")
122 (synopsis "SOCKS proxy connector for aiohttp")
123 (description "This package provides a SOCKS proxy connector for
124 aiohttp. It supports SOCKS4(a) and SOCKS5.")
125 (license license:asl2.0)))
126
127 (define-public python-aiodns
128 (package
129 (name "python-aiodns")
130 (version "1.1.1")
131 (source
132 (origin
133 (method url-fetch)
134 (uri (pypi-uri "aiodns" version))
135 (sha256
136 (base32
137 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
138 (build-system python-build-system)
139 (inputs
140 `(("python-pycares" ,python-pycares)))
141 (arguments
142 `(#:tests? #f)) ;tests require internet access
143 (home-page "http://github.com/saghul/aiodns")
144 (synopsis "Simple DNS resolver for asyncio")
145 (description "@code{aiodns} provides a simple way for doing
146 asynchronous DNS resolutions with a synchronous looking interface by
147 using @url{https://github.com/saghul/pycares,pycares}.")
148 (license license:expat)))
149
150 (define-public python-aiorpcx
151 (package
152 (name "python-aiorpcx")
153 (version "0.10.2")
154 (source
155 (origin
156 (method url-fetch)
157 (uri (pypi-uri "aiorpcX" version))
158 (sha256
159 (base32
160 "1p88k15jh0d2a18pnnbfcamsqi2bxvmmhpizmdlxfdxf8vy5ggyj"))))
161 (build-system python-build-system)
162 (propagated-inputs
163 `(("python-attrs" ,python-attrs)))
164 (home-page "https://github.com/kyuupichan/aiorpcX")
165 (synopsis "Generic asyncio RPC implementation")
166 (description
167 "aiorpcX is a generic asyncio library implementation of RPC suitable for
168 an application that is a client, server or both.
169
170 The package includes a module with full coverage of JSON RPC versions 1.0 and
171 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
172 comes with a SOCKS proxy client.")
173 (license (list license:expat license:bsd-2))))
174
175 (define-public python-falcon
176 (package
177 (name "python-falcon")
178 (version "1.4.1")
179 (source
180 (origin
181 (method url-fetch)
182 (uri (pypi-uri "falcon" version))
183 (sha256
184 (base32
185 "1i0vmqsk24z4biirqhpvas9h28wy7nmpy3jvnb6rz2imq04zd09r"))))
186 (build-system python-build-system)
187 (arguments
188 `(#:phases
189 (modify-phases %standard-phases
190 (replace 'check
191 (lambda _
192 (invoke "pytest"))))))
193 (propagated-inputs
194 `(("python-mimeparse" ,python-mimeparse)
195 ("python-six" ,python-six)))
196 (native-inputs
197 `(("python-cython" ,python-cython) ;for faster binaries
198 ("python-pytest" ,python-pytest)
199 ("python-pyyaml" ,python-pyyaml)
200 ("python-requests" ,python-requests)
201 ("python-testtools" ,python-testtools)
202 ("python-jsonschema" ,python-jsonschema)
203 ("python-msgpack" ,python-msgpack)))
204 (home-page "https://falconframework.org")
205 (synopsis
206 "Web framework for building APIs and application backends")
207 (description
208 "Falcon is a web API framework for building microservices, application
209 backends and higher-level frameworks. Among its features are:
210 @itemize
211 @item Optimized and extensible code base
212 @item Routing via URI templates and REST-inspired resource
213 classes
214 @item Access to headers and bodies through request and response
215 classes
216 @item Request processing via middleware components and hooks
217 @item Idiomatic HTTP error responses
218 @item Straightforward exception handling
219 @item Unit testing support through WSGI helpers and mocks
220 @item Compatible with both CPython and PyPy
221 @item Cython support for better performance when used with CPython
222 @end itemize")
223 (license license:asl2.0)))
224
225 (define-public python2-falcon
226 (package-with-python2 python-falcon))
227
228 (define-public python-falcon-cors
229 (package
230 (name "python-falcon-cors")
231 (version "1.1.7")
232 (source
233 (origin
234 (method url-fetch)
235 (uri (pypi-uri "falcon-cors" version))
236 (sha256
237 (base32
238 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
239 (build-system python-build-system)
240 (native-inputs
241 `(("python-falcon" ,python-falcon)))
242 (home-page
243 "https://github.com/lwcolton/falcon-cors")
244 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
245 (description "This middleware provides @dfn{cross-origin resource
246 sharing} (CORS) support for Falcon. It allows applying a specially crafted
247 CORS object to the incoming requests, enabling the ability to serve resources
248 over a different origin than that of the web application.")
249 (license license:asl2.0)))
250
251 (define-public python2-falcon-cors
252 (package-with-python2 python-falcon-cors))
253
254 (define-public python-furl
255 (package
256 (name "python-furl")
257 (version "0.5.6")
258 (source
259 (origin
260 (method url-fetch)
261 (uri (pypi-uri "furl" version))
262 (sha256
263 (base32
264 "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
265 (build-system python-build-system)
266 (propagated-inputs
267 `(("python-six" ,python-six)
268 ("python-orderedmultidict" ,python-orderedmultidict)))
269 (native-inputs
270 `(("python-pycodestyle" ,python-pycodestyle)))
271 (home-page "https://github.com/gruns/furl")
272 (synopsis "URL manipulation in Python")
273 (description "Furl provides an easy-to-use alternative to the
274 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
275 (license license:unlicense)))
276
277 (define-public python2-furl
278 (package-with-python2 python-furl))
279
280 (define-public python-httplib2
281 (package
282 (name "python-httplib2")
283 (version "0.9.2")
284 (source
285 (origin
286 (method url-fetch)
287 (uri (pypi-uri "httplib2" version))
288 (sha256
289 (base32
290 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
291 (build-system python-build-system)
292 (home-page "https://github.com/jcgregorio/httplib2")
293 (synopsis "Comprehensive HTTP client library")
294 (description
295 "A comprehensive HTTP client library supporting many features left out of
296 other HTTP libraries.")
297 (license license:expat)))
298
299 (define-public python2-httplib2
300 (package-with-python2 python-httplib2))
301
302 (define-public python-mechanicalsoup
303 (package
304 (name "python-mechanicalsoup")
305 (version "0.11.0")
306 (source
307 (origin
308 (method url-fetch)
309 (uri (pypi-uri "MechanicalSoup" version))
310 (sha256
311 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
312 (build-system python-build-system)
313 (arguments
314 ;; TODO: Enable tests when python-flake8@3.5 hits master.
315 `(#:tests? #f))
316 (propagated-inputs
317 `(("python-beautifulsoup4" ,python-beautifulsoup4)
318 ("python-lxml" ,python-lxml)
319 ("python-requests" ,python-requests)
320 ("python-six" ,python-six)))
321 ;; (native-inputs
322 ;; ;; For tests.
323 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
324 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
325 ;; ("python-pytest-mock" ,python-pytest-mock)
326 ;; ("python-pytest-runner" ,python-pytest-runner)
327 ;; ("python-requests-mock" ,python-requests-mock)))
328 (home-page "https://mechanicalsoup.readthedocs.io/")
329 (synopsis "Python library for automating website interaction")
330 (description
331 "MechanicalSoup is a Python library for automating interaction with
332 websites. It automatically stores and sends cookies, follows redirects, and can
333 follow links and submit forms. It doesn’t do JavaScript.")
334 (license license:expat)))
335
336 (define-public python2-mechanicalsoup
337 (package-with-python2 python-mechanicalsoup))
338
339 (define-public python-sockjs-tornado
340 (package
341 (name "python-sockjs-tornado")
342 (version "1.0.6")
343 (source
344 (origin
345 (method url-fetch)
346 (uri (pypi-uri "sockjs-tornado" version))
347 (sha256
348 (base32
349 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
350 (build-system python-build-system)
351 (arguments
352 `(;; There are no tests, and running the test phase requires missing
353 ;; dependencies
354 #:tests? #f))
355 (propagated-inputs
356 `(("python-tornado" ,python-tornado)))
357 (home-page "https://github.com/mrjoes/sockjs-tornado/")
358 (synopsis
359 "SockJS Python server implementation on top of the Tornado framework")
360 (description
361 "SockJS-tornado provides the server-side counterpart to a SockJS client
362 library, through the Tornado framework.
363
364 SockJS provides a low-latency, full-duplex, cross-domain communication channel
365 between a web browser and web server.")
366 (license license:expat)))
367
368 (define-public python2-sockjs-tornado
369 (package-with-python2 python-sockjs-tornado))
370
371 (define-public python-flask-babel
372 (package
373 (name "python-flask-babel")
374 (version "0.11.2")
375 (source
376 (origin
377 (method url-fetch)
378 (uri (pypi-uri "Flask-Babel" version))
379 (sha256
380 (base32
381 "0ff9n165vhf1nhv6807ckhpp224jw7k7sd7jz5kfh3sbpl85gmy0"))))
382 (build-system python-build-system)
383 (propagated-inputs
384 `(("python-flask" ,python-flask)
385 ("python-babel" ,python-babel)
386 ("python-jinja2" ,python-jinja2)
387 ("python-pytz" ,python-pytz)))
388 (home-page "https://github.com/python-babel/flask-babel")
389 (synopsis "Add i18n/l10n support to Flask applications")
390 (description "This package implements internationalization and localization
391 support for Flask. This is based on the Python babel module as well as pytz -
392 both of which are installed automatically if you install this library.")
393 (license license:bsd-3)))
394
395 (define-public python2-flask-babel
396 (package-with-python2 python-flask-babel))
397
398 (define-public python-html5lib
399 (package
400 (name "python-html5lib")
401 (version "1.0.1")
402 (source
403 (origin
404 (method url-fetch)
405 (uri (pypi-uri "html5lib" version))
406 (sha256
407 (base32
408 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
409 (build-system python-build-system)
410 (propagated-inputs
411 `(("python-six" ,python-six)
412 ("python-webencodings" ,python-webencodings)))
413 (arguments
414 `(#:test-target "check"))
415 (home-page
416 "https://github.com/html5lib/html5lib-python")
417 (synopsis
418 "Python HTML parser based on the WHATWG HTML specifcation")
419 (description
420 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
421 and written in Python.")
422 (license license:expat)))
423
424 (define-public python2-html5lib
425 (package-with-python2 python-html5lib))
426
427 ;; Needed for python-bleach, a dependency of python-notebook
428 (define-public python-html5lib-0.9
429 (package
430 (inherit python-html5lib)
431 (version "0.999")
432 (source
433 (origin
434 (method url-fetch)
435 (uri (pypi-uri "html5lib" version))
436 (sha256
437 (base32
438 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
439
440 (define-public python2-html5lib-0.9
441 (package-with-python2 python-html5lib-0.9))
442
443 (define-public python-html5-parser
444 (package
445 (name "python-html5-parser")
446 (version "0.4.5")
447 (source (origin
448 (method url-fetch)
449 (uri (pypi-uri "html5-parser" version))
450 (sha256
451 (base32
452 "01mx33sx4dhl4kj6wc48nj6jz7ry60rkhjv0s6k8h5xmjf5yy0x9"))))
453 (build-system python-build-system)
454 (native-inputs
455 `(("pkg-config" ,pkg-config)))
456 (inputs
457 `(("libxml2" ,libxml2)))
458 (propagated-inputs
459 `(("python-lxml" ,python-lxml)
460 ("python-beautifulsoup4" ,python-beautifulsoup4)))
461 (home-page "https://html5-parser.readthedocs.io")
462 (synopsis "Fast C-based HTML5 parsing for Python")
463 (description "This package provides a fast implementation of the HTML5
464 parsing spec for Python. Parsing is done in C using a variant of the gumbo
465 parser. The gumbo parse tree is then transformed into an lxml tree, also in
466 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
467 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
468 ;; indicate ASL2.0, including the LICENSE file for the whole project.
469 (license (list license:asl2.0 license:gpl3))))
470
471 (define-public python2-html5-parser
472 (package-with-python2 python-html5-parser))
473
474 (define-public python-pycurl
475 (package
476 (name "python-pycurl")
477 (version "7.43.0.2")
478 (source
479 (origin
480 (method url-fetch)
481 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
482 version ".tar.gz"))
483 (sha256
484 (base32 "1915kb04k1j4y6k1dx1sgnbddxrl9r1n4q928if2lkrdm73xy30g"))))
485 (build-system python-build-system)
486 (arguments
487 ;; The tests attempt to access external web servers, so we cannot run
488 ;; them. Furthermore, they are skipped altogether when using Python 2.
489 '(#:tests? #f
490 #:phases (modify-phases %standard-phases
491 (add-before 'build 'configure-tls-backend
492 (lambda _
493 ;; XXX: PycURL fails to automatically determine which TLS
494 ;; backend to use when cURL is built with --disable-static.
495 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
496 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
497 #t)))))
498 (native-inputs
499 `(("python-nose" ,python-nose)
500 ("python-bottle" ,python-bottle)))
501 (inputs
502 `(("curl" ,curl)
503 ("gnutls" ,gnutls)))
504 (home-page "http://pycurl.io/")
505 (synopsis "Lightweight Python wrapper around libcurl")
506 (description "Pycurl is a lightweight wrapper around libcurl. It provides
507 high-speed transfers via libcurl and frequently outperforms alternatives.")
508
509 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
510 ;; under the terms of LGPLv2.1+ or Expat.
511 (license (list license:lgpl2.1+ license:expat))))
512
513 (define-public python2-pycurl
514 (package-with-python2 python-pycurl))
515
516 (define-public python-webencodings
517 (package
518 (name "python-webencodings")
519 (version "0.5.1")
520 (source (origin
521 (method url-fetch)
522 (uri (pypi-uri "webencodings" version))
523 (sha256
524 (base32
525 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
526 (build-system python-build-system)
527 (arguments
528 '(#:phases
529 (modify-phases %standard-phases
530 (replace 'check
531 (lambda _
532 (invoke "py.test" "-v" "webencodings/tests.py")
533 #t)))))
534 (native-inputs
535 `(("python-pytest" ,python-pytest)))
536 (home-page "https://github.com/SimonSapin/python-webencodings")
537 (synopsis "Character encoding aliases for legacy web content")
538 (description
539 "In order to be compatible with legacy web content when interpreting
540 something like @code{Content-Type: text/html; charset=latin1}, tools need
541 to use a particular set of aliases for encoding labels as well as some
542 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
543 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
544 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
545 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
546 defines all such details so that implementations do not have to
547 reverse-engineer each other.
548
549 This module implements the Encoding standard and has encoding labels and
550 BOM detection, but the actual implementation for encoders and decoders
551 is Python’s.")
552 (license license:bsd-3)))
553
554 (define-public python2-webencodings
555 (package-with-python2 python-webencodings))
556
557 (define-public python-openid
558 (package
559 (name "python-openid")
560 (version "3.1.0")
561 (source
562 (origin
563 (method url-fetch)
564 (uri (pypi-uri "python3-openid" version))
565 (sha256
566 (base32
567 "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
568 (build-system python-build-system)
569 (arguments
570 `(#:phases
571 (modify-phases %standard-phases
572 (replace 'check
573 (lambda _
574 (invoke "coverage" "run" "-m"
575 "unittest" "openid.test.test_suite"))))))
576 (properties `((python2-variant . ,(delay python2-openid))))
577 (propagated-inputs
578 `(("python-defusedxml" ,python-defusedxml)))
579 (native-inputs
580 `(("python-coverage" ,python-coverage)
581 ("python-psycopg2" ,python-psycopg2)
582 ("python-django" ,python-django)))
583 (home-page "https://github.com/necaris/python3-openid")
584 (synopsis "OpenID support for servers and consumers")
585 (description "This library provides OpenID authentication for Python, both
586 for clients and servers.")
587 (license license:asl2.0)))
588
589 (define-public python2-openid
590 (package
591 (name "python2-openid")
592 (version "2.2.5")
593 (source
594 (origin
595 (method url-fetch)
596 (uri (pypi-uri "python-openid" version))
597 (sha256
598 (base32
599 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
600 (build-system python-build-system)
601 (arguments
602 ;; Python 3 support is in `python3-openid`, a separate package.
603 `(#:python ,python-2
604 ;; Tests aren't initialized correctly.
605 #:tests? #f))
606 (home-page "https://github.com/openid/python-openid")
607 (synopsis "OpenID support for servers and consumers")
608 (description "This library provides OpenID authentication for Python, both
609 for clients and servers.")
610 (license license:asl2.0)))
611
612 (define-public python-cssutils
613 (package
614 (name "python-cssutils")
615 (version "1.0.2")
616 (source
617 (origin
618 (method url-fetch)
619 (uri (pypi-uri "cssutils" version))
620 (sha256
621 (base32
622 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
623 (build-system python-build-system)
624 (native-inputs
625 `(("unzip" ,unzip))) ; for unpacking the source
626 (arguments
627 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
628 (home-page "http://cthedot.de/cssutils/")
629 (synopsis
630 "CSS Cascading Style Sheets library for Python")
631 (description
632 "Cssutils is a Python package for parsing and building CSS
633 Cascading Style Sheets. Currently it provides a DOM only and no rendering
634 options.")
635 (license license:lgpl3+)))
636
637 (define-public python2-cssutils
638 (package-with-python2 python-cssutils))
639
640 (define-public python-cssselect
641 (package
642 (name "python-cssselect")
643 (version "0.9.2")
644 (source
645 (origin
646 (method url-fetch)
647 (uri (pypi-uri "cssselect" version))
648 (sha256
649 (base32
650 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
651 (build-system python-build-system)
652 (arguments
653 ;; tests fail with message
654 ;; AttributeError: 'module' object has no attribute 'tests'
655 `(#:tests? #f))
656 (home-page
657 "https://pythonhosted.org/cssselect/")
658 (synopsis
659 "CSS3 selector parser and translator to XPath 1.0")
660 (description
661 "Cssselect ia a Python module that parses CSS3 Selectors and translates
662 them to XPath 1.0 expressions. Such expressions can be used in lxml or
663 another XPath engine to find the matching elements in an XML or HTML document.")
664 (license license:bsd-3)))
665
666 (define-public python2-cssselect
667 (package-with-python2 python-cssselect))
668
669 (define-public python-openid-cla
670 (package
671 (name "python-openid-cla")
672 (version "1.2")
673 (source
674 (origin
675 (method url-fetch)
676 (uri (pypi-uri "python-openid-cla" version))
677 (sha256
678 (base32
679 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
680 (build-system python-build-system)
681 (arguments '(#:tests? #f)) ; No tests.
682 (home-page "https://github.com/puiterwijk/python-openid-cla/")
683 (synopsis "Implementation of the OpenID CLA extension for python-openid")
684 (description "@code{openid-cla} is an implementation of the OpenID
685 contributor license agreement extension for python-openid.")
686 (license license:bsd-3)))
687
688 (define-public python2-openid-cla
689 (package-with-python2 python-openid-cla))
690
691 (define-public python-openid-teams
692 (package
693 (name "python-openid-teams")
694 (version "1.1")
695 (source
696 (origin
697 (method url-fetch)
698 (uri (pypi-uri "python-openid-teams" version))
699 (sha256
700 (base32
701 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
702 (build-system python-build-system)
703 (arguments '(#:tests? #f)) ; No tests.
704 (home-page "https://github.com/puiterwijk/python-openid-teams/")
705 (synopsis "Implementation of the OpenID teams extension for python-openid")
706 (description
707 "@code{openid-teams} is an implementation of the OpenID
708 teams extension for python-openid.")
709 (license license:bsd-3)))
710
711 (define-public python2-openid-teams
712 (package-with-python2 python-openid-teams))
713
714 (define-public python-tornado
715 (package
716 (name "python-tornado")
717 (version "5.1.1")
718 (source
719 (origin
720 (method url-fetch)
721 (uri (pypi-uri "tornado" version))
722 (sha256
723 (base32
724 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
725 (build-system python-build-system)
726 (arguments
727 '(;; FIXME: Two tests error out with:
728 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
729 ;; #:phases
730 ;; (modify-phases %standard-phases
731 ;; (replace 'check
732 ;; (lambda _
733 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
734 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
735 ;; (invoke "python" "-m" "tornado.test.runtests")
736 ;; #t)))
737 #:tests? #f))
738 (native-inputs
739 `(("python-certifi" ,python-certifi)))
740 (home-page "https://www.tornadoweb.org/")
741 (synopsis "Python web framework and asynchronous networking library")
742 (description
743 "Tornado is a Python web framework and asynchronous networking library,
744 originally developed at FriendFeed. By using non-blocking network I/O,
745 Tornado can scale to tens of thousands of open connections, making it ideal
746 for long polling, WebSockets, and other applications that require a long-lived
747 connection to each user.")
748 (license license:asl2.0)
749 (properties `((python2-variant . ,(delay python2-tornado))))))
750
751 (define-public python2-tornado
752 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
753 (package (inherit tornado)
754 (propagated-inputs
755 `(("python2-backport-ssl-match-hostname"
756 ,python2-backport-ssl-match-hostname)
757 ("python2-backports-abc" ,python2-backports-abc)
758 ("python2-singledispatch" ,python2-singledispatch)
759 ,@(package-propagated-inputs tornado))))))
760
761 (define-public python-tornado-http-auth
762 (package
763 (name "python-tornado-http-auth")
764 (version "1.1.0")
765 (source
766 (origin
767 (method url-fetch)
768 (uri (pypi-uri "tornado-http-auth" version))
769 (sha256
770 (base32
771 "0znrgqd7k2s4ia474xizi6h3061zj4sn5n6cq76bkwl3wwshifn5"))))
772 (build-system python-build-system)
773 (propagated-inputs
774 `(("python-tornado" ,python-tornado)))
775 (home-page
776 "https://github.com/gvalkov/tornado-http-auth")
777 (synopsis
778 "Digest and basic authentication module for Tornado")
779 (description
780 "Provides support for adding authentication to services using the Tornado
781 web framework, either via the basic or digest authentication schemes.")
782 (license license:asl2.0)))
783
784 (define-public python-terminado
785 (package
786 (name "python-terminado")
787 (version "0.8.1")
788 (source
789 (origin
790 (method url-fetch)
791 (uri (pypi-uri "terminado" version))
792 (sha256
793 (base32
794 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
795 (build-system python-build-system)
796 (propagated-inputs
797 `(("python-tornado" ,python-tornado)
798 ("python-ptyprocess" ,python-ptyprocess)))
799 (native-inputs
800 `(("python-nose" ,python-nose)))
801 (arguments
802 `(#:phases
803 (modify-phases %standard-phases
804 (replace 'check
805 (lambda _ (invoke "nosetests") #t)))))
806 (home-page "https://github.com/takluyver/terminado")
807 (synopsis "Terminals served to term.js using Tornado websockets")
808 (description "This package provides a Tornado websocket backend for the
809 term.js Javascript terminal emulator library.")
810 (license license:bsd-2)
811 (properties `((python2-variant . ,(delay python2-terminado))))))
812
813 (define-public python2-terminado
814 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
815 (package (inherit terminado)
816 (propagated-inputs
817 `(("python2-backport-ssl-match-hostname"
818 ,python2-backport-ssl-match-hostname)
819 ,@(package-propagated-inputs terminado))))))
820
821 (define-public python-wsgi-intercept
822 (package
823 (name "python-wsgi-intercept")
824 (version "1.2.2")
825 (source (origin
826 (method url-fetch)
827 (uri (pypi-uri "wsgi_intercept" version))
828 (sha256
829 (base32
830 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
831 (build-system python-build-system)
832 (propagated-inputs
833 `(("python-six" ,python-six)))
834 (native-inputs
835 `(("python-pytest" ,python-pytest)
836 ("python-httplib2" ,python-httplib2)
837 ("python-requests" ,python-requests)
838 ("python-urllib3" ,python-urllib3)))
839 (synopsis "Puts a WSGI application in place of a real URI for testing")
840 (description "Wsgi_intercept installs a WSGI application in place of a real
841 URI for testing. Testing a WSGI application normally involves starting a
842 server at a local host and port, then pointing your test code to that address.
843 Instead, this library lets you intercept calls to any specific host/port
844 combination and redirect them into a WSGI application importable by your test
845 program. Thus, you can avoid spawning multiple processes or threads to test
846 your Web app.")
847 (home-page "https://github.com/cdent/wsgi-intercept")
848 (license license:expat)))
849
850 (define-public python-webob
851 (package
852 (name "python-webob")
853 (version "1.5.1")
854 (source
855 (origin
856 (method url-fetch)
857 (uri (pypi-uri "WebOb" version))
858 (sha256
859 (base32
860 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
861 (build-system python-build-system)
862 (native-inputs
863 `(("python-nose" ,python-nose)))
864 (home-page "https://webob.org/")
865 (synopsis "WSGI request and response object")
866 (description
867 "WebOb provides wrappers around the WSGI request environment, and an
868 object to help create WSGI responses.")
869 (license license:expat)))
870
871 (define-public python2-webob
872 (package-with-python2 python-webob))
873
874 (define-public python-zope-event
875 (package
876 (name "python-zope-event")
877 (version "4.1.0")
878 (source
879 (origin
880 (method url-fetch)
881 (uri (pypi-uri "zope.event" version))
882 (sha256
883 (base32
884 "11p75zpfz3ffhz21nzx9wb23xs993ck5s6hkjcvhswwizni5jynw"))))
885 (build-system python-build-system)
886 (home-page "https://pypi.python.org/pypi/zope.event")
887 (synopsis "Event publishing system for Python")
888 (description "Zope.event provides an event publishing API, intended for
889 use by applications which are unaware of any subscribers to their events. It
890 is a simple event-dispatching system on which more sophisticated event
891 dispatching systems can be built.")
892 (license license:zpl2.1)))
893
894 (define-public python2-zope-event
895 (package-with-python2 python-zope-event))
896
897 (define-public python-zope-interface
898 (package
899 (name "python-zope-interface")
900 (version "4.1.3")
901 (source
902 (origin
903 (method url-fetch)
904 (uri (pypi-uri "zope.interface" version))
905 (sha256
906 (base32
907 "0ks8h73b2g4bkad821qbv0wzjppdrwys33i7ka45ik3wxjg1l8if"))))
908 (build-system python-build-system)
909 (native-inputs
910 `(("python-zope-event" ,python-zope-event)))
911 (home-page "https://github.com/zopefoundation/zope.interface")
912 (synopsis "Python implementation of the \"design by contract\"
913 methodology")
914 (description "Zope.interface provides an implementation of \"object
915 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
916 conforming to a given API or contract.")
917 (license license:zpl2.1)))
918
919 (define-public python2-zope-interface
920 (package-with-python2 python-zope-interface))
921
922 (define-public python-zope-exceptions
923 (package
924 (name "python-zope-exceptions")
925 (version "4.0.8")
926 (source
927 (origin
928 (method url-fetch)
929 (uri (pypi-uri "zope.exceptions" version))
930 (sha256
931 (base32
932 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
933 (build-system python-build-system)
934 (arguments
935 '(#:tests? #f)) ; circular dependency with zope.testrunner
936 (propagated-inputs
937 `(("python-zope-interface" ,python-zope-interface)))
938 (home-page "http://cheeseshop.python.org/pypi/zope.exceptions")
939 (synopsis "Zope exceptions")
940 (description "Zope.exceptions provides general-purpose exception types
941 that have uses outside of the Zope framework.")
942 (license license:zpl2.1)))
943
944 (define-public python2-zope-exceptions
945 (package-with-python2 python-zope-exceptions))
946
947 (define-public python-zope-testing
948 (package
949 (name "python-zope-testing")
950 (version "4.6.2")
951 (source
952 (origin
953 (method url-fetch)
954 (uri (pypi-uri "zope.testing" version))
955 (sha256
956 (base32
957 "0iiq54hjhkk2gpvzfjac70vyn4r0kw0ngvicshxbdwrkgf2gjq3g"))
958 (modules '((guix build utils)))
959 (snippet
960 '(begin
961 ;; Remove pre-compiled .pyc files backup files from source.
962 (for-each delete-file (find-files "." "(\\.pyc|~)$"))
963 #t))))
964 (build-system python-build-system)
965 (home-page "https://pypi.python.org/pypi/zope.testing")
966 (synopsis "Zope testing helpers")
967 (description "Zope.testing provides a number of testing utilities for HTML
968 forms, HTTP servers, regular expressions, and more.")
969 (license license:zpl2.1)))
970
971 (define-public python2-zope-testing
972 (package-with-python2 python-zope-testing))
973
974 (define-public python-zope-testrunner
975 (package
976 (name "python-zope-testrunner")
977 (version "4.4.9")
978 (source
979 (origin
980 (method url-fetch)
981 (uri (pypi-uri "zope.testrunner" version ".zip"))
982 (sha256
983 (base32
984 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
985 (build-system python-build-system)
986 (arguments
987 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
988 (native-inputs
989 `(("python-six" ,python-six)
990 ;("python-zope-interface" ,python-zope-interface)
991 ("python-zope-exceptions" ,python-zope-exceptions)
992 ("python-zope-testing" ,python-zope-testing)
993 ("unzip" ,unzip)))
994 (propagated-inputs
995 `(("python-zope-interface" ,python-zope-interface)))
996 (home-page "https://pypi.python.org/pypi/zope.testrunner")
997 (synopsis "Zope testrunner script")
998 (description "Zope.testrunner provides a script for running Python
999 tests.")
1000 (license license:zpl2.1)))
1001
1002 (define-public python2-zope-testrunner
1003 (let ((base (package-with-python2 python-zope-testrunner)))
1004 (package
1005 (inherit base)
1006 (native-inputs
1007 (append (package-native-inputs base)
1008 `(("python2-subunit" ,python2-subunit)
1009 ("python2-mimeparse" ,python2-mimeparse)))))))
1010
1011 (define-public python-zope-i18nmessageid
1012 (package
1013 (name "python-zope-i18nmessageid")
1014 (version "4.0.3")
1015 (source
1016 (origin
1017 (method url-fetch)
1018 (uri (pypi-uri "zope.i18nmessageid" version))
1019 (sha256
1020 (base32
1021 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
1022 (build-system python-build-system)
1023 (home-page "https://pypi.python.org/pypi/zope.i18nmessageid")
1024 (synopsis "Message identifiers for internationalization")
1025 (description "Zope.i18nmessageid provides facilities for declaring
1026 internationalized messages within program source text.")
1027 (license license:zpl2.1)))
1028
1029 (define-public python2-zope-i18nmessageid
1030 (package-with-python2 python-zope-i18nmessageid))
1031
1032 (define-public python-zope-schema
1033 (package
1034 (name "python-zope-schema")
1035 (version "4.4.2")
1036 (source
1037 (origin
1038 (method url-fetch)
1039 (uri (pypi-uri "zope.schema" version))
1040 (sha256
1041 (base32
1042 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
1043 (build-system python-build-system)
1044 (arguments
1045 '(#:tests? #f)) ; FIXME: Tests can't find zope.event.
1046 (propagated-inputs
1047 `(("python-zope-event" ,python-zope-event)
1048 ("python-zope-exceptions" ,python-zope-exceptions)
1049 ("python-zope-interface" ,python-zope-interface)))
1050 (native-inputs
1051 `(("python-zope-testing" ,python-zope-testing)
1052 ("python-coverage" ,python-coverage)
1053 ("python-nose" ,python-nose)))
1054 (home-page "https://pypi.python.org/pypi/zope.schema")
1055 (synopsis "Zope data schemas")
1056 (description "Zope.scheme provides extensions to zope.interface for
1057 defining data schemas.")
1058 (license license:zpl2.1)))
1059
1060 (define-public python2-zope-schema
1061 (package-with-python2 python-zope-schema))
1062
1063 (define-public python-zope-configuration
1064 (package
1065 (name "python-zope-configuration")
1066 (version "4.0.3")
1067 (source (origin
1068 (method url-fetch)
1069 (uri (pypi-uri "zope.configuration" version))
1070 (sha256
1071 (base32
1072 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
1073 (build-system python-build-system)
1074 (arguments
1075 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1076 (propagated-inputs
1077 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1078 ("python-zope-schema" ,python-zope-schema)))
1079 (home-page "https://pypi.python.org/pypi/zope.configuration")
1080 (synopsis "Zope Configuration Markup Language")
1081 (description "Zope.configuration implements ZCML, the Zope Configuration
1082 Markup Language.")
1083 (license license:zpl2.1)))
1084
1085 (define-public python2-zope-configuration
1086 (package-with-python2 python-zope-configuration))
1087
1088 (define-public python-zope-proxy
1089 (package
1090 (name "python-zope-proxy")
1091 (version "4.1.6")
1092 (source
1093 (origin
1094 (method url-fetch)
1095 (uri (pypi-uri "zope.proxy" version))
1096 (sha256
1097 (base32
1098 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
1099 (build-system python-build-system)
1100 (arguments
1101 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1102 (propagated-inputs
1103 `(("python-zope-interface" ,python-zope-interface)))
1104 (home-page "https://pypi.python.org/pypi/zope.proxy")
1105 (synopsis "Generic, transparent proxies")
1106 (description "Zope.proxy provides generic, transparent proxies for Python.
1107 Proxies are special objects which serve as mostly-transparent wrappers around
1108 another object, intervening in the apparent behavior of the wrapped object
1109 only when necessary to apply the policy (e.g., access checking, location
1110 brokering, etc.) for which the proxy is responsible.")
1111 (license license:zpl2.1)))
1112
1113 (define-public python2-zope-proxy
1114 (package-with-python2 python-zope-proxy))
1115
1116 (define-public python-zope-location
1117 (package
1118 (name "python-zope-location")
1119 (version "4.0.3")
1120 (source
1121 (origin
1122 (method url-fetch)
1123 (uri (pypi-uri "zope.location" version))
1124 (sha256
1125 (base32
1126 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
1127 (build-system python-build-system)
1128 (arguments
1129 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1130 (propagated-inputs
1131 `(("python-zope-proxy" ,python-zope-proxy)
1132 ("python-zope-schema" ,python-zope-schema)))
1133 (home-page "https://pypi.python.org/pypi/zope.location/")
1134 (synopsis "Zope location library")
1135 (description "Zope.location implements the concept of \"locations\" in
1136 Zope3, which are are special objects that have a structural location.")
1137 (license license:zpl2.1)))
1138
1139 (define-public python2-zope-location
1140 (package-with-python2 python-zope-location))
1141
1142 (define-public python-zope-security
1143 (package
1144 (name "python-zope-security")
1145 (version "4.0.3")
1146 (source
1147 (origin
1148 (method url-fetch)
1149 (uri (pypi-uri "zope.security" version))
1150 (sha256
1151 (base32
1152 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
1153 (build-system python-build-system)
1154 (arguments
1155 '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
1156 (propagated-inputs
1157 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1158 ("python-zope-proxy" ,python-zope-proxy)
1159 ("python-zope-schema" ,python-zope-schema)))
1160 (native-inputs
1161 `(("python-six" ,python-six)
1162 ("python-zope-component" ,python-zope-component)
1163 ("python-zope-configuration" ,python-zope-configuration)
1164 ("python-zope-location" ,python-zope-location)
1165 ("python-zope-testrunner" ,python-zope-testrunner)
1166 ("python-zope-testing" ,python-zope-testing)))
1167 (home-page "https://pypi.python.org/pypi/zope.security")
1168 (synopsis "Zope security framework")
1169 (description "Zope.security provides a generic mechanism to implement
1170 security policies on Python objects.")
1171 (license license:zpl2.1)))
1172
1173 (define-public python2-zope-security
1174 (let ((zope-security (package-with-python2 python-zope-security)))
1175 (package (inherit zope-security)
1176 (propagated-inputs
1177 `(("python2-zope-testrunner" ,python2-zope-testrunner)
1178 ,@(alist-delete
1179 "python-zope-testrunner"
1180 (package-propagated-inputs zope-security)))))))
1181
1182 (define-public python-zope-component
1183 (package
1184 (name "python-zope-component")
1185 (version "4.3.0")
1186 (source
1187 (origin
1188 (method url-fetch)
1189 (uri (pypi-uri "zope.component" version))
1190 (sha256
1191 (base32
1192 "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv"))))
1193 (build-system python-build-system)
1194 (arguments
1195 ;; Skip tests due to circular dependency with python-zope-security.
1196 '(#:tests? #f))
1197 (native-inputs
1198 `(("python-zope-testing" ,python-zope-testing)))
1199 (propagated-inputs
1200 `(("python-zope-event" ,python-zope-event)
1201 ("python-zope-interface" ,python-zope-interface)
1202 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1203 ("python-zope-configuration" ,python-zope-configuration)))
1204 (home-page "https://github.com/zopefoundation/zope.component")
1205 (synopsis "Zope Component Architecture")
1206 (description "Zope.component represents the core of the Zope Component
1207 Architecture. Together with the zope.interface package, it provides
1208 facilities for defining, registering and looking up components.")
1209 (license license:zpl2.1)))
1210
1211 (define-public python2-zope-component
1212 (package-with-python2 python-zope-component))
1213
1214 (define-public python-ndg-httpsclient
1215 (package
1216 (name "python-ndg-httpsclient")
1217 (version "0.5.1")
1218 (source (origin
1219 (method url-fetch)
1220 (uri (pypi-uri "ndg_httpsclient" version))
1221 (sha256
1222 (base32
1223 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1224 (build-system python-build-system)
1225 (arguments
1226 '(;; The tests appear to require networking.
1227 #:tests? #f))
1228 (propagated-inputs
1229 `(("python-pyopenssl" ,python-pyopenssl)))
1230 (synopsis "HTTPS support for Python's httplib and urllib2")
1231 (description "This is a HTTPS client implementation for httplib and urllib2
1232 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1233 over the default provided with Python and, importantly, enables full
1234 verification of the SSL peer.")
1235 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1236 (license license:bsd-3)))
1237
1238 ;; python2-openssl requires special care, so package-with-python2 is
1239 ;; insufficient.
1240 (define-public python2-ndg-httpsclient
1241 (package (inherit python-ndg-httpsclient)
1242 (name "python2-ndg-httpsclient")
1243 (arguments
1244 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1245 ((#:python _) python-2)))
1246 (propagated-inputs
1247 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1248
1249 (define-public python-websocket-client
1250 (package
1251 (name "python-websocket-client")
1252 (version "0.54.0")
1253 (source
1254 (origin
1255 (method url-fetch)
1256 (uri (pypi-uri "websocket_client" version))
1257 (sha256
1258 (base32
1259 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
1260 (build-system python-build-system)
1261 (propagated-inputs
1262 `(("python-six" ,python-six)))
1263 (home-page "https://github.com/liris/websocket-client")
1264 (synopsis "WebSocket client for Python")
1265 (description "The Websocket-client module provides the low level APIs for
1266 WebSocket usage in Python programs.")
1267 (properties `((python2-variant . ,(delay python2-websocket-client))))
1268 (license license:lgpl2.1+)))
1269
1270 (define-public python2-websocket-client
1271 (let ((base (package-with-python2
1272 (strip-python2-variant python-websocket-client))))
1273 (package
1274 (inherit base)
1275 (native-inputs
1276 `(("python2-backport-ssl-match-hostname"
1277 ,python2-backport-ssl-match-hostname)
1278 ,@(package-native-inputs base))))))
1279
1280 (define-public python-requests
1281 (package
1282 (name "python-requests")
1283 (version "2.13.0")
1284 (source (origin
1285 (method url-fetch)
1286 (uri (pypi-uri "requests" version))
1287 (sha256
1288 (base32
1289 "1s0wg4any4dsv5l3hqjxqk2zgb7pdbqhy9rhc8kh3aigfq4ws8jp"))))
1290 ;; TODO: unbundle urllib3 and chardet.
1291 (build-system python-build-system)
1292 (arguments
1293 ;; FIXME: Some tests require network access.
1294 '(#:tests? #f))
1295 (home-page "http://python-requests.org/")
1296 (synopsis "Python HTTP library")
1297 (description
1298 "Requests is a Python HTTP client library. It aims to be easier to use
1299 than Python’s urllib2 library.")
1300 (license license:asl2.0)))
1301
1302 ;; Some software requires an older version of Requests, notably Docker
1303 ;; Compose.
1304 (define-public python-requests-2.7
1305 (package (inherit python-requests)
1306 (version "2.7.0")
1307 (source (origin
1308 (method url-fetch)
1309 (uri (pypi-uri "requests" version))
1310 (sha256
1311 (base32
1312 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1313
1314 (define-public python2-requests
1315 (package-with-python2 python-requests))
1316
1317 (define-public python-requests-mock
1318 (package
1319 (name "python-requests-mock")
1320 (version "1.3.0")
1321 (source
1322 (origin
1323 (method url-fetch)
1324 (uri (pypi-uri "requests-mock" version))
1325 (sha256
1326 (base32
1327 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1328 (build-system python-build-system)
1329 (propagated-inputs
1330 `(("python-requests" ,python-requests)
1331 ("python-six" ,python-six)))
1332 (native-inputs
1333 `(("python-pbr" ,python-pbr)
1334 ("python-discover" ,python-discover)
1335 ("python-docutils" ,python-docutils)
1336 ("python-fixtures" ,python-fixtures)
1337 ("python-mock" ,python-mock)
1338 ("python-sphinx" ,python-sphinx)
1339 ("python-testrepository" ,python-testrepository)
1340 ("python-testtools" ,python-testtools)))
1341 (home-page "https://requests-mock.readthedocs.org/")
1342 (synopsis "Mock out responses from the requests package")
1343 (description
1344 "This module provides a building block to stub out the HTTP requests
1345 portions of your testing code.")
1346 (properties `((python2-variant . ,(delay python2-requests-mock))))
1347 (license license:asl2.0)))
1348
1349 (define-public python2-requests-mock
1350 (package (inherit (package-with-python2
1351 (strip-python2-variant python-requests-mock)))
1352 (arguments
1353 `(#:python ,python-2
1354 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1355 #:tests? #f))))
1356
1357 (define-public python-requests-toolbelt
1358 (package
1359 (name "python-requests-toolbelt")
1360 (version "0.8.0")
1361 (source (origin
1362 (method url-fetch)
1363 (uri (pypi-uri "requests-toolbelt" version))
1364 (sha256
1365 (base32
1366 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1367 (build-system python-build-system)
1368 (native-inputs
1369 `(("python-betamax" ,python-betamax)
1370 ("python-mock" ,python-mock)
1371 ("python-pytest" ,python-pytest)))
1372 (propagated-inputs
1373 `(("python-requests" ,python-requests)))
1374 (synopsis "Extensions to python-requests")
1375 (description "This is a toolbelt of useful classes and functions to be used
1376 with python-requests.")
1377 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1378 (license license:asl2.0)))
1379
1380 (define-public python2-requests-toolbelt
1381 (package-with-python2 python-requests-toolbelt))
1382
1383 (define-public python-oauthlib
1384 (package
1385 (name "python-oauthlib")
1386 (version "1.0.3")
1387 (source (origin
1388 (method url-fetch)
1389 (uri (pypi-uri "oauthlib" version))
1390 (sha256
1391 (base32
1392 "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
1393 (build-system python-build-system)
1394 (native-inputs
1395 `(("python-nose" ,python-nose)
1396 ("python-mock" ,python-mock)
1397 ("python-cryptography" ,python-cryptography)
1398 ("python-pyjwt" ,python-pyjwt)
1399 ("python-blinker" ,python-blinker)))
1400 (home-page "https://github.com/idan/oauthlib")
1401 (synopsis "OAuth implementation for Python")
1402 (description
1403 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1404 OAuth request-signing logic.")
1405 (license license:bsd-3)
1406 (properties `((python2-variant . ,(delay python2-oauthlib))))))
1407
1408 (define-public python2-oauthlib
1409 (let ((base (package-with-python2 (strip-python2-variant python-oauthlib))))
1410 (package
1411 (inherit base)
1412 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1413 ,@(package-native-inputs base))))))
1414
1415 (define-public python-rauth
1416 (package
1417 (name "python-rauth")
1418 (version "0.7.3")
1419 (source
1420 (origin
1421 (method url-fetch)
1422 (uri (pypi-uri "rauth" version))
1423 (sha256
1424 (base32
1425 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1426 (build-system python-build-system)
1427 (arguments
1428 `(#:test-target "check"))
1429 (propagated-inputs
1430 `(("python-requests" ,python-requests)))
1431 (home-page "https://github.com/litl/rauth")
1432 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1433 (description
1434 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1435 provides service wrappers for convenient connection initialization and
1436 authenticated session objects providing things like keep-alive.")
1437 (license license:expat)
1438 (properties `((python2-variant . ,(delay python2-rauth))))))
1439
1440 (define-public python2-rauth
1441 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1442 (package
1443 (inherit base)
1444 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1445 ,@(package-native-inputs base))))))
1446
1447 (define-public python-urllib3
1448 (package
1449 (name "python-urllib3")
1450 (version "1.24.1")
1451 (source
1452 (origin
1453 (method url-fetch)
1454 (uri (pypi-uri "urllib3" version))
1455 (sha256
1456 (base32
1457 "08lwd9f3hqznyf32vnzwvp87pchx062nkbgyrf67rwlkgj0jk5fy"))))
1458 (build-system python-build-system)
1459 (arguments `(#:tests? #f))
1460 (native-inputs
1461 `(;; some packages for tests
1462 ("python-mock" ,python-mock)
1463 ("python-pytest" ,python-pytest)
1464 ("python-tornado" ,python-tornado)))
1465 (propagated-inputs
1466 `(;; These 5 inputs are used to build urrlib3[secure]
1467 ("python-certifi" ,python-certifi)
1468 ("python-cryptography" ,python-cryptography)
1469 ("python-idna" ,python-idna)
1470 ("python-ipaddress" ,python-ipaddress)
1471 ("python-pyopenssl" ,python-pyopenssl)
1472 ("python-pysocks" ,python-pysocks)))
1473 (home-page "https://urllib3.readthedocs.io/")
1474 (synopsis "HTTP library with thread-safe connection pooling")
1475 (description
1476 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1477 can reuse the same socket connection for multiple requests, it can POST files,
1478 supports url redirection and retries, and also gzip and deflate decoding.")
1479 (license license:expat)))
1480
1481 (define-public python2-urllib3
1482 (package-with-python2 python-urllib3))
1483
1484 (define-public awscli
1485 (package
1486 (name "awscli")
1487 (version "1.14.41")
1488 (source
1489 (origin
1490 (method url-fetch)
1491 (uri (pypi-uri name version))
1492 (sha256
1493 (base32
1494 "0sispclx263lybbk19zp1n9yhg8xxx4jddypzgi24vpjaqnsbwlc"))))
1495 (build-system python-build-system)
1496 (propagated-inputs
1497 `(("python-colorama" ,python-colorama)
1498 ("python-botocore" ,python-botocore)
1499 ("python-s3transfer" ,python-s3transfer)
1500 ("python-docutils" ,python-docutils)
1501 ("python-pyyaml" ,python-pyyaml)
1502 ("python-rsa" ,python-rsa)))
1503 (arguments
1504 ;; FIXME: The 'pypi' release does not contain tests.
1505 '(#:tests? #f))
1506 (home-page "https://aws.amazon.com/cli/")
1507 (synopsis "Command line client for AWS")
1508 (description "AWS CLI provides a unified command line interface to the
1509 Amazon Web Services (AWS) API.")
1510 (license license:asl2.0)))
1511
1512 (define-public python-wsgiproxy2
1513 (package
1514 (name "python-wsgiproxy2")
1515 (version "0.4.5")
1516 (source
1517 (origin
1518 (method url-fetch)
1519 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
1520 (sha256
1521 (base32
1522 "19d9dva282vfjs784i0zkxp078lxfz4h3f621z30ij9wbf5rba6a"))))
1523 (build-system python-build-system)
1524 (native-inputs
1525 `(("python-webtest" ,python-webtest)))
1526 (propagated-inputs
1527 `(("python-requests" ,python-requests)
1528 ("python-six" ,python-six)
1529 ("python-urllib3" ,python-urllib3)
1530 ("python-webob" ,python-webob)))
1531 (home-page "https://github.com/gawel/WSGIProxy2/")
1532 (synopsis "WSGI Proxy with various http client backends")
1533 (description "WSGI turns HTTP requests into WSGI function calls.
1534 WSGIProxy turns WSGI function calls into HTTP requests.
1535 It also includes code to sign requests and pass private data,
1536 and to spawn subprocesses to handle requests.")
1537 (license license:expat)))
1538
1539 (define-public python2-wsgiproxy2
1540 (package-with-python2 python-wsgiproxy2))
1541
1542 (define-public python-pastedeploy
1543 (package
1544 (name "python-pastedeploy")
1545 (version "1.5.2")
1546 (source
1547 (origin
1548 (method url-fetch)
1549 (uri (pypi-uri "PasteDeploy" version))
1550 (sha256
1551 (base32
1552 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
1553 (build-system python-build-system)
1554 (native-inputs
1555 `(("python-nose" ,python-nose)))
1556 (home-page "http://pythonpaste.org/deploy/")
1557 (synopsis
1558 "Load, configure, and compose WSGI applications and servers")
1559 (description
1560 "This tool provides code to load WSGI applications and servers from URIs;
1561 these URIs can refer to Python Eggs for INI-style configuration files. Paste
1562 Script provides commands to serve applications based on this configuration
1563 file.")
1564 (license license:expat)))
1565
1566 (define-public python2-pastedeploy
1567 (package-with-python2 python-pastedeploy))
1568
1569 (define-public python-webtest
1570 (package
1571 (name "python-webtest")
1572 (version "2.0.33")
1573 (source
1574 (origin
1575 (method url-fetch)
1576 (uri (pypi-uri "WebTest" version))
1577 (sha256
1578 (base32
1579 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
1580 (build-system python-build-system)
1581 (arguments
1582 ;; Tests require python-pyquery, which creates a circular dependency.
1583 `(#:tests? #f))
1584 (propagated-inputs
1585 `(("python-waitress" ,python-waitress)
1586 ("python-webob" ,python-webob)
1587 ("python-six" ,python-six)
1588 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1589 (home-page "http://webtest.pythonpaste.org/")
1590 (synopsis "Helper to test WSGI applications")
1591 (description "Webtest allows you to test your Python web applications
1592 without starting an HTTP server. It supports anything that supports the
1593 minimum of WSGI.")
1594 (license license:expat)))
1595
1596 (define-public python2-webtest
1597 (package-with-python2 python-webtest))
1598
1599 (define-public python-flask
1600 (package
1601 (name "python-flask")
1602 (version "1.0.2")
1603 (source (origin
1604 (method url-fetch)
1605 (uri (pypi-uri "flask" version))
1606 (sha256
1607 (base32
1608 "0j6f4a9rpfh25k1gp7azqhnni4mb4fgy50jammgjgddw1l3w0w92"))))
1609 (build-system python-build-system)
1610 (arguments
1611 '(#:phases
1612 (modify-phases %standard-phases
1613 (replace 'check
1614 (lambda _
1615 (invoke "python" "-m" "pytest"))))))
1616 (native-inputs
1617 `(("python-pytest" ,python-pytest)))
1618 (propagated-inputs
1619 `(("python-itsdangerous" ,python-itsdangerous)
1620 ("python-jinja2" ,python-jinja2)
1621 ("python-click" ,python-click)
1622 ("python-werkzeug" ,python-werkzeug)))
1623 (home-page "https://www.palletsprojects.com/p/flask/")
1624 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
1625 (description "Flask is a micro web framework based on the Werkzeug toolkit
1626 and Jinja2 template engine. It is called a micro framework because it does not
1627 presume or force a developer to use a particular tool or library.")
1628 (license license:bsd-3)))
1629
1630 (define-public python2-flask
1631 (package-with-python2 python-flask))
1632
1633 (define-public python-flask-wtf
1634 (package
1635 (name "python-flask-wtf")
1636 (version "0.13.1")
1637 (source
1638 (origin
1639 (method url-fetch)
1640 (uri (pypi-uri "Flask-WTF" version))
1641 (sha256
1642 (base32
1643 "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990"))))
1644 (build-system python-build-system)
1645 (arguments
1646 '(#:phases
1647 (modify-phases %standard-phases
1648 (add-before 'check 'drop-failing-test
1649 (lambda _
1650 ;; FIXME: This file tries resolving an external server, which
1651 ;; fails. Try to patch out the offending section instead of
1652 ;; deleting the whole thing.
1653 (delete-file "tests/test_recaptcha.py")
1654 #t)))))
1655 (propagated-inputs
1656 `(("python-flask-babel" ,python-flask-babel)
1657 ("python-babel" ,python-babel)
1658 ("python-wtforms" ,python-wtforms)))
1659 (native-inputs
1660 `(("python-nose" ,python-nose)))
1661 (home-page "https://github.com/lepture/flask-wtf")
1662 (synopsis "Simple integration of Flask and WTForms")
1663 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
1664 upload, and reCAPTCHA.")
1665 (license license:bsd-3)))
1666
1667 (define-public python2-flask-wtf
1668 (package-with-python2 python-flask-wtf))
1669
1670 (define-public python-flask-multistatic
1671 (package
1672 (name "python-flask-multistatic")
1673 (version "1.0")
1674 (source
1675 (origin
1676 (method url-fetch)
1677 (uri (pypi-uri "flask-multistatic" version))
1678 (sha256
1679 (base32
1680 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
1681 (build-system python-build-system)
1682 (propagated-inputs
1683 `(("python-flask" ,python-flask)))
1684 (home-page "https://pagure.io/flask-multistatic")
1685 (synopsis "Flask plugin to allow overriding static files")
1686 (description "@code{flask-multistatic} is a flask plugin that adds support
1687 for overriding static files.")
1688 (license license:gpl3+)))
1689
1690 (define-public python2-flask-multistatic
1691 (package-with-python2 python-flask-multistatic))
1692
1693 (define-public python-cookies
1694 (package
1695 (name "python-cookies")
1696 (version "2.2.1")
1697 (source (origin
1698 (method url-fetch)
1699 (uri (pypi-uri "cookies" version))
1700 (sha256
1701 (base32
1702 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
1703 (build-system python-build-system)
1704 (arguments
1705 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
1706 #:tests? #f))
1707 (native-inputs
1708 `(("python-pytest" ,python2-pytest)))
1709 (synopsis "HTTP cookie parser and renderer")
1710 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
1711 Python.")
1712 (home-page "https://gitlab.com/sashahart/cookies")
1713 (license license:expat)))
1714
1715 (define-public python2-cookies
1716 (package-with-python2 python-cookies))
1717
1718 (define-public python-responses
1719 (package
1720 (name "python-responses")
1721 (version "0.5.1")
1722 (source (origin
1723 (method url-fetch)
1724 (uri (pypi-uri "responses" version))
1725 (sha256
1726 (base32
1727 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
1728 (build-system python-build-system)
1729 (arguments
1730 `(;; Test suite is not distributed:
1731 ;; https://github.com/getsentry/responses/issues/38
1732 #:tests? #f))
1733 (native-inputs
1734 `(("python-mock" ,python-mock)))
1735 (propagated-inputs
1736 `(("python-requests" ,python-requests)
1737 ("python-cookies" ,python-cookies)
1738 ("python-six" ,python-six)))
1739 (home-page "https://github.com/getsentry/responses")
1740 (synopsis "Utility for mocking out the `requests` Python library")
1741 (description "A utility library for mocking out the `requests` Python
1742 library.")
1743 (license license:asl2.0)))
1744
1745 (define-public python2-responses
1746 (package-with-python2 python-responses))
1747
1748 (define-public python-grequests
1749 (package
1750 (name "python-grequests")
1751 (version "0.3.0")
1752 (source
1753 (origin
1754 (method url-fetch)
1755 (uri (pypi-uri "grequests" version))
1756 (sha256
1757 (base32
1758 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
1759 (build-system python-build-system)
1760 (propagated-inputs
1761 `(("python-gevent" ,python-gevent)
1762 ("python-requests" ,python-requests)))
1763 (native-inputs
1764 `(("python-nose" ,python-nose)))
1765 (home-page "https://github.com/kennethreitz/grequests")
1766 (synopsis "Python library for asynchronous HTTP requests")
1767 (description "GRequests is a Python library that allows you to use
1768 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
1769 (license license:bsd-2)))
1770
1771 (define-public python-geventhttpclient
1772 (package
1773 (name "python-geventhttpclient")
1774 (version "1.3.1")
1775 (source (origin
1776 (method url-fetch)
1777 (uri (pypi-uri "geventhttpclient" version))
1778 (sha256
1779 (base32
1780 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
1781 (modules '((guix build utils)))
1782 (snippet
1783 '(begin
1784 ;; Delete pre-compiled files.
1785 (for-each delete-file (find-files "src/geventhttpclient"
1786 ".*\\.pyc"))
1787 #t))))
1788 (build-system python-build-system)
1789 (arguments
1790 '(#:phases
1791 (modify-phases %standard-phases
1792 (add-after 'unpack 'delete-network-tests
1793 (lambda _
1794 (delete-file "src/geventhttpclient/tests/test_client.py")
1795 #t))
1796 (delete 'check)
1797 (add-after 'install 'check
1798 (lambda* (#:key inputs outputs #:allow-other-keys)
1799 (add-installed-pythonpath inputs outputs)
1800 (invoke "py.test" "src/geventhttpclient/tests" "-v"
1801 ;; Append the test modules to sys.path to avoid
1802 ;; namespace conflict which breaks SSL tests.
1803 "--import-mode=append")
1804 #t)))))
1805 (native-inputs
1806 `(("python-pytest" ,python-pytest)))
1807 (propagated-inputs
1808 `(("python-certifi" ,python-certifi)
1809 ("python-gevent" ,python-gevent)
1810 ("python-six" ,python-six)))
1811 (home-page "https://github.com/gwik/geventhttpclient")
1812 (synopsis "HTTP client library for gevent")
1813 (description "@code{python-geventhttpclient} is a high performance,
1814 concurrent HTTP client library for python using @code{gevent}.")
1815 (license license:expat)))
1816
1817 (define-public python2-geventhttpclient
1818 (package-with-python2 python-geventhttpclient))
1819
1820 (define-public python-requests-oauthlib
1821 (package
1822 (name "python-requests-oauthlib")
1823 (version "0.6.2")
1824 (source
1825 (origin
1826 (method url-fetch)
1827 (uri (pypi-uri "requests-oauthlib" version))
1828 (sha256
1829 (base32
1830 "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn"))))
1831 (build-system python-build-system)
1832 (arguments
1833 `(#:phases
1834 (modify-phases %standard-phases
1835 ;; removes tests that require network access
1836 (add-before 'check 'pre-check
1837 (lambda _
1838 (delete-file "tests/test_core.py")
1839 #t)))))
1840 (native-inputs
1841 `(("python-requests-mock" ,python-requests-mock)
1842 ("python-mock" ,python-mock)))
1843 (propagated-inputs
1844 `(("python-oauthlib" ,python-oauthlib)
1845 ("python-requests" ,python-requests)))
1846 (home-page
1847 "https://github.com/requests/requests-oauthlib")
1848 (synopsis
1849 "OAuthlib authentication support for Requests")
1850 (description
1851 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
1852 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
1853 (license license:isc)))
1854
1855 (define-public python2-requests-oauthlib
1856 (package-with-python2 python-requests-oauthlib))
1857
1858 (define-public python-url
1859 (package
1860 (name "python-url")
1861 (version "0.2.0")
1862 (source (origin
1863 (method url-fetch)
1864 (uri (pypi-uri "url" version))
1865 (sha256
1866 (base32
1867 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
1868 (build-system python-build-system)
1869 (propagated-inputs
1870 `(("python-publicsuffix" ,python-publicsuffix)))
1871 (native-inputs
1872 `(("python-coverage" ,python-coverage)
1873 ("python-nose" ,python-nose)))
1874 (arguments
1875 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
1876 (home-page "https://github.com/seomoz/url-py")
1877 (synopsis "URL Parsing")
1878 (description "Library for parsing urls.")
1879 (license license:expat)
1880 (properties `((python2-variant . ,(delay python2-url))))))
1881
1882 (define-public python2-url
1883 (let ((base (package-with-python2 (strip-python2-variant python-url))))
1884 (package (inherit base)
1885 (propagated-inputs
1886 `(("python2-publicsuffix" ,python2-publicsuffix))))))
1887
1888 (define-public python-cachecontrol
1889 (package
1890 (name "python-cachecontrol")
1891 (version "0.11.6")
1892 (source
1893 (origin
1894 (method url-fetch)
1895 ;; Pypi does not have tests.
1896 (uri (string-append
1897 "https://github.com/ionrock/cachecontrol/archive/v"
1898 version ".tar.gz"))
1899 (file-name (string-append name "-" version ".tar.gz"))
1900 (sha256
1901 (base32
1902 "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw"))))
1903 (build-system python-build-system)
1904 (arguments
1905 `(#:phases
1906 (modify-phases %standard-phases
1907 (replace 'check
1908 (lambda _
1909 ;; Drop test that requires internet access.
1910 (delete-file "tests/test_regressions.py")
1911 (setenv "PYTHONPATH"
1912 (string-append (getcwd) "/build/lib:"
1913 (getenv "PYTHONPATH")))
1914 (invoke "py.test" "-vv")
1915 #t)))))
1916 (native-inputs
1917 `(("python-pytest" ,python-pytest)
1918 ("python-redis" ,python-redis)
1919 ("python-webtest" ,python-webtest)
1920 ("python-mock" ,python-mock)))
1921 (propagated-inputs
1922 `(("python-requests" ,python-requests)
1923 ("python-lockfile" ,python-lockfile)))
1924 (home-page "https://github.com/ionrock/cachecontrol")
1925 (synopsis "The httplib2 caching algorithms for use with requests")
1926 (description "CacheControl is a port of the caching algorithms in
1927 @code{httplib2} for use with @code{requests} session objects.")
1928 (license license:asl2.0)))
1929
1930 (define-public python2-cachecontrol
1931 (package-with-python2 python-cachecontrol))
1932
1933 (define-public python-betamax
1934 (package
1935 (name "python-betamax")
1936 (version "0.8.1")
1937 (source
1938 (origin
1939 (method url-fetch)
1940 (uri (pypi-uri "betamax" version))
1941 (sha256
1942 (base32
1943 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
1944 (build-system python-build-system)
1945 (arguments
1946 '(;; Many tests fail because they require networking.
1947 #:tests? #f))
1948 (propagated-inputs
1949 `(("python-requests" ,python-requests)))
1950 (home-page "https://github.com/sigmavirus24/betamax")
1951 (synopsis "Record HTTP interactions with python-requests")
1952 (description "Betamax will record your test suite's HTTP interactions and
1953 replay them during future tests. It is designed to work with python-requests.")
1954 (license license:expat)))
1955
1956 (define-public python2-betamax
1957 (package-with-python2 python-betamax))
1958
1959 (define-public python-betamax-matchers
1960 (package
1961 (name "python-betamax-matchers")
1962 (version "0.4.0")
1963 (source
1964 (origin
1965 (method url-fetch)
1966 (uri (pypi-uri "betamax-matchers" version))
1967 (sha256
1968 (base32
1969 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
1970 (build-system python-build-system)
1971 (propagated-inputs
1972 `(("python-betamax" ,python-betamax)
1973 ("python-requests-toolbelt" ,python-requests-toolbelt)))
1974 (home-page "https://github.com/sigmavirus24/betamax_matchers")
1975 (synopsis "VCR imitation for python-requests")
1976 (description "@code{betamax-matchers} provides a set of Matchers for
1977 Betamax.")
1978 (license license:asl2.0)))
1979
1980 (define-public python2-betamax-matchers
1981 (package-with-python2 python-betamax-matchers))
1982
1983 (define-public python-s3transfer
1984 (package
1985 (name "python-s3transfer")
1986 (version "0.1.13")
1987 (source (origin
1988 (method url-fetch)
1989 (uri (pypi-uri "s3transfer" version))
1990 (sha256
1991 (base32
1992 "1harvyn1s8v54n1w5h7c0lg4bgjh68aylhg28s8n174q53h1ip4h"))))
1993 (build-system python-build-system)
1994 (arguments
1995 `(#:phases
1996 (modify-phases %standard-phases
1997 (replace 'check
1998 (lambda _
1999 ;; 7 of the 'integration' tests require network access or login
2000 ;; credentials.
2001 (invoke "nosetests" "--exclude=integration")
2002 #t)))))
2003 (native-inputs
2004 `(("python-docutils" ,python-docutils)
2005 ("python-mock" ,python-mock)
2006 ("python-nose" ,python-nose)))
2007 (propagated-inputs
2008 `(("python-botocore" ,python-botocore)))
2009 (synopsis "Amazon S3 Transfer Manager")
2010 (description "S3transfer is a Python library for managing Amazon S3
2011 transfers.")
2012 (home-page "https://github.com/boto/s3transfer")
2013 (license license:asl2.0)
2014 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2015
2016 (define-public python2-s3transfer
2017 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2018 (package
2019 (inherit base)
2020 (native-inputs
2021 `(("python2-futures" ,python2-futures)
2022 ,@(package-native-inputs base))))))
2023
2024 (define-public python-slimit
2025 (package
2026 (name "python-slimit")
2027 (version "0.8.1")
2028 (source
2029 (origin
2030 (method url-fetch)
2031 (uri (pypi-uri "slimit" version ".zip"))
2032 (sha256
2033 (base32
2034 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2035 (build-system python-build-system)
2036 (native-inputs
2037 `(("unzip" ,unzip)))
2038 (propagated-inputs
2039 `(("python-ply" ,python-ply)))
2040 (home-page "https://slimit.readthedocs.io/")
2041 (synopsis "JavaScript minifier, parser and lexer written in Python")
2042 (description
2043 "SlimIt is a JavaScript minifier written in Python. It compiles
2044 JavaScript into more compact code so that it downloads and runs faster.
2045 SlimIt also provides a library that includes a JavaScript parser, lexer,
2046 pretty printer and a tree visitor.")
2047 (license license:expat)))
2048
2049 (define-public python-flask-restful
2050 (package
2051 (name "python-flask-restful")
2052 (version "0.3.7")
2053 (source
2054 (origin
2055 (method url-fetch)
2056 (uri (pypi-uri "Flask-RESTful" version))
2057 (sha256
2058 (base32
2059 "1a9cbwkr6krryyzq4sd3f415nkkc6dyfls5i3pgyibs94g0hw97q"))))
2060 (build-system python-build-system)
2061 (propagated-inputs
2062 `(("python-aniso8601" ,python-aniso8601)
2063 ("python-flask" ,python-flask)
2064 ("python-pycrypto" ,python-pycrypto)
2065 ("python-pytz" ,python-pytz)))
2066 (native-inputs
2067 `(;; Optional dependency of Flask. Tests need it.
2068 ("python-blinker" ,python-blinker)
2069 ("python-mock" ,python-mock) ; For tests
2070 ("python-nose" ,python-nose) ; For tests
2071 ("python-sphinx" ,python-sphinx)))
2072 (home-page
2073 "https://www.github.com/flask-restful/flask-restful/")
2074 (synopsis
2075 "Flask module for creating REST APIs")
2076 (description
2077 "This package contains a Flask module for creating REST APIs.")
2078 (license license:bsd-3)))
2079
2080 (define-public python-flask-basicauth
2081 (package
2082 (name "python-flask-basicauth")
2083 (version "0.2.0")
2084 (source
2085 (origin
2086 (method url-fetch)
2087 (uri (pypi-uri "Flask-BasicAuth" version))
2088 (sha256
2089 (base32
2090 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2091 (build-system python-build-system)
2092 (propagated-inputs
2093 `(("python-flask" ,python-flask)))
2094 (home-page
2095 "https://github.com/jpvanhal/flask-basicauth")
2096 (synopsis
2097 "HTTP basic access authentication for Flask")
2098 (description
2099 "This package provides HTTP basic access authentication for Flask.")
2100 (license license:bsd-3)))
2101
2102 (define-public python-flask-sqlalchemy
2103 (package
2104 (name "python-flask-sqlalchemy")
2105 (version "2.1")
2106 (source
2107 (origin
2108 (method url-fetch)
2109 (uri (pypi-uri "Flask-SQLAlchemy" version))
2110 (sha256
2111 (base32
2112 "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"))))
2113 (build-system python-build-system)
2114 (propagated-inputs
2115 `(("python-flask" ,python-flask)
2116 ("python-sqlalchemy" ,python-sqlalchemy)))
2117 (home-page
2118 "https://github.com/mitsuhiko/flask-sqlalchemy")
2119 (synopsis
2120 "Module adding SQLAlchemy support to your Flask application")
2121 (description
2122 "This package adds SQLAlchemy support to your Flask application.")
2123 (license license:bsd-3)))
2124
2125 (define-public python-flask-restplus
2126 (package
2127 (name "python-flask-restplus")
2128 (version "0.9.2")
2129 (source
2130 (origin
2131 (method url-fetch)
2132 (uri (pypi-uri "flask-restplus" version))
2133 (sha256
2134 (base32
2135 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2136 (build-system python-build-system)
2137 (arguments
2138 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2139 ;; #:phases
2140 ;; (modify-phases %standard-phases
2141 ;; (replace 'check
2142 ;; (lambda _
2143 ;; (invoke "nosetests")
2144 ;; #t)))))
2145 (propagated-inputs
2146 `(("python-aniso8601" ,python-aniso8601)
2147 ("python-flask" ,python-flask)
2148 ("python-jsonschema" ,python-jsonschema)
2149 ("python-pytz" ,python-pytz)
2150 ("python-six" ,python-six)))
2151 (native-inputs
2152 `(("python-tzlocal" ,python-tzlocal)
2153 ("python-blinker" ,python-blinker)
2154 ("python-nose" ,python-nose)
2155 ("python-rednose" ,python-rednose)))
2156 (home-page "https://github.com/noirbizarre/flask-restplus")
2157 (synopsis "Framework for documented API development with Flask")
2158 (description "This package provides a framework for API development with
2159 the Flask web framework in Python. It is similar to package
2160 @code{python-flask-restful} but supports the @code{python-swagger}
2161 documentation builder.")
2162 (license license:expat)))
2163
2164 (define-public python-flask-restful-swagger
2165 (package
2166 (name "python-flask-restful-swagger")
2167 (version "0.19")
2168 (source
2169 (origin
2170 (method url-fetch)
2171 (uri (pypi-uri "flask-restful-swagger" version))
2172 (sha256
2173 (base32
2174 "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v"))))
2175 (build-system python-build-system)
2176 (propagated-inputs
2177 `(("python-flask-restful" ,python-flask-restful)))
2178 (home-page "https://github.com/rantav/flask-restful-swagger")
2179 (synopsis "Extract Swagger specs from Flask-Restful projects")
2180 (description "This package lets you extract Swagger API documentation
2181 specs from your Flask-Restful projects.")
2182 (license license:expat)))
2183
2184 (define-public python2-flask-restful-swagger
2185 (package-with-python2 python-flask-restful-swagger))
2186
2187 (define-public python-htmlmin
2188 (package
2189 (name "python-htmlmin")
2190 (version "0.1.12")
2191 (source
2192 (origin
2193 (method url-fetch)
2194 (uri (pypi-uri "htmlmin" version))
2195 (sha256
2196 (base32
2197 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2198 (arguments
2199 `(#:tests? #f)) ; no tests
2200 (build-system python-build-system)
2201 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2202 (synopsis "HTML minifier")
2203 (description "@code{htmlmin} is an HTML minifier that just works.
2204 It comes with safe defaults and easily configurable options.")
2205 (license license:bsd-3)))
2206
2207 (define-public python2-htmlmin
2208 (package-with-python2 python-htmlmin))
2209
2210 (define-public python-flask-htmlmin
2211 (package
2212 (name "python-flask-htmlmin")
2213 (version "1.2")
2214 (source
2215 (origin
2216 (method url-fetch)
2217 (uri (pypi-uri "Flask-HTMLmin" version))
2218 (sha256
2219 (base32
2220 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2221 (propagated-inputs
2222 `(("python-flask" ,python-flask)
2223 ("python-htmlmin" ,python-htmlmin)))
2224 (build-system python-build-system)
2225 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2226 (synopsis "HTML response minifier for Flask")
2227 (description
2228 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2229 (license license:bsd-3)))
2230
2231 (define-public python2-flask-htmlmin
2232 (package-with-python2 python-flask-htmlmin))
2233
2234 (define-public python-jsmin
2235 (package
2236 (name "python-jsmin")
2237 (version "2.2.2")
2238 (source
2239 (origin
2240 (method url-fetch)
2241 (uri (pypi-uri "jsmin" version))
2242 (sha256
2243 (base32
2244 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2245 (build-system python-build-system)
2246 (home-page "https://github.com/tikitu/jsmin/")
2247 (synopsis "Python JavaScript minifier")
2248 (description
2249 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2250 on the command line.")
2251 (license license:expat)))
2252
2253 (define-public python-flask-login
2254 (package
2255 (name "python-flask-login")
2256 (version "0.4.1")
2257 (source
2258 (origin
2259 (method git-fetch)
2260 (uri (git-reference
2261 (url "https://github.com/maxcountryman/flask-login.git")
2262 (commit version)))
2263 (file-name (git-file-name name version))
2264 (sha256
2265 (base32 "1rj0qwyxapxnp84fi4lhmvh3d91fdiwz7hibw77x3d5i72knqaa9"))))
2266 (arguments
2267 `(#:phases
2268 (modify-phases %standard-phases
2269 (add-before 'check 'avoid-yanc
2270 ;; Work around '.nosetests-real: error: no such option: --with-yanc'.
2271 (lambda _
2272 (setenv "NOCOLOR" "set")
2273 #t)))))
2274 (build-system python-build-system)
2275 (propagated-inputs
2276 `(("python-flask" ,python-flask)))
2277 (native-inputs
2278 ;; For tests.
2279 `(("python-blinker" ,python-blinker)
2280 ("python-mock" ,python-mock)
2281 ("python-nose" ,python-nose)
2282 ("python-pep8" ,python-pep8)
2283 ("python-pyflakes" ,python-pyflakes)
2284 ("python-semantic-version" ,python-semantic-version)
2285 ("python-werkzeug" ,python-werkzeug)))
2286 (home-page "https://github.com/maxcountryman/flask-login")
2287 (synopsis "User session management for Flask")
2288 (description
2289 "@code{Flask-Login} provides user session management for Flask. It
2290 handles the common tasks of logging in, logging out, and remembering your
2291 users' sessions over extended periods of time.")
2292 (license license:expat)))
2293
2294 (define-public python2-flask-login
2295 (package-with-python2 python-flask-login))
2296
2297 (define-public python-oauth2client
2298 (package
2299 (name "python-oauth2client")
2300 (version "4.0.0")
2301 (source
2302 (origin
2303 (method url-fetch)
2304 (uri (pypi-uri "oauth2client" version))
2305 (sha256
2306 (base32
2307 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2308 (build-system python-build-system)
2309 (arguments
2310 `(#:tests? #f))
2311 (propagated-inputs
2312 `(("python-httplib2" ,python-httplib2)
2313 ("python-pyasn1" ,python-pyasn1)
2314 ("python-pyasn1-modules" ,python-pyasn1-modules)
2315 ("python-rsa" ,python-rsa)
2316 ("python-six" ,python-six)))
2317 (home-page "https://github.com/google/oauth2client/")
2318 (synopsis "OAuth 2.0 client library")
2319 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2320 library for Python")
2321 (license license:asl2.0)))
2322
2323 (define-public python2-oauth2client
2324 (package-with-python2 python-oauth2client))
2325
2326 (define-public python-flask-oidc
2327 (package
2328 (name "python-flask-oidc")
2329 (version "1.1.1")
2330 (source
2331 (origin
2332 (method url-fetch)
2333 (uri (pypi-uri "flask-oidc" version))
2334 (sha256
2335 (base32
2336 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
2337 (build-system python-build-system)
2338 (propagated-inputs
2339 `(("python-flask" ,python-flask)
2340 ("python-itsdangerous" ,python-itsdangerous)
2341 ("python-oauth2client" ,python-oauth2client)
2342 ("python-six" ,python-six)))
2343 (native-inputs
2344 `(("python-nose" ,python-nose)
2345 ("python-mock" ,python-mock)))
2346 (home-page "https://github.com/puiterwijk/flask-oidc")
2347 (synopsis "OpenID Connect extension for Flask")
2348 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2349 for Flask.")
2350 (license license:bsd-2)))
2351
2352 (define-public python-webassets
2353 (package
2354 (name "python-webassets")
2355 (version "0.12.1")
2356 (source
2357 (origin
2358 (method url-fetch)
2359 (uri (pypi-uri "webassets" version))
2360 (sha256
2361 (base32
2362 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2363 (build-system python-build-system)
2364 (native-inputs
2365 `(("python-jinja2" ,python-jinja2)
2366 ("python-mock" ,python-mock)
2367 ("python-nose" ,python-nose)
2368 ("python-pytest" ,python-pytest)))
2369 (home-page "https://github.com/miracle2k/webassets")
2370 (synopsis "Media asset management")
2371 (description "Merges, minifies and compresses Javascript and CSS files,
2372 supporting a variety of different filters, including YUI, jsmin, jspacker or
2373 CSS tidy. Also supports URL rewriting in CSS files.")
2374 (license license:bsd-2)))
2375
2376 (define-public python-cssmin
2377 (package
2378 (name "python-cssmin")
2379 (version "0.2.0")
2380 (source
2381 (origin
2382 (method url-fetch)
2383 (uri (pypi-uri "cssmin" version))
2384 (sha256
2385 (base32
2386 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2387 (build-system python-build-system)
2388 (home-page "https://github.com/zacharyvoase/cssmin")
2389 (synopsis "Python port of the YUI CSS Compressor")
2390 (description "Python port of the YUI CSS Compressor.")
2391 (license (list license:expat license:bsd-3))))
2392
2393 (define-public python2-cssmin
2394 (package-with-python2 python-cssmin))
2395
2396 (define-public python-elasticsearch
2397 (package
2398 (name "python-elasticsearch")
2399 (version "6.1.1")
2400 (source
2401 (origin
2402 (method url-fetch)
2403 (uri (pypi-uri "elasticsearch" version))
2404 (sha256
2405 (base32
2406 "1kjxl45yvvgfb5fmamx0kfsfg9pzphiqrwbkns3s28r1w7ya74cd"))))
2407 (build-system python-build-system)
2408 (native-inputs
2409 `(("python-mock" ,python-mock)
2410 ("python-nosexcover" ,python-nosexcover)
2411 ("python-pyaml" ,python-pyaml)
2412 ("python-requests" ,python-requests)))
2413 (propagated-inputs
2414 `(("urllib3" ,python-urllib3)))
2415 (arguments
2416 ;; tests require the test_elasticsearch module but it is not distributed.
2417 `(#:tests? #f))
2418 (home-page "https://github.com/elastic/elasticsearch-py")
2419 (synopsis "Low-level client for Elasticsearch")
2420 (description "Official low-level client for Elasticsearch. Its goal is to
2421 provide common ground for all Elasticsearch-related code in Python; because of
2422 this it tries to be opinion-free and very extendable.")
2423 (license license:expat)))
2424
2425 (define-public python2-elasticsearch
2426 (package-with-python2 python-elasticsearch))
2427
2428 (define-public python-flask-script
2429 (package
2430 (name "python-flask-script")
2431 (version "2.0.6")
2432 (source
2433 (origin
2434 (method url-fetch)
2435 (uri (pypi-uri "Flask-Script" version))
2436 (sha256
2437 (base32
2438 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
2439 (build-system python-build-system)
2440 (propagated-inputs
2441 `(("python-flask" ,python-flask)
2442 ("python-argcomplete" ,python-argcomplete)
2443 ("python-werkzeug" ,python-werkzeug)))
2444 (native-inputs
2445 `(("python-pytest" ,python-pytest)))
2446 (home-page
2447 "https://github.com/smurfix/flask-script")
2448 (synopsis "Scripting support for Flask")
2449 (description "The Flask-Script extension provides support for writing
2450 external scripts in Flask. This includes running a development server,
2451 a customised Python shell, scripts to set up your database, cronjobs,
2452 and other command-line tasks that belong outside the web application
2453 itself.")
2454 (license license:bsd-3)))
2455
2456 (define-public python2-flask-script
2457 (package-with-python2 python-flask-script))
2458
2459 (define-public python-flask-migrate
2460 (package
2461 (name "python-flask-migrate")
2462 (version "2.0.3")
2463 (source
2464 (origin
2465 (method url-fetch)
2466 (uri (pypi-uri "Flask-Migrate" version))
2467 (sha256
2468 (base32
2469 "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk"))))
2470 (build-system python-build-system)
2471 (propagated-inputs
2472 `(("python-flask" ,python-flask)
2473 ("python-alembic" ,python-alembic)
2474 ("python-sqlalchemy" ,python-sqlalchemy)
2475 ("python-flask-script" ,python-flask-script)
2476 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2477 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2478 (synopsis "SQLAlchemy database migrations for Flask programs using
2479 Alembic")
2480 (description "This package contains SQLAlchemy database migration tools
2481 for Flask programs that are using @code{python-alembic}.")
2482 (license license:expat)))
2483
2484 (define-public python2-flask-migrate
2485 (package-with-python2 python-flask-migrate))
2486
2487 (define-public python-genshi
2488 (package
2489 (name "python-genshi")
2490 (version "0.7.1")
2491 (source
2492 (origin
2493 (method git-fetch)
2494 (uri (git-reference
2495 (url "https://github.com/edgewall/genshi.git")
2496 (commit version)))
2497 (file-name (git-file-name name version))
2498 (sha256
2499 (base32 "01fx8fnpay5w048ppyjivg2dgfpp5rybn07y3pfsgj2knram3nhl"))))
2500 (build-system python-build-system)
2501 (home-page "https://genshi.edgewall.org/")
2502 (synopsis "Toolkit for generation of output for the web")
2503 (description "Genshi is a Python library that provides an integrated set
2504 of components for parsing, generating, and processing HTML, XML or other
2505 textual content for output generation on the web.")
2506 (license license:bsd-3)))
2507
2508 (define-public python2-genshi
2509 (package-with-python2 python-genshi))
2510
2511 (define-public python-flask-principal
2512 (package
2513 (name "python-flask-principal")
2514 (version "0.4.0")
2515 (source
2516 (origin
2517 (method url-fetch)
2518 (uri (pypi-uri "Flask-Principal" version))
2519 (sha256
2520 (base32
2521 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
2522 (build-system python-build-system)
2523 (propagated-inputs
2524 `(("python-blinker" ,python-blinker)))
2525 (native-inputs
2526 `(("python-flask" ,python-flask)
2527 ("python-nose" ,python-nose)))
2528 (home-page "http://packages.python.org/Flask-Principal/")
2529 (synopsis "Identity management for Flask")
2530 (description "@code{flask_principal} is a identity management library for
2531 Flask. It supports managing both authentication and authorization data in a
2532 thread-local variable.")
2533 (license license:expat)))
2534
2535 (define-public python2-flask-principal
2536 (package-with-python2 python-flask-principal))
2537
2538 (define-public python-flask-httpauth
2539 (package
2540 (name "python-flask-httpauth")
2541 (version "3.2.3")
2542 (source
2543 (origin
2544 (method url-fetch)
2545 (uri (pypi-uri "Flask-HTTPAuth" version))
2546 (sha256
2547 (base32
2548 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
2549 (build-system python-build-system)
2550 (native-inputs
2551 `(("python-flask" ,python-flask)))
2552 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
2553 (synopsis "Basic and Digest HTTP authentication for Flask routes")
2554 (description "@code{flask_httpauth} provides Basic and Digest HTTP
2555 authentication for Flask routes.")
2556 (license license:expat)))
2557
2558 (define-public python2-flask-httpauth
2559 (package-with-python2 python-flask-httpauth))
2560
2561 (define-public python-uritemplate
2562 (package
2563 (name "python-uritemplate")
2564 (version "3.0.0")
2565 (source
2566 (origin
2567 (method url-fetch)
2568 (uri (pypi-uri "uritemplate" version))
2569 (sha256
2570 (base32
2571 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
2572 (build-system python-build-system)
2573 (home-page "https://uritemplate.readthedocs.org")
2574 (synopsis "Library to deal with URI Templates")
2575 (description "@code{uritemplate} provides Python library to deal with URI
2576 Templates.")
2577 (license license:bsd-2)))
2578
2579 (define-public python2-uritemplate
2580 (package-with-python2 python-uritemplate))
2581
2582 (define-public python-publicsuffix
2583 (package
2584 (name "python-publicsuffix")
2585 (version "1.1.0")
2586 (source (origin
2587 (method url-fetch)
2588 (uri (pypi-uri "publicsuffix" version))
2589 (sha256
2590 (base32
2591 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
2592 (build-system python-build-system)
2593 (arguments
2594 `(#:tests? #f)) ; tests use the internet
2595 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
2596 (synopsis "Get suffix for a domain name")
2597 (description "Get a public suffix for a domain name using the Public Suffix
2598 List.")
2599 (license license:expat)))
2600
2601 (define-public python2-publicsuffix
2602 (package-with-python2 python-publicsuffix))
2603
2604 (define-public python-publicsuffix2
2605 (package
2606 (name "python-publicsuffix2")
2607 (version "2.20160818")
2608 (source
2609 (origin
2610 (method url-fetch)
2611 (uri (pypi-uri "publicsuffix2" version ".tar.bz2"))
2612 (sha256
2613 (base32
2614 "1bb55yka9vkn7i6y1kjzxa516kh6v4gsrxa90w5wdz5p5n968r68"))))
2615 (build-system python-build-system)
2616 (arguments
2617 '(#:tests? #f)) ; The test suite requires network access.
2618 (home-page "https://github.com/pombredanne/python-publicsuffix2")
2619 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
2620 (description "Get a public suffix for a domain name using the Public Suffix
2621 List. Forked from and using the same API as the publicsuffix package.")
2622 (license (list license:expat license:mpl2.0))))
2623
2624 (define-public python2-publicsuffix2
2625 (package-with-python2 python-publicsuffix2))
2626
2627 (define-public python-werkzeug
2628 (package
2629 (name "python-werkzeug")
2630 (version "0.14.1")
2631 (source
2632 (origin
2633 (method url-fetch)
2634 (uri (pypi-uri "werkzeug" version))
2635 (sha256
2636 (base32
2637 "0z2m4snn1vc9518r2vzgdj1nc90kcgi60wijvd29yvcp85ypmzf3"))))
2638 (build-system python-build-system)
2639 (arguments
2640 '(#:phases
2641 (modify-phases %standard-phases
2642 (delete 'check)
2643 (add-after 'install 'check
2644 (lambda* (#:key inputs outputs #:allow-other-keys)
2645 (add-installed-pythonpath inputs outputs)
2646 (invoke "python" "-m" "pytest"))))))
2647 (propagated-inputs
2648 `(("python-requests" ,python-requests)))
2649 (native-inputs
2650 `(("python-pytest" ,python-pytest)))
2651 (home-page "https://www.palletsprojects.org/p/werkzeug/")
2652 (synopsis "Utilities for WSGI applications")
2653 (description "One of the most advanced WSGI utility modules. It includes a
2654 powerful debugger, full-featured request and response objects, HTTP utilities to
2655 handle entity tags, cache control headers, HTTP dates, cookie handling, file
2656 uploads, a powerful URL routing system and a bunch of community-contributed
2657 addon modules.")
2658 (license license:x11)))
2659
2660 (define-public python2-werkzeug
2661 (package-with-python2 python-werkzeug))
2662
2663 (define-public python-bottle
2664 (package
2665 (name "python-bottle")
2666 (version "0.12.13")
2667 (source
2668 (origin
2669 (method url-fetch)
2670 (uri (pypi-uri "bottle" version))
2671 (sha256
2672 (base32
2673 "0m9k2a7yxvggc4kw8fsvj381vgsvfcdshg5nzy6vwrxiw2p53drr"))))
2674 (build-system python-build-system)
2675 (home-page "http://bottlepy.org/")
2676 (synopsis "WSGI framework for small web-applications.")
2677 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
2678 (license license:expat)))
2679
2680 (define-public python2-bottle
2681 (package-with-python2 python-bottle))
2682
2683 (define-public python-wtforms
2684 (package
2685 (name "python-wtforms")
2686 (version "2.1")
2687 (source
2688 (origin
2689 (method url-fetch)
2690 (uri (pypi-uri "WTForms" version ".zip"))
2691 (sha256
2692 (base32
2693 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
2694 (build-system python-build-system)
2695 (arguments
2696 '(#:phases
2697 (modify-phases %standard-phases
2698 (add-after 'unpack 'remove-django-test
2699 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
2700 (lambda _
2701 (substitute*
2702 "tests/runtests.py"
2703 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
2704 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
2705 #t)))))
2706 (native-inputs
2707 `(("unzip" ,unzip)))
2708 (home-page "http://wtforms.simplecodes.com/")
2709 (synopsis
2710 "Form validation and rendering library for Python web development")
2711 (description
2712 "WTForms is a flexible forms validation and rendering library
2713 for Python web development. It is very similar to the web form API
2714 available in Django, but is a standalone package.")
2715 (license license:bsd-3)))
2716
2717 (define-public python2-wtforms
2718 (package-with-python2 python-wtforms))
2719
2720 (define-public python-paste
2721 (package
2722 (name "python-paste")
2723 (version "3.0.6")
2724 (source
2725 (origin
2726 (method url-fetch)
2727 (uri (pypi-uri "Paste" version))
2728 (sha256
2729 (base32
2730 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
2731 (patches (search-patches "python-paste-remove-timing-test.patch"))
2732 (modules '((guix build utils)))
2733 (snippet
2734 '(begin
2735 ;; This test calls out to the internet.
2736 (delete-file "tests/test_proxy.py") #t))))
2737 (build-system python-build-system)
2738 (native-inputs
2739 `(("python-pytest" ,python-pytest)
2740 ("python-pytest-runner" ,python-pytest-runner)
2741 ("python-nose" ,python-nose)))
2742 (propagated-inputs
2743 `(("python-six" ,python-six)))
2744 (home-page "http://pythonpaste.org")
2745 (synopsis
2746 "Python web development tools, focusing on WSGI")
2747 (description
2748 "Paste provides a variety of web development tools and middleware which
2749 can be nested together to build web applications. Paste's design closely
2750 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
2751 (license license:expat)))
2752
2753 (define-public python2-paste
2754 (package-with-python2 python-paste))
2755
2756 (define-public python-pastescript
2757 (package
2758 (name "python-pastescript")
2759 (version "2.0.2")
2760 (source
2761 (origin
2762 (method url-fetch)
2763 (uri (pypi-uri "PasteScript" version))
2764 (sha256
2765 (base32
2766 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
2767 (build-system python-build-system)
2768 (native-inputs
2769 `(("python-nose" ,python-nose)))
2770 (propagated-inputs
2771 `(("python-paste" ,python-paste)
2772 ("python-pastedeploy" ,python-pastedeploy)))
2773 (home-page "http://pythonpaste.org/script/")
2774 (arguments
2775 '(;; Unfortunately, this requires the latest unittest2,
2776 ;; but that requires traceback2 which requires linecache2 which requires
2777 ;; unittest2. So we're skipping tests for now.
2778 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
2779 ;; so in theory we could get around this situation somehow.)
2780 #:tests? #f))
2781 (synopsis
2782 "Pluggable command line tool for serving web applications and more")
2783 (description
2784 "PasteScript is a plugin-friendly command line tool which provides a
2785 variety of features, from launching web applications to bootstrapping project
2786 layouts.")
2787 (license license:expat)))
2788
2789 (define-public python2-pastescript
2790 (package-with-python2 python-pastescript))
2791
2792 (define-public python2-urlgrabber
2793 (package
2794 (name "python2-urlgrabber")
2795 (version "3.10.2")
2796 (source
2797 (origin
2798 (method url-fetch)
2799 (uri (pypi-uri "urlgrabber" version))
2800 (sha256
2801 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
2802 (build-system python-build-system)
2803 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
2804 (home-page "http://urlgrabber.baseurl.org")
2805 (synopsis "High-level cross protocol url-grabber")
2806 (description "@code{urlgrabber} is Python2 library that unifies access to
2807 files available on web, FTP or locally. It supports HTTP, FTP and file://
2808 protocols, it supports features like HTTP keep-alive, reget, throttling and
2809 more.")
2810 (license license:lgpl2.1+)))
2811
2812 (define-public python-pycares
2813 (package
2814 (name "python-pycares")
2815 (version "2.3.0")
2816 (source
2817 (origin
2818 (method url-fetch)
2819 (uri (pypi-uri "pycares" version))
2820 (sha256
2821 (base32
2822 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
2823 (build-system python-build-system)
2824 (arguments
2825 `(#:tests? #f)) ;tests require internet access
2826 (home-page "http://github.com/saghul/pycares")
2827 (synopsis "Python interface for @code{c-ares}")
2828 (description "@code{pycares} is a Python module which provides an
2829 interface to @code{c-ares}, a C library that performs DNS requests and
2830 name resolutions asynchronously.")
2831 (license license:expat)))
2832
2833 (define-public python-yarl
2834 (package
2835 (name "python-yarl")
2836 (version "1.1.1")
2837 (source
2838 (origin
2839 (method url-fetch)
2840 (uri (pypi-uri "yarl" version))
2841 (sha256
2842 (base32
2843 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
2844 (build-system python-build-system)
2845 (native-inputs
2846 `(("python-pytest" ,python-pytest)
2847 ("python-pytest-runner" ,python-pytest-runner)))
2848 (propagated-inputs
2849 `(("python-idna" ,python-idna)
2850 ("python-multidict" ,python-multidict)))
2851 (home-page "https://github.com/aio-libs/yarl/")
2852 (synopsis "Yet another URL library")
2853 (description "@code{yarl} module provides handy @code{URL} class
2854 for URL parsing and changing.")
2855 (license license:asl2.0)))
2856
2857 (define-public python-google-api-client
2858 (package
2859 (name "python-google-api-client")
2860 (version "1.6.7")
2861 (source
2862 (origin
2863 (method url-fetch)
2864 (uri (pypi-uri "google-api-python-client" version))
2865 (sha256
2866 (base32
2867 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
2868 (build-system python-build-system)
2869 (arguments
2870 '(#:tests? #f)) ; tests require internet access
2871 (native-inputs
2872 `(("python-httplib2" ,python-httplib2)
2873 ("python-six" ,python-six)
2874 ("python-oauth2client" ,python-oauth2client)
2875 ("python-uritemplate" ,python-uritemplate)))
2876 (home-page "https://github.com/google/google-api-python-client")
2877 (synopsis "Core Python library for accessing Google APIs")
2878 (description "Python client library for Google's discovery based APIs")
2879 (license license:asl2.0)))
2880
2881 (define-public python2-google-api-client
2882 (package-with-python2 python-google-api-client))
2883
2884 (define-public python-hawkauthlib
2885 (package
2886 (name "python-hawkauthlib")
2887 (version "2.0.0")
2888 (source
2889 (origin
2890 (method url-fetch)
2891 (uri (pypi-uri "hawkauthlib" version))
2892 (sha256
2893 (base32
2894 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
2895 (build-system python-build-system)
2896 (propagated-inputs
2897 `(("python-requests" ,python-requests)
2898 ("python-webob" ,python-webob)))
2899 (home-page "https://github.com/mozilla-services/hawkauthlib")
2900 (synopsis "Hawk Access Authentication protocol")
2901 (description
2902 "This is a low-level Python library for implementing Hawk Access Authentication,
2903 a simple HTTP request-signing scheme.")
2904 (license license:mpl2.0)))
2905
2906 (define-public python-pybrowserid
2907 (package
2908 (name "python-pybrowserid")
2909 (version "0.14.0")
2910 (source
2911 (origin
2912 (method url-fetch)
2913 (uri (pypi-uri "PyBrowserID" version))
2914 (sha256
2915 (base32
2916 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
2917 (build-system python-build-system)
2918 (propagated-inputs
2919 `(("python-requests" ,python-requests)))
2920 (native-inputs
2921 `(("python-mock" ,python-mock)))
2922 (home-page "https://github.com/mozilla/PyBrowserID")
2923 (synopsis "Python library for the BrowserID protocol")
2924 (description
2925 "This is a Python client library for the BrowserID protocol that
2926 underlies Mozilla Persona.")
2927 (license license:mpl2.0)))
2928
2929 (define-public python-pyfxa
2930 (package
2931 (name "python-pyfxa")
2932 (version "0.6.0")
2933 (source
2934 (origin
2935 (method url-fetch)
2936 (uri (pypi-uri "PyFxA" version))
2937 (sha256
2938 (base32
2939 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
2940 (build-system python-build-system)
2941 (arguments '(#:tests? #f)) ; 17 tests require network access
2942 (propagated-inputs
2943 `(("python-cryptography" ,python-cryptography)
2944 ("python-hawkauthlib" ,python-hawkauthlib)
2945 ("python-pybrowserid" ,python-pybrowserid)
2946 ("python-requests" ,python-requests)
2947 ("python-six" ,python-six)))
2948 (native-inputs
2949 `(("python-grequests" ,python-grequests)
2950 ("python-mock" ,python-mock)
2951 ("python-responses" ,python-responses)
2952 ("python-unittest2" ,python-unittest2)))
2953 (home-page "https://github.com/mozilla/PyFxA")
2954 (synopsis "Firefox Accounts client library for Python")
2955 (description
2956 "This is a Python library for interacting with the Firefox Accounts
2957 ecosystem.")
2958 (license license:mpl2.0)))
2959
2960 (define-public python-hyperlink
2961 (package
2962 (name "python-hyperlink")
2963 (version "18.0.0")
2964 (source
2965 (origin
2966 (method url-fetch)
2967 (uri (pypi-uri "hyperlink" version))
2968 (sha256
2969 (base32
2970 "01m3y19arfqljksngy8grc966zdb4larysralb8cajzi8kvly6zh"))))
2971 (build-system python-build-system)
2972 (propagated-inputs
2973 `(("python-idna" ,python-idna)))
2974 (home-page "https://github.com/python-hyper/hyperlink")
2975 (synopsis "Python module to create immutable URLs according to spec")
2976 (description "This package provides a Python module to create immutable, and
2977 correct URLs for Python according to RFCs 3986 and 3987.")
2978 (license license:expat)))
2979
2980 (define-public python-treq
2981 (package
2982 (name "python-treq")
2983 (version "18.6.0")
2984 (source
2985 (origin
2986 (method url-fetch)
2987 (uri (pypi-uri "treq" version))
2988 (sha256
2989 (base32
2990 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
2991 (build-system python-build-system)
2992 (propagated-inputs
2993 `(("python-attrs" ,python-attrs)
2994 ("python-idna" ,python-idna)
2995 ("python-incremental" ,python-incremental)
2996 ("python-requests" ,python-requests)
2997 ("python-service-identity" ,python-service-identity)
2998 ("python-twisted" ,python-twisted)))
2999 (home-page "https://github.com/twisted/treq")
3000 (synopsis "Requests-like API built on top of twisted.web's Agent")
3001 (description "This package provides an HTTP library inspired by
3002 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3003 high level API for making HTTP requests when using Twisted.")
3004 (license license:expat)))
3005
3006 (define-public python-autobahn
3007 (package
3008 (name "python-autobahn")
3009 (version "19.2.1")
3010 (source
3011 (origin
3012 (method url-fetch)
3013 (uri (pypi-uri "autobahn" version))
3014 (sha256
3015 (base32
3016 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3017 (build-system python-build-system)
3018 (arguments
3019 ;; The tests fail to run:
3020 ;; https://github.com/crossbario/autobahn-python/issues/1117
3021 `(#:tests? #f))
3022 (propagated-inputs
3023 `(("python-cffi" ,python-cffi)
3024 ("python-twisted" ,python-twisted)
3025 ("python-txaio" ,python-txaio)))
3026 (home-page "https://crossbar.io/autobahn/")
3027 (synopsis "Web Application Messaging Protocol implementation")
3028 (description "This package provides an implementation of the @dfn{Web Application
3029 Messaging Protocol} (WAMP). WAMP connects components in distributed
3030 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3031 Calls (rRPC). It is ideal for distributed, multi-client and server applications
3032 such as IoT applications or multi-user database-driven business applications.")
3033 (license license:expat)))
3034
3035 (define-public python-ws4py
3036 (package
3037 (name "python-ws4py")
3038 (version "0.5.1")
3039 (source
3040 (origin
3041 (method url-fetch)
3042 (uri (pypi-uri "ws4py" version))
3043 (sha256
3044 (base32
3045 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3046 (build-system python-build-system)
3047 (arguments
3048 `(#:phases
3049 (modify-phases %standard-phases
3050 (add-after 'unpack 'python3.7-compatibility
3051 (lambda _
3052 (substitute* '("ws4py/server/tulipserver.py"
3053 "ws4py/async_websocket.py")
3054 (("asyncio.async")
3055 "asyncio.ensure_future"))
3056 #t))
3057 ;; We don't have a package for cherrypy.
3058 (add-after 'unpack 'remove-cherrypy-support
3059 (lambda _
3060 (delete-file "ws4py/server/cherrypyserver.py")
3061 #t)))))
3062 (propagated-inputs
3063 `(("python-gevent" ,python-gevent)
3064 ("python-tornado" ,python-tornado)))
3065 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3066 (synopsis "WebSocket client and server library")
3067 (description
3068 "This package provides a WebSocket client and server library for
3069 Python.")
3070 (license license:bsd-3)))
3071
3072 ;; kaldi-gstreamer-server does not yet work with python-ws4py > 0.3.2
3073 (define-public python2-ws4py-for-kaldi-gstreamer-server
3074 (package (inherit python-ws4py)
3075 (name "python2-ws4py")
3076 (version "0.3.2")
3077 (source
3078 (origin
3079 (method url-fetch)
3080 (uri (pypi-uri "ws4py" version))
3081 (sha256
3082 (base32
3083 "12ys3dv98awhrxd570vla3hqgzq3avjhq4yafhghhq3a942y1928"))))
3084 (build-system python-build-system)
3085 (arguments
3086 `(#:python ,python-2
3087 #:phases
3088 (modify-phases %standard-phases
3089 ;; We don't have a package for cherrypy.
3090 (add-after 'unpack 'remove-cherrypy-support
3091 (lambda _
3092 (delete-file "ws4py/server/cherrypyserver.py")
3093 #t)))))
3094 (propagated-inputs
3095 `(("python-gevent" ,python2-gevent)
3096 ("python-tornado" ,python2-tornado)))))