1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
3 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
5 ;;; Copyright © 2016, 2017 Danny Milosavljevic <dannym+a@scratchpost.org>
6 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
7 ;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
8 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
10 ;;; Copyright © 2016, 2017, 2020 Julien Lepiller <julien@lepiller.eu>
11 ;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
12 ;;; Copyright © 2014, 2017 Eric Bavier <bavier@member.fsf.org>
13 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
14 ;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com>
15 ;;; Copyright © 2015, 2016, 2017, 2019 Leo Famulari <leo@famulari.name>
16 ;;; Copyright © 2016, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
17 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
18 ;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
19 ;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
20 ;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com>
21 ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
22 ;;; Copyright © 2016 David Craven <david@craven.ch>
23 ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
24 ;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
25 ;;; Copyright © 2017 Mark Meyer <mark@ofosos.org>
26 ;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
27 ;;; Copyright © 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
28 ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
29 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vagrant Cascadian <vagrant@debian.org>
31 ;;; Copyright © 2019 Brendan Tildesley <mail@brendan.scot>
32 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
33 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
34 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
35 ;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
37 ;;; This file is part of GNU Guix.
39 ;;; GNU Guix is free software; you can redistribute it and/or modify it
40 ;;; under the terms of the GNU General Public License as published by
41 ;;; the Free Software Foundation; either version 3 of the License, or (at
42 ;;; your option) any later version.
44 ;;; GNU Guix is distributed in the hope that it will be useful, but
45 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
46 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47 ;;; GNU General Public License for more details.
49 ;;; You should have received a copy of the GNU General Public License
50 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
52 (define-module (gnu packages python-web)
53 #:use-module (guix packages)
54 #:use-module (guix download)
55 #:use-module (guix git-download)
56 #:use-module (guix build-system python)
57 #:use-module (guix utils)
58 #:use-module (gnu packages)
59 #:use-module (gnu packages base)
60 #:use-module (gnu packages check)
61 #:use-module (gnu packages compression)
62 #:use-module (gnu packages curl)
63 #:use-module (gnu packages databases)
64 #:use-module (gnu packages django)
65 #:use-module (gnu packages groff)
66 #:use-module (gnu packages libffi)
67 #:use-module (gnu packages pkg-config)
68 #:use-module (gnu packages python)
69 #:use-module (gnu packages python-check)
70 #:use-module (gnu packages python-crypto)
71 #:use-module (gnu packages python-xyz)
72 #:use-module (gnu packages serialization)
73 #:use-module (gnu packages sphinx)
74 #:use-module (gnu packages texinfo)
75 #:use-module (gnu packages tls)
76 #:use-module (gnu packages time)
77 #:use-module (gnu packages web)
78 #:use-module (gnu packages xml)
79 #:use-module ((guix licenses) #:prefix license:)
80 #:use-module (srfi srfi-1))
82 (define-public python-aiohttp
84 (name "python-aiohttp")
89 (uri (pypi-uri "aiohttp" version))
92 "09pkw6f1790prnrq0k8cqgnf1qy57ll8lpmc6kld09q7zw4vi6i5"))))
93 (build-system python-build-system)
95 `(#:tests? #f)) ;missing pytest-timeout
97 `(("python-aiodns" ,python-aiodns)
98 ("python-async-timeout" ,python-async-timeout)
99 ("python-attrs" ,python-attrs)
100 ("python-chardet" ,python-chardet)
101 ("python-idna-ssl" ,python-idna-ssl)
102 ("python-multidict" ,python-multidict)
103 ("python-yarl" ,python-yarl)))
104 (home-page "https://github.com/aio-libs/aiohttp/")
105 (synopsis "Async HTTP client/server framework (asyncio)")
106 (description "@code{aiohttp} is an asynchronous HTTP client/server
109 Its main features are:
111 @item Supports both client and server side of HTTP protocol.
112 @item Supports both client and server Web-Sockets out-of-the-box without the
114 @item Web-server has middlewares and pluggable routing.
116 (license license:asl2.0)))
118 (define-public python-aiohttp-socks
120 (name "python-aiohttp-socks")
125 (uri (pypi-uri "aiohttp_socks" version))
128 "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
129 (build-system python-build-system)
131 `(("python-aiohttp" ,python-aiohttp)))
132 (home-page "https://github.com/romis2012/aiohttp-socks")
133 (synopsis "SOCKS proxy connector for aiohttp")
134 (description "This package provides a SOCKS proxy connector for
135 aiohttp. It supports SOCKS4(a) and SOCKS5.")
136 (license license:asl2.0)))
138 (define-public python-aiodns
140 (name "python-aiodns")
145 (uri (pypi-uri "aiodns" version))
148 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
149 (build-system python-build-system)
151 `(("python-pycares" ,python-pycares)))
153 `(#:tests? #f)) ;tests require internet access
154 (home-page "http://github.com/saghul/aiodns")
155 (synopsis "Simple DNS resolver for asyncio")
156 (description "@code{aiodns} provides a simple way for doing
157 asynchronous DNS resolutions with a synchronous looking interface by
158 using @url{https://github.com/saghul/pycares,pycares}.")
159 (license license:expat)))
161 (define-public python-aiorpcx
163 (name "python-aiorpcx")
168 (uri (pypi-uri "aiorpcX" version))
171 "0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp"))))
172 (build-system python-build-system)
174 `(("python-attrs" ,python-attrs)))
175 (home-page "https://github.com/kyuupichan/aiorpcX")
176 (synopsis "Generic asyncio RPC implementation")
178 "The aiorpcX library is a generic asyncio implementation of RPC suitable
179 for an application that is a client, server or both.
181 The package includes a module with full coverage of JSON RPC versions 1.0 and
182 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
183 comes with a SOCKS proxy client.")
184 (license (list license:expat license:bsd-2))))
186 (define-public python-falcon
188 (name "python-falcon")
193 (uri (pypi-uri "falcon" version))
196 "1i0vmqsk24z4biirqhpvas9h28wy7nmpy3jvnb6rz2imq04zd09r"))))
197 (build-system python-build-system)
200 (modify-phases %standard-phases
203 (invoke "pytest"))))))
205 `(("python-mimeparse" ,python-mimeparse)
206 ("python-six" ,python-six)))
208 `(("python-cython" ,python-cython) ;for faster binaries
209 ("python-pytest" ,python-pytest)
210 ("python-pyyaml" ,python-pyyaml)
211 ("python-requests" ,python-requests)
212 ("python-testtools" ,python-testtools)
213 ("python-jsonschema" ,python-jsonschema)
214 ("python-msgpack" ,python-msgpack)))
215 (home-page "https://falconframework.org")
217 "Web framework for building APIs and application backends")
219 "Falcon is a web API framework for building microservices, application
220 backends and higher-level frameworks. Among its features are:
222 @item Optimized and extensible code base
223 @item Routing via URI templates and REST-inspired resource
225 @item Access to headers and bodies through request and response
227 @item Request processing via middleware components and hooks
228 @item Idiomatic HTTP error responses
229 @item Straightforward exception handling
230 @item Unit testing support through WSGI helpers and mocks
231 @item Compatible with both CPython and PyPy
232 @item Cython support for better performance when used with CPython
234 (license license:asl2.0)))
236 (define-public python2-falcon
237 (package-with-python2 python-falcon))
239 (define-public python-falcon-cors
241 (name "python-falcon-cors")
246 (uri (pypi-uri "falcon-cors" version))
249 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
250 (build-system python-build-system)
252 `(("python-falcon" ,python-falcon)))
254 "https://github.com/lwcolton/falcon-cors")
255 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
256 (description "This middleware provides @dfn{cross-origin resource
257 sharing} (CORS) support for Falcon. It allows applying a specially crafted
258 CORS object to the incoming requests, enabling the ability to serve resources
259 over a different origin than that of the web application.")
260 (license license:asl2.0)))
262 (define-public python2-falcon-cors
263 (package-with-python2 python-falcon-cors))
265 (define-public python-furl
272 (uri (pypi-uri "furl" version))
275 "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
276 (build-system python-build-system)
278 `(("python-six" ,python-six)
279 ("python-orderedmultidict" ,python-orderedmultidict)))
281 `(("python-pycodestyle" ,python-pycodestyle)))
282 (home-page "https://github.com/gruns/furl")
283 (synopsis "URL manipulation in Python")
284 (description "Furl provides an easy-to-use alternative to the
285 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
286 (license license:unlicense)))
288 (define-public python2-furl
289 (package-with-python2 python-furl))
291 (define-public python-httplib2
293 (name "python-httplib2")
298 (uri (pypi-uri "httplib2" version))
301 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
302 (build-system python-build-system)
303 (home-page "https://github.com/jcgregorio/httplib2")
304 (synopsis "Comprehensive HTTP client library")
306 "A comprehensive HTTP client library supporting many features left out of
307 other HTTP libraries.")
308 (license license:expat)))
310 (define-public python2-httplib2
311 (package-with-python2 python-httplib2))
313 (define-public httpie
320 (uri (pypi-uri "httpie" version))
323 "02bw20cwv3a1lzrn919dk25dq4v81x6q786zlrqsqzhsdxszj14c"))))
324 (build-system python-build-system)
326 ;; The tests attempt to access external web servers, so we cannot run them.
329 `(("python-colorama" ,python-colorama)
330 ("python-pygments" ,python-pygments)
331 ("python-requests" ,python-requests)))
332 (home-page "https://httpie.org/")
333 (synopsis "cURL-like tool for humans")
335 "A command line HTTP client with an intuitive UI, JSON support,
336 syntax highlighting, wget-like downloads, plugins, and more. It consists of
337 a single http command designed for painless debugging and interaction with
338 HTTP servers, RESTful APIs, and web services.")
339 (license license:bsd-3)))
341 (define-public python-html2text
343 (name "python-html2text")
344 (version "2019.8.11")
348 (uri (pypi-uri "html2text" version))
351 "0ppgjplg06kmv9sj0x8p7acczcq2mcfgk1jdjwm4w5w40b0vj5pm"))))
352 (build-system python-build-system)
355 (modify-phases %standard-phases
358 (invoke "pytest" "test/"))))))
360 `(("python-pytest" ,python-pytest)))
361 (home-page "https://github.com/Alir3z4/html2text")
362 (synopsis "Convert HTML into plain text")
363 (description "html2text takes HTML and converts it into plain ASCII text
364 which is also valid markdown. html2text was originally written by Aaron
366 (license license:gpl3+)))
368 (define-public python2-html2text
369 (package-with-python2 python-html2text))
371 (define-public python-mechanicalsoup
373 (name "python-mechanicalsoup")
378 (uri (pypi-uri "MechanicalSoup" version))
380 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
381 (build-system python-build-system)
383 ;; TODO: Enable tests when python-flake8@3.5 hits master.
386 `(("python-beautifulsoup4" ,python-beautifulsoup4)
387 ("python-lxml" ,python-lxml)
388 ("python-requests" ,python-requests)
389 ("python-six" ,python-six)))
392 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
393 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
394 ;; ("python-pytest-mock" ,python-pytest-mock)
395 ;; ("python-pytest-runner" ,python-pytest-runner)
396 ;; ("python-requests-mock" ,python-requests-mock)))
397 (home-page "https://mechanicalsoup.readthedocs.io/")
398 (synopsis "Python library for automating website interaction")
400 "MechanicalSoup is a Python library for automating interaction with
401 websites. It automatically stores and sends cookies, follows redirects, and can
402 follow links and submit forms. It doesn’t do JavaScript.")
403 (license license:expat)))
405 (define-public python2-mechanicalsoup
406 (package-with-python2 python-mechanicalsoup))
408 (define-public python-sockjs-tornado
410 (name "python-sockjs-tornado")
415 (uri (pypi-uri "sockjs-tornado" version))
418 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
419 (build-system python-build-system)
421 `(;; There are no tests, and running the test phase requires missing
425 `(("python-tornado" ,python-tornado)))
426 (home-page "https://github.com/mrjoes/sockjs-tornado/")
428 "SockJS Python server implementation on top of the Tornado framework")
430 "SockJS-tornado provides the server-side counterpart to a SockJS client
431 library, through the Tornado framework.
433 SockJS provides a low-latency, full-duplex, cross-domain communication channel
434 between a web browser and web server.")
435 (license license:expat)))
437 (define-public python2-sockjs-tornado
438 (package-with-python2 python-sockjs-tornado))
440 (define-public python-flask-babel
442 (name "python-flask-babel")
447 (uri (pypi-uri "Flask-Babel" version))
450 "0ff9n165vhf1nhv6807ckhpp224jw7k7sd7jz5kfh3sbpl85gmy0"))))
451 (build-system python-build-system)
453 `(("python-flask" ,python-flask)
454 ("python-babel" ,python-babel)
455 ("python-jinja2" ,python-jinja2)
456 ("python-pytz" ,python-pytz)))
457 (home-page "https://github.com/python-babel/flask-babel")
458 (synopsis "Add i18n/l10n support to Flask applications")
459 (description "This package implements internationalization and localization
460 support for Flask. This is based on the Python babel module as well as pytz -
461 both of which are installed automatically if you install this library.")
462 (license license:bsd-3)))
464 (define-public python2-flask-babel
465 (package-with-python2 python-flask-babel))
467 (define-public python-html5lib
469 (name "python-html5lib")
474 (uri (pypi-uri "html5lib" version))
477 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
478 (build-system python-build-system)
480 `(("python-six" ,python-six)
481 ("python-webencodings" ,python-webencodings)))
483 `(#:test-target "check"))
485 "https://github.com/html5lib/html5lib-python")
487 "Python HTML parser based on the WHATWG HTML specifcation")
489 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
490 and written in Python.")
491 (license license:expat)))
493 (define-public python2-html5lib
494 (package-with-python2 python-html5lib))
496 ;; Needed for python-bleach, a dependency of python-notebook
497 (define-public python-html5lib-0.9
499 (inherit python-html5lib)
504 (uri (pypi-uri "html5lib" version))
507 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
509 (define-public python2-html5lib-0.9
510 (package-with-python2 python-html5lib-0.9))
512 (define-public python-html5-parser
514 (name "python-html5-parser")
518 (uri (pypi-uri "html5-parser" version))
521 "01mx33sx4dhl4kj6wc48nj6jz7ry60rkhjv0s6k8h5xmjf5yy0x9"))))
522 (build-system python-build-system)
524 `(("pkg-config" ,pkg-config)))
526 `(("libxml2" ,libxml2)))
528 `(("python-lxml" ,python-lxml)
529 ("python-beautifulsoup4" ,python-beautifulsoup4)))
530 (home-page "https://html5-parser.readthedocs.io")
531 (synopsis "Fast C-based HTML5 parsing for Python")
532 (description "This package provides a fast implementation of the HTML5
533 parsing spec for Python. Parsing is done in C using a variant of the gumbo
534 parser. The gumbo parse tree is then transformed into an lxml tree, also in
535 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
536 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
537 ;; indicate ASL2.0, including the LICENSE file for the whole project.
538 (license (list license:asl2.0 license:gpl3))))
540 (define-public python2-html5-parser
541 (package-with-python2 python-html5-parser))
543 (define-public python-pycurl
545 (name "python-pycurl")
550 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
553 (base32 "1915kb04k1j4y6k1dx1sgnbddxrl9r1n4q928if2lkrdm73xy30g"))))
554 (build-system python-build-system)
556 ;; The tests attempt to access external web servers, so we cannot run
557 ;; them. Furthermore, they are skipped altogether when using Python 2.
559 #:phases (modify-phases %standard-phases
560 (add-before 'build 'configure-tls-backend
562 ;; XXX: PycURL fails to automatically determine which TLS
563 ;; backend to use when cURL is built with --disable-static.
564 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
565 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
568 `(("python-nose" ,python-nose)
569 ("python-bottle" ,python-bottle)))
573 (home-page "http://pycurl.io/")
574 (synopsis "Lightweight Python wrapper around libcurl")
575 (description "Pycurl is a lightweight wrapper around libcurl. It provides
576 high-speed transfers via libcurl and frequently outperforms alternatives.")
578 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
579 ;; under the terms of LGPLv2.1+ or Expat.
580 (license (list license:lgpl2.1+ license:expat))))
582 (define-public python2-pycurl
583 (package-with-python2 python-pycurl))
585 (define-public python-webencodings
587 (name "python-webencodings")
591 (uri (pypi-uri "webencodings" version))
594 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
595 (build-system python-build-system)
598 (modify-phases %standard-phases
601 (invoke "py.test" "-v" "webencodings/tests.py")
604 `(("python-pytest" ,python-pytest)))
605 (home-page "https://github.com/SimonSapin/python-webencodings")
606 (synopsis "Character encoding aliases for legacy web content")
608 "In order to be compatible with legacy web content when interpreting
609 something like @code{Content-Type: text/html; charset=latin1}, tools need
610 to use a particular set of aliases for encoding labels as well as some
611 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
612 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
613 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
614 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
615 defines all such details so that implementations do not have to
616 reverse-engineer each other.
618 This module implements the Encoding standard and has encoding labels and
619 BOM detection, but the actual implementation for encoders and decoders
621 (license license:bsd-3)))
623 (define-public python2-webencodings
624 (package-with-python2 python-webencodings))
626 (define-public python-openid
628 (name "python-openid")
633 (uri (pypi-uri "python3-openid" version))
636 "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
637 (build-system python-build-system)
640 (modify-phases %standard-phases
643 (invoke "coverage" "run" "-m"
644 "unittest" "openid.test.test_suite"))))))
645 (properties `((python2-variant . ,(delay python2-openid))))
647 `(("python-defusedxml" ,python-defusedxml)))
649 `(("python-coverage" ,python-coverage)
650 ("python-psycopg2" ,python-psycopg2)
651 ("python-django" ,python-django)))
652 (home-page "https://github.com/necaris/python3-openid")
653 (synopsis "OpenID support for servers and consumers")
654 (description "This library provides OpenID authentication for Python, both
655 for clients and servers.")
656 (license license:asl2.0)))
658 (define-public python2-openid
660 (name "python2-openid")
665 (uri (pypi-uri "python-openid" version))
668 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
669 (build-system python-build-system)
671 ;; Python 3 support is in `python3-openid`, a separate package.
673 ;; Tests aren't initialized correctly.
675 (home-page "https://github.com/openid/python-openid")
676 (synopsis "OpenID support for servers and consumers")
677 (description "This library provides OpenID authentication for Python, both
678 for clients and servers.")
679 (license license:asl2.0)))
681 (define-public python-cssutils
683 (name "python-cssutils")
688 (uri (pypi-uri "cssutils" version))
691 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
692 (build-system python-build-system)
694 `(("unzip" ,unzip))) ; for unpacking the source
696 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
697 (home-page "http://cthedot.de/cssutils/")
699 "CSS Cascading Style Sheets library for Python")
701 "Cssutils is a Python package for parsing and building CSS
702 Cascading Style Sheets. Currently it provides a DOM only and no rendering
704 (license license:lgpl3+)))
706 (define-public python2-cssutils
707 (package-with-python2 python-cssutils))
709 (define-public python-css-parser
711 (inherit python-cssutils)
712 (name "python-css-parser")
717 (uri (pypi-uri "css-parser" version ".tar.gz"))
720 "0i4xfykiffxzr4f6y0m2ggqvx1rzam6pw6krlr5k6ldf29akbay7"))))
721 (home-page "https://github.com/ebook-utils/css-parser")
722 (synopsis "Fork of cssutils modified for parsing ebooks")
724 "Css-parser is a fork of cssutils 1.0.2, updated and modified for parsing
725 ebooks, due to cssutils not receiving updates as of 1.0.2.")
726 (license license:lgpl3+)))
728 (define-public python2-css-parser
729 (package-with-python2 python-css-parser))
731 (define-public python-cssselect
733 (name "python-cssselect")
738 (uri (pypi-uri "cssselect" version))
741 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
742 (build-system python-build-system)
744 ;; tests fail with message
745 ;; AttributeError: 'module' object has no attribute 'tests'
748 "https://pythonhosted.org/cssselect/")
750 "CSS3 selector parser and translator to XPath 1.0")
752 "Cssselect ia a Python module that parses CSS3 Selectors and translates
753 them to XPath 1.0 expressions. Such expressions can be used in lxml or
754 another XPath engine to find the matching elements in an XML or HTML document.")
755 (license license:bsd-3)))
757 (define-public python2-cssselect
758 (package-with-python2 python-cssselect))
760 (define-public python-openid-cla
762 (name "python-openid-cla")
767 (uri (pypi-uri "python-openid-cla" version))
770 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
771 (build-system python-build-system)
772 (arguments '(#:tests? #f)) ; No tests.
773 (home-page "https://github.com/puiterwijk/python-openid-cla/")
774 (synopsis "Implementation of the OpenID CLA extension for python-openid")
775 (description "@code{openid-cla} is an implementation of the OpenID
776 contributor license agreement extension for python-openid.")
777 (license license:bsd-3)))
779 (define-public python2-openid-cla
780 (package-with-python2 python-openid-cla))
782 (define-public python-openid-teams
784 (name "python-openid-teams")
789 (uri (pypi-uri "python-openid-teams" version))
792 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
793 (build-system python-build-system)
794 (arguments '(#:tests? #f)) ; No tests.
795 (home-page "https://github.com/puiterwijk/python-openid-teams/")
796 (synopsis "Implementation of the OpenID teams extension for python-openid")
798 "@code{openid-teams} is an implementation of the OpenID
799 teams extension for python-openid.")
800 (license license:bsd-3)))
802 (define-public python2-openid-teams
803 (package-with-python2 python-openid-teams))
805 (define-public python-tornado
807 (name "python-tornado")
812 (uri (pypi-uri "tornado" version))
815 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
816 (build-system python-build-system)
818 '(;; FIXME: Two tests error out with:
819 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
821 ;; (modify-phases %standard-phases
824 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
825 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
826 ;; (invoke "python" "-m" "tornado.test.runtests")
830 `(("python-certifi" ,python-certifi)))
831 (home-page "https://www.tornadoweb.org/")
832 (synopsis "Python web framework and asynchronous networking library")
834 "Tornado is a Python web framework and asynchronous networking library,
835 originally developed at FriendFeed. By using non-blocking network I/O,
836 Tornado can scale to tens of thousands of open connections, making it ideal
837 for long polling, WebSockets, and other applications that require a long-lived
838 connection to each user.")
839 (license license:asl2.0)
840 (properties `((python2-variant . ,(delay python2-tornado))))))
842 (define-public python2-tornado
843 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
844 (package (inherit tornado)
846 `(("python2-backport-ssl-match-hostname"
847 ,python2-backport-ssl-match-hostname)
848 ("python2-backports-abc" ,python2-backports-abc)
849 ("python2-singledispatch" ,python2-singledispatch)
850 ,@(package-propagated-inputs tornado))))))
852 (define-public python-tornado-http-auth
854 (name "python-tornado-http-auth")
859 (uri (pypi-uri "tornado-http-auth" version))
861 (base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x"))))
862 (build-system python-build-system)
864 `(("python-tornado" ,python-tornado)))
865 (home-page "https://github.com/gvalkov/tornado-http-auth")
866 (synopsis "Digest and basic authentication module for Tornado")
868 "Provides support for adding authentication to services using the Tornado
869 web framework, either via the basic or digest authentication schemes.")
870 (license license:asl2.0)))
872 (define-public python-terminado
874 (name "python-terminado")
879 (uri (pypi-uri "terminado" version))
882 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
883 (build-system python-build-system)
885 `(("python-tornado" ,python-tornado)
886 ("python-ptyprocess" ,python-ptyprocess)))
888 `(("python-nose" ,python-nose)))
891 (modify-phases %standard-phases
893 (lambda _ (invoke "nosetests") #t)))))
894 (home-page "https://github.com/takluyver/terminado")
895 (synopsis "Terminals served to term.js using Tornado websockets")
896 (description "This package provides a Tornado websocket backend for the
897 term.js Javascript terminal emulator library.")
898 (license license:bsd-2)
899 (properties `((python2-variant . ,(delay python2-terminado))))))
901 (define-public python2-terminado
902 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
903 (package (inherit terminado)
905 `(("python2-backport-ssl-match-hostname"
906 ,python2-backport-ssl-match-hostname)
907 ("python2-futures" ,python2-futures)
908 ,@(package-propagated-inputs terminado))))))
910 (define-public python-wsgi-intercept
912 (name "python-wsgi-intercept")
916 (uri (pypi-uri "wsgi_intercept" version))
919 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
920 (build-system python-build-system)
922 `(("python-six" ,python-six)))
924 `(("python-pytest" ,python-pytest)
925 ("python-httplib2" ,python-httplib2)
926 ("python-requests" ,python-requests)
927 ("python-urllib3" ,python-urllib3)))
928 (synopsis "Puts a WSGI application in place of a real URI for testing")
929 (description "Wsgi_intercept installs a WSGI application in place of a real
930 URI for testing. Testing a WSGI application normally involves starting a
931 server at a local host and port, then pointing your test code to that address.
932 Instead, this library lets you intercept calls to any specific host/port
933 combination and redirect them into a WSGI application importable by your test
934 program. Thus, you can avoid spawning multiple processes or threads to test
936 (home-page "https://github.com/cdent/wsgi-intercept")
937 (license license:expat)))
939 (define-public python-webob
941 (name "python-webob")
946 (uri (pypi-uri "WebOb" version))
949 "02bhhzijfhv8hmi1i54d4b0v43liwhnywhflvxsv4x3zax9s3afq"))))
950 (build-system python-build-system)
952 `(("python-nose" ,python-nose)))
953 (home-page "https://webob.org/")
954 (synopsis "WSGI request and response object")
956 "WebOb provides wrappers around the WSGI request environment, and an
957 object to help create WSGI responses.")
958 (license license:expat)))
960 (define-public python2-webob
961 (package-with-python2 python-webob))
963 (define-public python-zope-event
965 (name "python-zope-event")
970 (uri (pypi-uri "zope.event" version))
973 "1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9"))))
974 (build-system python-build-system)
975 (home-page "https://pypi.org/project/zope.event/")
976 (synopsis "Event publishing system for Python")
977 (description "Zope.event provides an event publishing API, intended for
978 use by applications which are unaware of any subscribers to their events. It
979 is a simple event-dispatching system on which more sophisticated event
980 dispatching systems can be built.")
981 (license license:zpl2.1)))
983 (define-public python2-zope-event
984 (package-with-python2 python-zope-event))
986 (define-public python-zope-interface
988 (name "python-zope-interface")
993 (uri (pypi-uri "zope.interface" version))
996 "1rgh2x3rcl9r0v0499kf78xy86rnmanajf4ywmqb943wpk50sg8v"))))
997 (build-system python-build-system)
999 `(("python-zope-event" ,python-zope-event)))
1000 (home-page "https://github.com/zopefoundation/zope.interface")
1001 (synopsis "Python implementation of the \"design by contract\"
1003 (description "Zope.interface provides an implementation of \"object
1004 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
1005 conforming to a given API or contract.")
1006 (license license:zpl2.1)))
1008 (define-public python2-zope-interface
1009 (package-with-python2 python-zope-interface))
1011 (define-public python-zope-exceptions
1013 (name "python-zope-exceptions")
1018 (uri (pypi-uri "zope.exceptions" version))
1021 "0zwxaaa66sqxg5k7zcrvs0fbg9ym1njnxnr28dfmchzhwjvwnfzl"))))
1022 (build-system python-build-system)
1024 '(#:tests? #f)) ; circular dependency with zope.testrunner
1026 `(("python-zope-interface" ,python-zope-interface)))
1027 (home-page "https://pypi.org/project/zope.exceptions/")
1028 (synopsis "Zope exceptions")
1029 (description "Zope.exceptions provides general-purpose exception types
1030 that have uses outside of the Zope framework.")
1031 (license license:zpl2.1)))
1033 (define-public python2-zope-exceptions
1034 (package-with-python2 python-zope-exceptions))
1036 (define-public python-zope-testing
1038 (name "python-zope-testing")
1043 (uri (pypi-uri "zope.testing" version))
1046 "0iiq54hjhkk2gpvzfjac70vyn4r0kw0ngvicshxbdwrkgf2gjq3g"))
1047 (modules '((guix build utils)))
1050 ;; Remove pre-compiled .pyc files backup files from source.
1051 (for-each delete-file (find-files "." "(\\.pyc|~)$"))
1053 (build-system python-build-system)
1054 (home-page "https://pypi.org/project/zope.testing/")
1055 (synopsis "Zope testing helpers")
1056 (description "Zope.testing provides a number of testing utilities for HTML
1057 forms, HTTP servers, regular expressions, and more.")
1058 (license license:zpl2.1)))
1060 (define-public python2-zope-testing
1061 (package-with-python2 python-zope-testing))
1063 (define-public python-zope-testrunner
1065 (name "python-zope-testrunner")
1070 (uri (pypi-uri "zope.testrunner" version ".zip"))
1073 "1r7iqknhh55y45f64mz5hghgvzx34h1i11k350s0avx6q8gznja1"))))
1074 (build-system python-build-system)
1076 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1078 `(("python-six" ,python-six)
1079 ;("python-zope-interface" ,python-zope-interface)
1080 ("python-zope-exceptions" ,python-zope-exceptions)
1081 ("python-zope-testing" ,python-zope-testing)
1084 `(("python-zope-interface" ,python-zope-interface)))
1085 (home-page "https://pypi.org/project/zope.testrunner/")
1086 (synopsis "Zope testrunner script")
1087 (description "Zope.testrunner provides a script for running Python
1089 (license license:zpl2.1)))
1091 (define-public python2-zope-testrunner
1092 (let ((base (package-with-python2 python-zope-testrunner)))
1096 (append (package-native-inputs base)
1097 `(("python2-subunit" ,python2-subunit)
1098 ("python2-mimeparse" ,python2-mimeparse)))))))
1100 (define-public python-zope-i18nmessageid
1102 (name "python-zope-i18nmessageid")
1107 (uri (pypi-uri "zope.i18nmessageid" version))
1110 "1rslyph0klk58dmjjy4j0jxy21k03azksixc3x2xhqbkv97cmzml"))))
1111 (build-system python-build-system)
1112 (home-page "https://pypi.org/project/zope.i18nmessageid/")
1113 (synopsis "Message identifiers for internationalization")
1114 (description "Zope.i18nmessageid provides facilities for declaring
1115 internationalized messages within program source text.")
1116 (license license:zpl2.1)))
1118 (define-public python2-zope-i18nmessageid
1119 (package-with-python2 python-zope-i18nmessageid))
1121 (define-public python-zope-schema
1123 (name "python-zope-schema")
1128 (uri (pypi-uri "zope.schema" version))
1131 "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank"))))
1132 (build-system python-build-system)
1134 '(#:tests? #f)) ; FIXME: Tests can't find zope.event.
1136 `(("python-zope-event" ,python-zope-event)
1137 ("python-zope-exceptions" ,python-zope-exceptions)
1138 ("python-zope-interface" ,python-zope-interface)))
1140 `(("python-zope-testing" ,python-zope-testing)
1141 ("python-coverage" ,python-coverage)
1142 ("python-nose" ,python-nose)))
1143 (home-page "https://pypi.org/project/zope.schema/")
1144 (synopsis "Zope data schemas")
1145 (description "Zope.scheme provides extensions to zope.interface for
1146 defining data schemas.")
1147 (license license:zpl2.1)))
1149 (define-public python2-zope-schema
1150 (package-with-python2 python-zope-schema))
1152 (define-public python-zope-configuration
1154 (name "python-zope-configuration")
1158 (uri (pypi-uri "zope.configuration" version))
1161 "1x9dfqypgympnlm25p9m43xh4qv3p7d75vksv9pzqibrb4cggw5n"))))
1162 (build-system python-build-system)
1164 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1166 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1167 ("python-zope-schema" ,python-zope-schema)))
1168 (home-page "https://pypi.org/project/zope.configuration/")
1169 (synopsis "Zope Configuration Markup Language")
1170 (description "Zope.configuration implements ZCML, the Zope Configuration
1172 (license license:zpl2.1)))
1174 (define-public python2-zope-configuration
1175 (package-with-python2 python-zope-configuration))
1177 (define-public python-zope-proxy
1179 (name "python-zope-proxy")
1184 (uri (pypi-uri "zope.proxy" version))
1187 "0pqwwmvm1prhwv1ziv9lp8iirz7xkwb6n2kyj36p2h0ppyyhjnm4"))))
1188 (build-system python-build-system)
1190 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1192 `(("python-zope-interface" ,python-zope-interface)))
1193 (home-page "https://pypi.org/project/zope.proxy/")
1194 (synopsis "Generic, transparent proxies")
1195 (description "Zope.proxy provides generic, transparent proxies for Python.
1196 Proxies are special objects which serve as mostly-transparent wrappers around
1197 another object, intervening in the apparent behavior of the wrapped object
1198 only when necessary to apply the policy (e.g., access checking, location
1199 brokering, etc.) for which the proxy is responsible.")
1200 (license license:zpl2.1)))
1202 (define-public python2-zope-proxy
1203 (package-with-python2 python-zope-proxy))
1205 (define-public python-zope-location
1207 (name "python-zope-location")
1212 (uri (pypi-uri "zope.location" version))
1215 "1nj9da4ksiyv3h8n2vpzwd0pb03mdsh7zy87hfpx72b6p2zcwg74"))))
1216 (build-system python-build-system)
1218 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1220 `(("python-zope-proxy" ,python-zope-proxy)
1221 ("python-zope-schema" ,python-zope-schema)))
1222 (home-page "https://pypi.org/project/zope.location/")
1223 (synopsis "Zope location library")
1224 (description "Zope.location implements the concept of \"locations\" in
1225 Zope3, which are are special objects that have a structural location.")
1226 (license license:zpl2.1)))
1228 (define-public python2-zope-location
1229 (package-with-python2 python-zope-location))
1231 (define-public python-zope-security
1233 (name "python-zope-security")
1238 (uri (pypi-uri "zope.security" version))
1241 "14zmf684amc0x32kq05yxnhfqd1cmyhafkw05gn81rn90zjv6ssy"))))
1242 (build-system python-build-system)
1244 '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
1246 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1247 ("python-zope-proxy" ,python-zope-proxy)
1248 ("python-zope-schema" ,python-zope-schema)))
1250 `(("python-six" ,python-six)
1251 ("python-zope-component" ,python-zope-component)
1252 ("python-zope-configuration" ,python-zope-configuration)
1253 ("python-zope-location" ,python-zope-location)
1254 ("python-zope-testrunner" ,python-zope-testrunner)
1255 ("python-zope-testing" ,python-zope-testing)))
1256 (home-page "https://pypi.org/project/zope.security/")
1257 (synopsis "Zope security framework")
1258 (description "Zope.security provides a generic mechanism to implement
1259 security policies on Python objects.")
1260 (license license:zpl2.1)))
1262 (define-public python2-zope-security
1263 (let ((zope-security (package-with-python2 python-zope-security)))
1264 (package (inherit zope-security)
1266 `(("python2-zope-testrunner" ,python2-zope-testrunner)
1268 "python-zope-testrunner"
1269 (package-propagated-inputs zope-security)))))))
1271 (define-public python-zope-component
1273 (name "python-zope-component")
1278 (uri (pypi-uri "zope.component" version))
1281 "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv"))))
1282 (build-system python-build-system)
1284 ;; Skip tests due to circular dependency with python-zope-security.
1287 `(("python-zope-testing" ,python-zope-testing)))
1289 `(("python-zope-event" ,python-zope-event)
1290 ("python-zope-interface" ,python-zope-interface)
1291 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1292 ("python-zope-configuration" ,python-zope-configuration)))
1293 (home-page "https://github.com/zopefoundation/zope.component")
1294 (synopsis "Zope Component Architecture")
1295 (description "Zope.component represents the core of the Zope Component
1296 Architecture. Together with the zope.interface package, it provides
1297 facilities for defining, registering and looking up components.")
1298 (license license:zpl2.1)))
1300 (define-public python2-zope-component
1301 (package-with-python2 python-zope-component))
1303 (define-public python-ndg-httpsclient
1305 (name "python-ndg-httpsclient")
1309 (uri (pypi-uri "ndg_httpsclient" version))
1312 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1313 (build-system python-build-system)
1315 '(;; The tests appear to require networking.
1318 `(("python-pyopenssl" ,python-pyopenssl)))
1319 (synopsis "HTTPS support for Python's httplib and urllib2")
1320 (description "This is a HTTPS client implementation for httplib and urllib2
1321 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1322 over the default provided with Python and, importantly, enables full
1323 verification of the SSL peer.")
1324 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1325 (license license:bsd-3)))
1327 ;; python2-openssl requires special care, so package-with-python2 is
1329 (define-public python2-ndg-httpsclient
1330 (package (inherit python-ndg-httpsclient)
1331 (name "python2-ndg-httpsclient")
1333 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1334 ((#:python _) python-2)))
1336 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1338 (define-public python-websocket-client
1340 (name "python-websocket-client")
1345 (uri (pypi-uri "websocket_client" version))
1348 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
1349 (build-system python-build-system)
1351 `(("python-six" ,python-six)))
1352 (home-page "https://github.com/liris/websocket-client")
1353 (synopsis "WebSocket client for Python")
1354 (description "The Websocket-client module provides the low level APIs for
1355 WebSocket usage in Python programs.")
1356 (properties `((python2-variant . ,(delay python2-websocket-client))))
1357 (license license:lgpl2.1+)))
1359 (define-public python2-websocket-client
1360 (let ((base (package-with-python2
1361 (strip-python2-variant python-websocket-client))))
1365 `(("python2-backport-ssl-match-hostname"
1366 ,python2-backport-ssl-match-hostname)
1367 ,@(package-native-inputs base))))))
1369 (define-public python-requests
1371 (name "python-requests")
1375 (uri (pypi-uri "requests" version))
1378 "1d5ybh11jr5sm7xp6mz8fyc7vrp4syifds91m7sj60xalal0gq0i"))))
1379 (build-system python-build-system)
1381 `(("python-certifi" ,python-certifi)
1382 ("python-chardet" ,python-chardet)
1383 ("python-idna" ,python-idna)
1384 ("python-urllib3" ,python-urllib3)))
1386 ;; FIXME: Some tests require network access.
1388 (home-page "http://python-requests.org/")
1389 (synopsis "Python HTTP library")
1391 "Requests is a Python HTTP client library. It aims to be easier to use
1392 than Python’s urllib2 library.")
1393 (license license:asl2.0)))
1395 ;; Some software requires an older version of Requests, notably Docker/Docker
1397 (define-public python-requests-2.20
1398 (package (inherit python-requests)
1402 (uri (pypi-uri "requests" version))
1405 "0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
1407 `(("python-urllib3" ,python-urllib3-1.24)
1408 ("python-idna" ,python-idna-2.7)
1409 ,@(package-propagated-inputs python-requests)))))
1411 ;; Some software requires an older version of Requests, notably Docker
1413 (define-public python-requests-2.7
1414 (package (inherit python-requests)
1418 (uri (pypi-uri "requests" version))
1421 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1423 (define-public python2-requests
1424 (package-with-python2 python-requests))
1426 (define-public python-requests-mock
1428 (name "python-requests-mock")
1433 (uri (pypi-uri "requests-mock" version))
1436 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1437 (build-system python-build-system)
1439 `(("python-requests" ,python-requests)
1440 ("python-six" ,python-six)))
1442 `(("python-pbr" ,python-pbr)
1443 ("python-discover" ,python-discover)
1444 ("python-docutils" ,python-docutils)
1445 ("python-fixtures" ,python-fixtures)
1446 ("python-mock" ,python-mock)
1447 ("python-sphinx" ,python-sphinx)
1448 ("python-testrepository" ,python-testrepository)
1449 ("python-testtools" ,python-testtools)))
1450 (home-page "https://requests-mock.readthedocs.org/")
1451 (synopsis "Mock out responses from the requests package")
1453 "This module provides a building block to stub out the HTTP requests
1454 portions of your testing code.")
1455 (properties `((python2-variant . ,(delay python2-requests-mock))))
1456 (license license:asl2.0)))
1458 (define-public python2-requests-mock
1459 (package (inherit (package-with-python2
1460 (strip-python2-variant python-requests-mock)))
1462 `(#:python ,python-2
1463 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1466 (define-public python-requests-toolbelt
1468 (name "python-requests-toolbelt")
1472 (uri (pypi-uri "requests-toolbelt" version))
1475 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1476 (build-system python-build-system)
1478 `(("python-betamax" ,python-betamax)
1479 ("python-mock" ,python-mock)
1480 ("python-pytest" ,python-pytest)))
1482 `(("python-requests" ,python-requests)))
1483 (synopsis "Extensions to python-requests")
1484 (description "This is a toolbelt of useful classes and functions to be used
1485 with python-requests.")
1486 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1487 (license license:asl2.0)))
1489 (define-public python2-requests-toolbelt
1490 (package-with-python2 python-requests-toolbelt))
1492 (define-public python-oauthlib
1494 (name "python-oauthlib")
1498 (uri (pypi-uri "oauthlib" version))
1501 "163jg4a8f7c5ki655grrr47kgljy12wri3qly7ijf64sk1fjrqqc"))))
1502 (build-system python-build-system)
1504 `(#:phases (modify-phases %standard-phases
1507 (invoke "pytest" "-vv"))))))
1509 `(("python-pytest" ,python-pytest)
1510 ("python-pytest-cov" ,python-pytest-cov)
1511 ("python-mock" ,python-mock)))
1513 `(("python-cryptography" ,python-cryptography)
1514 ("python-pyjwt" ,python-pyjwt)
1515 ("python-blinker" ,python-blinker)))
1516 (home-page "https://github.com/oauthlib/oauthlib")
1517 (synopsis "OAuth implementation for Python")
1519 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1520 OAuth request-signing logic.")
1521 (license license:bsd-3)))
1523 (define-public python2-oauthlib
1524 (package-with-python2 python-oauthlib))
1526 (define-public python-rauth
1528 (name "python-rauth")
1533 (uri (pypi-uri "rauth" version))
1536 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1537 (build-system python-build-system)
1539 `(#:test-target "check"))
1541 `(("python-requests" ,python-requests)))
1542 (home-page "https://github.com/litl/rauth")
1543 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1545 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1546 provides service wrappers for convenient connection initialization and
1547 authenticated session objects providing things like keep-alive.")
1548 (license license:expat)
1549 (properties `((python2-variant . ,(delay python2-rauth))))))
1551 (define-public python2-rauth
1552 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1555 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1556 ,@(package-native-inputs base))))))
1558 (define-public python-urllib3
1560 (name "python-urllib3")
1565 (uri (pypi-uri "urllib3" version))
1568 "0cij8qcvvpj62g1q8n785qjkdymfh4b7vf45si4sw64l41rr3rfv"))))
1569 (build-system python-build-system)
1570 (arguments `(#:tests? #f))
1572 `(;; These 5 inputs are used to build urrlib3[secure]
1573 ("python-certifi" ,python-certifi)
1574 ("python-cryptography" ,python-cryptography)
1575 ("python-idna" ,python-idna)
1576 ("python-ipaddress" ,python-ipaddress)
1577 ("python-pyopenssl" ,python-pyopenssl)
1578 ("python-pysocks" ,python-pysocks)))
1579 (home-page "https://urllib3.readthedocs.io/")
1580 (synopsis "HTTP library with thread-safe connection pooling")
1582 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1583 can reuse the same socket connection for multiple requests, it can POST files,
1584 supports url redirection and retries, and also gzip and deflate decoding.")
1585 (license license:expat)))
1587 ;; Some software requires an older version of urllib3, notably Docker.
1588 (define-public python-urllib3-1.24
1589 (package (inherit python-urllib3)
1593 (uri (pypi-uri "urllib3" version))
1596 "1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
1599 (define-public python2-urllib3
1600 (package-with-python2 python-urllib3))
1602 (define-public awscli
1609 (uri (pypi-uri name version))
1612 "0p479mfs9r0m82a217pap8156ijwvhv6r3kqa4k267gd05wgvygm"))))
1613 (build-system python-build-system)
1615 ;; FIXME: The 'pypi' release does not contain tests.
1618 (modify-phases %standard-phases
1619 (add-after 'unpack 'fix-reference-to-groff
1621 (substitute* "awscli/help.py"
1622 (("if not self._exists_on_path\\('groff'\\):") "")
1623 (("raise ExecutableNotFoundError\\('groff'\\)") "")
1624 (("cmdline = \\['groff'")
1625 (string-append "cmdline = ['" (which "groff") "'")))
1628 `(("python-colorama" ,python-colorama)
1629 ("python-botocore" ,python-botocore)
1630 ("python-s3transfer" ,python-s3transfer)
1631 ("python-docutils" ,python-docutils)
1632 ("python-pyyaml" ,python-pyyaml)
1633 ("python-rsa" ,python-rsa)))
1635 `(("groff" ,groff)))
1636 (home-page "https://aws.amazon.com/cli/")
1637 (synopsis "Command line client for AWS")
1638 (description "AWS CLI provides a unified command line interface to the
1639 Amazon Web Services (AWS) API.")
1640 (license license:asl2.0)))
1642 (define-public python-wsgiproxy2
1644 (name "python-wsgiproxy2")
1649 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
1651 (base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf"))))
1652 (build-system python-build-system)
1654 `(("python-webtest" ,python-webtest)))
1656 `(("python-requests" ,python-requests)
1657 ("python-six" ,python-six)
1658 ("python-urllib3" ,python-urllib3)
1659 ("python-webob" ,python-webob)))
1660 (home-page "https://github.com/gawel/WSGIProxy2/")
1661 (synopsis "WSGI Proxy with various http client backends")
1662 (description "WSGI turns HTTP requests into WSGI function calls.
1663 WSGIProxy turns WSGI function calls into HTTP requests.
1664 It also includes code to sign requests and pass private data,
1665 and to spawn subprocesses to handle requests.")
1666 (license license:expat)))
1668 (define-public python2-wsgiproxy2
1669 (package-with-python2 python-wsgiproxy2))
1671 (define-public python-pastedeploy
1673 (name "python-pastedeploy")
1678 (uri (pypi-uri "PasteDeploy" version))
1681 "1jz3m4hq8v6hyhfjz9425nd3nvn52cvbfipdcd72krjmla4qz1fm"))))
1682 (build-system python-build-system)
1684 `(("python-nose" ,python-nose)))
1685 (home-page "https://pylonsproject.org/")
1687 "Load, configure, and compose WSGI applications and servers")
1689 "This tool provides code to load WSGI applications and servers from URIs;
1690 these URIs can refer to Python Eggs for INI-style configuration files. Paste
1691 Script provides commands to serve applications based on this configuration
1693 (license license:expat)))
1695 (define-public python2-pastedeploy
1696 (package-with-python2 python-pastedeploy))
1698 (define-public python-webtest
1700 (name "python-webtest")
1705 (uri (pypi-uri "WebTest" version))
1708 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
1709 (build-system python-build-system)
1711 ;; Tests require python-pyquery, which creates a circular dependency.
1714 `(("python-waitress" ,python-waitress)
1715 ("python-webob" ,python-webob)
1716 ("python-six" ,python-six)
1717 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1718 (home-page "https://docs.pylonsproject.org/projects/webtest/")
1719 (synopsis "Helper to test WSGI applications")
1720 (description "Webtest allows you to test your Python web applications
1721 without starting an HTTP server. It supports anything that supports the
1723 (license license:expat)))
1725 (define-public python2-webtest
1726 (package-with-python2 python-webtest))
1728 (define-public python-flask
1730 (name "python-flask")
1734 (uri (pypi-uri "Flask" version))
1737 "0ljdjgyjn7vh8ic1n1dc2l1cl421i6pr3kx5sz2w5irhyfbg3y8k"))))
1738 (build-system python-build-system)
1741 (modify-phases %standard-phases
1744 (setenv "PYTHONPATH" (string-append "./build/lib:"
1745 (getenv "PYTHONPATH")))
1746 (invoke "pytest" "-vv" "tests"))))))
1748 `(("python-pytest" ,python-pytest)))
1750 `(("python-itsdangerous" ,python-itsdangerous)
1751 ("python-jinja2" ,python-jinja2)
1752 ("python-click" ,python-click)
1753 ("python-werkzeug" ,python-werkzeug)))
1754 (home-page "https://www.palletsprojects.com/p/flask/")
1755 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
1756 (description "Flask is a micro web framework based on the Werkzeug toolkit
1757 and Jinja2 template engine. It is called a micro framework because it does not
1758 presume or force a developer to use a particular tool or library.")
1759 (license license:bsd-3)))
1761 (define-public python2-flask
1762 (package-with-python2 python-flask))
1764 (define-public python-flask-wtf
1766 (name "python-flask-wtf")
1771 (uri (pypi-uri "Flask-WTF" version))
1774 "04l5743j2dici46038sqlzvf0xzpg8rf7s9ld2x24xv7f4idg990"))))
1775 (build-system python-build-system)
1778 (modify-phases %standard-phases
1779 (add-before 'check 'drop-failing-test
1781 ;; FIXME: This file tries resolving an external server, which
1782 ;; fails. Try to patch out the offending section instead of
1783 ;; deleting the whole thing.
1784 (delete-file "tests/test_recaptcha.py")
1787 `(("python-flask-babel" ,python-flask-babel)
1788 ("python-babel" ,python-babel)
1789 ("python-wtforms" ,python-wtforms)))
1791 `(("python-nose" ,python-nose)))
1792 (home-page "https://github.com/lepture/flask-wtf")
1793 (synopsis "Simple integration of Flask and WTForms")
1794 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
1795 upload, and reCAPTCHA.")
1796 (license license:bsd-3)))
1798 (define-public python2-flask-wtf
1799 (package-with-python2 python-flask-wtf))
1801 (define-public python-flask-multistatic
1803 (name "python-flask-multistatic")
1808 (uri (pypi-uri "flask-multistatic" version))
1811 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
1812 (build-system python-build-system)
1814 `(("python-flask" ,python-flask)))
1815 (home-page "https://pagure.io/flask-multistatic")
1816 (synopsis "Flask plugin to allow overriding static files")
1817 (description "@code{flask-multistatic} is a flask plugin that adds support
1818 for overriding static files.")
1819 (license license:gpl3+)))
1821 (define-public python2-flask-multistatic
1822 (package-with-python2 python-flask-multistatic))
1824 (define-public python-cookies
1826 (name "python-cookies")
1830 (uri (pypi-uri "cookies" version))
1833 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
1834 (build-system python-build-system)
1836 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
1839 `(("python-pytest" ,python-pytest)))
1840 (synopsis "HTTP cookie parser and renderer")
1841 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
1843 (home-page "https://gitlab.com/sashahart/cookies")
1844 (license license:expat)))
1846 (define-public python2-cookies
1847 (package-with-python2 python-cookies))
1849 (define-public python-responses
1851 (name "python-responses")
1855 (uri (pypi-uri "responses" version))
1858 "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah"))))
1859 (build-system python-build-system)
1861 `(;; Test suite is not distributed:
1862 ;; https://github.com/getsentry/responses/issues/38
1865 `(("python-mock" ,python-mock)))
1867 `(("python-requests" ,python-requests)
1868 ("python-cookies" ,python-cookies)
1869 ("python-six" ,python-six)))
1870 (home-page "https://github.com/getsentry/responses")
1871 (synopsis "Utility for mocking out the `requests` Python library")
1872 (description "A utility library for mocking out the `requests` Python
1874 (license license:asl2.0)))
1876 (define-public python2-responses
1877 (package-with-python2 python-responses))
1879 (define-public python-grequests
1881 (name "python-grequests")
1886 (uri (pypi-uri "grequests" version))
1889 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
1890 (build-system python-build-system)
1892 `(("python-gevent" ,python-gevent)
1893 ("python-requests" ,python-requests)))
1895 `(("python-nose" ,python-nose)))
1896 (home-page "https://github.com/kennethreitz/grequests")
1897 (synopsis "Python library for asynchronous HTTP requests")
1898 (description "GRequests is a Python library that allows you to use
1899 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
1900 (license license:bsd-2)))
1902 (define-public python-geventhttpclient
1904 (name "python-geventhttpclient")
1908 (uri (pypi-uri "geventhttpclient" version))
1911 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
1912 (modules '((guix build utils)))
1915 ;; Delete pre-compiled files.
1916 (for-each delete-file (find-files "src/geventhttpclient"
1919 (build-system python-build-system)
1922 (modify-phases %standard-phases
1923 (add-after 'unpack 'delete-network-tests
1925 (delete-file "src/geventhttpclient/tests/test_client.py")
1928 (add-after 'install 'check
1929 (lambda* (#:key inputs outputs #:allow-other-keys)
1930 (add-installed-pythonpath inputs outputs)
1931 (invoke "py.test" "src/geventhttpclient/tests" "-v"
1932 ;; Append the test modules to sys.path to avoid
1933 ;; namespace conflict which breaks SSL tests.
1934 "--import-mode=append")
1937 `(("python-pytest" ,python-pytest)))
1939 `(("python-certifi" ,python-certifi)
1940 ("python-gevent" ,python-gevent)
1941 ("python-six" ,python-six)))
1942 (home-page "https://github.com/gwik/geventhttpclient")
1943 (synopsis "HTTP client library for gevent")
1944 (description "@code{python-geventhttpclient} is a high performance,
1945 concurrent HTTP client library for python using @code{gevent}.")
1946 (license license:expat)))
1948 (define-public python2-geventhttpclient
1949 (package-with-python2 python-geventhttpclient))
1951 (define-public python-requests-oauthlib
1953 (name "python-requests-oauthlib")
1958 (uri (pypi-uri "requests-oauthlib" version))
1961 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
1962 (build-system python-build-system)
1965 (modify-phases %standard-phases
1966 ;; removes tests that require network access
1967 (add-before 'check 'pre-check
1969 (delete-file "tests/test_core.py")
1972 `(("python-pyjwt" ,python-pyjwt)
1973 ("python-requests-mock" ,python-requests-mock)
1974 ("python-mock" ,python-mock)))
1976 `(("python-oauthlib" ,python-oauthlib)
1977 ("python-requests" ,python-requests)))
1979 "https://github.com/requests/requests-oauthlib")
1981 "OAuthlib authentication support for Requests")
1983 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
1984 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
1985 (license license:isc)))
1987 (define-public python2-requests-oauthlib
1988 (package-with-python2 python-requests-oauthlib))
1990 (define-public python-url
1996 (uri (pypi-uri "url" version))
1999 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
2000 (build-system python-build-system)
2002 `(("python-publicsuffix" ,python-publicsuffix)))
2004 `(("python-coverage" ,python-coverage)
2005 ("python-nose" ,python-nose)))
2007 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
2008 (home-page "https://github.com/seomoz/url-py")
2009 (synopsis "URL Parsing")
2010 (description "Library for parsing urls.")
2011 (license license:expat)
2012 (properties `((python2-variant . ,(delay python2-url))))))
2014 (define-public python2-url
2015 (let ((base (package-with-python2 (strip-python2-variant python-url))))
2016 (package (inherit base)
2018 `(("python2-publicsuffix" ,python2-publicsuffix))))))
2020 (define-public python-cachecontrol
2022 (name "python-cachecontrol")
2027 ;; Pypi does not have tests.
2029 (url "https://github.com/ionrock/cachecontrol")
2030 (commit (string-append "v" version))))
2031 (file-name (git-file-name name version))
2034 "03lgc65sl04n0cgzmmgg99bk83f9i6k8yrmcd4hpl46q1pymn0kz"))))
2035 (build-system python-build-system)
2037 ;; Versions > 0.11.6 depend on CherryPy for testing.
2038 ;; It's too much work to package CherryPy for now.
2041 `(("python-requests" ,python-requests)
2042 ("python-lockfile" ,python-lockfile)))
2043 (home-page "https://github.com/ionrock/cachecontrol")
2044 (synopsis "The httplib2 caching algorithms for use with requests")
2045 (description "CacheControl is a port of the caching algorithms in
2046 @code{httplib2} for use with @code{requests} session objects.")
2047 (license license:asl2.0)))
2049 (define-public python2-cachecontrol
2050 (package-with-python2 python-cachecontrol))
2052 (define-public python-betamax
2054 (name "python-betamax")
2059 (uri (pypi-uri "betamax" version))
2062 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
2063 (build-system python-build-system)
2065 '(;; Many tests fail because they require networking.
2068 `(("python-requests" ,python-requests)))
2069 (home-page "https://github.com/sigmavirus24/betamax")
2070 (synopsis "Record HTTP interactions with python-requests")
2071 (description "Betamax will record your test suite's HTTP interactions and
2072 replay them during future tests. It is designed to work with python-requests.")
2073 (license license:expat)))
2075 (define-public python2-betamax
2076 (package-with-python2 python-betamax))
2078 (define-public python-betamax-matchers
2080 (name "python-betamax-matchers")
2085 (uri (pypi-uri "betamax-matchers" version))
2088 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
2089 (build-system python-build-system)
2091 `(("python-betamax" ,python-betamax)
2092 ("python-requests-toolbelt" ,python-requests-toolbelt)))
2093 (home-page "https://github.com/sigmavirus24/betamax_matchers")
2094 (synopsis "VCR imitation for python-requests")
2095 (description "@code{betamax-matchers} provides a set of Matchers for
2097 (license license:asl2.0)))
2099 (define-public python2-betamax-matchers
2100 (package-with-python2 python-betamax-matchers))
2102 (define-public python-s3transfer
2104 (name "python-s3transfer")
2108 (uri (pypi-uri "s3transfer" version))
2111 "08fhj73b1ai52hrs2q3nggshq3pswn1gq8ch3m009cb2v2vmqggj"))))
2112 (build-system python-build-system)
2115 (modify-phases %standard-phases
2118 ;; Some of the 'integration' tests require network access or
2119 ;; login credentials.
2120 (invoke "nosetests" "--exclude=integration")
2123 `(("python-docutils" ,python-docutils)
2124 ("python-mock" ,python-mock)
2125 ("python-nose" ,python-nose)))
2127 `(("python-botocore" ,python-botocore)
2128 ("python-urllib3" ,python-urllib3)))
2129 (synopsis "Amazon S3 Transfer Manager")
2130 (description "S3transfer is a Python library for managing Amazon S3
2132 (home-page "https://github.com/boto/s3transfer")
2133 (license license:asl2.0)
2134 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2136 (define-public python2-s3transfer
2137 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2141 `(("python2-futures" ,python2-futures)
2142 ,@(package-native-inputs base))))))
2144 (define-public python-slimit
2146 (name "python-slimit")
2151 (uri (pypi-uri "slimit" version ".zip"))
2154 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2155 (build-system python-build-system)
2157 `(("unzip" ,unzip)))
2159 `(("python-ply" ,python-ply)))
2160 (home-page "https://slimit.readthedocs.io/")
2161 (synopsis "JavaScript minifier, parser and lexer written in Python")
2163 "SlimIt is a JavaScript minifier written in Python. It compiles
2164 JavaScript into more compact code so that it downloads and runs faster.
2165 SlimIt also provides a library that includes a JavaScript parser, lexer,
2166 pretty printer and a tree visitor.")
2167 (license license:expat)))
2169 (define-public python-flask-restful
2171 (name "python-flask-restful")
2176 (uri (pypi-uri "Flask-RESTful" version))
2179 "1a9cbwkr6krryyzq4sd3f415nkkc6dyfls5i3pgyibs94g0hw97q"))))
2180 (build-system python-build-system)
2182 `(("python-aniso8601" ,python-aniso8601)
2183 ("python-flask" ,python-flask)
2184 ("python-pycrypto" ,python-pycrypto)
2185 ("python-pytz" ,python-pytz)))
2187 `(;; Optional dependency of Flask. Tests need it.
2188 ("python-blinker" ,python-blinker)
2189 ("python-mock" ,python-mock) ; For tests
2190 ("python-nose" ,python-nose) ; For tests
2191 ("python-sphinx" ,python-sphinx)))
2193 "https://www.github.com/flask-restful/flask-restful/")
2195 "Flask module for creating REST APIs")
2197 "This package contains a Flask module for creating REST APIs.")
2198 (license license:bsd-3)))
2200 (define-public python-flask-basicauth
2202 (name "python-flask-basicauth")
2207 (uri (pypi-uri "Flask-BasicAuth" version))
2210 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2211 (build-system python-build-system)
2213 `(("python-flask" ,python-flask)))
2215 "https://github.com/jpvanhal/flask-basicauth")
2217 "HTTP basic access authentication for Flask")
2219 "This package provides HTTP basic access authentication for Flask.")
2220 (license license:bsd-3)))
2222 (define-public python-flask-htpasswd
2224 (name "python-flask-htpasswd")
2229 (uri (pypi-uri "flask-htpasswd" version))
2232 "14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra"))))
2233 (build-system python-build-system)
2235 `(("python-flask" ,python-flask)
2236 ("python-itsdangerous" ,python-itsdangerous)
2237 ("python-passlib" ,python-passlib)
2238 ("python-tox" ,python-tox)))
2239 (home-page "http://github.com/carsongee/flask-htpasswd")
2240 (synopsis "Basic authentication via htpasswd files in Flask applications")
2241 (description "This package provides Basic authentication via
2242 @file{htpasswd} files and access_token authentication in Flask
2244 (license license:bsd-3)))
2246 (define-public python-flask-sqlalchemy
2248 (name "python-flask-sqlalchemy")
2252 (uri (pypi-uri "Flask-SQLAlchemy" version))
2255 "0nnllf0ddbh9jlhngnyjj98lbxgxr1csaplllx0caw98syq0k5hc"))))
2256 (build-system python-build-system)
2258 `(("python-flask" ,python-flask)
2259 ("python-sqlalchemy" ,python-sqlalchemy)))
2260 (home-page "https://github.com/mitsuhiko/flask-sqlalchemy")
2261 (synopsis "Module adding SQLAlchemy support to your Flask application")
2263 "This package adds SQLAlchemy support to your Flask application.")
2264 (license license:bsd-3)))
2266 (define-public python-flask-restplus
2268 (name "python-flask-restplus")
2273 (uri (pypi-uri "flask-restplus" version))
2276 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2277 (build-system python-build-system)
2279 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2281 ;; (modify-phases %standard-phases
2284 ;; (invoke "nosetests")
2287 `(("python-aniso8601" ,python-aniso8601)
2288 ("python-flask" ,python-flask)
2289 ("python-jsonschema" ,python-jsonschema)
2290 ("python-pytz" ,python-pytz)
2291 ("python-six" ,python-six)))
2293 `(("python-tzlocal" ,python-tzlocal)
2294 ("python-blinker" ,python-blinker)
2295 ("python-nose" ,python-nose)
2296 ("python-rednose" ,python-rednose)))
2297 (home-page "https://github.com/noirbizarre/flask-restplus")
2298 (synopsis "Framework for documented API development with Flask")
2299 (description "This package provides a framework for API development with
2300 the Flask web framework in Python. It is similar to package
2301 @code{python-flask-restful} but supports the @code{python-swagger}
2302 documentation builder.")
2303 (license license:expat)))
2305 (define-public python-flask-restful-swagger
2307 (name "python-flask-restful-swagger")
2312 (uri (pypi-uri "flask-restful-swagger" version))
2315 "16msl8hd5xjmj833bpy264v98cpl5hkw5bgl5gf5vgndxbv3rm6v"))))
2316 (build-system python-build-system)
2318 `(("python-flask-restful" ,python-flask-restful)))
2319 (home-page "https://github.com/rantav/flask-restful-swagger")
2320 (synopsis "Extract Swagger specs from Flask-Restful projects")
2321 (description "This package lets you extract Swagger API documentation
2322 specs from your Flask-Restful projects.")
2323 (license license:expat)))
2325 (define-public python2-flask-restful-swagger
2326 (package-with-python2 python-flask-restful-swagger))
2328 (define-public python-htmlmin
2330 (name "python-htmlmin")
2335 (uri (pypi-uri "htmlmin" version))
2338 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2340 `(#:tests? #f)) ; no tests
2341 (build-system python-build-system)
2342 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2343 (synopsis "HTML minifier")
2344 (description "@code{htmlmin} is an HTML minifier that just works.
2345 It comes with safe defaults and easily configurable options.")
2346 (license license:bsd-3)))
2348 (define-public python2-htmlmin
2349 (package-with-python2 python-htmlmin))
2351 (define-public python-flask-htmlmin
2353 (name "python-flask-htmlmin")
2358 (uri (pypi-uri "Flask-HTMLmin" version))
2361 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2363 `(("python-flask" ,python-flask)
2364 ("python-htmlmin" ,python-htmlmin)))
2365 (build-system python-build-system)
2366 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2367 (synopsis "HTML response minifier for Flask")
2369 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2370 (license license:bsd-3)))
2372 (define-public python2-flask-htmlmin
2373 (package-with-python2 python-flask-htmlmin))
2375 (define-public python-jsmin
2377 (name "python-jsmin")
2382 (uri (pypi-uri "jsmin" version))
2385 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2386 (build-system python-build-system)
2387 (home-page "https://github.com/tikitu/jsmin/")
2388 (synopsis "Python JavaScript minifier")
2390 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2391 on the command line.")
2392 (license license:expat)))
2394 (define-public python-flask-login
2396 (name "python-flask-login")
2402 (url "https://github.com/maxcountryman/flask-login.git")
2404 (file-name (git-file-name name version))
2406 (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
2407 (build-system python-build-system)
2409 `(("python-flask" ,python-flask)))
2412 `(("python-blinker" ,python-blinker)
2413 ("python-coverage" ,python-coverage)
2414 ("python-mock" ,python-mock)
2415 ("python-pycodestyle" ,python-pycodestyle)
2416 ("python-pyflakes" ,python-pyflakes)
2417 ("python-pytest" ,python-pytest)
2418 ("python-semantic-version" ,python-semantic-version)
2419 ("python-werkzeug" ,python-werkzeug)))
2420 (home-page "https://github.com/maxcountryman/flask-login")
2421 (synopsis "User session management for Flask")
2423 "@code{Flask-Login} provides user session management for Flask. It
2424 handles the common tasks of logging in, logging out, and remembering your
2425 users' sessions over extended periods of time.")
2426 (license license:expat)))
2428 (define-public python2-flask-login
2429 (package-with-python2 python-flask-login))
2431 (define-public python-oauth2client
2433 (name "python-oauth2client")
2438 (uri (pypi-uri "oauth2client" version))
2441 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2442 (build-system python-build-system)
2446 `(("python-httplib2" ,python-httplib2)
2447 ("python-pyasn1" ,python-pyasn1)
2448 ("python-pyasn1-modules" ,python-pyasn1-modules)
2449 ("python-rsa" ,python-rsa)
2450 ("python-six" ,python-six)))
2451 (home-page "https://github.com/google/oauth2client/")
2452 (synopsis "OAuth 2.0 client library")
2453 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2454 library for Python")
2455 (license license:asl2.0)))
2457 (define-public python2-oauth2client
2458 (package-with-python2 python-oauth2client))
2460 (define-public python-flask-oidc
2462 (name "python-flask-oidc")
2467 (uri (pypi-uri "flask-oidc" version))
2470 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
2471 (build-system python-build-system)
2473 `(("python-flask" ,python-flask)
2474 ("python-itsdangerous" ,python-itsdangerous)
2475 ("python-oauth2client" ,python-oauth2client)
2476 ("python-six" ,python-six)))
2478 `(("python-nose" ,python-nose)
2479 ("python-mock" ,python-mock)))
2480 (home-page "https://github.com/puiterwijk/flask-oidc")
2481 (synopsis "OpenID Connect extension for Flask")
2482 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2484 (license license:bsd-2)))
2486 (define-public python-webassets
2488 (name "python-webassets")
2493 (uri (pypi-uri "webassets" version))
2496 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2497 (build-system python-build-system)
2499 `(("python-jinja2" ,python-jinja2)
2500 ("python-mock" ,python-mock)
2501 ("python-nose" ,python-nose)
2502 ("python-pytest" ,python-pytest)))
2503 (home-page "https://github.com/miracle2k/webassets")
2504 (synopsis "Media asset management")
2505 (description "Merges, minifies and compresses Javascript and CSS files,
2506 supporting a variety of different filters, including YUI, jsmin, jspacker or
2507 CSS tidy. Also supports URL rewriting in CSS files.")
2508 (license license:bsd-2)))
2510 (define-public python-cssmin
2512 (name "python-cssmin")
2517 (uri (pypi-uri "cssmin" version))
2520 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2521 (build-system python-build-system)
2522 (home-page "https://github.com/zacharyvoase/cssmin")
2523 (synopsis "Python port of the YUI CSS Compressor")
2524 (description "Python port of the YUI CSS Compressor.")
2525 (license (list license:expat license:bsd-3))))
2527 (define-public python2-cssmin
2528 (package-with-python2 python-cssmin))
2530 (define-public python-elasticsearch
2532 (name "python-elasticsearch")
2537 (uri (pypi-uri "elasticsearch" version))
2540 "0rnjvlhw4v3vg14l519qliy1s1zpmx3827q0xfviwvk42rr7hh01"))))
2541 (build-system python-build-system)
2543 `(("python-mock" ,python-mock)
2544 ("python-nosexcover" ,python-nosexcover)
2545 ("python-pyaml" ,python-pyaml)
2546 ("python-requests" ,python-requests)))
2548 `(("urllib3" ,python-urllib3)))
2550 ;; tests require the test_elasticsearch module but it is not distributed.
2552 (home-page "https://github.com/elastic/elasticsearch-py")
2553 (synopsis "Low-level client for Elasticsearch")
2554 (description "Official low-level client for Elasticsearch. Its goal is to
2555 provide common ground for all Elasticsearch-related code in Python; because of
2556 this it tries to be opinion-free and very extendable.")
2557 (license license:expat)))
2559 (define-public python2-elasticsearch
2560 (package-with-python2 python-elasticsearch))
2562 (define-public python-flask-script
2564 (name "python-flask-script")
2569 (uri (pypi-uri "Flask-Script" version))
2572 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
2573 (build-system python-build-system)
2576 (modify-phases %standard-phases
2577 (add-after 'unpack 'patch-tests
2579 (substitute* "tests.py"
2580 (("flask\\.ext\\.script") "flask_script"))
2583 `(("python-flask" ,python-flask)
2584 ("python-argcomplete" ,python-argcomplete)
2585 ("python-werkzeug" ,python-werkzeug)))
2587 `(("python-pytest" ,python-pytest)))
2589 "https://github.com/smurfix/flask-script")
2590 (synopsis "Scripting support for Flask")
2591 (description "The Flask-Script extension provides support for writing
2592 external scripts in Flask. This includes running a development server,
2593 a customised Python shell, scripts to set up your database, cronjobs,
2594 and other command-line tasks that belong outside the web application
2596 (license license:bsd-3)))
2598 (define-public python2-flask-script
2599 (package-with-python2 python-flask-script))
2601 (define-public python-flask-migrate
2603 (name "python-flask-migrate")
2608 (uri (pypi-uri "Flask-Migrate" version))
2611 "107x78lkqsnbg92dld3dkagg07jvchp3ib3y0sivc4ipz6n1y7rk"))))
2612 (build-system python-build-system)
2614 `(("python-flask" ,python-flask)
2615 ("python-alembic" ,python-alembic)
2616 ("python-sqlalchemy" ,python-sqlalchemy)
2617 ("python-flask-script" ,python-flask-script)
2618 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2619 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2620 (synopsis "SQLAlchemy database migrations for Flask programs using
2622 (description "This package contains SQLAlchemy database migration tools
2623 for Flask programs that are using @code{python-alembic}.")
2624 (license license:expat)))
2626 (define-public python2-flask-migrate
2627 (package-with-python2 python-flask-migrate))
2629 (define-public python-genshi
2631 (name "python-genshi")
2637 (url "https://github.com/edgewall/genshi.git")
2639 (file-name (git-file-name name version))
2641 (base32 "06rch30x10l105k5b6rahd839lkhmgrzn6691wbci0cb2fzps32w"))))
2642 (build-system python-build-system)
2643 (home-page "https://genshi.edgewall.org/")
2644 (synopsis "Toolkit for generation of output for the web")
2645 (description "Genshi is a Python library that provides an integrated set
2646 of components for parsing, generating, and processing HTML, XML or other
2647 textual content for output generation on the web.")
2648 (license license:bsd-3)))
2650 (define-public python2-genshi
2651 (package-with-python2 python-genshi))
2653 (define-public python-flask-principal
2655 (name "python-flask-principal")
2660 (uri (pypi-uri "Flask-Principal" version))
2663 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
2664 (build-system python-build-system)
2666 `(("python-blinker" ,python-blinker)))
2668 `(("python-flask" ,python-flask)
2669 ("python-nose" ,python-nose)))
2670 (home-page "https://pythonhosted.org/Flask-Principal/")
2671 (synopsis "Identity management for Flask")
2672 (description "@code{flask_principal} is a identity management library for
2673 Flask. It supports managing both authentication and authorization data in a
2674 thread-local variable.")
2675 (license license:expat)))
2677 (define-public python2-flask-principal
2678 (package-with-python2 python-flask-principal))
2680 (define-public python-flask-httpauth
2682 (name "python-flask-httpauth")
2687 (uri (pypi-uri "Flask-HTTPAuth" version))
2690 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
2691 (build-system python-build-system)
2693 `(("python-flask" ,python-flask)))
2694 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
2695 (synopsis "Basic and Digest HTTP authentication for Flask routes")
2696 (description "@code{flask_httpauth} provides Basic and Digest HTTP
2697 authentication for Flask routes.")
2698 (license license:expat)))
2700 (define-public python2-flask-httpauth
2701 (package-with-python2 python-flask-httpauth))
2703 (define-public python-uritemplate
2705 (name "python-uritemplate")
2710 (uri (pypi-uri "uritemplate" version))
2713 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
2714 (build-system python-build-system)
2715 (home-page "https://uritemplate.readthedocs.org")
2716 (synopsis "Library to deal with URI Templates")
2717 (description "@code{uritemplate} provides Python library to deal with URI
2719 (license license:bsd-2)))
2721 (define-public python2-uritemplate
2722 (package-with-python2 python-uritemplate))
2724 (define-public python-publicsuffix
2726 (name "python-publicsuffix")
2730 (uri (pypi-uri "publicsuffix" version))
2733 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
2734 (build-system python-build-system)
2736 `(#:tests? #f)) ; tests use the internet
2737 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
2738 (synopsis "Get suffix for a domain name")
2739 (description "Get a public suffix for a domain name using the Public Suffix
2741 (license license:expat)))
2743 (define-public python2-publicsuffix
2744 (package-with-python2 python-publicsuffix))
2746 (define-public python-publicsuffix2
2748 (name "python-publicsuffix2")
2749 (version "2.20191221")
2753 (uri (pypi-uri "publicsuffix2" version))
2755 (base32 "0yzysvfj1najr1mb4pcqrbmjir3xpb69rlffln95a3cdm8qwry00"))))
2756 (build-system python-build-system)
2759 (modify-phases %standard-phases
2760 (add-after 'unpack 'ignore-maintainer-inputs
2762 ;; Comment out a demand for python-requests, which is used only by
2763 ;; the unused ‘update_psl’ helper command.
2764 (substitute* "setup.py"
2765 (("'requests " match)
2766 (format "# ~a" match)))
2768 #:tests? #f)) ; the test suite requires network access
2769 (home-page "https://github.com/pombredanne/python-publicsuffix2")
2770 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
2771 (description "Get a public suffix for a domain name using the Public Suffix
2772 List. Forked from and using the same API as the publicsuffix package.")
2773 (license (list license:expat license:mpl2.0))))
2775 (define-public python2-publicsuffix2
2776 (package-with-python2 python-publicsuffix2))
2778 (define-public python-werkzeug
2780 (name "python-werkzeug")
2785 (uri (pypi-uri "Werkzeug" version))
2788 "15kh0z61klp62mrc1prka13xsshxn0rsp1j1s2964iw86yisi6qn"))))
2789 (build-system python-build-system)
2792 (modify-phases %standard-phases
2794 (add-after 'install 'check
2795 (lambda* (#:key inputs outputs #:allow-other-keys)
2796 (add-installed-pythonpath inputs outputs)
2797 (invoke "python" "-m" "pytest"))))))
2799 `(("python-requests" ,python-requests)))
2801 `(("python-pytest" ,python-pytest)
2802 ("python-pytest-timeout" ,python-pytest-timeout)))
2803 (home-page "https://www.palletsprojects.org/p/werkzeug/")
2804 (synopsis "Utilities for WSGI applications")
2805 (description "One of the most advanced WSGI utility modules. It includes a
2806 powerful debugger, full-featured request and response objects, HTTP utilities to
2807 handle entity tags, cache control headers, HTTP dates, cookie handling, file
2808 uploads, a powerful URL routing system and a bunch of community-contributed
2810 (license license:x11)))
2812 (define-public python2-werkzeug
2813 (package-with-python2 python-werkzeug))
2815 (define-public python-bottle
2817 (name "python-bottle")
2822 (uri (pypi-uri "bottle" version))
2825 "0m9k2a7yxvggc4kw8fsvj381vgsvfcdshg5nzy6vwrxiw2p53drr"))))
2826 (build-system python-build-system)
2827 (home-page "http://bottlepy.org/")
2828 (synopsis "WSGI framework for small web-applications.")
2829 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
2830 (license license:expat)))
2832 (define-public python2-bottle
2833 (package-with-python2 python-bottle))
2835 (define-public python-wtforms
2837 (name "python-wtforms")
2842 (uri (pypi-uri "WTForms" version ".zip"))
2845 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
2846 (build-system python-build-system)
2849 (modify-phases %standard-phases
2850 (add-after 'unpack 'remove-django-test
2851 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
2855 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
2856 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
2859 `(("unzip" ,unzip)))
2860 (home-page "http://wtforms.simplecodes.com/")
2862 "Form validation and rendering library for Python web development")
2864 "WTForms is a flexible forms validation and rendering library
2865 for Python web development. It is very similar to the web form API
2866 available in Django, but is a standalone package.")
2867 (license license:bsd-3)))
2869 (define-public python2-wtforms
2870 (package-with-python2 python-wtforms))
2872 (define-public python-paste
2874 (name "python-paste")
2879 (uri (pypi-uri "Paste" version))
2882 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
2883 (patches (search-patches "python-paste-remove-timing-test.patch"))
2884 (modules '((guix build utils)))
2887 ;; This test calls out to the internet.
2888 (delete-file "tests/test_proxy.py") #t))))
2889 (build-system python-build-system)
2891 `(("python-pytest" ,python-pytest)
2892 ("python-pytest-runner" ,python-pytest-runner)
2893 ("python-nose" ,python-nose)))
2895 `(("python-six" ,python-six)))
2896 (home-page "https://pythonpaste.readthedocs.io/")
2898 "Python web development tools, focusing on WSGI")
2900 "Paste provides a variety of web development tools and middleware which
2901 can be nested together to build web applications. Paste's design closely
2902 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
2903 (license license:expat)))
2905 (define-public python2-paste
2906 (package-with-python2 python-paste))
2908 (define-public python-pastescript
2910 (name "python-pastescript")
2915 (uri (pypi-uri "PasteScript" version))
2918 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
2919 (build-system python-build-system)
2921 `(("python-nose" ,python-nose)))
2923 `(("python-paste" ,python-paste)
2924 ("python-pastedeploy" ,python-pastedeploy)))
2925 (home-page (string-append "https://web.archive.org/web/20161025192515/"
2926 "http://pythonpaste.org/script/"))
2928 '(;; Unfortunately, this requires the latest unittest2,
2929 ;; but that requires traceback2 which requires linecache2 which requires
2930 ;; unittest2. So we're skipping tests for now.
2931 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
2932 ;; so in theory we could get around this situation somehow.)
2935 "Pluggable command line tool for serving web applications and more")
2937 "PasteScript is a plugin-friendly command line tool which provides a
2938 variety of features, from launching web applications to bootstrapping project
2940 (license license:expat)))
2942 (define-public python2-pastescript
2943 (package-with-python2 python-pastescript))
2945 (define-public python2-urlgrabber
2947 (name "python2-urlgrabber")
2952 (uri (pypi-uri "urlgrabber" version))
2954 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
2955 (build-system python-build-system)
2956 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
2957 (home-page "http://urlgrabber.baseurl.org")
2958 (synopsis "High-level cross protocol url-grabber")
2959 (description "@code{urlgrabber} is Python2 library that unifies access to
2960 files available on web, FTP or locally. It supports HTTP, FTP and file://
2961 protocols, it supports features like HTTP keep-alive, reget, throttling and
2963 (license license:lgpl2.1+)))
2965 (define-public python-pycares
2967 (name "python-pycares")
2972 (uri (pypi-uri "pycares" version))
2975 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
2976 (build-system python-build-system)
2978 `(#:tests? #f)) ;tests require internet access
2979 (home-page "http://github.com/saghul/pycares")
2980 (synopsis "Python interface for @code{c-ares}")
2981 (description "@code{pycares} is a Python module which provides an
2982 interface to @code{c-ares}, a C library that performs DNS requests and
2983 name resolutions asynchronously.")
2984 (license license:expat)))
2986 (define-public python-yarl
2988 (name "python-yarl")
2993 (uri (pypi-uri "yarl" version))
2996 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
2997 (build-system python-build-system)
2999 `(("python-pytest" ,python-pytest)
3000 ("python-pytest-runner" ,python-pytest-runner)))
3002 `(("python-idna" ,python-idna)
3003 ("python-multidict" ,python-multidict)))
3004 (home-page "https://github.com/aio-libs/yarl/")
3005 (synopsis "Yet another URL library")
3006 (description "@code{yarl} module provides handy @code{URL} class
3007 for URL parsing and changing.")
3008 (license license:asl2.0)))
3010 (define-public python-google-api-client
3012 (name "python-google-api-client")
3017 (uri (pypi-uri "google-api-python-client" version))
3020 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
3021 (build-system python-build-system)
3023 '(#:tests? #f)) ; tests require internet access
3025 `(("python-httplib2" ,python-httplib2)
3026 ("python-six" ,python-six)
3027 ("python-oauth2client" ,python-oauth2client)
3028 ("python-uritemplate" ,python-uritemplate)))
3029 (home-page "https://github.com/google/google-api-python-client")
3030 (synopsis "Core Python library for accessing Google APIs")
3031 (description "Python client library for Google's discovery based APIs")
3032 (license license:asl2.0)))
3034 (define-public python2-google-api-client
3035 (package-with-python2 python-google-api-client))
3037 (define-public python-hawkauthlib
3039 (name "python-hawkauthlib")
3044 (uri (pypi-uri "hawkauthlib" version))
3047 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
3048 (build-system python-build-system)
3050 `(("python-requests" ,python-requests)
3051 ("python-webob" ,python-webob)))
3052 (home-page "https://github.com/mozilla-services/hawkauthlib")
3053 (synopsis "Hawk Access Authentication protocol")
3055 "This is a low-level Python library for implementing Hawk Access Authentication,
3056 a simple HTTP request-signing scheme.")
3057 (license license:mpl2.0)))
3059 (define-public python-pybrowserid
3061 (name "python-pybrowserid")
3066 (uri (pypi-uri "PyBrowserID" version))
3069 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
3070 (build-system python-build-system)
3072 `(("python-requests" ,python-requests)))
3074 `(("python-mock" ,python-mock)))
3075 (home-page "https://github.com/mozilla/PyBrowserID")
3076 (synopsis "Python library for the BrowserID protocol")
3078 "This is a Python client library for the BrowserID protocol that
3079 underlies Mozilla Persona.")
3080 (license license:mpl2.0)))
3082 (define-public python-pyfxa
3084 (name "python-pyfxa")
3089 (uri (pypi-uri "PyFxA" version))
3092 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
3093 (build-system python-build-system)
3094 (arguments '(#:tests? #f)) ; 17 tests require network access
3096 `(("python-cryptography" ,python-cryptography)
3097 ("python-hawkauthlib" ,python-hawkauthlib)
3098 ("python-pybrowserid" ,python-pybrowserid)
3099 ("python-requests" ,python-requests)
3100 ("python-six" ,python-six)))
3102 `(("python-grequests" ,python-grequests)
3103 ("python-mock" ,python-mock)
3104 ("python-responses" ,python-responses)
3105 ("python-unittest2" ,python-unittest2)))
3106 (home-page "https://github.com/mozilla/PyFxA")
3107 (synopsis "Firefox Accounts client library for Python")
3109 "This is a Python library for interacting with the Firefox Accounts
3111 (license license:mpl2.0)))
3113 (define-public python-hyperlink
3115 (name "python-hyperlink")
3120 (uri (pypi-uri "hyperlink" version))
3123 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
3124 (build-system python-build-system)
3126 `(("python-idna" ,python-idna)))
3127 (home-page "https://github.com/python-hyper/hyperlink")
3128 (synopsis "Python module to create immutable URLs according to spec")
3129 (description "This package provides a Python module to create immutable, and
3130 correct URLs for Python according to RFCs 3986 and 3987.")
3131 (license license:expat)))
3133 (define-public python-treq
3135 (name "python-treq")
3140 (uri (pypi-uri "treq" version))
3143 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
3144 (build-system python-build-system)
3146 `(("python-attrs" ,python-attrs)
3147 ("python-idna" ,python-idna)
3148 ("python-incremental" ,python-incremental)
3149 ("python-requests" ,python-requests)
3150 ("python-service-identity" ,python-service-identity)
3151 ("python-twisted" ,python-twisted)))
3152 (home-page "https://github.com/twisted/treq")
3153 (synopsis "Requests-like API built on top of twisted.web's Agent")
3154 (description "This package provides an HTTP library inspired by
3155 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3156 high level API for making HTTP requests when using Twisted.")
3157 (license license:expat)))
3159 (define-public python-autobahn
3161 (name "python-autobahn")
3166 (uri (pypi-uri "autobahn" version))
3169 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3170 (build-system python-build-system)
3172 ;; The tests fail to run:
3173 ;; https://github.com/crossbario/autobahn-python/issues/1117
3176 `(("python-cffi" ,python-cffi)
3177 ("python-twisted" ,python-twisted)
3178 ("python-txaio" ,python-txaio)))
3179 (home-page "https://crossbar.io/autobahn/")
3180 (synopsis "Web Application Messaging Protocol implementation")
3181 (description "This package provides an implementation of the @dfn{Web Application
3182 Messaging Protocol} (WAMP). WAMP connects components in distributed
3183 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3184 Calls (rRPC). It is ideal for distributed, multi-client and server applications
3185 such as IoT applications or multi-user database-driven business applications.")
3186 (license license:expat)))
3188 (define-public python-ws4py
3190 (name "python-ws4py")
3195 (uri (pypi-uri "ws4py" version))
3198 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3199 (build-system python-build-system)
3202 (modify-phases %standard-phases
3203 (add-after 'unpack 'python3.7-compatibility
3205 (substitute* '("ws4py/server/tulipserver.py"
3206 "ws4py/async_websocket.py")
3208 "asyncio.ensure_future"))
3210 ;; We don't have a package for cherrypy.
3211 (add-after 'unpack 'remove-cherrypy-support
3213 (delete-file "ws4py/server/cherrypyserver.py")
3216 `(("python-gevent" ,python-gevent)
3217 ("python-tornado" ,python-tornado)))
3218 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3219 (synopsis "WebSocket client and server library")
3221 "This package provides a WebSocket client and server library for
3223 (license license:bsd-3)))
3225 ;; kaldi-gstreamer-server does not yet work with python-ws4py > 0.3.2
3226 (define-public python2-ws4py-for-kaldi-gstreamer-server
3227 (package (inherit python-ws4py)
3228 (name "python2-ws4py")
3233 (uri (pypi-uri "ws4py" version))
3236 "12ys3dv98awhrxd570vla3hqgzq3avjhq4yafhghhq3a942y1928"))))
3237 (build-system python-build-system)
3239 `(#:python ,python-2
3241 (modify-phases %standard-phases
3242 ;; We don't have a package for cherrypy.
3243 (add-after 'unpack 'remove-cherrypy-support
3245 (delete-file "ws4py/server/cherrypyserver.py")
3248 `(("python-gevent" ,python2-gevent)
3249 ("python-tornado" ,python2-tornado)))))
3251 (define-public python-slugify
3253 (name "python-slugify")
3258 (uri (pypi-uri "python-slugify" version))
3260 (base32 "0dv97yi5fq074q5qyqbin09pmi8ixg36caf5nkpw2bqkd8jh6pap"))
3262 (search-patches "python-slugify-depend-on-unidecode.patch"))))
3264 `(("python-wheel" ,python-wheel)))
3266 `(("python-unidecode" ,python-unidecode)))
3269 (modify-phases %standard-phases
3272 (invoke "python" "test.py"))))))
3273 (build-system python-build-system)
3274 (home-page "https://github.com/un33k/python-slugify")
3275 (synopsis "Python Slugify application that handles Unicode")
3276 (description "This package provides a @command{slufigy} command and
3277 library to create slugs from unicode strings while keeping it DRY.")
3278 (license license:expat)))
3280 (define-public python-branca
3282 (name "python-branca")
3287 (uri (pypi-uri "branca" version))
3290 "0pmigd521j2228xf8x34vbx0niwvms7xl7za0lymywj0vydjqxiy"))))
3291 (build-system python-build-system)
3293 `(("python-jinja2" ,python-jinja2)
3294 ("python-six" ,python-six)))
3296 `(("python-pytest" ,python-pytest)))
3297 (home-page "https://github.com/python-visualization/branca")
3298 (synopsis "Generate complex HTML+JS pages with Python")
3299 (description "Generate complex HTML+JS pages with Python")
3300 (license license:expat)))
3302 (define-public python-tinycss2
3304 (name "python-tinycss2")
3309 (uri (pypi-uri "tinycss2" version))
3311 (base32 "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4"))))
3312 (build-system python-build-system)
3315 (modify-phases %standard-phases
3317 (lambda _ (invoke "pytest"))))))
3319 `(("python-webencodings" ,python-webencodings)))
3321 `(("python-pytest-flake8" ,python-pytest-flake8)
3322 ("python-pytest-isort" ,python-pytest-isort)
3323 ("python-pytest-runner" ,python-pytest-runner)))
3324 (home-page "https://tinycss2.readthedocs.io/")
3325 (synopsis "Low-level CSS parser for Python")
3326 (description "@code{tinycss2} can parse strings, return Python objects
3327 representing tokens and blocks, and generate CSS strings corresponding to
3330 Based on the CSS Syntax Level 3 specification, @code{tinycss2} knows the
3331 grammar of CSS but doesn’t know specific rules, properties or values supported
3332 in various CSS modules.")
3333 (license license:bsd-3)))
3335 (define-public python-cssselect2
3337 (name "python-cssselect2")
3342 (uri (pypi-uri "cssselect2" version))
3344 (base32 "0skymzb4ncrm2zdsy80f53vi0arf776lvbp51hzh4ayp1il5lj3h"))))
3345 (build-system python-build-system)
3348 (modify-phases %standard-phases
3350 (lambda _ (invoke "pytest"))))))
3352 `(("python-tinycss2" ,python-tinycss2)))
3354 `(("python-pytest-cov" ,python-pytest-cov)
3355 ("python-pytest-flake8" ,python-pytest-flake8)
3356 ("python-pytest-isort" ,python-pytest-isort)
3357 ("python-pytest-runner" ,python-pytest-runner)))
3358 (home-page "https://cssselect2.readthedocs.io/")
3359 (synopsis "CSS selectors for Python ElementTree")
3360 (description "@code{cssselect2} is a straightforward implementation of
3361 CSS3 Selectors for markup documents (HTML, XML, etc.) that can be read by
3362 ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.).
3364 Unlike the Python package @code{cssselect}, it does not translate selectors to
3365 XPath and therefore does not have all the correctness corner cases that are
3366 hard or impossible to fix in cssselect.")
3367 (license license:bsd-3)))
3369 (define-public gunicorn
3376 (uri (pypi-uri "gunicorn" version))
3379 "0l1zm8a0vz8ws3lkn8q9a0f93ipdzyvlf2zlwdj5xyadh6jdwsgg"))))
3380 (outputs '("out" "doc"))
3381 (build-system python-build-system)
3384 (modify-phases %standard-phases
3385 (add-after 'build 'build-doc
3387 (invoke "make" "-C" "docs" "PAPER=a4" "html" "info")
3388 (delete-file "docs/build/texinfo/Makefile")
3389 (delete-file "docs/build/texinfo/Gunicorn.texi")
3393 (setenv "PYTHONPATH"
3394 (string-append ".:" (getenv "PYTHONPATH")))
3395 ;; Remove test modules failing due to libc not found due to
3396 ;; section '.dynamic' not found in libc.so
3397 (delete-file "tests/test_arbiter.py")
3398 (delete-file "tests/test_config.py")
3399 (delete-file "tests/test_sock.py")
3401 (add-after 'install 'install-doc
3402 (lambda* (#:key outputs #:allow-other-keys)
3403 (let* ((doc (string-append (assoc-ref outputs "doc")
3404 "/share/doc/" ,name "-" ,version))
3405 (html (string-append doc "/html"))
3406 (info (string-append doc "/info"))
3407 (examples (string-append doc "/examples")))
3411 (copy-recursively "docs/build/html" html)
3412 (copy-recursively "docs/build/texinfo" info)
3413 (copy-recursively "examples" examples)
3414 (for-each (lambda (file)
3415 (copy-file file (string-append doc "/" file)))
3416 '("README.rst" "NOTICE" "LICENSE" "THANKS")))
3419 `(("binutils" ,binutils) ;; for ctypes.util.find_library()
3420 ("python-aiohttp", python-aiohttp)
3421 ("python-pytest" ,python-pytest)
3422 ("python-pytest-cov" ,python-pytest-cov)
3423 ("python-sphinx" ,python-sphinx)
3424 ("texinfo" ,texinfo)))
3425 (home-page "https://gunicorn.org/")
3426 (synopsis "Python WSGI HTTP Server for UNIX")
3427 (description "Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP
3428 Server for UNIX. It’s a pre-fork worker model ported from Ruby’s
3429 Unicorn project. The Gunicorn server is broadly compatible with
3430 various web frameworks, simply implemented, light on server resources,
3431 and fairly speedy.")
3432 (license license:expat)))
3434 (define-public python-translation-finder
3436 (name "python-translation-finder")
3441 (uri (pypi-uri "translation-finder" version))
3444 "1pcy9z8gmb8x41gjhw9x0lkr0d2mv5mdxcs2hwg6q8mxs857j589"))))
3445 (build-system python-build-system)
3448 (modify-phases %standard-phases
3449 (add-before 'build 'remove-failing-test
3451 (delete-file "translation_finder/test_api.py")
3454 `(("python-chardet" ,python-chardet)
3455 ("python-pathlib2" ,python-pathlib2)
3456 ("python-ruamel.yaml" ,python-ruamel.yaml)
3457 ("python-six" ,python-six)))
3459 `(("python-codecov" ,python-codecov)
3460 ("python-codacy-coverage" ,python-codacy-coverage)
3461 ("python-pytest-cov" ,python-pytest-cov)
3462 ("python-pytest-runner" ,python-pytest-runner)
3463 ("python-twine" ,python-twine)))
3464 (home-page "https://weblate.org/")
3465 (synopsis "Translation file finder for Weblate")
3466 (description "This package provides a function to find translation file in
3467 the source code of a project. It supports many translation file formats and
3468 is part of the Weblate translation platform.")
3469 (license license:gpl3+)))
3471 (define-public python-gitlab
3473 (name "python-gitlab")
3478 (uri (pypi-uri "python-gitlab" version))
3481 "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5"))))
3482 (build-system python-build-system)
3484 `(("python-requests" ,python-requests)
3485 ("python-six" ,python-six)))
3487 `(("python-httmock" ,python-httmock)
3488 ("python-mock" ,python-mock)))
3490 "https://github.com/python-gitlab/python-gitlab")
3491 (synopsis "Interact with GitLab API")
3492 (description "This package provides an extended library for interacting
3493 with GitLab instances through their API.")
3494 (license license:lgpl3+)))
3496 (define-public python-path-and-address
3498 (name "python-path-and-address")
3502 ;; The source distributed on PyPI doesn't include tests.
3505 (url "https://github.com/joeyespo/path-and-address")
3506 (commit (string-append "v" version))))
3507 (file-name (git-file-name name version))
3510 "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6"))))
3511 (build-system python-build-system)
3514 (modify-phases %standard-phases
3516 (lambda* (#:key inputs outputs #:allow-other-keys)
3517 (add-installed-pythonpath inputs outputs)
3518 (invoke "py.test"))))))
3520 `(("python-pytest" ,python-pytest)))
3521 (home-page "https://github.com/joeyespo/path-and-address")
3522 (synopsis "Functions for command-line server tools used by humans")
3523 (description "Path-and-address resolves ambiguities of command-line
3524 interfaces, inferring which argument is the path, and which is the address.")
3525 (license license:expat)))
3528 ;; No release by upstream for quite some time, some bugs fixed since. See:
3529 ;; https://github.com/joeyespo/grip/issues/304
3530 (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3"))
3533 (version (git-version "4.5.2" "1" commit))
3538 (url "https://github.com/joeyespo/grip")
3540 (file-name (git-file-name name version))
3543 "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w"))))
3544 (build-system python-build-system)
3546 `(("python-docopt" ,python-docopt)
3547 ("python-flask" ,python-flask)
3548 ("python-markdown" ,python-markdown)
3549 ("python-path-and-address" ,python-path-and-address)
3550 ("python-pygments" ,python-pygments)
3551 ("python-requests" ,python-requests)))
3553 `(("python-pytest" ,python-pytest)
3554 ("python-responses" ,python-responses)))
3557 (modify-phases %standard-phases
3559 (lambda* (#:key inputs outputs #:allow-other-keys)
3560 (add-installed-pythonpath inputs outputs)
3561 (setenv "PATH" (string-append
3563 (assoc-ref %outputs "out") "/bin"))
3564 (invoke "py.test" "-m" "not assumption"))))))
3565 (home-page "https://github.com/joeyespo/grip")
3566 (synopsis "Preview Markdown files using the GitHub API")
3567 (description "Grip is a command-line server application written in Python
3568 that uses the GitHub Markdown API to render a local Markdown file. The styles
3569 and rendering come directly from GitHub, so you'll know exactly how it will
3570 appear. Changes you make to the file will be instantly reflected in the browser
3571 without requiring a page refresh.")
3572 (license license:expat))))