projects/guix·blob version-1.0.0 · refs

3095 lines · 106.6 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Eric Dvorsak <[email protected]>
3;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <[email protected]>
4;;; Copyright © 2017 Christopher Baines <[email protected]>
5;;; Copyright © 2016, 2017 Danny Milosavljevic <[email protected]>
6;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <[email protected]>
7;;; Copyright © 2016, 2017 Marius Bakke <[email protected]>
8;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <[email protected]>
9;;; Copyright © 2017 Roel Janssen <[email protected]>
10;;; Copyright © 2016, 2017 Julien Lepiller <[email protected]>
11;;; Copyright © 2016, 2017 ng0 <[email protected]>
12;;; Copyright © 2014, 2017 Eric Bavier <[email protected]>
13;;; Copyright © 2014, 2015 Mark H Weaver <[email protected]>
14;;; Copyright © 2015 Cyril Roelandt <[email protected]>
15;;; Copyright © 2015, 2016, 2017, 2019 Leo Famulari <[email protected]>
16;;; Copyright © 2016 Hartmut Goebel <[email protected]>
17;;; Copyright © 2016, 2017, 2018, 2019 Tobias Geerinckx-Rice <[email protected]>
18;;; Copyright © 2015, 2017 Ben Woodcroft <[email protected]>
19;;; Copyright © 2015, 2016 Christopher Allan Webber <[email protected]>
20;;; Copyright © 2017 Adriano Peluso <[email protected]>
21;;; Copyright © 2016 Dylan Jeffers <sapientech@[email protected]>
22;;; Copyright © 2016 David Craven <[email protected]>
23;;; Copyright © 2017 Oleg Pykhalov <[email protected]>
24;;; Copyright © 2015, 2016 David Thompson <[email protected]>
25;;; Copyright © 2017 Mark Meyer <[email protected]>
26;;; Copyright © 2018 Tomáš Čech <[email protected]>
27;;; Copyright © 2018 Nicolas Goaziou <[email protected]>
28;;; Copyright © 2018 Mathieu Othacehe <[email protected]>
29;;; Copyright © 2018 Maxim Cournoyer <[email protected]>
30;;; Copyright © 2019 Vagrant Cascadian <[email protected]>
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
96framework.
97
98Its 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
102Callback 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
124aiohttp. 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
146asynchronous DNS resolutions with a synchronous looking interface by
147using @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
168an application that is a client, server or both.
169
170The package includes a module with full coverage of JSON RPC versions 1.0 and
1712.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
172comes 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
209backends 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
213classes
214@item Access to headers and bodies through request and response
215classes
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
246sharing} (CORS) support for Falcon. It allows applying a specially crafted
247CORS object to the incoming requests, enabling the ability to serve resources
248over 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
296other 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 [email protected] 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
332websites. It automatically stores and sends cookies, follows redirects, and can
333follow 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
362library, through the Tornado framework.
363
364SockJS provides a low-latency, full-duplex, cross-domain communication channel
365between 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
391support for Flask. This is based on the Python babel module as well as pytz -
392both 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
421and 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
464parsing spec for Python. Parsing is done in C using a variant of the gumbo
465parser. The gumbo parse tree is then transformed into an lxml tree, also in
466C, 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
507high-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
540something like @code{Content-Type: text/html; charset=latin1}, tools need
541to use a particular set of aliases for encoding labels as well as some
542overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
543the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
544or @code{UTF-16} BOM takes precedence over any other encoding declaration.
545The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
546defines all such details so that implementations do not have to
547reverse-engineer each other.
548
549This module implements the Encoding standard and has encoding labels and
550BOM detection, but the actual implementation for encoders and decoders
551is 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
586for 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
609for 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
633Cascading Style Sheets. Currently it provides a DOM only and no rendering
634options.")
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
662them to XPath 1.0 expressions. Such expressions can be used in lxml or
663another 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
685contributor 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
708teams 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,
744originally developed at FriendFeed. By using non-blocking network I/O,
745Tornado can scale to tens of thousands of open connections, making it ideal
746for long polling, WebSockets, and other applications that require a long-lived
747connection 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
781web 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
809term.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
841URI for testing. Testing a WSGI application normally involves starting a
842server at a local host and port, then pointing your test code to that address.
843Instead, this library lets you intercept calls to any specific host/port
844combination and redirect them into a WSGI application importable by your test
845program. Thus, you can avoid spawning multiple processes or threads to test
846your 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
868object 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
889use by applications which are unaware of any subscribers to their events. It
890is a simple event-dispatching system on which more sophisticated event
891dispatching 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.6.0")
901 (source
902 (origin
903 (method url-fetch)
904 (uri (pypi-uri "zope.interface" version))
905 (sha256
906 (base32
907 "1rgh2x3rcl9r0v0499kf78xy86rnmanajf4ywmqb943wpk50sg8v"))))
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\"
913methodology")
914 (description "Zope.interface provides an implementation of \"object
915interfaces\" for Python. Interfaces are a mechanism for labeling objects as
916conforming 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
941that 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
968forms, 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
999tests.")
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
1026internationalized 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
1057defining 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
1082Markup 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.
1107Proxies are special objects which serve as mostly-transparent wrappers around
1108another object, intervening in the apparent behavior of the wrapped object
1109only when necessary to apply the policy (e.g., access checking, location
1110brokering, 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
1136Zope3, 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
1170security 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
1207Architecture. Together with the zope.interface package, it provides
1208facilities 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
1232based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1233over the default provided with Python and, importantly, enables full
1234verification 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
1266WebSocket 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.21.0")
1284 (source (origin
1285 (method url-fetch)
1286 (uri (pypi-uri "requests" version))
1287 (sha256
1288 (base32
1289 "13jr0wkj9c2j8c0c8iaal9iivi0bpxghnsdn6lxcpnmc657q4ajh"))))
1290 (build-system python-build-system)
1291 (propagated-inputs
1292 `(("python-certifi" ,python-certifi)
1293 ("python-chardet" ,python-chardet)
1294 ("python-idna" ,python-idna)
1295 ("python-urllib3" ,python-urllib3)))
1296 (arguments
1297 ;; FIXME: Some tests require network access.
1298 '(#:tests? #f))
1299 (home-page "http://python-requests.org/")
1300 (synopsis "Python HTTP library")
1301 (description
1302 "Requests is a Python HTTP client library. It aims to be easier to use
1303than Python’s urllib2 library.")
1304 (license license:asl2.0)))
1305
1306;; Some software requires an older version of Requests, notably Docker
1307;; Compose.
1308(define-public python-requests-2.7
1309 (package (inherit python-requests)
1310 (version "2.7.0")
1311 (source (origin
1312 (method url-fetch)
1313 (uri (pypi-uri "requests" version))
1314 (sha256
1315 (base32
1316 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1317
1318(define-public python2-requests
1319 (package-with-python2 python-requests))
1320
1321(define-public python-requests-mock
1322 (package
1323 (name "python-requests-mock")
1324 (version "1.3.0")
1325 (source
1326 (origin
1327 (method url-fetch)
1328 (uri (pypi-uri "requests-mock" version))
1329 (sha256
1330 (base32
1331 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1332 (build-system python-build-system)
1333 (propagated-inputs
1334 `(("python-requests" ,python-requests)
1335 ("python-six" ,python-six)))
1336 (native-inputs
1337 `(("python-pbr" ,python-pbr)
1338 ("python-discover" ,python-discover)
1339 ("python-docutils" ,python-docutils)
1340 ("python-fixtures" ,python-fixtures)
1341 ("python-mock" ,python-mock)
1342 ("python-sphinx" ,python-sphinx)
1343 ("python-testrepository" ,python-testrepository)
1344 ("python-testtools" ,python-testtools)))
1345 (home-page "https://requests-mock.readthedocs.org/")
1346 (synopsis "Mock out responses from the requests package")
1347 (description
1348 "This module provides a building block to stub out the HTTP requests
1349portions of your testing code.")
1350 (properties `((python2-variant . ,(delay python2-requests-mock))))
1351 (license license:asl2.0)))
1352
1353(define-public python2-requests-mock
1354 (package (inherit (package-with-python2
1355 (strip-python2-variant python-requests-mock)))
1356 (arguments
1357 `(#:python ,python-2
1358 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1359 #:tests? #f))))
1360
1361(define-public python-requests-toolbelt
1362 (package
1363 (name "python-requests-toolbelt")
1364 (version "0.8.0")
1365 (source (origin
1366 (method url-fetch)
1367 (uri (pypi-uri "requests-toolbelt" version))
1368 (sha256
1369 (base32
1370 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1371 (build-system python-build-system)
1372 (native-inputs
1373 `(("python-betamax" ,python-betamax)
1374 ("python-mock" ,python-mock)
1375 ("python-pytest" ,python-pytest)))
1376 (propagated-inputs
1377 `(("python-requests" ,python-requests)))
1378 (synopsis "Extensions to python-requests")
1379 (description "This is a toolbelt of useful classes and functions to be used
1380with python-requests.")
1381 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1382 (license license:asl2.0)))
1383
1384(define-public python2-requests-toolbelt
1385 (package-with-python2 python-requests-toolbelt))
1386
1387(define-public python-oauthlib
1388 (package
1389 (name "python-oauthlib")
1390 (version "1.0.3")
1391 (source (origin
1392 (method url-fetch)
1393 (uri (pypi-uri "oauthlib" version))
1394 (sha256
1395 (base32
1396 "1bfrj70vdjxjw74khbyh6f0dksv7p5rh2346jnlrffyacd3gwjzg"))))
1397 (build-system python-build-system)
1398 (native-inputs
1399 `(("python-nose" ,python-nose)
1400 ("python-mock" ,python-mock)
1401 ("python-cryptography" ,python-cryptography)
1402 ("python-pyjwt" ,python-pyjwt)
1403 ("python-blinker" ,python-blinker)))
1404 (home-page "https://github.com/idan/oauthlib")
1405 (synopsis "OAuth implementation for Python")
1406 (description
1407 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1408OAuth request-signing logic.")
1409 (license license:bsd-3)
1410 (properties `((python2-variant . ,(delay python2-oauthlib))))))
1411
1412(define-public python2-oauthlib
1413 (let ((base (package-with-python2 (strip-python2-variant python-oauthlib))))
1414 (package
1415 (inherit base)
1416 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1417 ,@(package-native-inputs base))))))
1418
1419(define-public python-rauth
1420 (package
1421 (name "python-rauth")
1422 (version "0.7.3")
1423 (source
1424 (origin
1425 (method url-fetch)
1426 (uri (pypi-uri "rauth" version))
1427 (sha256
1428 (base32
1429 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1430 (build-system python-build-system)
1431 (arguments
1432 `(#:test-target "check"))
1433 (propagated-inputs
1434 `(("python-requests" ,python-requests)))
1435 (home-page "https://github.com/litl/rauth")
1436 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1437 (description
1438 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1439provides service wrappers for convenient connection initialization and
1440authenticated session objects providing things like keep-alive.")
1441 (license license:expat)
1442 (properties `((python2-variant . ,(delay python2-rauth))))))
1443
1444(define-public python2-rauth
1445 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1446 (package
1447 (inherit base)
1448 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1449 ,@(package-native-inputs base))))))
1450
1451(define-public python-urllib3
1452 (package
1453 (name "python-urllib3")
1454 (version "1.24.1")
1455 (source
1456 (origin
1457 (method url-fetch)
1458 (uri (pypi-uri "urllib3" version))
1459 (sha256
1460 (base32
1461 "08lwd9f3hqznyf32vnzwvp87pchx062nkbgyrf67rwlkgj0jk5fy"))))
1462 (build-system python-build-system)
1463 (arguments `(#:tests? #f))
1464 (propagated-inputs
1465 `(;; These 5 inputs are used to build urrlib3[secure]
1466 ("python-certifi" ,python-certifi)
1467 ("python-cryptography" ,python-cryptography)
1468 ("python-idna" ,python-idna)
1469 ("python-ipaddress" ,python-ipaddress)
1470 ("python-pyopenssl" ,python-pyopenssl)
1471 ("python-pysocks" ,python-pysocks)))
1472 (home-page "https://urllib3.readthedocs.io/")
1473 (synopsis "HTTP library with thread-safe connection pooling")
1474 (description
1475 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1476can reuse the same socket connection for multiple requests, it can POST files,
1477supports url redirection and retries, and also gzip and deflate decoding.")
1478 (license license:expat)))
1479
1480(define-public python2-urllib3
1481 (package-with-python2 python-urllib3))
1482
1483(define-public awscli
1484 (package
1485 (name "awscli")
1486 (version "1.14.41")
1487 (source
1488 (origin
1489 (method url-fetch)
1490 (uri (pypi-uri name version))
1491 (sha256
1492 (base32
1493 "0sispclx263lybbk19zp1n9yhg8xxx4jddypzgi24vpjaqnsbwlc"))))
1494 (build-system python-build-system)
1495 (propagated-inputs
1496 `(("python-colorama" ,python-colorama)
1497 ("python-botocore" ,python-botocore)
1498 ("python-s3transfer" ,python-s3transfer)
1499 ("python-docutils" ,python-docutils)
1500 ("python-pyyaml" ,python-pyyaml)
1501 ("python-rsa" ,python-rsa)))
1502 (arguments
1503 ;; FIXME: The 'pypi' release does not contain tests.
1504 '(#:tests? #f))
1505 (home-page "https://aws.amazon.com/cli/")
1506 (synopsis "Command line client for AWS")
1507 (description "AWS CLI provides a unified command line interface to the
1508Amazon Web Services (AWS) API.")
1509 (license license:asl2.0)))
1510
1511(define-public python-wsgiproxy2
1512 (package
1513 (name "python-wsgiproxy2")
1514 (version "0.4.5")
1515 (source
1516 (origin
1517 (method url-fetch)
1518 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
1519 (sha256
1520 (base32
1521 "19d9dva282vfjs784i0zkxp078lxfz4h3f621z30ij9wbf5rba6a"))))
1522 (build-system python-build-system)
1523 (native-inputs
1524 `(("python-webtest" ,python-webtest)))
1525 (propagated-inputs
1526 `(("python-requests" ,python-requests)
1527 ("python-six" ,python-six)
1528 ("python-urllib3" ,python-urllib3)
1529 ("python-webob" ,python-webob)))
1530 (home-page "https://github.com/gawel/WSGIProxy2/")
1531 (synopsis "WSGI Proxy with various http client backends")
1532 (description "WSGI turns HTTP requests into WSGI function calls.
1533WSGIProxy turns WSGI function calls into HTTP requests.
1534It also includes code to sign requests and pass private data,
1535and to spawn subprocesses to handle requests.")
1536 (license license:expat)))
1537
1538(define-public python2-wsgiproxy2
1539 (package-with-python2 python-wsgiproxy2))
1540
1541(define-public python-pastedeploy
1542 (package
1543 (name "python-pastedeploy")
1544 (version "1.5.2")
1545 (source
1546 (origin
1547 (method url-fetch)
1548 (uri (pypi-uri "PasteDeploy" version))
1549 (sha256
1550 (base32
1551 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
1552 (build-system python-build-system)
1553 (native-inputs
1554 `(("python-nose" ,python-nose)))
1555 (home-page "http://pythonpaste.org/deploy/")
1556 (synopsis
1557 "Load, configure, and compose WSGI applications and servers")
1558 (description
1559 "This tool provides code to load WSGI applications and servers from URIs;
1560these URIs can refer to Python Eggs for INI-style configuration files. Paste
1561Script provides commands to serve applications based on this configuration
1562file.")
1563 (license license:expat)))
1564
1565(define-public python2-pastedeploy
1566 (package-with-python2 python-pastedeploy))
1567
1568(define-public python-webtest
1569 (package
1570 (name "python-webtest")
1571 (version "2.0.33")
1572 (source
1573 (origin
1574 (method url-fetch)
1575 (uri (pypi-uri "WebTest" version))
1576 (sha256
1577 (base32
1578 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
1579 (build-system python-build-system)
1580 (arguments
1581 ;; Tests require python-pyquery, which creates a circular dependency.
1582 `(#:tests? #f))
1583 (propagated-inputs
1584 `(("python-waitress" ,python-waitress)
1585 ("python-webob" ,python-webob)
1586 ("python-six" ,python-six)
1587 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1588 (home-page "http://webtest.pythonpaste.org/")
1589 (synopsis "Helper to test WSGI applications")
1590 (description "Webtest allows you to test your Python web applications
1591without starting an HTTP server. It supports anything that supports the
1592minimum of WSGI.")
1593 (license license:expat)))
1594
1595(define-public python2-webtest
1596 (package-with-python2 python-webtest))
1597
1598(define-public python-flask
1599 (package
1600 (name "python-flask")
1601 (version "1.0.2")
1602 (source (origin
1603 (method url-fetch)
1604 (uri (pypi-uri "flask" version))
1605 (sha256
1606 (base32
1607 "0j6f4a9rpfh25k1gp7azqhnni4mb4fgy50jammgjgddw1l3w0w92"))))
1608 (build-system python-build-system)
1609 (arguments
1610 '(#:phases
1611 (modify-phases %standard-phases
1612 (replace 'check
1613 (lambda _
1614 (invoke "python" "-m" "pytest"))))))
1615 (native-inputs
1616 `(("python-pytest" ,python-pytest)))
1617 (propagated-inputs
1618 `(("python-itsdangerous" ,python-itsdangerous)
1619 ("python-jinja2" ,python-jinja2)
1620 ("python-click" ,python-click)
1621 ("python-werkzeug" ,python-werkzeug)))
1622 (home-page "https://www.palletsprojects.com/p/flask/")
1623 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
1624 (description "Flask is a micro web framework based on the Werkzeug toolkit
1625and Jinja2 template engine. It is called a micro framework because it does not
1626presume or force a developer to use a particular tool or library.")
1627 (license license:bsd-3)))
1628
1629(define-public python2-flask
1630 (package-with-python2 python-flask))
1631
1632(define-public python-flask-wtf
1633 (package
1634 (name "python-flask-wtf")
1635 (version "0.13.1")
1636 (source
1637 (origin
1638 (method url-fetch)
1639 (uri (pypi-uri "Flask-WTF" version))
1640 (sha256
1641 (base32
1642 "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990"))))
1643 (build-system python-build-system)
1644 (arguments
1645 '(#:phases
1646 (modify-phases %standard-phases
1647 (add-before 'check 'drop-failing-test
1648 (lambda _
1649 ;; FIXME: This file tries resolving an external server, which
1650 ;; fails. Try to patch out the offending section instead of
1651 ;; deleting the whole thing.
1652 (delete-file "tests/test_recaptcha.py")
1653 #t)))))
1654 (propagated-inputs
1655 `(("python-flask-babel" ,python-flask-babel)
1656 ("python-babel" ,python-babel)
1657 ("python-wtforms" ,python-wtforms)))
1658 (native-inputs
1659 `(("python-nose" ,python-nose)))
1660 (home-page "https://github.com/lepture/flask-wtf")
1661 (synopsis "Simple integration of Flask and WTForms")
1662 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
1663upload, and reCAPTCHA.")
1664 (license license:bsd-3)))
1665
1666(define-public python2-flask-wtf
1667 (package-with-python2 python-flask-wtf))
1668
1669(define-public python-flask-multistatic
1670 (package
1671 (name "python-flask-multistatic")
1672 (version "1.0")
1673 (source
1674 (origin
1675 (method url-fetch)
1676 (uri (pypi-uri "flask-multistatic" version))
1677 (sha256
1678 (base32
1679 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
1680 (build-system python-build-system)
1681 (propagated-inputs
1682 `(("python-flask" ,python-flask)))
1683 (home-page "https://pagure.io/flask-multistatic")
1684 (synopsis "Flask plugin to allow overriding static files")
1685 (description "@code{flask-multistatic} is a flask plugin that adds support
1686for overriding static files.")
1687 (license license:gpl3+)))
1688
1689(define-public python2-flask-multistatic
1690 (package-with-python2 python-flask-multistatic))
1691
1692(define-public python-cookies
1693 (package
1694 (name "python-cookies")
1695 (version "2.2.1")
1696 (source (origin
1697 (method url-fetch)
1698 (uri (pypi-uri "cookies" version))
1699 (sha256
1700 (base32
1701 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
1702 (build-system python-build-system)
1703 (arguments
1704 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
1705 #:tests? #f))
1706 (native-inputs
1707 `(("python-pytest" ,python2-pytest)))
1708 (synopsis "HTTP cookie parser and renderer")
1709 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
1710Python.")
1711 (home-page "https://gitlab.com/sashahart/cookies")
1712 (license license:expat)))
1713
1714(define-public python2-cookies
1715 (package-with-python2 python-cookies))
1716
1717(define-public python-responses
1718 (package
1719 (name "python-responses")
1720 (version "0.5.1")
1721 (source (origin
1722 (method url-fetch)
1723 (uri (pypi-uri "responses" version))
1724 (sha256
1725 (base32
1726 "1spcfxixyk9k7pk82jm6zqkwk031s95lh8q0mz7539jrb7269bcc"))))
1727 (build-system python-build-system)
1728 (arguments
1729 `(;; Test suite is not distributed:
1730 ;; https://github.com/getsentry/responses/issues/38
1731 #:tests? #f))
1732 (native-inputs
1733 `(("python-mock" ,python-mock)))
1734 (propagated-inputs
1735 `(("python-requests" ,python-requests)
1736 ("python-cookies" ,python-cookies)
1737 ("python-six" ,python-six)))
1738 (home-page "https://github.com/getsentry/responses")
1739 (synopsis "Utility for mocking out the `requests` Python library")
1740 (description "A utility library for mocking out the `requests` Python
1741library.")
1742 (license license:asl2.0)))
1743
1744(define-public python2-responses
1745 (package-with-python2 python-responses))
1746
1747(define-public python-grequests
1748 (package
1749 (name "python-grequests")
1750 (version "0.3.0")
1751 (source
1752 (origin
1753 (method url-fetch)
1754 (uri (pypi-uri "grequests" version))
1755 (sha256
1756 (base32
1757 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
1758 (build-system python-build-system)
1759 (propagated-inputs
1760 `(("python-gevent" ,python-gevent)
1761 ("python-requests" ,python-requests)))
1762 (native-inputs
1763 `(("python-nose" ,python-nose)))
1764 (home-page "https://github.com/kennethreitz/grequests")
1765 (synopsis "Python library for asynchronous HTTP requests")
1766 (description "GRequests is a Python library that allows you to use
1767@code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
1768 (license license:bsd-2)))
1769
1770(define-public python-geventhttpclient
1771 (package
1772 (name "python-geventhttpclient")
1773 (version "1.3.1")
1774 (source (origin
1775 (method url-fetch)
1776 (uri (pypi-uri "geventhttpclient" version))
1777 (sha256
1778 (base32
1779 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
1780 (modules '((guix build utils)))
1781 (snippet
1782 '(begin
1783 ;; Delete pre-compiled files.
1784 (for-each delete-file (find-files "src/geventhttpclient"
1785 ".*\\.pyc"))
1786 #t))))
1787 (build-system python-build-system)
1788 (arguments
1789 '(#:phases
1790 (modify-phases %standard-phases
1791 (add-after 'unpack 'delete-network-tests
1792 (lambda _
1793 (delete-file "src/geventhttpclient/tests/test_client.py")
1794 #t))
1795 (delete 'check)
1796 (add-after 'install 'check
1797 (lambda* (#:key inputs outputs #:allow-other-keys)
1798 (add-installed-pythonpath inputs outputs)
1799 (invoke "py.test" "src/geventhttpclient/tests" "-v"
1800 ;; Append the test modules to sys.path to avoid
1801 ;; namespace conflict which breaks SSL tests.
1802 "--import-mode=append")
1803 #t)))))
1804 (native-inputs
1805 `(("python-pytest" ,python-pytest)))
1806 (propagated-inputs
1807 `(("python-certifi" ,python-certifi)
1808 ("python-gevent" ,python-gevent)
1809 ("python-six" ,python-six)))
1810 (home-page "https://github.com/gwik/geventhttpclient")
1811 (synopsis "HTTP client library for gevent")
1812 (description "@code{python-geventhttpclient} is a high performance,
1813concurrent HTTP client library for python using @code{gevent}.")
1814 (license license:expat)))
1815
1816(define-public python2-geventhttpclient
1817 (package-with-python2 python-geventhttpclient))
1818
1819(define-public python-requests-oauthlib
1820 (package
1821 (name "python-requests-oauthlib")
1822 (version "0.6.2")
1823 (source
1824 (origin
1825 (method url-fetch)
1826 (uri (pypi-uri "requests-oauthlib" version))
1827 (sha256
1828 (base32
1829 "0ykff67sjcl227c23g0rxzfx34rr5bf21kwv0z3zmgk0lfmch7hn"))))
1830 (build-system python-build-system)
1831 (arguments
1832 `(#:phases
1833 (modify-phases %standard-phases
1834 ;; removes tests that require network access
1835 (add-before 'check 'pre-check
1836 (lambda _
1837 (delete-file "tests/test_core.py")
1838 #t)))))
1839 (native-inputs
1840 `(("python-requests-mock" ,python-requests-mock)
1841 ("python-mock" ,python-mock)))
1842 (propagated-inputs
1843 `(("python-oauthlib" ,python-oauthlib)
1844 ("python-requests" ,python-requests)))
1845 (home-page
1846 "https://github.com/requests/requests-oauthlib")
1847 (synopsis
1848 "OAuthlib authentication support for Requests")
1849 (description
1850 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
1851provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
1852 (license license:isc)))
1853
1854(define-public python2-requests-oauthlib
1855 (package-with-python2 python-requests-oauthlib))
1856
1857(define-public python-url
1858 (package
1859 (name "python-url")
1860 (version "0.2.0")
1861 (source (origin
1862 (method url-fetch)
1863 (uri (pypi-uri "url" version))
1864 (sha256
1865 (base32
1866 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
1867 (build-system python-build-system)
1868 (propagated-inputs
1869 `(("python-publicsuffix" ,python-publicsuffix)))
1870 (native-inputs
1871 `(("python-coverage" ,python-coverage)
1872 ("python-nose" ,python-nose)))
1873 (arguments
1874 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
1875 (home-page "https://github.com/seomoz/url-py")
1876 (synopsis "URL Parsing")
1877 (description "Library for parsing urls.")
1878 (license license:expat)
1879 (properties `((python2-variant . ,(delay python2-url))))))
1880
1881(define-public python2-url
1882 (let ((base (package-with-python2 (strip-python2-variant python-url))))
1883 (package (inherit base)
1884 (propagated-inputs
1885 `(("python2-publicsuffix" ,python2-publicsuffix))))))
1886
1887(define-public python-cachecontrol
1888 (package
1889 (name "python-cachecontrol")
1890 (version "0.11.6")
1891 (source
1892 (origin
1893 (method url-fetch)
1894 ;; Pypi does not have tests.
1895 (uri (string-append
1896 "https://github.com/ionrock/cachecontrol/archive/v"
1897 version ".tar.gz"))
1898 (file-name (string-append name "-" version ".tar.gz"))
1899 (sha256
1900 (base32
1901 "0yj60d0f69a2l8p7y86k4zhzzm6rnxpq74sfl240pry9l0lfw2vw"))))
1902 (build-system python-build-system)
1903 (arguments
1904 `(#:phases
1905 (modify-phases %standard-phases
1906 (replace 'check
1907 (lambda _
1908 ;; Drop test that requires internet access.
1909 (delete-file "tests/test_regressions.py")
1910 (setenv "PYTHONPATH"
1911 (string-append (getcwd) "/build/lib:"
1912 (getenv "PYTHONPATH")))
1913 (invoke "py.test" "-vv")
1914 #t)))))
1915 (native-inputs
1916 `(("python-pytest" ,python-pytest)
1917 ("python-redis" ,python-redis)
1918 ("python-webtest" ,python-webtest)
1919 ("python-mock" ,python-mock)))
1920 (propagated-inputs
1921 `(("python-requests" ,python-requests)
1922 ("python-lockfile" ,python-lockfile)))
1923 (home-page "https://github.com/ionrock/cachecontrol")
1924 (synopsis "The httplib2 caching algorithms for use with requests")
1925 (description "CacheControl is a port of the caching algorithms in
1926@code{httplib2} for use with @code{requests} session objects.")
1927 (license license:asl2.0)))
1928
1929(define-public python2-cachecontrol
1930 (package-with-python2 python-cachecontrol))
1931
1932(define-public python-betamax
1933 (package
1934 (name "python-betamax")
1935 (version "0.8.1")
1936 (source
1937 (origin
1938 (method url-fetch)
1939 (uri (pypi-uri "betamax" version))
1940 (sha256
1941 (base32
1942 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
1943 (build-system python-build-system)
1944 (arguments
1945 '(;; Many tests fail because they require networking.
1946 #:tests? #f))
1947 (propagated-inputs
1948 `(("python-requests" ,python-requests)))
1949 (home-page "https://github.com/sigmavirus24/betamax")
1950 (synopsis "Record HTTP interactions with python-requests")
1951 (description "Betamax will record your test suite's HTTP interactions and
1952replay them during future tests. It is designed to work with python-requests.")
1953 (license license:expat)))
1954
1955(define-public python2-betamax
1956 (package-with-python2 python-betamax))
1957
1958(define-public python-betamax-matchers
1959 (package
1960 (name "python-betamax-matchers")
1961 (version "0.4.0")
1962 (source
1963 (origin
1964 (method url-fetch)
1965 (uri (pypi-uri "betamax-matchers" version))
1966 (sha256
1967 (base32
1968 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
1969 (build-system python-build-system)
1970 (propagated-inputs
1971 `(("python-betamax" ,python-betamax)
1972 ("python-requests-toolbelt" ,python-requests-toolbelt)))
1973 (home-page "https://github.com/sigmavirus24/betamax_matchers")
1974 (synopsis "VCR imitation for python-requests")
1975 (description "@code{betamax-matchers} provides a set of Matchers for
1976Betamax.")
1977 (license license:asl2.0)))
1978
1979(define-public python2-betamax-matchers
1980 (package-with-python2 python-betamax-matchers))
1981
1982(define-public python-s3transfer
1983 (package
1984 (name "python-s3transfer")
1985 (version "0.1.13")
1986 (source (origin
1987 (method url-fetch)
1988 (uri (pypi-uri "s3transfer" version))
1989 (sha256
1990 (base32
1991 "1harvyn1s8v54n1w5h7c0lg4bgjh68aylhg28s8n174q53h1ip4h"))))
1992 (build-system python-build-system)
1993 (arguments
1994 `(#:phases
1995 (modify-phases %standard-phases
1996 (replace 'check
1997 (lambda _
1998 ;; 7 of the 'integration' tests require network access or login
1999 ;; credentials.
2000 (invoke "nosetests" "--exclude=integration")
2001 #t)))))
2002 (native-inputs
2003 `(("python-docutils" ,python-docutils)
2004 ("python-mock" ,python-mock)
2005 ("python-nose" ,python-nose)))
2006 (propagated-inputs
2007 `(("python-botocore" ,python-botocore)))
2008 (synopsis "Amazon S3 Transfer Manager")
2009 (description "S3transfer is a Python library for managing Amazon S3
2010transfers.")
2011 (home-page "https://github.com/boto/s3transfer")
2012 (license license:asl2.0)
2013 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2014
2015(define-public python2-s3transfer
2016 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2017 (package
2018 (inherit base)
2019 (native-inputs
2020 `(("python2-futures" ,python2-futures)
2021 ,@(package-native-inputs base))))))
2022
2023(define-public python-slimit
2024 (package
2025 (name "python-slimit")
2026 (version "0.8.1")
2027 (source
2028 (origin
2029 (method url-fetch)
2030 (uri (pypi-uri "slimit" version ".zip"))
2031 (sha256
2032 (base32
2033 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2034 (build-system python-build-system)
2035 (native-inputs
2036 `(("unzip" ,unzip)))
2037 (propagated-inputs
2038 `(("python-ply" ,python-ply)))
2039 (home-page "https://slimit.readthedocs.io/")
2040 (synopsis "JavaScript minifier, parser and lexer written in Python")
2041 (description
2042 "SlimIt is a JavaScript minifier written in Python. It compiles
2043JavaScript into more compact code so that it downloads and runs faster.
2044SlimIt also provides a library that includes a JavaScript parser, lexer,
2045pretty printer and a tree visitor.")
2046 (license license:expat)))
2047
2048(define-public python-flask-restful
2049 (package
2050 (name "python-flask-restful")
2051 (version "0.3.7")
2052 (source
2053 (origin
2054 (method url-fetch)
2055 (uri (pypi-uri "Flask-RESTful" version))
2056 (sha256
2057 (base32
2058 "1a9cbwkr6krryyzq4sd3f415nkkc6dyfls5i3pgyibs94g0hw97q"))))
2059 (build-system python-build-system)
2060 (propagated-inputs
2061 `(("python-aniso8601" ,python-aniso8601)
2062 ("python-flask" ,python-flask)
2063 ("python-pycrypto" ,python-pycrypto)
2064 ("python-pytz" ,python-pytz)))
2065 (native-inputs
2066 `(;; Optional dependency of Flask. Tests need it.
2067 ("python-blinker" ,python-blinker)
2068 ("python-mock" ,python-mock) ; For tests
2069 ("python-nose" ,python-nose) ; For tests
2070 ("python-sphinx" ,python-sphinx)))
2071 (home-page
2072 "https://www.github.com/flask-restful/flask-restful/")
2073 (synopsis
2074 "Flask module for creating REST APIs")
2075 (description
2076 "This package contains a Flask module for creating REST APIs.")
2077 (license license:bsd-3)))
2078
2079(define-public python-flask-basicauth
2080 (package
2081 (name "python-flask-basicauth")
2082 (version "0.2.0")
2083 (source
2084 (origin
2085 (method url-fetch)
2086 (uri (pypi-uri "Flask-BasicAuth" version))
2087 (sha256
2088 (base32
2089 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2090 (build-system python-build-system)
2091 (propagated-inputs
2092 `(("python-flask" ,python-flask)))
2093 (home-page
2094 "https://github.com/jpvanhal/flask-basicauth")
2095 (synopsis
2096 "HTTP basic access authentication for Flask")
2097 (description
2098 "This package provides HTTP basic access authentication for Flask.")
2099 (license license:bsd-3)))
2100
2101(define-public python-flask-sqlalchemy
2102 (package
2103 (name "python-flask-sqlalchemy")
2104 (version "2.1")
2105 (source
2106 (origin
2107 (method url-fetch)
2108 (uri (pypi-uri "Flask-SQLAlchemy" version))
2109 (sha256
2110 (base32
2111 "1i9ps5d5snih9xlqhrvmi3qfiygkmqzxh92n25kj4pf89kj4s965"))))
2112 (build-system python-build-system)
2113 (propagated-inputs
2114 `(("python-flask" ,python-flask)
2115 ("python-sqlalchemy" ,python-sqlalchemy)))
2116 (home-page
2117 "https://github.com/mitsuhiko/flask-sqlalchemy")
2118 (synopsis
2119 "Module adding SQLAlchemy support to your Flask application")
2120 (description
2121 "This package adds SQLAlchemy support to your Flask application.")
2122 (license license:bsd-3)))
2123
2124(define-public python-flask-restplus
2125 (package
2126 (name "python-flask-restplus")
2127 (version "0.9.2")
2128 (source
2129 (origin
2130 (method url-fetch)
2131 (uri (pypi-uri "flask-restplus" version))
2132 (sha256
2133 (base32
2134 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2135 (build-system python-build-system)
2136 (arguments
2137 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2138 ;; #:phases
2139 ;; (modify-phases %standard-phases
2140 ;; (replace 'check
2141 ;; (lambda _
2142 ;; (invoke "nosetests")
2143 ;; #t)))))
2144 (propagated-inputs
2145 `(("python-aniso8601" ,python-aniso8601)
2146 ("python-flask" ,python-flask)
2147 ("python-jsonschema" ,python-jsonschema)
2148 ("python-pytz" ,python-pytz)
2149 ("python-six" ,python-six)))
2150 (native-inputs
2151 `(("python-tzlocal" ,python-tzlocal)
2152 ("python-blinker" ,python-blinker)
2153 ("python-nose" ,python-nose)
2154 ("python-rednose" ,python-rednose)))
2155 (home-page "https://github.com/noirbizarre/flask-restplus")
2156 (synopsis "Framework for documented API development with Flask")
2157 (description "This package provides a framework for API development with
2158the Flask web framework in Python. It is similar to package
2159@code{python-flask-restful} but supports the @code{python-swagger}
2160documentation builder.")
2161 (license license:expat)))
2162
2163(define-public python-flask-restful-swagger
2164 (package
2165 (name "python-flask-restful-swagger")
2166 (version "0.19")
2167 (source
2168 (origin
2169 (method url-fetch)
2170 (uri (pypi-uri "flask-restful-swagger" version))
2171 (sha256
2172 (base32
2173 "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v"))))
2174 (build-system python-build-system)
2175 (propagated-inputs
2176 `(("python-flask-restful" ,python-flask-restful)))
2177 (home-page "https://github.com/rantav/flask-restful-swagger")
2178 (synopsis "Extract Swagger specs from Flask-Restful projects")
2179 (description "This package lets you extract Swagger API documentation
2180specs from your Flask-Restful projects.")
2181 (license license:expat)))
2182
2183(define-public python2-flask-restful-swagger
2184 (package-with-python2 python-flask-restful-swagger))
2185
2186(define-public python-htmlmin
2187 (package
2188 (name "python-htmlmin")
2189 (version "0.1.12")
2190 (source
2191 (origin
2192 (method url-fetch)
2193 (uri (pypi-uri "htmlmin" version))
2194 (sha256
2195 (base32
2196 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2197 (arguments
2198 `(#:tests? #f)) ; no tests
2199 (build-system python-build-system)
2200 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2201 (synopsis "HTML minifier")
2202 (description "@code{htmlmin} is an HTML minifier that just works.
2203It comes with safe defaults and easily configurable options.")
2204 (license license:bsd-3)))
2205
2206(define-public python2-htmlmin
2207 (package-with-python2 python-htmlmin))
2208
2209(define-public python-flask-htmlmin
2210 (package
2211 (name "python-flask-htmlmin")
2212 (version "1.2")
2213 (source
2214 (origin
2215 (method url-fetch)
2216 (uri (pypi-uri "Flask-HTMLmin" version))
2217 (sha256
2218 (base32
2219 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2220 (propagated-inputs
2221 `(("python-flask" ,python-flask)
2222 ("python-htmlmin" ,python-htmlmin)))
2223 (build-system python-build-system)
2224 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2225 (synopsis "HTML response minifier for Flask")
2226 (description
2227 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2228 (license license:bsd-3)))
2229
2230(define-public python2-flask-htmlmin
2231 (package-with-python2 python-flask-htmlmin))
2232
2233(define-public python-jsmin
2234 (package
2235 (name "python-jsmin")
2236 (version "2.2.2")
2237 (source
2238 (origin
2239 (method url-fetch)
2240 (uri (pypi-uri "jsmin" version))
2241 (sha256
2242 (base32
2243 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2244 (build-system python-build-system)
2245 (home-page "https://github.com/tikitu/jsmin/")
2246 (synopsis "Python JavaScript minifier")
2247 (description
2248 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2249on the command line.")
2250 (license license:expat)))
2251
2252(define-public python-flask-login
2253 (package
2254 (name "python-flask-login")
2255 (version "0.4.1")
2256 (source
2257 (origin
2258 (method git-fetch)
2259 (uri (git-reference
2260 (url "https://github.com/maxcountryman/flask-login.git")
2261 (commit version)))
2262 (file-name (git-file-name name version))
2263 (sha256
2264 (base32 "1rj0qwyxapxnp84fi4lhmvh3d91fdiwz7hibw77x3d5i72knqaa9"))))
2265 (arguments
2266 `(#:phases
2267 (modify-phases %standard-phases
2268 (add-before 'check 'avoid-yanc
2269 ;; Work around '.nosetests-real: error: no such option: --with-yanc'.
2270 (lambda _
2271 (setenv "NOCOLOR" "set")
2272 #t)))))
2273 (build-system python-build-system)
2274 (propagated-inputs
2275 `(("python-flask" ,python-flask)))
2276 (native-inputs
2277 ;; For tests.
2278 `(("python-blinker" ,python-blinker)
2279 ("python-mock" ,python-mock)
2280 ("python-nose" ,python-nose)
2281 ("python-pep8" ,python-pep8)
2282 ("python-pyflakes" ,python-pyflakes)
2283 ("python-semantic-version" ,python-semantic-version)
2284 ("python-werkzeug" ,python-werkzeug)))
2285 (home-page "https://github.com/maxcountryman/flask-login")
2286 (synopsis "User session management for Flask")
2287 (description
2288 "@code{Flask-Login} provides user session management for Flask. It
2289handles the common tasks of logging in, logging out, and remembering your
2290users' sessions over extended periods of time.")
2291 (license license:expat)))
2292
2293(define-public python2-flask-login
2294 (package-with-python2 python-flask-login))
2295
2296(define-public python-oauth2client
2297 (package
2298 (name "python-oauth2client")
2299 (version "4.0.0")
2300 (source
2301 (origin
2302 (method url-fetch)
2303 (uri (pypi-uri "oauth2client" version))
2304 (sha256
2305 (base32
2306 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2307 (build-system python-build-system)
2308 (arguments
2309 `(#:tests? #f))
2310 (propagated-inputs
2311 `(("python-httplib2" ,python-httplib2)
2312 ("python-pyasn1" ,python-pyasn1)
2313 ("python-pyasn1-modules" ,python-pyasn1-modules)
2314 ("python-rsa" ,python-rsa)
2315 ("python-six" ,python-six)))
2316 (home-page "https://github.com/google/oauth2client/")
2317 (synopsis "OAuth 2.0 client library")
2318 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2319library for Python")
2320 (license license:asl2.0)))
2321
2322(define-public python2-oauth2client
2323 (package-with-python2 python-oauth2client))
2324
2325(define-public python-flask-oidc
2326 (package
2327 (name "python-flask-oidc")
2328 (version "1.1.1")
2329 (source
2330 (origin
2331 (method url-fetch)
2332 (uri (pypi-uri "flask-oidc" version))
2333 (sha256
2334 (base32
2335 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
2336 (build-system python-build-system)
2337 (propagated-inputs
2338 `(("python-flask" ,python-flask)
2339 ("python-itsdangerous" ,python-itsdangerous)
2340 ("python-oauth2client" ,python-oauth2client)
2341 ("python-six" ,python-six)))
2342 (native-inputs
2343 `(("python-nose" ,python-nose)
2344 ("python-mock" ,python-mock)))
2345 (home-page "https://github.com/puiterwijk/flask-oidc")
2346 (synopsis "OpenID Connect extension for Flask")
2347 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2348for Flask.")
2349 (license license:bsd-2)))
2350
2351(define-public python-webassets
2352 (package
2353 (name "python-webassets")
2354 (version "0.12.1")
2355 (source
2356 (origin
2357 (method url-fetch)
2358 (uri (pypi-uri "webassets" version))
2359 (sha256
2360 (base32
2361 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2362 (build-system python-build-system)
2363 (native-inputs
2364 `(("python-jinja2" ,python-jinja2)
2365 ("python-mock" ,python-mock)
2366 ("python-nose" ,python-nose)
2367 ("python-pytest" ,python-pytest)))
2368 (home-page "https://github.com/miracle2k/webassets")
2369 (synopsis "Media asset management")
2370 (description "Merges, minifies and compresses Javascript and CSS files,
2371supporting a variety of different filters, including YUI, jsmin, jspacker or
2372CSS tidy. Also supports URL rewriting in CSS files.")
2373 (license license:bsd-2)))
2374
2375(define-public python-cssmin
2376 (package
2377 (name "python-cssmin")
2378 (version "0.2.0")
2379 (source
2380 (origin
2381 (method url-fetch)
2382 (uri (pypi-uri "cssmin" version))
2383 (sha256
2384 (base32
2385 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2386 (build-system python-build-system)
2387 (home-page "https://github.com/zacharyvoase/cssmin")
2388 (synopsis "Python port of the YUI CSS Compressor")
2389 (description "Python port of the YUI CSS Compressor.")
2390 (license (list license:expat license:bsd-3))))
2391
2392(define-public python2-cssmin
2393 (package-with-python2 python-cssmin))
2394
2395(define-public python-elasticsearch
2396 (package
2397 (name "python-elasticsearch")
2398 (version "6.1.1")
2399 (source
2400 (origin
2401 (method url-fetch)
2402 (uri (pypi-uri "elasticsearch" version))
2403 (sha256
2404 (base32
2405 "1kjxl45yvvgfb5fmamx0kfsfg9pzphiqrwbkns3s28r1w7ya74cd"))))
2406 (build-system python-build-system)
2407 (native-inputs
2408 `(("python-mock" ,python-mock)
2409 ("python-nosexcover" ,python-nosexcover)
2410 ("python-pyaml" ,python-pyaml)
2411 ("python-requests" ,python-requests)))
2412 (propagated-inputs
2413 `(("urllib3" ,python-urllib3)))
2414 (arguments
2415 ;; tests require the test_elasticsearch module but it is not distributed.
2416 `(#:tests? #f))
2417 (home-page "https://github.com/elastic/elasticsearch-py")
2418 (synopsis "Low-level client for Elasticsearch")
2419 (description "Official low-level client for Elasticsearch. Its goal is to
2420provide common ground for all Elasticsearch-related code in Python; because of
2421this it tries to be opinion-free and very extendable.")
2422 (license license:expat)))
2423
2424(define-public python2-elasticsearch
2425 (package-with-python2 python-elasticsearch))
2426
2427(define-public python-flask-script
2428 (package
2429 (name "python-flask-script")
2430 (version "2.0.6")
2431 (source
2432 (origin
2433 (method url-fetch)
2434 (uri (pypi-uri "Flask-Script" version))
2435 (sha256
2436 (base32
2437 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
2438 (build-system python-build-system)
2439 (propagated-inputs
2440 `(("python-flask" ,python-flask)
2441 ("python-argcomplete" ,python-argcomplete)
2442 ("python-werkzeug" ,python-werkzeug)))
2443 (native-inputs
2444 `(("python-pytest" ,python-pytest)))
2445 (home-page
2446 "https://github.com/smurfix/flask-script")
2447 (synopsis "Scripting support for Flask")
2448 (description "The Flask-Script extension provides support for writing
2449external scripts in Flask. This includes running a development server,
2450a customised Python shell, scripts to set up your database, cronjobs,
2451and other command-line tasks that belong outside the web application
2452itself.")
2453 (license license:bsd-3)))
2454
2455(define-public python2-flask-script
2456 (package-with-python2 python-flask-script))
2457
2458(define-public python-flask-migrate
2459 (package
2460 (name "python-flask-migrate")
2461 (version "2.0.3")
2462 (source
2463 (origin
2464 (method url-fetch)
2465 (uri (pypi-uri "Flask-Migrate" version))
2466 (sha256
2467 (base32
2468 "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk"))))
2469 (build-system python-build-system)
2470 (propagated-inputs
2471 `(("python-flask" ,python-flask)
2472 ("python-alembic" ,python-alembic)
2473 ("python-sqlalchemy" ,python-sqlalchemy)
2474 ("python-flask-script" ,python-flask-script)
2475 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2476 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2477 (synopsis "SQLAlchemy database migrations for Flask programs using
2478Alembic")
2479 (description "This package contains SQLAlchemy database migration tools
2480for Flask programs that are using @code{python-alembic}.")
2481 (license license:expat)))
2482
2483(define-public python2-flask-migrate
2484 (package-with-python2 python-flask-migrate))
2485
2486(define-public python-genshi
2487 (package
2488 (name "python-genshi")
2489 (version "0.7.1")
2490 (source
2491 (origin
2492 (method git-fetch)
2493 (uri (git-reference
2494 (url "https://github.com/edgewall/genshi.git")
2495 (commit version)))
2496 (file-name (git-file-name name version))
2497 (sha256
2498 (base32 "01fx8fnpay5w048ppyjivg2dgfpp5rybn07y3pfsgj2knram3nhl"))))
2499 (build-system python-build-system)
2500 (home-page "https://genshi.edgewall.org/")
2501 (synopsis "Toolkit for generation of output for the web")
2502 (description "Genshi is a Python library that provides an integrated set
2503of components for parsing, generating, and processing HTML, XML or other
2504textual content for output generation on the web.")
2505 (license license:bsd-3)))
2506
2507(define-public python2-genshi
2508 (package-with-python2 python-genshi))
2509
2510(define-public python-flask-principal
2511 (package
2512 (name "python-flask-principal")
2513 (version "0.4.0")
2514 (source
2515 (origin
2516 (method url-fetch)
2517 (uri (pypi-uri "Flask-Principal" version))
2518 (sha256
2519 (base32
2520 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
2521 (build-system python-build-system)
2522 (propagated-inputs
2523 `(("python-blinker" ,python-blinker)))
2524 (native-inputs
2525 `(("python-flask" ,python-flask)
2526 ("python-nose" ,python-nose)))
2527 (home-page "http://packages.python.org/Flask-Principal/")
2528 (synopsis "Identity management for Flask")
2529 (description "@code{flask_principal} is a identity management library for
2530Flask. It supports managing both authentication and authorization data in a
2531thread-local variable.")
2532 (license license:expat)))
2533
2534(define-public python2-flask-principal
2535 (package-with-python2 python-flask-principal))
2536
2537(define-public python-flask-httpauth
2538 (package
2539 (name "python-flask-httpauth")
2540 (version "3.2.3")
2541 (source
2542 (origin
2543 (method url-fetch)
2544 (uri (pypi-uri "Flask-HTTPAuth" version))
2545 (sha256
2546 (base32
2547 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
2548 (build-system python-build-system)
2549 (native-inputs
2550 `(("python-flask" ,python-flask)))
2551 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
2552 (synopsis "Basic and Digest HTTP authentication for Flask routes")
2553 (description "@code{flask_httpauth} provides Basic and Digest HTTP
2554authentication for Flask routes.")
2555 (license license:expat)))
2556
2557(define-public python2-flask-httpauth
2558 (package-with-python2 python-flask-httpauth))
2559
2560(define-public python-uritemplate
2561 (package
2562 (name "python-uritemplate")
2563 (version "3.0.0")
2564 (source
2565 (origin
2566 (method url-fetch)
2567 (uri (pypi-uri "uritemplate" version))
2568 (sha256
2569 (base32
2570 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
2571 (build-system python-build-system)
2572 (home-page "https://uritemplate.readthedocs.org")
2573 (synopsis "Library to deal with URI Templates")
2574 (description "@code{uritemplate} provides Python library to deal with URI
2575Templates.")
2576 (license license:bsd-2)))
2577
2578(define-public python2-uritemplate
2579 (package-with-python2 python-uritemplate))
2580
2581(define-public python-publicsuffix
2582 (package
2583 (name "python-publicsuffix")
2584 (version "1.1.0")
2585 (source (origin
2586 (method url-fetch)
2587 (uri (pypi-uri "publicsuffix" version))
2588 (sha256
2589 (base32
2590 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
2591 (build-system python-build-system)
2592 (arguments
2593 `(#:tests? #f)) ; tests use the internet
2594 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
2595 (synopsis "Get suffix for a domain name")
2596 (description "Get a public suffix for a domain name using the Public Suffix
2597List.")
2598 (license license:expat)))
2599
2600(define-public python2-publicsuffix
2601 (package-with-python2 python-publicsuffix))
2602
2603(define-public python-publicsuffix2
2604 (package
2605 (name "python-publicsuffix2")
2606 (version "2.20160818")
2607 (source
2608 (origin
2609 (method url-fetch)
2610 (uri (pypi-uri "publicsuffix2" version ".tar.bz2"))
2611 (sha256
2612 (base32
2613 "1bb55yka9vkn7i6y1kjzxa516kh6v4gsrxa90w5wdz5p5n968r68"))))
2614 (build-system python-build-system)
2615 (arguments
2616 '(#:tests? #f)) ; The test suite requires network access.
2617 (home-page "https://github.com/pombredanne/python-publicsuffix2")
2618 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
2619 (description "Get a public suffix for a domain name using the Public Suffix
2620List. Forked from and using the same API as the publicsuffix package.")
2621 (license (list license:expat license:mpl2.0))))
2622
2623(define-public python2-publicsuffix2
2624 (package-with-python2 python-publicsuffix2))
2625
2626(define-public python-werkzeug
2627 (package
2628 (name "python-werkzeug")
2629 (version "0.14.1")
2630 (source
2631 (origin
2632 (method url-fetch)
2633 (uri (pypi-uri "werkzeug" version))
2634 (sha256
2635 (base32
2636 "0z2m4snn1vc9518r2vzgdj1nc90kcgi60wijvd29yvcp85ypmzf3"))))
2637 (build-system python-build-system)
2638 (arguments
2639 '(#:phases
2640 (modify-phases %standard-phases
2641 (delete 'check)
2642 (add-after 'install 'check
2643 (lambda* (#:key inputs outputs #:allow-other-keys)
2644 (add-installed-pythonpath inputs outputs)
2645 (invoke "python" "-m" "pytest"))))))
2646 (propagated-inputs
2647 `(("python-requests" ,python-requests)))
2648 (native-inputs
2649 `(("python-pytest" ,python-pytest)))
2650 (home-page "https://www.palletsprojects.org/p/werkzeug/")
2651 (synopsis "Utilities for WSGI applications")
2652 (description "One of the most advanced WSGI utility modules. It includes a
2653powerful debugger, full-featured request and response objects, HTTP utilities to
2654handle entity tags, cache control headers, HTTP dates, cookie handling, file
2655uploads, a powerful URL routing system and a bunch of community-contributed
2656addon modules.")
2657 (license license:x11)))
2658
2659(define-public python2-werkzeug
2660 (package-with-python2 python-werkzeug))
2661
2662(define-public python-bottle
2663 (package
2664 (name "python-bottle")
2665 (version "0.12.13")
2666 (source
2667 (origin
2668 (method url-fetch)
2669 (uri (pypi-uri "bottle" version))
2670 (sha256
2671 (base32
2672 "0m9k2a7yxvggc4kw8fsvj381vgsvfcdshg5nzy6vwrxiw2p53drr"))))
2673 (build-system python-build-system)
2674 (home-page "http://bottlepy.org/")
2675 (synopsis "WSGI framework for small web-applications.")
2676 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
2677 (license license:expat)))
2678
2679(define-public python2-bottle
2680 (package-with-python2 python-bottle))
2681
2682(define-public python-wtforms
2683 (package
2684 (name "python-wtforms")
2685 (version "2.1")
2686 (source
2687 (origin
2688 (method url-fetch)
2689 (uri (pypi-uri "WTForms" version ".zip"))
2690 (sha256
2691 (base32
2692 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
2693 (build-system python-build-system)
2694 (arguments
2695 '(#:phases
2696 (modify-phases %standard-phases
2697 (add-after 'unpack 'remove-django-test
2698 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
2699 (lambda _
2700 (substitute*
2701 "tests/runtests.py"
2702 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
2703 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
2704 #t)))))
2705 (native-inputs
2706 `(("unzip" ,unzip)))
2707 (home-page "http://wtforms.simplecodes.com/")
2708 (synopsis
2709 "Form validation and rendering library for Python web development")
2710 (description
2711 "WTForms is a flexible forms validation and rendering library
2712for Python web development. It is very similar to the web form API
2713available in Django, but is a standalone package.")
2714 (license license:bsd-3)))
2715
2716(define-public python2-wtforms
2717 (package-with-python2 python-wtforms))
2718
2719(define-public python-paste
2720 (package
2721 (name "python-paste")
2722 (version "3.0.6")
2723 (source
2724 (origin
2725 (method url-fetch)
2726 (uri (pypi-uri "Paste" version))
2727 (sha256
2728 (base32
2729 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
2730 (patches (search-patches "python-paste-remove-timing-test.patch"))
2731 (modules '((guix build utils)))
2732 (snippet
2733 '(begin
2734 ;; This test calls out to the internet.
2735 (delete-file "tests/test_proxy.py") #t))))
2736 (build-system python-build-system)
2737 (native-inputs
2738 `(("python-pytest" ,python-pytest)
2739 ("python-pytest-runner" ,python-pytest-runner)
2740 ("python-nose" ,python-nose)))
2741 (propagated-inputs
2742 `(("python-six" ,python-six)))
2743 (home-page "http://pythonpaste.org")
2744 (synopsis
2745 "Python web development tools, focusing on WSGI")
2746 (description
2747 "Paste provides a variety of web development tools and middleware which
2748can be nested together to build web applications. Paste's design closely
2749follows ideas flowing from WSGI (Web Standard Gateway Interface).")
2750 (license license:expat)))
2751
2752(define-public python2-paste
2753 (package-with-python2 python-paste))
2754
2755(define-public python-pastescript
2756 (package
2757 (name "python-pastescript")
2758 (version "2.0.2")
2759 (source
2760 (origin
2761 (method url-fetch)
2762 (uri (pypi-uri "PasteScript" version))
2763 (sha256
2764 (base32
2765 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
2766 (build-system python-build-system)
2767 (native-inputs
2768 `(("python-nose" ,python-nose)))
2769 (propagated-inputs
2770 `(("python-paste" ,python-paste)
2771 ("python-pastedeploy" ,python-pastedeploy)))
2772 (home-page "http://pythonpaste.org/script/")
2773 (arguments
2774 '(;; Unfortunately, this requires the latest unittest2,
2775 ;; but that requires traceback2 which requires linecache2 which requires
2776 ;; unittest2. So we're skipping tests for now.
2777 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
2778 ;; so in theory we could get around this situation somehow.)
2779 #:tests? #f))
2780 (synopsis
2781 "Pluggable command line tool for serving web applications and more")
2782 (description
2783 "PasteScript is a plugin-friendly command line tool which provides a
2784variety of features, from launching web applications to bootstrapping project
2785layouts.")
2786 (license license:expat)))
2787
2788(define-public python2-pastescript
2789 (package-with-python2 python-pastescript))
2790
2791(define-public python2-urlgrabber
2792 (package
2793 (name "python2-urlgrabber")
2794 (version "3.10.2")
2795 (source
2796 (origin
2797 (method url-fetch)
2798 (uri (pypi-uri "urlgrabber" version))
2799 (sha256
2800 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
2801 (build-system python-build-system)
2802 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
2803 (home-page "http://urlgrabber.baseurl.org")
2804 (synopsis "High-level cross protocol url-grabber")
2805 (description "@code{urlgrabber} is Python2 library that unifies access to
2806files available on web, FTP or locally. It supports HTTP, FTP and file://
2807protocols, it supports features like HTTP keep-alive, reget, throttling and
2808more.")
2809 (license license:lgpl2.1+)))
2810
2811(define-public python-pycares
2812 (package
2813 (name "python-pycares")
2814 (version "2.3.0")
2815 (source
2816 (origin
2817 (method url-fetch)
2818 (uri (pypi-uri "pycares" version))
2819 (sha256
2820 (base32
2821 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
2822 (build-system python-build-system)
2823 (arguments
2824 `(#:tests? #f)) ;tests require internet access
2825 (home-page "http://github.com/saghul/pycares")
2826 (synopsis "Python interface for @code{c-ares}")
2827 (description "@code{pycares} is a Python module which provides an
2828interface to @code{c-ares}, a C library that performs DNS requests and
2829name resolutions asynchronously.")
2830 (license license:expat)))
2831
2832(define-public python-yarl
2833 (package
2834 (name "python-yarl")
2835 (version "1.1.1")
2836 (source
2837 (origin
2838 (method url-fetch)
2839 (uri (pypi-uri "yarl" version))
2840 (sha256
2841 (base32
2842 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
2843 (build-system python-build-system)
2844 (native-inputs
2845 `(("python-pytest" ,python-pytest)
2846 ("python-pytest-runner" ,python-pytest-runner)))
2847 (propagated-inputs
2848 `(("python-idna" ,python-idna)
2849 ("python-multidict" ,python-multidict)))
2850 (home-page "https://github.com/aio-libs/yarl/")
2851 (synopsis "Yet another URL library")
2852 (description "@code{yarl} module provides handy @code{URL} class
2853for URL parsing and changing.")
2854 (license license:asl2.0)))
2855
2856(define-public python-google-api-client
2857 (package
2858 (name "python-google-api-client")
2859 (version "1.6.7")
2860 (source
2861 (origin
2862 (method url-fetch)
2863 (uri (pypi-uri "google-api-python-client" version))
2864 (sha256
2865 (base32
2866 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
2867 (build-system python-build-system)
2868 (arguments
2869 '(#:tests? #f)) ; tests require internet access
2870 (native-inputs
2871 `(("python-httplib2" ,python-httplib2)
2872 ("python-six" ,python-six)
2873 ("python-oauth2client" ,python-oauth2client)
2874 ("python-uritemplate" ,python-uritemplate)))
2875 (home-page "https://github.com/google/google-api-python-client")
2876 (synopsis "Core Python library for accessing Google APIs")
2877 (description "Python client library for Google's discovery based APIs")
2878 (license license:asl2.0)))
2879
2880(define-public python2-google-api-client
2881 (package-with-python2 python-google-api-client))
2882
2883(define-public python-hawkauthlib
2884 (package
2885 (name "python-hawkauthlib")
2886 (version "2.0.0")
2887 (source
2888 (origin
2889 (method url-fetch)
2890 (uri (pypi-uri "hawkauthlib" version))
2891 (sha256
2892 (base32
2893 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
2894 (build-system python-build-system)
2895 (propagated-inputs
2896 `(("python-requests" ,python-requests)
2897 ("python-webob" ,python-webob)))
2898 (home-page "https://github.com/mozilla-services/hawkauthlib")
2899 (synopsis "Hawk Access Authentication protocol")
2900 (description
2901 "This is a low-level Python library for implementing Hawk Access Authentication,
2902a simple HTTP request-signing scheme.")
2903 (license license:mpl2.0)))
2904
2905(define-public python-pybrowserid
2906 (package
2907 (name "python-pybrowserid")
2908 (version "0.14.0")
2909 (source
2910 (origin
2911 (method url-fetch)
2912 (uri (pypi-uri "PyBrowserID" version))
2913 (sha256
2914 (base32
2915 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
2916 (build-system python-build-system)
2917 (propagated-inputs
2918 `(("python-requests" ,python-requests)))
2919 (native-inputs
2920 `(("python-mock" ,python-mock)))
2921 (home-page "https://github.com/mozilla/PyBrowserID")
2922 (synopsis "Python library for the BrowserID protocol")
2923 (description
2924 "This is a Python client library for the BrowserID protocol that
2925underlies Mozilla Persona.")
2926 (license license:mpl2.0)))
2927
2928(define-public python-pyfxa
2929 (package
2930 (name "python-pyfxa")
2931 (version "0.6.0")
2932 (source
2933 (origin
2934 (method url-fetch)
2935 (uri (pypi-uri "PyFxA" version))
2936 (sha256
2937 (base32
2938 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
2939 (build-system python-build-system)
2940 (arguments '(#:tests? #f)) ; 17 tests require network access
2941 (propagated-inputs
2942 `(("python-cryptography" ,python-cryptography)
2943 ("python-hawkauthlib" ,python-hawkauthlib)
2944 ("python-pybrowserid" ,python-pybrowserid)
2945 ("python-requests" ,python-requests)
2946 ("python-six" ,python-six)))
2947 (native-inputs
2948 `(("python-grequests" ,python-grequests)
2949 ("python-mock" ,python-mock)
2950 ("python-responses" ,python-responses)
2951 ("python-unittest2" ,python-unittest2)))
2952 (home-page "https://github.com/mozilla/PyFxA")
2953 (synopsis "Firefox Accounts client library for Python")
2954 (description
2955 "This is a Python library for interacting with the Firefox Accounts
2956ecosystem.")
2957 (license license:mpl2.0)))
2958
2959(define-public python-hyperlink
2960 (package
2961 (name "python-hyperlink")
2962 (version "19.0.0")
2963 (source
2964 (origin
2965 (method url-fetch)
2966 (uri (pypi-uri "hyperlink" version))
2967 (sha256
2968 (base32
2969 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
2970 (build-system python-build-system)
2971 (propagated-inputs
2972 `(("python-idna" ,python-idna)))
2973 (home-page "https://github.com/python-hyper/hyperlink")
2974 (synopsis "Python module to create immutable URLs according to spec")
2975 (description "This package provides a Python module to create immutable, and
2976correct URLs for Python according to RFCs 3986 and 3987.")
2977 (license license:expat)))
2978
2979(define-public python-treq
2980 (package
2981 (name "python-treq")
2982 (version "18.6.0")
2983 (source
2984 (origin
2985 (method url-fetch)
2986 (uri (pypi-uri "treq" version))
2987 (sha256
2988 (base32
2989 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
2990 (build-system python-build-system)
2991 (propagated-inputs
2992 `(("python-attrs" ,python-attrs)
2993 ("python-idna" ,python-idna)
2994 ("python-incremental" ,python-incremental)
2995 ("python-requests" ,python-requests)
2996 ("python-service-identity" ,python-service-identity)
2997 ("python-twisted" ,python-twisted)))
2998 (home-page "https://github.com/twisted/treq")
2999 (synopsis "Requests-like API built on top of twisted.web's Agent")
3000 (description "This package provides an HTTP library inspired by
3001@code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3002high level API for making HTTP requests when using Twisted.")
3003 (license license:expat)))
3004
3005(define-public python-autobahn
3006 (package
3007 (name "python-autobahn")
3008 (version "19.2.1")
3009 (source
3010 (origin
3011 (method url-fetch)
3012 (uri (pypi-uri "autobahn" version))
3013 (sha256
3014 (base32
3015 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3016 (build-system python-build-system)
3017 (arguments
3018 ;; The tests fail to run:
3019 ;; https://github.com/crossbario/autobahn-python/issues/1117
3020 `(#:tests? #f))
3021 (propagated-inputs
3022 `(("python-cffi" ,python-cffi)
3023 ("python-twisted" ,python-twisted)
3024 ("python-txaio" ,python-txaio)))
3025 (home-page "https://crossbar.io/autobahn/")
3026 (synopsis "Web Application Messaging Protocol implementation")
3027 (description "This package provides an implementation of the @dfn{Web Application
3028Messaging Protocol} (WAMP). WAMP connects components in distributed
3029applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3030Calls (rRPC). It is ideal for distributed, multi-client and server applications
3031such as IoT applications or multi-user database-driven business applications.")
3032 (license license:expat)))
3033
3034(define-public python-ws4py
3035 (package
3036 (name "python-ws4py")
3037 (version "0.5.1")
3038 (source
3039 (origin
3040 (method url-fetch)
3041 (uri (pypi-uri "ws4py" version))
3042 (sha256
3043 (base32
3044 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3045 (build-system python-build-system)
3046 (arguments
3047 `(#:phases
3048 (modify-phases %standard-phases
3049 (add-after 'unpack 'python3.7-compatibility
3050 (lambda _
3051 (substitute* '("ws4py/server/tulipserver.py"
3052 "ws4py/async_websocket.py")
3053 (("asyncio.async")
3054 "asyncio.ensure_future"))
3055 #t))
3056 ;; We don't have a package for cherrypy.
3057 (add-after 'unpack 'remove-cherrypy-support
3058 (lambda _
3059 (delete-file "ws4py/server/cherrypyserver.py")
3060 #t)))))
3061 (propagated-inputs
3062 `(("python-gevent" ,python-gevent)
3063 ("python-tornado" ,python-tornado)))
3064 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3065 (synopsis "WebSocket client and server library")
3066 (description
3067 "This package provides a WebSocket client and server library for
3068Python.")
3069 (license license:bsd-3)))
3070
3071;; kaldi-gstreamer-server does not yet work with python-ws4py > 0.3.2
3072(define-public python2-ws4py-for-kaldi-gstreamer-server
3073 (package (inherit python-ws4py)
3074 (name "python2-ws4py")
3075 (version "0.3.2")
3076 (source
3077 (origin
3078 (method url-fetch)
3079 (uri (pypi-uri "ws4py" version))
3080 (sha256
3081 (base32
3082 "12ys3dv98awhrxd570vla3hqgzq3avjhq4yafhghhq3a942y1928"))))
3083 (build-system python-build-system)
3084 (arguments
3085 `(#:python ,python-2
3086 #:phases
3087 (modify-phases %standard-phases
3088 ;; We don't have a package for cherrypy.
3089 (add-after 'unpack 'remove-cherrypy-support
3090 (lambda _
3091 (delete-file "ws4py/server/cherrypyserver.py")
3092 #t)))))
3093 (propagated-inputs
3094 `(("python-gevent" ,python2-gevent)
3095 ("python-tornado" ,python2-tornado)))))