1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
3 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
5 ;;; Copyright © 2016, 2017 Danny Milosavljevic <dannym+a@scratchpost.org>
6 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
7 ;;; Copyright © 2016, 2017, 2020 Marius Bakke <mbakke@fastmail.com>
8 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
10 ;;; Copyright © 2016, 2017, 2020 Julien Lepiller <julien@lepiller.eu>
11 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
12 ;;; Copyright © 2014, 2017 Eric Bavier <bavier@member.fsf.org>
13 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
14 ;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com>
15 ;;; Copyright © 2015, 2016, 2017, 2019 Leo Famulari <leo@famulari.name>
16 ;;; Copyright © 2016, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
17 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
18 ;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
19 ;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
20 ;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com>
21 ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
22 ;;; Copyright © 2016 David Craven <david@craven.ch>
23 ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
24 ;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
25 ;;; Copyright © 2017 Mark Meyer <mark@ofosos.org>
26 ;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
27 ;;; Copyright © 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
28 ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
29 ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
30 ;;; Copyright © 2019 Vagrant Cascadian <vagrant@debian.org>
31 ;;; Copyright © 2019 Brendan Tildesley <mail@brendan.scot>
32 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
33 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
34 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
35 ;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
36 ;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
37 ;;; Copyright © 2020 Holger Peters <holger.peters@posteo.de>
38 ;;; Copyright © 2020 Noisytoot <noisytoot@gmail.com>
39 ;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
41 ;;; This file is part of GNU Guix.
43 ;;; GNU Guix is free software; you can redistribute it and/or modify it
44 ;;; under the terms of the GNU General Public License as published by
45 ;;; the Free Software Foundation; either version 3 of the License, or (at
46 ;;; your option) any later version.
48 ;;; GNU Guix is distributed in the hope that it will be useful, but
49 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
50 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 ;;; GNU General Public License for more details.
53 ;;; You should have received a copy of the GNU General Public License
54 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
56 (define-module (gnu packages python-web)
57 #:use-module (guix packages)
58 #:use-module (guix download)
59 #:use-module (guix git-download)
60 #:use-module (guix build-system python)
61 #:use-module (guix utils)
62 #:use-module (gnu packages)
63 #:use-module (gnu packages base)
64 #:use-module (gnu packages check)
65 #:use-module (gnu packages compression)
66 #:use-module (gnu packages curl)
67 #:use-module (gnu packages databases)
68 #:use-module (gnu packages django)
69 #:use-module (gnu packages groff)
70 #:use-module (gnu packages libffi)
71 #:use-module (gnu packages pkg-config)
72 #:use-module (gnu packages python)
73 #:use-module (gnu packages python-check)
74 #:use-module (gnu packages python-crypto)
75 #:use-module (gnu packages python-xyz)
76 #:use-module (gnu packages serialization)
77 #:use-module (gnu packages sphinx)
78 #:use-module (gnu packages texinfo)
79 #:use-module (gnu packages tls)
80 #:use-module (gnu packages time)
81 #:use-module (gnu packages web)
82 #:use-module (gnu packages xml)
83 #:use-module ((guix licenses) #:prefix license:)
84 #:use-module (srfi srfi-1))
86 (define-public python-aiohttp
88 (name "python-aiohttp")
93 (uri (pypi-uri "aiohttp" version))
96 "09pkw6f1790prnrq0k8cqgnf1qy57ll8lpmc6kld09q7zw4vi6i5"))
97 (patches (search-patches "python-aiohttp-3.6.2-no-warning-fail.patch"))))
98 (build-system python-build-system)
101 (modify-phases %standard-phases
102 (add-after 'unpack 'fix-tests
104 ;; disable brotli tests, because we’re not providing that optional library
105 (substitute* "tests/test_http_parser.py"
106 ((" async def test_feed_eof_no_err_brotli")
107 " @pytest.mark.xfail\n async def test_feed_eof_no_err_brotli"))
108 ;; make sure the timestamp of this file is > 1990, because a few
109 ;; tests like test_static_file_if_modified_since_past_date depend on it
110 (invoke "touch" "-d" "2020-01-01" "tests/data.unknown_mime_type")
112 ;; FIXME: These tests are failing due to deprecation warnings
113 ;; in Python 3.8. Remove this when updating to aiohttp >= 3.7.
114 ;; https://github.com/aio-libs/aiohttp/issues/4477
115 ;; https://github.com/aio-libs/aiohttp/issues/4525
116 (with-directory-excursion "tests"
117 (for-each delete-file '("test_client_session.py"
119 "test_web_middleware.py"
120 "test_web_protocol.py"
121 "test_web_urldispatcher.py")))
124 `(("python-aiodns" ,python-aiodns)
125 ("python-async-timeout" ,python-async-timeout)
126 ("python-attrs" ,python-attrs)
127 ("python-chardet" ,python-chardet)
128 ("python-idna-ssl" ,python-idna-ssl)
129 ("python-multidict" ,python-multidict)
130 ("python-yarl" ,python-yarl)))
132 `(("python-pytest-runner" ,python-pytest-runner)
133 ("python-pytest-xdit" ,python-pytest-xdist)
134 ("python-pytest-timeout" ,python-pytest-timeout)
135 ("python-pytest-forked" ,python-pytest-forked)
136 ("python-pytest-mock" ,python-pytest-mock)
137 ("gunicorn" ,gunicorn-bootstrap)
138 ("python-freezegun" ,python-freezegun)
139 ("python-async-generator" ,python-async-generator)))
140 (home-page "https://github.com/aio-libs/aiohttp/")
141 (synopsis "Async HTTP client/server framework (asyncio)")
142 (description "@code{aiohttp} is an asynchronous HTTP client/server
145 Its main features are:
147 @item Supports both client and server side of HTTP protocol.
148 @item Supports both client and server Web-Sockets out-of-the-box without the
150 @item Web-server has middlewares and pluggable routing.
152 (license license:asl2.0)))
154 (define-public python-aiohttp-socks
156 (name "python-aiohttp-socks")
161 (uri (pypi-uri "aiohttp_socks" version))
164 "0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
165 (build-system python-build-system)
167 `(("python-aiohttp" ,python-aiohttp)))
168 (home-page "https://github.com/romis2012/aiohttp-socks")
169 (synopsis "SOCKS proxy connector for aiohttp")
170 (description "This package provides a SOCKS proxy connector for
171 aiohttp. It supports SOCKS4(a) and SOCKS5.")
172 (license license:asl2.0)))
174 (define-public python-aiodns
176 (name "python-aiodns")
181 (uri (pypi-uri "aiodns" version))
184 "1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
185 (build-system python-build-system)
187 `(("python-pycares" ,python-pycares)))
189 `(#:tests? #f)) ;tests require internet access
190 (home-page "http://github.com/saghul/aiodns")
191 (synopsis "Simple DNS resolver for asyncio")
192 (description "@code{aiodns} provides a simple way for doing
193 asynchronous DNS resolutions with a synchronous looking interface by
194 using @url{https://github.com/saghul/pycares,pycares}.")
195 (license license:expat)))
197 (define-public python-aiorpcx
199 (name "python-aiorpcx")
204 (uri (pypi-uri "aiorpcX" version))
207 "0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp"))))
208 (build-system python-build-system)
210 `(("python-attrs" ,python-attrs)))
211 (home-page "https://github.com/kyuupichan/aiorpcX")
212 (synopsis "Generic asyncio RPC implementation")
214 "The aiorpcX library is a generic asyncio implementation of RPC suitable
215 for an application that is a client, server or both.
217 The package includes a module with full coverage of JSON RPC versions 1.0 and
218 2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
219 comes with a SOCKS proxy client.")
220 (license (list license:expat license:bsd-2))))
222 (define-public python-falcon
224 (name "python-falcon")
229 (uri (pypi-uri "falcon" version))
232 "1z6mqfv574x6jiawf67ib52g4kk20c2x7xk7wrn1573b8v7r79gf"))
233 (modules '((guix build utils)))
236 (delete-file-recursively "falcon/vendor")
237 (substitute* "setup.py"
238 ((".*falcon\\.vendor\\.mimeparse.*") ""))
239 (substitute* '("falcon/media/handlers.py"
241 (("from falcon\\.vendor ") ""))
242 (substitute* "falcon.egg-info/SOURCES.txt"
243 (("falcon/vendor.*") ""))
245 (build-system python-build-system)
248 (modify-phases %standard-phases
250 (lambda* (#:key inputs outputs #:allow-other-keys)
251 ;; Skip orjson, which requires rust to build.
252 (substitute* "tests/test_media_handlers.py"
253 (("== 'CPython") "!= 'CPython"))
254 (add-installed-pythonpath inputs outputs)
255 (invoke "pytest" "--ignore" "falcon"))))))
257 `(("python-mimeparse" ,python-mimeparse)))
259 `(("python-cython" ,python-cython) ;for faster binaries
260 ("python-mujson" ,python-mujson)
261 ("python-msgpack" ,python-msgpack)
262 ("python-pytest" ,python-pytest)
263 ("python-pytest-runner" ,python-pytest-runner)
264 ("python-pyyaml" ,python-pyyaml)
265 ("python-rapidjson" ,python-rapidjson)
266 ("python-requests" ,python-requests)
267 ("python-testtools" ,python-testtools)
268 ("python-ujson" ,python-ujson)))
269 (home-page "https://falconframework.org")
271 "Web framework for building APIs and application backends")
273 "Falcon is a web API framework for building microservices, application
274 backends and higher-level frameworks. Among its features are:
276 @item Optimized and extensible code base
277 @item Routing via URI templates and REST-inspired resource
279 @item Access to headers and bodies through request and response
281 @item Request processing via middleware components and hooks
282 @item Idiomatic HTTP error responses
283 @item Straightforward exception handling
284 @item Unit testing support through WSGI helpers and mocks
285 @item Compatible with both CPython and PyPy
286 @item Cython support for better performance when used with CPython
288 (properties `((python2-variant . ,(delay python2-falcon))))
289 (license license:asl2.0)))
291 (define-public python2-falcon
292 (let ((falcon (package-with-python2 (strip-python2-variant python-falcon))))
296 (alist-delete "python-rapidjson" (package-native-inputs falcon))))))
298 (define-public python-falcon-cors
300 (name "python-falcon-cors")
305 (uri (pypi-uri "falcon-cors" version))
308 "12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
309 (build-system python-build-system)
311 `(("python-falcon" ,python-falcon)))
313 "https://github.com/lwcolton/falcon-cors")
314 (synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
315 (description "This middleware provides @dfn{cross-origin resource
316 sharing} (CORS) support for Falcon. It allows applying a specially crafted
317 CORS object to the incoming requests, enabling the ability to serve resources
318 over a different origin than that of the web application.")
319 (license license:asl2.0)))
321 (define-public python2-falcon-cors
322 (package-with-python2 python-falcon-cors))
324 (define-public python-furl
331 (uri (pypi-uri "furl" version))
334 "0lzpfpm686hvz3sr1mcrnd1b3lgmnw8v59gb43wfi98r3b671pqc"))))
335 (build-system python-build-system)
337 `(("python-six" ,python-six)
338 ("python-orderedmultidict" ,python-orderedmultidict)))
340 `(("python-pycodestyle" ,python-pycodestyle)))
341 (home-page "https://github.com/gruns/furl")
342 (synopsis "URL manipulation in Python")
343 (description "Furl provides an easy-to-use alternative to the
344 @code{urllib} and @code{urlparse} modules for manipulating URLs.")
345 (license license:unlicense)))
347 (define-public python2-furl
348 (package-with-python2 python-furl))
350 (define-public python-httplib2
352 (name "python-httplib2")
357 (uri (pypi-uri "httplib2" version))
360 "126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
361 (build-system python-build-system)
362 (home-page "https://github.com/jcgregorio/httplib2")
363 (synopsis "Comprehensive HTTP client library")
365 "A comprehensive HTTP client library supporting many features left out of
366 other HTTP libraries.")
367 (license license:expat)))
369 (define-public python2-httplib2
370 (package-with-python2 python-httplib2))
372 (define-public httpie
379 (uri (pypi-uri "httpie" version))
382 "02bw20cwv3a1lzrn919dk25dq4v81x6q786zlrqsqzhsdxszj14c"))))
383 (build-system python-build-system)
385 ;; The tests attempt to access external web servers, so we cannot run them.
388 `(("python-colorama" ,python-colorama)
389 ("python-pygments" ,python-pygments)
390 ("python-requests" ,python-requests)))
391 (home-page "https://httpie.org/")
392 (synopsis "cURL-like tool for humans")
394 "A command line HTTP client with an intuitive UI, JSON support,
395 syntax highlighting, wget-like downloads, plugins, and more. It consists of
396 a single http command designed for painless debugging and interaction with
397 HTTP servers, RESTful APIs, and web services.")
398 (license license:bsd-3)))
400 (define-public python-html2text
402 (name "python-html2text")
403 (version "2019.8.11")
407 (uri (pypi-uri "html2text" version))
410 "0ppgjplg06kmv9sj0x8p7acczcq2mcfgk1jdjwm4w5w40b0vj5pm"))))
411 (build-system python-build-system)
414 (modify-phases %standard-phases
417 (invoke "pytest" "test/"))))))
419 `(("python-pytest" ,python-pytest)))
420 (home-page "https://github.com/Alir3z4/html2text")
421 (synopsis "Convert HTML into plain text")
422 (description "html2text takes HTML and converts it into plain ASCII text
423 which is also valid markdown. html2text was originally written by Aaron
425 (license license:gpl3+)))
427 (define-public python2-html2text
428 (package-with-python2 python-html2text))
430 (define-public python-mechanicalsoup
432 (name "python-mechanicalsoup")
437 (uri (pypi-uri "MechanicalSoup" version))
439 (base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
440 (build-system python-build-system)
442 ;; TODO: Enable tests when python-flake8@3.5 hits master.
445 `(("python-beautifulsoup4" ,python-beautifulsoup4)
446 ("python-lxml" ,python-lxml)
447 ("python-requests" ,python-requests)
448 ("python-six" ,python-six)))
451 ;; `(("python-pytest-flake8" ,python-pytest-flake8)
452 ;; ("python-pytest-httpbin" ,python-pytest-httpbin)
453 ;; ("python-pytest-mock" ,python-pytest-mock)
454 ;; ("python-pytest-runner" ,python-pytest-runner)
455 ;; ("python-requests-mock" ,python-requests-mock)))
456 (home-page "https://mechanicalsoup.readthedocs.io/")
457 (synopsis "Python library for automating website interaction")
459 "MechanicalSoup is a Python library for automating interaction with
460 websites. It automatically stores and sends cookies, follows redirects, and can
461 follow links and submit forms. It doesn’t do JavaScript.")
462 (license license:expat)))
464 (define-public python2-mechanicalsoup
465 (package-with-python2 python-mechanicalsoup))
467 (define-public python-sockjs-tornado
469 (name "python-sockjs-tornado")
474 (uri (pypi-uri "sockjs-tornado" version))
477 "15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
478 (build-system python-build-system)
480 `(;; There are no tests, and running the test phase requires missing
484 `(("python-tornado" ,python-tornado)))
485 (home-page "https://github.com/mrjoes/sockjs-tornado/")
487 "SockJS Python server implementation on top of the Tornado framework")
489 "SockJS-tornado provides the server-side counterpart to a SockJS client
490 library, through the Tornado framework.
492 SockJS provides a low-latency, full-duplex, cross-domain communication channel
493 between a web browser and web server.")
494 (license license:expat)))
496 (define-public python2-sockjs-tornado
497 (package-with-python2 python-sockjs-tornado))
499 (define-public python-flask-babel
501 (name "python-flask-babel")
506 (uri (pypi-uri "Flask-Babel" version))
509 "0gmb165vkwv5v7dxsxa2i3zhafns0fh938m2zdcrv4d8z5l099yn"))))
510 (build-system python-build-system)
512 '(#:phases (modify-phases %standard-phases
515 (with-directory-excursion "tests"
516 (invoke "python" "tests.py")))))))
518 `(("python-flask" ,python-flask)
519 ("python-babel" ,python-babel)
520 ("python-jinja2" ,python-jinja2)
521 ("python-pytz" ,python-pytz)))
522 (home-page "https://github.com/python-babel/flask-babel")
523 (synopsis "Add i18n/l10n support to Flask applications")
524 (description "This package implements internationalization and localization
525 support for Flask. This is based on the Python babel module as well as pytz -
526 both of which are installed automatically if you install this library.")
527 (license license:bsd-3)))
529 (define-public python2-flask-babel
530 (package-with-python2 python-flask-babel))
532 (define-public python-html5lib
534 (name "python-html5lib")
539 (uri (pypi-uri "html5lib" version))
542 "0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
543 (build-system python-build-system)
545 `(("python-six" ,python-six)
546 ("python-webencodings" ,python-webencodings)))
548 `(#:test-target "check"))
550 "https://github.com/html5lib/html5lib-python")
552 "Python HTML parser based on the WHATWG HTML specifcation")
554 "Html5lib is an HTML parser based on the WHATWG HTML specifcation
555 and written in Python.")
556 (license license:expat)))
558 (define-public python2-html5lib
559 (package-with-python2 python-html5lib))
561 ;; Needed for python-bleach, a dependency of python-notebook
562 (define-public python-html5lib-0.9
564 (inherit python-html5lib)
569 (uri (pypi-uri "html5lib" version))
572 "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
574 (define-public python2-html5lib-0.9
575 (package-with-python2 python-html5lib-0.9))
577 (define-public python-html5-parser
579 (name "python-html5-parser")
583 (uri (pypi-uri "html5-parser" version))
586 "01mx33sx4dhl4kj6wc48nj6jz7ry60rkhjv0s6k8h5xmjf5yy0x9"))))
587 (build-system python-build-system)
589 `(("pkg-config" ,pkg-config)))
591 `(("libxml2" ,libxml2)))
593 `(("python-lxml" ,python-lxml)
594 ("python-beautifulsoup4" ,python-beautifulsoup4)))
595 (home-page "https://html5-parser.readthedocs.io")
596 (synopsis "Fast C-based HTML5 parsing for Python")
597 (description "This package provides a fast implementation of the HTML5
598 parsing spec for Python. Parsing is done in C using a variant of the gumbo
599 parser. The gumbo parse tree is then transformed into an lxml tree, also in
600 C, yielding parse times that can be a thirtieth of the html5lib parse times.")
601 ;; src/as-python-tree.[c|h] are licensed GPL3. The other files
602 ;; indicate ASL2.0, including the LICENSE file for the whole project.
603 (license (list license:asl2.0 license:gpl3))))
605 (define-public python2-html5-parser
606 (package-with-python2 python-html5-parser))
608 (define-public python-pycurl
610 (name "python-pycurl")
615 (uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
618 (base32 "1915kb04k1j4y6k1dx1sgnbddxrl9r1n4q928if2lkrdm73xy30g"))))
619 (build-system python-build-system)
621 ;; The tests attempt to access external web servers, so we cannot run
622 ;; them. Furthermore, they are skipped altogether when using Python 2.
624 #:phases (modify-phases %standard-phases
625 (add-before 'build 'configure-tls-backend
627 ;; XXX: PycURL fails to automatically determine which TLS
628 ;; backend to use when cURL is built with --disable-static.
629 ;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
630 (setenv "PYCURL_SSL_LIBRARY" "gnutls")
633 `(("python-nose" ,python-nose)
634 ("python-bottle" ,python-bottle)))
638 (home-page "http://pycurl.io/")
639 (synopsis "Lightweight Python wrapper around libcurl")
640 (description "Pycurl is a lightweight wrapper around libcurl. It provides
641 high-speed transfers via libcurl and frequently outperforms alternatives.")
643 ;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
644 ;; under the terms of LGPLv2.1+ or Expat.
645 (license (list license:lgpl2.1+ license:expat))))
647 (define-public python2-pycurl
648 (package-with-python2 python-pycurl))
650 (define-public python-webencodings
652 (name "python-webencodings")
656 (uri (pypi-uri "webencodings" version))
659 "08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
660 (build-system python-build-system)
663 (modify-phases %standard-phases
666 (invoke "py.test" "-v" "webencodings/tests.py")
669 `(("python-pytest" ,python-pytest)))
670 (home-page "https://github.com/SimonSapin/python-webencodings")
671 (synopsis "Character encoding aliases for legacy web content")
673 "In order to be compatible with legacy web content when interpreting
674 something like @code{Content-Type: text/html; charset=latin1}, tools need
675 to use a particular set of aliases for encoding labels as well as some
676 overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
677 the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
678 or @code{UTF-16} BOM takes precedence over any other encoding declaration.
679 The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
680 defines all such details so that implementations do not have to
681 reverse-engineer each other.
683 This module implements the Encoding standard and has encoding labels and
684 BOM detection, but the actual implementation for encoders and decoders
686 (license license:bsd-3)))
688 (define-public python2-webencodings
689 (package-with-python2 python-webencodings))
691 (define-public python-openid
693 (name "python-openid")
698 (uri (pypi-uri "python3-openid" version))
701 "00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
702 (build-system python-build-system)
705 (modify-phases %standard-phases
708 (invoke "coverage" "run" "-m"
709 "unittest" "openid.test.test_suite"))))))
710 (properties `((python2-variant . ,(delay python2-openid))))
712 `(("python-defusedxml" ,python-defusedxml)))
714 `(("python-coverage" ,python-coverage)
715 ("python-psycopg2" ,python-psycopg2)
716 ("python-django" ,python-django)))
717 (home-page "https://github.com/necaris/python3-openid")
718 (synopsis "OpenID support for servers and consumers")
719 (description "This library provides OpenID authentication for Python, both
720 for clients and servers.")
721 (license license:asl2.0)))
723 (define-public python2-openid
725 (name "python2-openid")
730 (uri (pypi-uri "python-openid" version))
733 "1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
734 (build-system python-build-system)
736 ;; Python 3 support is in `python3-openid`, a separate package.
738 ;; Tests aren't initialized correctly.
740 (home-page "https://github.com/openid/python-openid")
741 (synopsis "OpenID support for servers and consumers")
742 (description "This library provides OpenID authentication for Python, both
743 for clients and servers.")
744 (license license:asl2.0)))
746 (define-public python-cssutils
748 (name "python-cssutils")
753 (uri (pypi-uri "cssutils" version))
756 "1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
757 (build-system python-build-system)
759 `(("unzip" ,unzip))) ; for unpacking the source
761 `(#:tests? #f)) ; tests require python-pbr < 1.7.0
762 (home-page "http://cthedot.de/cssutils/")
764 "CSS Cascading Style Sheets library for Python")
766 "Cssutils is a Python package for parsing and building CSS
767 Cascading Style Sheets. Currently it provides a DOM only and no rendering
769 (license license:lgpl3+)))
771 (define-public python2-cssutils
772 (package-with-python2 python-cssutils))
774 (define-public python-css-parser
776 (inherit python-cssutils)
777 (name "python-css-parser")
782 (uri (pypi-uri "css-parser" version ".tar.gz"))
785 "0i4xfykiffxzr4f6y0m2ggqvx1rzam6pw6krlr5k6ldf29akbay7"))))
786 (home-page "https://github.com/ebook-utils/css-parser")
787 (synopsis "Fork of cssutils modified for parsing ebooks")
789 "Css-parser is a fork of cssutils 1.0.2, updated and modified for parsing
790 ebooks, due to cssutils not receiving updates as of 1.0.2.")
791 (license license:lgpl3+)))
793 (define-public python2-css-parser
794 (package-with-python2 python-css-parser))
796 (define-public python-cssselect
798 (name "python-cssselect")
803 (uri (pypi-uri "cssselect" version))
806 "1xg6gbva1yswghiycmgincv6ab4bn7hpm720ndbj40h8xycmnfvi"))))
807 (build-system python-build-system)
809 ;; tests fail with message
810 ;; AttributeError: 'module' object has no attribute 'tests'
813 "https://pythonhosted.org/cssselect/")
815 "CSS3 selector parser and translator to XPath 1.0")
817 "Cssselect ia a Python module that parses CSS3 Selectors and translates
818 them to XPath 1.0 expressions. Such expressions can be used in lxml or
819 another XPath engine to find the matching elements in an XML or HTML document.")
820 (license license:bsd-3)))
822 (define-public python2-cssselect
823 (package-with-python2 python-cssselect))
825 (define-public python-openid-cla
827 (name "python-openid-cla")
832 (uri (pypi-uri "python-openid-cla" version))
835 "102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
836 (build-system python-build-system)
837 (arguments '(#:tests? #f)) ; No tests.
838 (home-page "https://github.com/puiterwijk/python-openid-cla/")
839 (synopsis "Implementation of the OpenID CLA extension for python-openid")
840 (description "@code{openid-cla} is an implementation of the OpenID
841 contributor license agreement extension for python-openid.")
842 (license license:bsd-3)))
844 (define-public python2-openid-cla
845 (package-with-python2 python-openid-cla))
847 (define-public python-openid-teams
849 (name "python-openid-teams")
854 (uri (pypi-uri "python-openid-teams" version))
857 "05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
858 (build-system python-build-system)
859 (arguments '(#:tests? #f)) ; No tests.
860 (home-page "https://github.com/puiterwijk/python-openid-teams/")
861 (synopsis "Implementation of the OpenID teams extension for python-openid")
863 "@code{openid-teams} is an implementation of the OpenID
864 teams extension for python-openid.")
865 (license license:bsd-3)))
867 (define-public python2-openid-teams
868 (package-with-python2 python-openid-teams))
870 (define-public python-tornado
872 (name "python-tornado")
877 (uri (pypi-uri "tornado" version))
880 "02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
881 (build-system python-build-system)
883 '(;; FIXME: Two tests error out with:
884 ;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
886 ;; (modify-phases %standard-phases
889 ;; ;; 'setup.py test' hits an AssertionError on BSD-specific
890 ;; ;; "tornado/platform/kqueue.py". This is the supported method:
891 ;; (invoke "python" "-m" "tornado.test.runtests")
895 `(("python-certifi" ,python-certifi)))
896 (home-page "https://www.tornadoweb.org/")
897 (synopsis "Python web framework and asynchronous networking library")
899 "Tornado is a Python web framework and asynchronous networking library,
900 originally developed at FriendFeed. By using non-blocking network I/O,
901 Tornado can scale to tens of thousands of open connections, making it ideal
902 for long polling, WebSockets, and other applications that require a long-lived
903 connection to each user.")
904 (license license:asl2.0)
905 (properties `((python2-variant . ,(delay python2-tornado))))))
907 (define-public python-tornado-6
909 (name "python-tornado")
914 (uri (pypi-uri "tornado" version))
917 "1p5n7sw4580pkybywg93p8ddqdj9lhhy72rzswfa801vlidx9qhg"))))
918 (build-system python-build-system)
921 (modify-phases %standard-phases
924 (invoke "python" "-m" "tornado.test.runtests")
927 `(("python-certifi" ,python-certifi)))
928 (home-page "https://www.tornadoweb.org/")
929 (synopsis "Python web framework and asynchronous networking library")
931 "Tornado is a Python web framework and asynchronous networking library,
932 originally developed at FriendFeed. By using non-blocking network I/O,
933 Tornado can scale to tens of thousands of open connections, making it ideal
934 for long polling, WebSockets, and other applications that require a long-lived
935 connection to each user.")
936 (license license:asl2.0)))
938 (define-public python2-tornado
939 (let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
940 (package (inherit tornado)
942 `(("python2-backport-ssl-match-hostname"
943 ,python2-backport-ssl-match-hostname)
944 ("python2-backports-abc" ,python2-backports-abc)
945 ("python2-singledispatch" ,python2-singledispatch)
946 ,@(package-propagated-inputs tornado))))))
948 (define-public python-tornado-http-auth
950 (name "python-tornado-http-auth")
955 (uri (pypi-uri "tornado-http-auth" version))
957 (base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x"))))
958 (build-system python-build-system)
960 `(("python-tornado" ,python-tornado)))
961 (home-page "https://github.com/gvalkov/tornado-http-auth")
962 (synopsis "Digest and basic authentication module for Tornado")
964 "Provides support for adding authentication to services using the Tornado
965 web framework, either via the basic or digest authentication schemes.")
966 (license license:asl2.0)))
968 (define-public python-terminado
970 (name "python-terminado")
975 (uri (pypi-uri "terminado" version))
978 "0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
979 (build-system python-build-system)
981 `(("python-tornado" ,python-tornado)
982 ("python-ptyprocess" ,python-ptyprocess)))
984 `(("python-nose" ,python-nose)))
987 (modify-phases %standard-phases
989 (lambda _ (invoke "nosetests") #t)))))
990 (home-page "https://github.com/takluyver/terminado")
991 (synopsis "Terminals served to term.js using Tornado websockets")
992 (description "This package provides a Tornado websocket backend for the
993 term.js Javascript terminal emulator library.")
994 (license license:bsd-2)
995 (properties `((python2-variant . ,(delay python2-terminado))))))
997 (define-public python2-terminado
998 (let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
999 (package (inherit terminado)
1001 `(("python2-backport-ssl-match-hostname"
1002 ,python2-backport-ssl-match-hostname)
1003 ("python2-futures" ,python2-futures)
1004 ,@(package-propagated-inputs terminado))))))
1006 (define-public python-wsgi-intercept
1008 (name "python-wsgi-intercept")
1012 (uri (pypi-uri "wsgi_intercept" version))
1015 "0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
1016 (build-system python-build-system)
1018 `(("python-six" ,python-six)))
1020 `(("python-pytest" ,python-pytest)
1021 ("python-httplib2" ,python-httplib2)
1022 ("python-requests" ,python-requests)
1023 ("python-urllib3" ,python-urllib3)))
1024 (synopsis "Puts a WSGI application in place of a real URI for testing")
1025 (description "Wsgi_intercept installs a WSGI application in place of a real
1026 URI for testing. Testing a WSGI application normally involves starting a
1027 server at a local host and port, then pointing your test code to that address.
1028 Instead, this library lets you intercept calls to any specific host/port
1029 combination and redirect them into a WSGI application importable by your test
1030 program. Thus, you can avoid spawning multiple processes or threads to test
1032 (home-page "https://github.com/cdent/wsgi-intercept")
1033 (license license:expat)))
1035 (define-public python-webob
1037 (name "python-webob")
1042 (uri (pypi-uri "WebOb" version))
1045 "026i3z99nr3px75isa9mbnky5i7rffiv4d124h5kxfjjsxz92fma"))))
1046 (build-system python-build-system)
1048 `(("python-nose" ,python-nose)))
1049 (home-page "https://webob.org/")
1050 (synopsis "WSGI request and response object")
1052 "WebOb provides wrappers around the WSGI request environment, and an
1053 object to help create WSGI responses.")
1054 (license license:expat)))
1056 (define-public python2-webob
1057 (package-with-python2 python-webob))
1059 (define-public python-zope-event
1061 (name "python-zope-event")
1066 (uri (pypi-uri "zope.event" version))
1069 "1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9"))))
1070 (build-system python-build-system)
1071 (home-page "https://pypi.org/project/zope.event/")
1072 (synopsis "Event publishing system for Python")
1073 (description "Zope.event provides an event publishing API, intended for
1074 use by applications which are unaware of any subscribers to their events. It
1075 is a simple event-dispatching system on which more sophisticated event
1076 dispatching systems can be built.")
1077 (license license:zpl2.1)))
1079 (define-public python2-zope-event
1080 (package-with-python2 python-zope-event))
1082 (define-public python-zope-interface
1084 (name "python-zope-interface")
1089 (uri (pypi-uri "zope.interface" version))
1092 "0r9kvb1q3lxrdhxabliv9nwhjsdmn1n0vcjv93rlqkyb7yyh24gx"))))
1093 (build-system python-build-system)
1095 `(("python-zope-event" ,python-zope-event)))
1096 (home-page "https://github.com/zopefoundation/zope.interface")
1097 (synopsis "Python implementation of the \"design by contract\"
1099 (description "Zope.interface provides an implementation of \"object
1100 interfaces\" for Python. Interfaces are a mechanism for labeling objects as
1101 conforming to a given API or contract.")
1102 (license license:zpl2.1)))
1104 (define-public python2-zope-interface
1105 (package-with-python2 python-zope-interface))
1107 (define-public python-zope-exceptions
1109 (name "python-zope-exceptions")
1114 (uri (pypi-uri "zope.exceptions" version))
1117 "04bjskwas17yscl8bs3l44maxspw1gdji0zcmr499fs420y9r9az"))))
1118 (build-system python-build-system)
1120 '(#:tests? #f)) ; circular dependency with zope.testrunner
1122 `(("python-zope-interface" ,python-zope-interface)))
1123 (home-page "https://pypi.org/project/zope.exceptions/")
1124 (synopsis "Zope exceptions")
1125 (description "Zope.exceptions provides general-purpose exception types
1126 that have uses outside of the Zope framework.")
1127 (license license:zpl2.1)))
1129 (define-public python2-zope-exceptions
1130 (package-with-python2 python-zope-exceptions))
1132 (define-public python-zope-testing
1134 (name "python-zope-testing")
1139 (uri (pypi-uri "zope.testing" version))
1142 "1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn"))))
1143 (build-system python-build-system)
1144 (home-page "https://pypi.org/project/zope.testing/")
1145 (synopsis "Zope testing helpers")
1146 (description "Zope.testing provides a number of testing utilities for HTML
1147 forms, HTTP servers, regular expressions, and more.")
1148 (license license:zpl2.1)))
1150 (define-public python2-zope-testing
1151 (package-with-python2 python-zope-testing))
1153 (define-public python-zope-testrunner
1155 (name "python-zope-testrunner")
1160 (uri (pypi-uri "zope.testrunner" version))
1163 "0w3q66cy4crpj7c0hw0vvvvwf3g931rnvw7wwa20av7yqvv6ajim"))))
1164 (build-system python-build-system)
1166 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1168 `(("python-zope-testing" ,python-zope-testing)))
1170 `(("python-six" ,python-six)
1171 ("python-zope-exceptions" ,python-zope-exceptions)
1172 ("python-zope-interface" ,python-zope-interface)))
1173 (home-page "https://pypi.org/project/zope.testrunner/")
1174 (synopsis "Zope testrunner script")
1175 (description "Zope.testrunner provides a script for running Python
1177 (license license:zpl2.1)))
1179 (define-public python2-zope-testrunner
1180 (package-with-python2 python-zope-testrunner))
1182 (define-public python-zope-i18nmessageid
1184 (name "python-zope-i18nmessageid")
1189 (uri (pypi-uri "zope.i18nmessageid" version))
1192 "0ndhn4w1qgwkfbwf9vm2bgq418z5g0wmfsgl0d9nz62cd0mi8d4m"))))
1193 (build-system python-build-system)
1195 `(("python-coverage" ,python-coverage)
1196 ("python-zope-testrunner" ,python-zope-testrunner)))
1198 `(("python-six" ,python-six)))
1199 (home-page "https://pypi.org/project/zope.i18nmessageid/")
1200 (synopsis "Message identifiers for internationalization")
1201 (description "Zope.i18nmessageid provides facilities for declaring
1202 internationalized messages within program source text.")
1203 (license license:zpl2.1)))
1205 (define-public python2-zope-i18nmessageid
1206 (package-with-python2 python-zope-i18nmessageid))
1208 (define-public python-zope-schema
1210 (name "python-zope-schema")
1215 (uri (pypi-uri "zope.schema" version))
1218 "0q93j0x52a42khw12al90jw2bk0wly3jwghql3a25zpwwxvn24ya"))))
1219 (build-system python-build-system)
1221 '(#:tests? #f)) ; FIXME: Tests can't find zope.event.
1223 `(("python-zope-event" ,python-zope-event)
1224 ("python-zope-interface" ,python-zope-interface)))
1226 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1227 ("python-zope-testing" ,python-zope-testing)
1228 ("python-zope-testrunner" ,python-zope-testrunner)))
1229 (home-page "https://pypi.org/project/zope.schema/")
1230 (synopsis "Zope data schemas")
1231 (description "Zope.scheme provides extensions to zope.interface for
1232 defining data schemas.")
1233 (license license:zpl2.1)))
1235 (define-public python2-zope-schema
1236 (package-with-python2 python-zope-schema))
1238 (define-public python-zope-configuration
1240 (name "python-zope-configuration")
1244 (uri (pypi-uri "zope.configuration" version))
1247 "1qb88764fd7nkkmqv7fl9bxd1jirynkg5vbqkpqdiffnkxzp85kf"))))
1248 (build-system python-build-system)
1250 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1252 `(("python-zope-testing" ,python-zope-testing)
1253 ("python-zope-testrunner" ,python-zope-testrunner)))
1255 `(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1256 ("python-zope-interface" ,python-zope-interface)
1257 ("python-zope-schema" ,python-zope-schema)))
1258 (home-page "https://pypi.org/project/zope.configuration/")
1259 (synopsis "Zope Configuration Markup Language")
1260 (description "Zope.configuration implements ZCML, the Zope Configuration
1262 (license license:zpl2.1)))
1264 (define-public python2-zope-configuration
1265 (package-with-python2 python-zope-configuration))
1267 (define-public python-zope-proxy
1269 (name "python-zope-proxy")
1274 (uri (pypi-uri "zope.proxy" version))
1277 "1g0rcfnbchpvqhm76aixqlz544dawrgmy8gw9zwmijhk6wfl9f26"))))
1278 (build-system python-build-system)
1280 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1282 `(("python-zope-testrunner" ,python-zope-testrunner)))
1284 `(("python-zope-interface" ,python-zope-interface)))
1285 (home-page "https://pypi.org/project/zope.proxy/")
1286 (synopsis "Generic, transparent proxies")
1287 (description "Zope.proxy provides generic, transparent proxies for Python.
1288 Proxies are special objects which serve as mostly-transparent wrappers around
1289 another object, intervening in the apparent behavior of the wrapped object
1290 only when necessary to apply the policy (e.g., access checking, location
1291 brokering, etc.) for which the proxy is responsible.")
1292 (license license:zpl2.1)))
1294 (define-public python2-zope-proxy
1295 (package-with-python2 python-zope-proxy))
1297 (define-public python-zope-location
1299 (name "python-zope-location")
1304 (uri (pypi-uri "zope.location" version))
1307 "1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857"))))
1308 (build-system python-build-system)
1310 '(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
1312 `(("python-zope-testrunner" ,python-zope-testrunner)))
1314 `(("python-zope-interface" ,python-zope-interface)
1315 ("python-zope-proxy" ,python-zope-proxy)
1316 ("python-zope-schema" ,python-zope-schema)))
1317 (home-page "https://pypi.org/project/zope.location/")
1318 (synopsis "Zope location library")
1319 (description "Zope.location implements the concept of \"locations\" in
1320 Zope3, which are are special objects that have a structural location.")
1321 (license license:zpl2.1)))
1323 (define-public python2-zope-location
1324 (package-with-python2 python-zope-location))
1326 (define-public python-zope-security
1328 (name "python-zope-security")
1333 (uri (pypi-uri "zope.security" version))
1336 "1npfrgnm202v48wavpwn3450dsn7az12lfww95vbhxyjl11f14yb"))))
1337 (build-system python-build-system)
1339 '(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
1341 `(("python-zope-component" ,python-zope-component)
1342 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1343 ("python-zope-interface" ,python-zope-interface)
1344 ("python-zope-location" ,python-zope-location)
1345 ("python-zope-proxy" ,python-zope-proxy)
1346 ("python-zope-schema" ,python-zope-schema)))
1348 `(("python-zope-configuration" ,python-zope-configuration)
1349 ("python-zope-testrunner" ,python-zope-testrunner)
1350 ("python-zope-testing" ,python-zope-testing)))
1351 (home-page "https://pypi.org/project/zope.security/")
1352 (synopsis "Zope security framework")
1353 (description "Zope.security provides a generic mechanism to implement
1354 security policies on Python objects.")
1355 (license license:zpl2.1)))
1357 (define-public python2-zope-security
1358 (package-with-python2 python-zope-security))
1360 (define-public python-zope-component
1362 (name "python-zope-component")
1367 (uri (pypi-uri "zope.component" version))
1370 "1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv"))))
1371 (build-system python-build-system)
1373 ;; Skip tests due to circular dependency with python-zope-security.
1376 `(("python-zope-testing" ,python-zope-testing)))
1378 `(("python-zope-event" ,python-zope-event)
1379 ("python-zope-interface" ,python-zope-interface)
1380 ("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
1381 ("python-zope-configuration" ,python-zope-configuration)))
1382 (home-page "https://github.com/zopefoundation/zope.component")
1383 (synopsis "Zope Component Architecture")
1384 (description "Zope.component represents the core of the Zope Component
1385 Architecture. Together with the zope.interface package, it provides
1386 facilities for defining, registering and looking up components.")
1387 (license license:zpl2.1)))
1389 (define-public python2-zope-component
1390 (package-with-python2 python-zope-component))
1392 (define-public python-ndg-httpsclient
1394 (name "python-ndg-httpsclient")
1398 (uri (pypi-uri "ndg_httpsclient" version))
1401 "0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
1402 (build-system python-build-system)
1404 '(;; The tests appear to require networking.
1407 `(("python-pyopenssl" ,python-pyopenssl)))
1408 (synopsis "HTTPS support for Python's httplib and urllib2")
1409 (description "This is a HTTPS client implementation for httplib and urllib2
1410 based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
1411 over the default provided with Python and, importantly, enables full
1412 verification of the SSL peer.")
1413 (home-page "https://github.com/cedadev/ndg_httpsclient/")
1414 (license license:bsd-3)))
1416 ;; python2-openssl requires special care, so package-with-python2 is
1418 (define-public python2-ndg-httpsclient
1419 (package (inherit python-ndg-httpsclient)
1420 (name "python2-ndg-httpsclient")
1422 (substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
1423 ((#:python _) python-2)))
1425 `(("python2-pyopenssl" ,python2-pyopenssl)))))
1427 (define-public python-websocket-client
1429 (name "python-websocket-client")
1434 (uri (pypi-uri "websocket_client" version))
1437 "0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
1438 (build-system python-build-system)
1440 `(("python-six" ,python-six)))
1441 (home-page "https://github.com/liris/websocket-client")
1442 (synopsis "WebSocket client for Python")
1443 (description "The Websocket-client module provides the low level APIs for
1444 WebSocket usage in Python programs.")
1445 (properties `((python2-variant . ,(delay python2-websocket-client))))
1446 (license license:lgpl2.1+)))
1448 (define-public python2-websocket-client
1449 (let ((base (package-with-python2
1450 (strip-python2-variant python-websocket-client))))
1454 `(("python2-backport-ssl-match-hostname"
1455 ,python2-backport-ssl-match-hostname)
1456 ,@(package-native-inputs base))))))
1458 (define-public python-requests
1460 (name "python-requests")
1464 (uri (pypi-uri "requests" version))
1467 "1d5ybh11jr5sm7xp6mz8fyc7vrp4syifds91m7sj60xalal0gq0i"))))
1468 (build-system python-build-system)
1470 `(("python-certifi" ,python-certifi)
1471 ("python-chardet" ,python-chardet)
1472 ("python-idna" ,python-idna)
1473 ("python-urllib3" ,python-urllib3)))
1475 ;; FIXME: Some tests require network access.
1477 (home-page "http://python-requests.org/")
1478 (synopsis "Python HTTP library")
1480 "Requests is a Python HTTP client library. It aims to be easier to use
1481 than Python’s urllib2 library.")
1482 (license license:asl2.0)))
1484 ;; Some software requires an older version of Requests, notably Docker/Docker
1486 (define-public python-requests-2.20
1487 (package (inherit python-requests)
1491 (uri (pypi-uri "requests" version))
1494 "0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
1496 `(("python-urllib3" ,python-urllib3-1.24)
1497 ("python-idna" ,python-idna-2.7)
1498 ,@(package-propagated-inputs python-requests)))))
1500 ;; Some software requires an older version of Requests, notably Docker
1502 (define-public python-requests-2.7
1503 (package (inherit python-requests)
1507 (uri (pypi-uri "requests" version))
1510 "0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
1512 (define-public python2-requests
1513 (package-with-python2 python-requests))
1515 (define-public python-requests_ntlm
1517 (name "python-requests_ntlm")
1522 (uri (pypi-uri "requests_ntlm" version))
1525 "0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
1526 (build-system python-build-system)
1528 `(("python-cryptography" ,python-cryptography)
1529 ("python-ntlm-auth" ,python-ntlm-auth)
1530 ("python-requests" ,python-requests)))
1531 (home-page "https://github.com/requests/requests-ntlm")
1533 "NTLM authentication support for Requests")
1535 "This package allows for HTTP NTLM authentication using the requests
1537 (license license:isc)))
1539 (define-public python-requests-mock
1541 (name "python-requests-mock")
1546 (uri (pypi-uri "requests-mock" version))
1549 "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
1550 (build-system python-build-system)
1552 `(("python-requests" ,python-requests)
1553 ("python-six" ,python-six)))
1555 `(("python-pbr" ,python-pbr)
1556 ("python-discover" ,python-discover)
1557 ("python-docutils" ,python-docutils)
1558 ("python-fixtures" ,python-fixtures)
1559 ("python-mock" ,python-mock)
1560 ("python-sphinx" ,python-sphinx)
1561 ("python-testrepository" ,python-testrepository)
1562 ("python-testtools" ,python-testtools)))
1563 (home-page "https://requests-mock.readthedocs.org/")
1564 (synopsis "Mock out responses from the requests package")
1566 "This module provides a building block to stub out the HTTP requests
1567 portions of your testing code.")
1568 (properties `((python2-variant . ,(delay python2-requests-mock))))
1569 (license license:asl2.0)))
1571 (define-public python2-requests-mock
1572 (package (inherit (package-with-python2
1573 (strip-python2-variant python-requests-mock)))
1575 `(#:python ,python-2
1576 ;; FIXME: 'subunit.run discover: error: no such option: --list'
1579 (define-public python-requests-toolbelt
1581 (name "python-requests-toolbelt")
1585 (uri (pypi-uri "requests-toolbelt" version))
1588 "1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
1589 (build-system python-build-system)
1591 `(("python-betamax" ,python-betamax)
1592 ("python-mock" ,python-mock)
1593 ("python-pytest" ,python-pytest)))
1595 `(("python-requests" ,python-requests)))
1596 (synopsis "Extensions to python-requests")
1597 (description "This is a toolbelt of useful classes and functions to be used
1598 with python-requests.")
1599 (home-page "https://github.com/sigmavirus24/requests-toolbelt")
1600 (license license:asl2.0)))
1602 (define-public python2-requests-toolbelt
1603 (package-with-python2 python-requests-toolbelt))
1605 (define-public python-oauthlib
1607 (name "python-oauthlib")
1611 (uri (pypi-uri "oauthlib" version))
1614 "163jg4a8f7c5ki655grrr47kgljy12wri3qly7ijf64sk1fjrqqc"))))
1615 (build-system python-build-system)
1617 `(#:phases (modify-phases %standard-phases
1620 (invoke "pytest" "-vv"))))))
1622 `(("python-pytest" ,python-pytest)
1623 ("python-pytest-cov" ,python-pytest-cov)
1624 ("python-mock" ,python-mock)))
1626 `(("python-cryptography" ,python-cryptography)
1627 ("python-pyjwt" ,python-pyjwt)
1628 ("python-blinker" ,python-blinker)))
1629 (home-page "https://github.com/oauthlib/oauthlib")
1630 (synopsis "OAuth implementation for Python")
1632 "Oauthlib is a generic, spec-compliant, thorough implementation of the
1633 OAuth request-signing logic.")
1634 (license license:bsd-3)))
1636 (define-public python2-oauthlib
1637 (package-with-python2 python-oauthlib))
1639 (define-public python-rauth
1641 (name "python-rauth")
1646 (uri (pypi-uri "rauth" version))
1649 "02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
1650 (build-system python-build-system)
1652 `(#:test-target "check"))
1654 `(("python-requests" ,python-requests)))
1655 (home-page "https://github.com/litl/rauth")
1656 (synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
1658 "Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
1659 provides service wrappers for convenient connection initialization and
1660 authenticated session objects providing things like keep-alive.")
1661 (license license:expat)
1662 (properties `((python2-variant . ,(delay python2-rauth))))))
1664 (define-public python2-rauth
1665 (let ((base (package-with-python2 (strip-python2-variant python-rauth))))
1668 (native-inputs `(("python2-unittest2" ,python2-unittest2)
1669 ,@(package-native-inputs base))))))
1671 (define-public python-urllib3
1673 (name "python-urllib3")
1678 (uri (pypi-uri "urllib3" version))
1681 "0cij8qcvvpj62g1q8n785qjkdymfh4b7vf45si4sw64l41rr3rfv"))))
1682 (build-system python-build-system)
1683 (arguments `(#:tests? #f))
1685 `(;; These 5 inputs are used to build urrlib3[secure]
1686 ("python-certifi" ,python-certifi)
1687 ("python-cryptography" ,python-cryptography)
1688 ("python-idna" ,python-idna)
1689 ("python-ipaddress" ,python-ipaddress)
1690 ("python-pyopenssl" ,python-pyopenssl)
1691 ("python-pysocks" ,python-pysocks)))
1692 (home-page "https://urllib3.readthedocs.io/")
1693 (synopsis "HTTP library with thread-safe connection pooling")
1695 "Urllib3 supports features left out of urllib and urllib2 libraries. It
1696 can reuse the same socket connection for multiple requests, it can POST files,
1697 supports url redirection and retries, and also gzip and deflate decoding.")
1698 (license license:expat)))
1700 ;; Some software requires an older version of urllib3, notably Docker.
1701 (define-public python-urllib3-1.24
1702 (package (inherit python-urllib3)
1706 (uri (pypi-uri "urllib3" version))
1709 "1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
1712 (define-public python2-urllib3
1713 (package-with-python2 python-urllib3))
1715 (define-public awscli
1722 (uri (pypi-uri name version))
1725 "0p479mfs9r0m82a217pap8156ijwvhv6r3kqa4k267gd05wgvygm"))))
1726 (build-system python-build-system)
1728 ;; FIXME: The 'pypi' release does not contain tests.
1731 (modify-phases %standard-phases
1732 (add-after 'unpack 'fix-reference-to-groff
1734 (substitute* "awscli/help.py"
1735 (("if not self._exists_on_path\\('groff'\\):") "")
1736 (("raise ExecutableNotFoundError\\('groff'\\)") "")
1737 (("cmdline = \\['groff'")
1738 (string-append "cmdline = ['" (which "groff") "'")))
1741 `(("python-colorama" ,python-colorama)
1742 ("python-botocore" ,python-botocore)
1743 ("python-s3transfer" ,python-s3transfer)
1744 ("python-docutils" ,python-docutils)
1745 ("python-pyyaml" ,python-pyyaml)
1746 ("python-rsa" ,python-rsa)))
1748 `(("groff" ,groff)))
1749 (home-page "https://aws.amazon.com/cli/")
1750 (synopsis "Command line client for AWS")
1751 (description "AWS CLI provides a unified command line interface to the
1752 Amazon Web Services (AWS) API.")
1753 (license license:asl2.0)))
1755 (define-public python-wsgiproxy2
1757 (name "python-wsgiproxy2")
1762 (uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
1764 (base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf"))))
1765 (build-system python-build-system)
1767 `(("python-webtest" ,python-webtest)))
1769 `(("python-requests" ,python-requests)
1770 ("python-six" ,python-six)
1771 ("python-urllib3" ,python-urllib3)
1772 ("python-webob" ,python-webob)))
1773 (home-page "https://github.com/gawel/WSGIProxy2/")
1774 (synopsis "WSGI Proxy with various http client backends")
1775 (description "WSGI turns HTTP requests into WSGI function calls.
1776 WSGIProxy turns WSGI function calls into HTTP requests.
1777 It also includes code to sign requests and pass private data,
1778 and to spawn subprocesses to handle requests.")
1779 (license license:expat)))
1781 (define-public python2-wsgiproxy2
1782 (package-with-python2 python-wsgiproxy2))
1784 (define-public python-pastedeploy
1786 (name "python-pastedeploy")
1791 (uri (pypi-uri "PasteDeploy" version))
1793 (base32 "16qsq5y6mryslmbp5pn35x4z8z3ndp5rpgl42h226879nrw9hmg7"))))
1794 (build-system python-build-system)
1796 '(#:test-target "pytest"))
1798 `(("python-pytest" ,python-pytest)
1799 ("python-pytest-runner" ,python-pytest-runner)))
1800 (home-page "https://pylonsproject.org/")
1802 "Load, configure, and compose WSGI applications and servers")
1804 "This tool provides code to load WSGI applications and servers from URIs;
1805 these URIs can refer to Python Eggs for INI-style configuration files. Paste
1806 Script provides commands to serve applications based on this configuration
1808 (license license:expat)))
1810 (define-public python2-pastedeploy
1811 (package-with-python2 python-pastedeploy))
1813 (define-public python-webtest
1815 (name "python-webtest")
1820 (uri (pypi-uri "WebTest" version))
1823 "1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
1824 (build-system python-build-system)
1826 ;; Tests require python-pyquery, which creates a circular dependency.
1829 `(("python-waitress" ,python-waitress)
1830 ("python-webob" ,python-webob)
1831 ("python-six" ,python-six)
1832 ("python-beautifulsoup4" ,python-beautifulsoup4)))
1833 (home-page "https://docs.pylonsproject.org/projects/webtest/")
1834 (synopsis "Helper to test WSGI applications")
1835 (description "Webtest allows you to test your Python web applications
1836 without starting an HTTP server. It supports anything that supports the
1838 (license license:expat)))
1840 (define-public python2-webtest
1841 (package-with-python2 python-webtest))
1843 (define-public python-flask
1845 (name "python-flask")
1849 (uri (pypi-uri "Flask" version))
1852 "0q3h295izcil7lswkzfnyg3k5gq4hpmqmpl6i7s5m1n9szi1myjf"))))
1853 (build-system python-build-system)
1856 (modify-phases %standard-phases
1859 (setenv "PYTHONPATH" (string-append "./build/lib:"
1860 (getenv "PYTHONPATH")))
1861 (invoke "pytest" "-vv" "tests"))))))
1863 `(("python-pytest" ,python-pytest)))
1865 `(("python-itsdangerous" ,python-itsdangerous)
1866 ("python-jinja2" ,python-jinja2)
1867 ("python-click" ,python-click)
1868 ("python-werkzeug" ,python-werkzeug)))
1869 (home-page "https://www.palletsprojects.com/p/flask/")
1870 (synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
1871 (description "Flask is a micro web framework based on the Werkzeug toolkit
1872 and Jinja2 template engine. It is called a micro framework because it does not
1873 presume or force a developer to use a particular tool or library.")
1874 (license license:bsd-3)))
1876 (define-public python2-flask
1877 (package-with-python2 python-flask))
1879 (define-public python-flask-wtf
1881 (name "python-flask-wtf")
1886 (uri (pypi-uri "Flask-WTF" version))
1889 "086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl"))))
1890 (build-system python-build-system)
1893 (modify-phases %standard-phases
1896 (setenv "PYTHONPATH" (string-append "./build/lib:"
1897 (getenv "PYTHONPATH")))
1898 (invoke "pytest" "-vv"))))))
1900 `(("python-flask-babel" ,python-flask-babel)
1901 ("python-babel" ,python-babel)
1902 ("python-wtforms" ,python-wtforms)))
1904 `(("python-pytest" ,python-pytest)))
1905 (home-page "https://github.com/lepture/flask-wtf")
1906 (synopsis "Simple integration of Flask and WTForms")
1907 (description "Flask-WTF integrates Flask and WTForms, including CSRF, file
1908 upload, and reCAPTCHA.")
1909 (license license:bsd-3)))
1911 (define-public python2-flask-wtf
1912 (package-with-python2 python-flask-wtf))
1914 (define-public python-flask-multistatic
1916 (name "python-flask-multistatic")
1921 (uri (pypi-uri "flask-multistatic" version))
1924 "0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
1925 (build-system python-build-system)
1927 `(("python-flask" ,python-flask)))
1928 (home-page "https://pagure.io/flask-multistatic")
1929 (synopsis "Flask plugin to allow overriding static files")
1930 (description "@code{flask-multistatic} is a flask plugin that adds support
1931 for overriding static files.")
1932 (license license:gpl3+)))
1934 (define-public python2-flask-multistatic
1935 (package-with-python2 python-flask-multistatic))
1937 (define-public python-cookies
1939 (name "python-cookies")
1943 (uri (pypi-uri "cookies" version))
1946 "13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
1947 (build-system python-build-system)
1949 `(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
1952 `(("python-pytest" ,python-pytest)))
1953 (synopsis "HTTP cookie parser and renderer")
1954 (description "A RFC 6265-compliant HTTP cookie parser and renderer in
1956 (home-page "https://gitlab.com/sashahart/cookies")
1957 (license license:expat)))
1959 (define-public python2-cookies
1960 (package-with-python2 python-cookies))
1962 (define-public python-responses
1964 (name "python-responses")
1968 (uri (pypi-uri "responses" version))
1971 "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah"))))
1972 (build-system python-build-system)
1974 `(;; Test suite is not distributed:
1975 ;; https://github.com/getsentry/responses/issues/38
1978 `(("python-mock" ,python-mock)))
1980 `(("python-requests" ,python-requests)
1981 ("python-cookies" ,python-cookies)
1982 ("python-six" ,python-six)))
1983 (home-page "https://github.com/getsentry/responses")
1984 (synopsis "Utility for mocking out the `requests` Python library")
1985 (description "A utility library for mocking out the `requests` Python
1987 (license license:asl2.0)))
1989 (define-public python2-responses
1990 (package-with-python2 python-responses))
1992 (define-public python-grequests
1994 (name "python-grequests")
1999 (uri (pypi-uri "grequests" version))
2002 "1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
2003 (build-system python-build-system)
2005 `(("python-gevent" ,python-gevent)
2006 ("python-requests" ,python-requests)))
2008 `(("python-nose" ,python-nose)))
2009 (home-page "https://github.com/kennethreitz/grequests")
2010 (synopsis "Python library for asynchronous HTTP requests")
2011 (description "GRequests is a Python library that allows you to use
2012 @code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
2013 (license license:bsd-2)))
2015 (define-public python-geventhttpclient
2017 (name "python-geventhttpclient")
2021 (uri (pypi-uri "geventhttpclient" version))
2024 "07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
2025 (modules '((guix build utils)))
2028 ;; Delete pre-compiled files.
2029 (for-each delete-file (find-files "src/geventhttpclient"
2032 (build-system python-build-system)
2035 (modify-phases %standard-phases
2036 (add-after 'unpack 'delete-network-tests
2038 (delete-file "src/geventhttpclient/tests/test_client.py")
2041 (lambda* (#:key inputs outputs #:allow-other-keys)
2042 (add-installed-pythonpath inputs outputs)
2043 (invoke "py.test" "src/geventhttpclient/tests" "-v"
2044 ;; Append the test modules to sys.path to avoid
2045 ;; namespace conflict which breaks SSL tests.
2046 "--import-mode=append"
2047 ;; XXX: Disable test fails with Python 3.8:
2048 ;; https://github.com/gwik/geventhttpclient/issues/119
2049 "-k" (string-append "not test_cookielib_compatibility"))
2052 `(("python-pytest" ,python-pytest)))
2054 `(("python-certifi" ,python-certifi)
2055 ("python-gevent" ,python-gevent)
2056 ("python-six" ,python-six)))
2057 (home-page "https://github.com/gwik/geventhttpclient")
2058 (synopsis "HTTP client library for gevent")
2059 (description "@code{python-geventhttpclient} is a high performance,
2060 concurrent HTTP client library for python using @code{gevent}.")
2061 (license license:expat)))
2063 (define-public python2-geventhttpclient
2064 (package-with-python2 python-geventhttpclient))
2066 (define-public python-requests-oauthlib
2068 (name "python-requests-oauthlib")
2073 (uri (pypi-uri "requests-oauthlib" version))
2076 "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
2077 (build-system python-build-system)
2080 (modify-phases %standard-phases
2081 ;; removes tests that require network access
2082 (add-before 'check 'pre-check
2084 (delete-file "tests/test_core.py")
2087 `(("python-pyjwt" ,python-pyjwt)
2088 ("python-requests-mock" ,python-requests-mock)
2089 ("python-mock" ,python-mock)))
2091 `(("python-oauthlib" ,python-oauthlib)
2092 ("python-requests" ,python-requests)))
2094 "https://github.com/requests/requests-oauthlib")
2096 "OAuthlib authentication support for Requests")
2098 "Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
2099 provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
2100 (license license:isc)))
2102 (define-public python2-requests-oauthlib
2103 (package-with-python2 python-requests-oauthlib))
2105 (define-public python-url
2111 (uri (pypi-uri "url" version))
2114 "0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
2115 (build-system python-build-system)
2117 `(("python-publicsuffix" ,python-publicsuffix)))
2119 `(("python-coverage" ,python-coverage)
2120 ("python-nose" ,python-nose)))
2122 `(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
2123 (home-page "https://github.com/seomoz/url-py")
2124 (synopsis "URL Parsing")
2125 (description "Library for parsing urls.")
2126 (license license:expat)
2127 (properties `((python2-variant . ,(delay python2-url))))))
2129 (define-public python2-url
2130 (let ((base (package-with-python2 (strip-python2-variant python-url))))
2131 (package (inherit base)
2133 `(("python2-publicsuffix" ,python2-publicsuffix))))))
2135 (define-public python-cachecontrol
2137 (name "python-cachecontrol")
2142 ;; Pypi does not have tests.
2144 (url "https://github.com/ionrock/cachecontrol")
2145 (commit (string-append "v" version))))
2146 (file-name (git-file-name name version))
2149 "03lgc65sl04n0cgzmmgg99bk83f9i6k8yrmcd4hpl46q1pymn0kz"))))
2150 (build-system python-build-system)
2152 ;; Versions > 0.11.6 depend on CherryPy for testing.
2153 ;; It's too much work to package CherryPy for now.
2156 `(("python-requests" ,python-requests)
2157 ("python-msgpack" ,python-msgpack)
2158 ("python-lockfile" ,python-lockfile)))
2159 (home-page "https://github.com/ionrock/cachecontrol")
2160 (synopsis "The httplib2 caching algorithms for use with requests")
2161 (description "CacheControl is a port of the caching algorithms in
2162 @code{httplib2} for use with @code{requests} session objects.")
2163 (license license:asl2.0)))
2165 (define-public python2-cachecontrol
2166 (package-with-python2 python-cachecontrol))
2168 (define-public python-betamax
2170 (name "python-betamax")
2175 (uri (pypi-uri "betamax" version))
2178 "1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
2179 (build-system python-build-system)
2181 '(;; Many tests fail because they require networking.
2184 `(("python-requests" ,python-requests)))
2185 (home-page "https://github.com/sigmavirus24/betamax")
2186 (synopsis "Record HTTP interactions with python-requests")
2187 (description "Betamax will record your test suite's HTTP interactions and
2188 replay them during future tests. It is designed to work with python-requests.")
2189 (license license:expat)))
2191 (define-public python2-betamax
2192 (package-with-python2 python-betamax))
2194 (define-public python-betamax-matchers
2196 (name "python-betamax-matchers")
2201 (uri (pypi-uri "betamax-matchers" version))
2204 "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
2205 (build-system python-build-system)
2207 `(("python-betamax" ,python-betamax)
2208 ("python-requests-toolbelt" ,python-requests-toolbelt)))
2209 (home-page "https://github.com/sigmavirus24/betamax_matchers")
2210 (synopsis "VCR imitation for python-requests")
2211 (description "@code{betamax-matchers} provides a set of Matchers for
2213 (license license:asl2.0)))
2215 (define-public python2-betamax-matchers
2216 (package-with-python2 python-betamax-matchers))
2218 (define-public python-s3transfer
2220 (name "python-s3transfer")
2224 (uri (pypi-uri "s3transfer" version))
2227 "08fhj73b1ai52hrs2q3nggshq3pswn1gq8ch3m009cb2v2vmqggj"))))
2228 (build-system python-build-system)
2231 (modify-phases %standard-phases
2232 (add-after 'unpack 'patch
2234 ;; There's a small issue with one test with Python 3.8, this
2235 ;; change has been suggested upstream:
2236 ;; https://github.com/boto/s3transfer/pull/164
2237 (substitute* "tests/unit/test_s3transfer.py"
2238 (("super\\(FailedDownloadParts, self\\)\\.submit\\(function\\)")
2239 "futures.Future()"))
2243 ;; Some of the 'integration' tests require network access or
2244 ;; login credentials.
2245 (invoke "nosetests" "--exclude=integration")
2248 `(("python-docutils" ,python-docutils)
2249 ("python-mock" ,python-mock)
2250 ("python-nose" ,python-nose)))
2252 `(("python-botocore" ,python-botocore)
2253 ("python-urllib3" ,python-urllib3)))
2254 (synopsis "Amazon S3 Transfer Manager")
2255 (description "S3transfer is a Python library for managing Amazon S3
2257 (home-page "https://github.com/boto/s3transfer")
2258 (license license:asl2.0)
2259 (properties `((python2-variant . ,(delay python2-s3transfer))))))
2261 (define-public python2-s3transfer
2262 (let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
2266 `(("python2-futures" ,python2-futures)
2267 ,@(package-native-inputs base))))))
2269 (define-public python-slimit
2271 (name "python-slimit")
2276 (uri (pypi-uri "slimit" version ".zip"))
2279 "02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
2280 (build-system python-build-system)
2282 `(("unzip" ,unzip)))
2284 `(("python-ply" ,python-ply)))
2285 (home-page "https://slimit.readthedocs.io/")
2286 (synopsis "JavaScript minifier, parser and lexer written in Python")
2288 "SlimIt is a JavaScript minifier written in Python. It compiles
2289 JavaScript into more compact code so that it downloads and runs faster.
2290 SlimIt also provides a library that includes a JavaScript parser, lexer,
2291 pretty printer and a tree visitor.")
2292 (license license:expat)))
2294 (define-public python-flask-restful
2296 (name "python-flask-restful")
2301 (uri (pypi-uri "Flask-RESTful" version))
2302 (patches (search-patches "python-flask-restful-werkzeug-compat.patch"))
2305 "05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
2306 (build-system python-build-system)
2308 `(("python-aniso8601" ,python-aniso8601)
2309 ("python-flask" ,python-flask)
2310 ("python-pycrypto" ,python-pycrypto)
2311 ("python-pytz" ,python-pytz)))
2313 `(;; Optional dependency of Flask. Tests need it.
2314 ("python-blinker" ,python-blinker)
2315 ("python-mock" ,python-mock) ; For tests
2316 ("python-nose" ,python-nose))) ;for tests
2318 "https://www.github.com/flask-restful/flask-restful/")
2320 "Flask module for creating REST APIs")
2322 "This package contains a Flask module for creating REST APIs.")
2323 (license license:bsd-3)))
2325 (define-public python-flask-basicauth
2327 (name "python-flask-basicauth")
2332 (uri (pypi-uri "Flask-BasicAuth" version))
2335 "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
2336 (build-system python-build-system)
2338 `(("python-flask" ,python-flask)))
2340 "https://github.com/jpvanhal/flask-basicauth")
2342 "HTTP basic access authentication for Flask")
2344 "This package provides HTTP basic access authentication for Flask.")
2345 (license license:bsd-3)))
2347 (define-public python-flask-htpasswd
2349 (name "python-flask-htpasswd")
2354 (uri (pypi-uri "flask-htpasswd" version))
2357 "14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra"))))
2358 (build-system python-build-system)
2360 `(("python-flask" ,python-flask)
2361 ("python-itsdangerous" ,python-itsdangerous)
2362 ("python-passlib" ,python-passlib)
2363 ("python-tox" ,python-tox)))
2364 (home-page "http://github.com/carsongee/flask-htpasswd")
2365 (synopsis "Basic authentication via htpasswd files in Flask applications")
2366 (description "This package provides Basic authentication via
2367 @file{htpasswd} files and access_token authentication in Flask
2369 (license license:bsd-3)))
2371 (define-public python-flask-sqlalchemy
2373 (name "python-flask-sqlalchemy")
2377 (uri (pypi-uri "Flask-SQLAlchemy" version))
2380 "0nnllf0ddbh9jlhngnyjj98lbxgxr1csaplllx0caw98syq0k5hc"))))
2381 (build-system python-build-system)
2383 `(("python-flask" ,python-flask)
2384 ("python-sqlalchemy" ,python-sqlalchemy)))
2385 (home-page "https://github.com/mitsuhiko/flask-sqlalchemy")
2386 (synopsis "Module adding SQLAlchemy support to your Flask application")
2388 "This package adds SQLAlchemy support to your Flask application.")
2389 (license license:bsd-3)))
2391 (define-public python-flask-restplus
2393 (name "python-flask-restplus")
2398 (uri (pypi-uri "flask-restplus" version))
2401 "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
2402 (build-system python-build-system)
2404 '(#:tests? #f)) ; FIXME: 35/882 tests failing.
2406 ;; (modify-phases %standard-phases
2409 ;; (invoke "nosetests")
2412 `(("python-aniso8601" ,python-aniso8601)
2413 ("python-flask" ,python-flask)
2414 ("python-jsonschema" ,python-jsonschema)
2415 ("python-pytz" ,python-pytz)
2416 ("python-six" ,python-six)))
2418 `(("python-tzlocal" ,python-tzlocal)
2419 ("python-blinker" ,python-blinker)
2420 ("python-nose" ,python-nose)
2421 ("python-rednose" ,python-rednose)))
2422 (home-page "https://github.com/noirbizarre/flask-restplus")
2423 (synopsis "Framework for documented API development with Flask")
2424 (description "This package provides a framework for API development with
2425 the Flask web framework in Python. It is similar to package
2426 @code{python-flask-restful} but supports the @code{python-swagger}
2427 documentation builder.")
2428 (license license:expat)))
2430 (define-public python-flask-restful-swagger
2432 (name "python-flask-restful-swagger")
2437 (uri (pypi-uri "flask-restful-swagger" version))
2440 "1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq"))))
2441 (build-system python-build-system)
2442 (arguments '(#:tests? #f)) ;no tests
2444 `(("python-flask-restful" ,python-flask-restful)))
2445 (home-page "https://github.com/rantav/flask-restful-swagger")
2446 (synopsis "Extract Swagger specs from Flask-Restful projects")
2447 (description "This package lets you extract Swagger API documentation
2448 specs from your Flask-Restful projects.")
2449 (license license:expat)))
2451 (define-public python2-flask-restful-swagger
2452 (package-with-python2 python-flask-restful-swagger))
2454 (define-public python-htmlmin
2456 (name "python-htmlmin")
2461 (uri (pypi-uri "htmlmin" version))
2464 "0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
2466 `(#:tests? #f)) ; no tests
2467 (build-system python-build-system)
2468 (home-page "https://htmlmin.readthedocs.org/en/latest/")
2469 (synopsis "HTML minifier")
2470 (description "@code{htmlmin} is an HTML minifier that just works.
2471 It comes with safe defaults and easily configurable options.")
2472 (license license:bsd-3)))
2474 (define-public python2-htmlmin
2475 (package-with-python2 python-htmlmin))
2477 (define-public python-flask-htmlmin
2479 (name "python-flask-htmlmin")
2484 (uri (pypi-uri "Flask-HTMLmin" version))
2487 "1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
2489 `(("python-flask" ,python-flask)
2490 ("python-htmlmin" ,python-htmlmin)))
2491 (build-system python-build-system)
2492 (home-page "https://github.com/hamidfzm/Flask-HTMLmin")
2493 (synopsis "HTML response minifier for Flask")
2495 "Minify @code{text/html} MIME type responses when using @code{Flask}.")
2496 (license license:bsd-3)))
2498 (define-public python2-flask-htmlmin
2499 (package-with-python2 python-flask-htmlmin))
2501 (define-public python-jsmin
2503 (name "python-jsmin")
2508 (uri (pypi-uri "jsmin" version))
2511 "0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
2512 (build-system python-build-system)
2513 (home-page "https://github.com/tikitu/jsmin/")
2514 (synopsis "Python JavaScript minifier")
2516 "@code{jsmin} is a JavaScript minifier, usable from both Python code and
2517 on the command line.")
2518 (license license:expat)))
2520 (define-public python-flask-login
2522 (name "python-flask-login")
2528 (url "https://github.com/maxcountryman/flask-login.git")
2530 (file-name (git-file-name name version))
2532 (base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
2533 (build-system python-build-system)
2535 `(("python-flask" ,python-flask)))
2538 `(("python-blinker" ,python-blinker)
2539 ("python-coverage" ,python-coverage)
2540 ("python-mock" ,python-mock)
2541 ("python-pycodestyle" ,python-pycodestyle)
2542 ("python-pyflakes" ,python-pyflakes)
2543 ("python-pytest" ,python-pytest)
2544 ("python-semantic-version" ,python-semantic-version)
2545 ("python-werkzeug" ,python-werkzeug)))
2546 (home-page "https://github.com/maxcountryman/flask-login")
2547 (synopsis "User session management for Flask")
2549 "@code{Flask-Login} provides user session management for Flask. It
2550 handles the common tasks of logging in, logging out, and remembering your
2551 users' sessions over extended periods of time.")
2552 (license license:expat)))
2554 (define-public python2-flask-login
2555 (package-with-python2 python-flask-login))
2557 (define-public python-oauth2client
2559 (name "python-oauth2client")
2564 (uri (pypi-uri "oauth2client" version))
2567 "1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
2568 (build-system python-build-system)
2572 `(("python-httplib2" ,python-httplib2)
2573 ("python-pyasn1" ,python-pyasn1)
2574 ("python-pyasn1-modules" ,python-pyasn1-modules)
2575 ("python-rsa" ,python-rsa)
2576 ("python-six" ,python-six)))
2577 (home-page "https://github.com/google/oauth2client/")
2578 (synopsis "OAuth 2.0 client library")
2579 (description "@code{python-oauth2client} provides an OAuth 2.0 client
2580 library for Python")
2581 (license license:asl2.0)))
2583 (define-public python2-oauth2client
2584 (package-with-python2 python-oauth2client))
2586 (define-public python-flask-oidc
2588 (name "python-flask-oidc")
2593 (uri (pypi-uri "flask-oidc" version))
2596 "1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
2597 (build-system python-build-system)
2599 `(("python-flask" ,python-flask)
2600 ("python-itsdangerous" ,python-itsdangerous)
2601 ("python-oauth2client" ,python-oauth2client)
2602 ("python-six" ,python-six)))
2604 `(("python-nose" ,python-nose)
2605 ("python-mock" ,python-mock)))
2606 (home-page "https://github.com/puiterwijk/flask-oidc")
2607 (synopsis "OpenID Connect extension for Flask")
2608 (description "@code{python-flask-oidc} provides an OpenID Connect extension
2610 (license license:bsd-2)))
2612 (define-public python-webassets
2614 (name "python-webassets")
2619 (uri (pypi-uri "webassets" version))
2622 "1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
2623 (build-system python-build-system)
2625 `(("python-jinja2" ,python-jinja2)
2626 ("python-mock" ,python-mock)
2627 ("python-nose" ,python-nose)
2628 ("python-pytest" ,python-pytest)))
2629 (home-page "https://github.com/miracle2k/webassets")
2630 (synopsis "Media asset management")
2631 (description "Merges, minifies and compresses Javascript and CSS files,
2632 supporting a variety of different filters, including YUI, jsmin, jspacker or
2633 CSS tidy. Also supports URL rewriting in CSS files.")
2634 (license license:bsd-2)))
2636 (define-public python-cssmin
2638 (name "python-cssmin")
2643 (uri (pypi-uri "cssmin" version))
2646 "1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
2647 (build-system python-build-system)
2648 (home-page "https://github.com/zacharyvoase/cssmin")
2649 (synopsis "Python port of the YUI CSS Compressor")
2650 (description "Python port of the YUI CSS Compressor.")
2651 (license (list license:expat license:bsd-3))))
2653 (define-public python2-cssmin
2654 (package-with-python2 python-cssmin))
2656 (define-public python-elasticsearch
2658 (name "python-elasticsearch")
2663 (uri (pypi-uri "elasticsearch" version))
2666 "0rnjvlhw4v3vg14l519qliy1s1zpmx3827q0xfviwvk42rr7hh01"))))
2667 (build-system python-build-system)
2669 `(("python-mock" ,python-mock)
2670 ("python-nosexcover" ,python-nosexcover)
2671 ("python-pyaml" ,python-pyaml)
2672 ("python-requests" ,python-requests)))
2674 `(("urllib3" ,python-urllib3)))
2676 ;; tests require the test_elasticsearch module but it is not distributed.
2678 (home-page "https://github.com/elastic/elasticsearch-py")
2679 (synopsis "Low-level client for Elasticsearch")
2680 (description "Official low-level client for Elasticsearch. Its goal is to
2681 provide common ground for all Elasticsearch-related code in Python; because of
2682 this it tries to be opinion-free and very extendable.")
2683 (license license:expat)))
2685 (define-public python2-elasticsearch
2686 (package-with-python2 python-elasticsearch))
2688 (define-public python-flask-script
2690 (name "python-flask-script")
2695 (uri (pypi-uri "Flask-Script" version))
2698 "0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
2699 (build-system python-build-system)
2702 (modify-phases %standard-phases
2703 (add-after 'unpack 'patch-tests
2705 (substitute* "tests.py"
2706 (("flask\\.ext\\.script") "flask_script"))
2709 `(("python-flask" ,python-flask)
2710 ("python-argcomplete" ,python-argcomplete)
2711 ("python-werkzeug" ,python-werkzeug)))
2713 `(("python-pytest" ,python-pytest)))
2715 "https://github.com/smurfix/flask-script")
2716 (synopsis "Scripting support for Flask")
2717 (description "The Flask-Script extension provides support for writing
2718 external scripts in Flask. This includes running a development server,
2719 a customised Python shell, scripts to set up your database, cronjobs,
2720 and other command-line tasks that belong outside the web application
2722 (license license:bsd-3)))
2724 (define-public python2-flask-script
2725 (package-with-python2 python-flask-script))
2727 (define-public python-flask-migrate
2729 (name "python-flask-migrate")
2734 (uri (pypi-uri "Flask-Migrate" version))
2737 "1vip9ww6l18dxffjsggm83k71zkvihxpnhaswpv8klh95s6517d6"))))
2738 (build-system python-build-system)
2740 `(("python-flask" ,python-flask)
2741 ("python-alembic" ,python-alembic)
2742 ("python-sqlalchemy" ,python-sqlalchemy)
2743 ("python-flask-script" ,python-flask-script)
2744 ("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
2745 (home-page "https://github.com/miguelgrinberg/flask-migrate/")
2746 (synopsis "SQLAlchemy database migrations for Flask programs using
2748 (description "This package contains SQLAlchemy database migration tools
2749 for Flask programs that are using @code{python-alembic}.")
2750 (license license:expat)))
2752 (define-public python-genshi
2754 (name "python-genshi")
2760 (url "https://github.com/edgewall/genshi.git")
2762 (file-name (git-file-name name version))
2764 (base32 "04bw7nd4wyn8ixnhik57hny2xpjjpn80k5hp6691inix5gc6rxaf"))))
2765 (build-system python-build-system)
2766 (home-page "https://genshi.edgewall.org/")
2767 (synopsis "Toolkit for generation of output for the web")
2768 (description "Genshi is a Python library that provides an integrated set
2769 of components for parsing, generating, and processing HTML, XML or other
2770 textual content for output generation on the web.")
2771 (license license:bsd-3)))
2773 (define-public python2-genshi
2774 (package-with-python2 python-genshi))
2776 (define-public python-flask-principal
2778 (name "python-flask-principal")
2783 (uri (pypi-uri "Flask-Principal" version))
2786 "0lwlr5smz8vfm5h9a9i7da3q1c24xqc6vm9jdywdpgxfbi5i7mpm"))))
2787 (build-system python-build-system)
2789 `(("python-blinker" ,python-blinker)))
2791 `(("python-flask" ,python-flask)
2792 ("python-nose" ,python-nose)))
2793 (home-page "https://pythonhosted.org/Flask-Principal/")
2794 (synopsis "Identity management for Flask")
2795 (description "@code{flask_principal} is a identity management library for
2796 Flask. It supports managing both authentication and authorization data in a
2797 thread-local variable.")
2798 (license license:expat)))
2800 (define-public python2-flask-principal
2801 (package-with-python2 python-flask-principal))
2803 (define-public python-flask-httpauth
2805 (name "python-flask-httpauth")
2810 (uri (pypi-uri "Flask-HTTPAuth" version))
2813 "13gff5w1mqpzm5nccyg02v3ifb9ifqh5k866cssjhghhg6msfjsz"))))
2814 (build-system python-build-system)
2816 `(("python-flask" ,python-flask)))
2817 (home-page "https://github.com/miguelgrinberg/flask-httpauth/")
2818 (synopsis "Basic and Digest HTTP authentication for Flask routes")
2819 (description "@code{flask_httpauth} provides Basic and Digest HTTP
2820 authentication for Flask routes.")
2821 (license license:expat)))
2823 (define-public python2-flask-httpauth
2824 (package-with-python2 python-flask-httpauth))
2826 (define-public python-uritemplate
2828 (name "python-uritemplate")
2833 (uri (pypi-uri "uritemplate" version))
2836 "0781gm9g34wa0asc19dx81ng0nqq07igzv3bbvdqmz13pv7469n0"))))
2837 (build-system python-build-system)
2838 (home-page "https://uritemplate.readthedocs.org")
2839 (synopsis "Library to deal with URI Templates")
2840 (description "@code{uritemplate} provides Python library to deal with URI
2842 (license license:bsd-2)))
2844 (define-public python2-uritemplate
2845 (package-with-python2 python-uritemplate))
2847 (define-public python-publicsuffix
2849 (name "python-publicsuffix")
2853 (uri (pypi-uri "publicsuffix" version))
2856 "1adx520249z2cy7ykwjr1k190mn2888wqn9jf8qm27ly4qymjxxf"))))
2857 (build-system python-build-system)
2859 `(#:tests? #f)) ; tests use the internet
2860 (home-page "https://www.tablix.org/~avian/git/publicsuffix.git")
2861 (synopsis "Get suffix for a domain name")
2862 (description "Get a public suffix for a domain name using the Public Suffix
2864 (license license:expat)))
2866 (define-public python2-publicsuffix
2867 (package-with-python2 python-publicsuffix))
2869 (define-public python-publicsuffix2
2871 (name "python-publicsuffix2")
2872 (version "2.20191221")
2876 (uri (pypi-uri "publicsuffix2" version))
2878 (base32 "0yzysvfj1najr1mb4pcqrbmjir3xpb69rlffln95a3cdm8qwry00"))))
2879 (build-system python-build-system)
2882 (modify-phases %standard-phases
2883 (add-after 'unpack 'ignore-maintainer-inputs
2885 ;; Comment out a demand for python-requests, which is used only by
2886 ;; the unused ‘update_psl’ helper command.
2887 (substitute* "setup.py"
2888 (("'requests " match)
2889 (format #f "# ~a" match)))
2891 #:tests? #f)) ; the test suite requires network access
2892 (home-page "https://github.com/pombredanne/python-publicsuffix2")
2893 (synopsis "Get a public suffix for a domain name using the Public Suffix List")
2894 (description "Get a public suffix for a domain name using the Public Suffix
2895 List. Forked from and using the same API as the publicsuffix package.")
2896 (license (list license:expat license:mpl2.0))))
2898 (define-public python2-publicsuffix2
2899 (package-with-python2 python-publicsuffix2))
2901 (define-public python-werkzeug
2903 (name "python-werkzeug")
2908 (uri (pypi-uri "Werkzeug" version))
2911 "15kh0z61klp62mrc1prka13xsshxn0rsp1j1s2964iw86yisi6qn"))))
2912 (build-system python-build-system)
2915 (modify-phases %standard-phases
2917 (add-after 'install 'check
2918 (lambda* (#:key inputs outputs #:allow-other-keys)
2919 (add-installed-pythonpath inputs outputs)
2920 (invoke "python" "-m" "pytest"))))))
2922 `(("python-requests" ,python-requests)))
2924 `(("python-pytest" ,python-pytest)
2925 ("python-pytest-timeout" ,python-pytest-timeout)))
2926 (home-page "https://www.palletsprojects.org/p/werkzeug/")
2927 (synopsis "Utilities for WSGI applications")
2928 (description "One of the most advanced WSGI utility modules. It includes a
2929 powerful debugger, full-featured request and response objects, HTTP utilities to
2930 handle entity tags, cache control headers, HTTP dates, cookie handling, file
2931 uploads, a powerful URL routing system and a bunch of community-contributed
2933 (license license:x11)))
2935 (define-public python2-werkzeug
2936 (package-with-python2 python-werkzeug))
2938 (define-public python-bottle
2940 (name "python-bottle")
2945 (uri (pypi-uri "bottle" version))
2948 "0m9k2a7yxvggc4kw8fsvj381vgsvfcdshg5nzy6vwrxiw2p53drr"))))
2949 (build-system python-build-system)
2950 (home-page "http://bottlepy.org/")
2951 (synopsis "WSGI framework for small web-applications.")
2952 (description "@code{python-bottle} is a WSGI framework for small web-applications.")
2953 (license license:expat)))
2955 (define-public python2-bottle
2956 (package-with-python2 python-bottle))
2958 (define-public python-wtforms
2960 (name "python-wtforms")
2965 (uri (pypi-uri "WTForms" version ".zip"))
2968 "0vyl26y9cg409cfyj8rhqxazsdnd0jipgjw06civhrd53yyi1pzz"))))
2969 (build-system python-build-system)
2972 (modify-phases %standard-phases
2973 (add-after 'unpack 'remove-django-test
2974 ;; Don't fail the tests when the inputs for the optional tests cannot be found.
2978 (("'ext_django.tests', 'ext_sqlalchemy', 'ext_dateutil', 'locale_babel'") "")
2979 (("sys.stderr.write(\"### Disabled test '%s', dependency not found\n\" % name)") ""))
2982 `(("unzip" ,unzip)))
2983 (home-page "http://wtforms.simplecodes.com/")
2985 "Form validation and rendering library for Python web development")
2987 "WTForms is a flexible forms validation and rendering library
2988 for Python web development. It is very similar to the web form API
2989 available in Django, but is a standalone package.")
2990 (license license:bsd-3)))
2992 (define-public python2-wtforms
2993 (package-with-python2 python-wtforms))
2995 (define-public python-paste
2997 (name "python-paste")
3002 (uri (pypi-uri "Paste" version))
3005 "14lbi9asn5agsdf7r97prkjpz7amgmp529lbvfhf0nv881xczah6"))
3006 (patches (search-patches "python-paste-remove-timing-test.patch"))
3007 (modules '((guix build utils)))
3010 ;; This test calls out to the internet.
3011 (delete-file "tests/test_proxy.py") #t))))
3012 (build-system python-build-system)
3014 `(("python-pytest" ,python-pytest)
3015 ("python-pytest-runner" ,python-pytest-runner)
3016 ("python-nose" ,python-nose)))
3018 `(("python-six" ,python-six)))
3019 (home-page "https://pythonpaste.readthedocs.io/")
3021 "Python web development tools, focusing on WSGI")
3023 "Paste provides a variety of web development tools and middleware which
3024 can be nested together to build web applications. Paste's design closely
3025 follows ideas flowing from WSGI (Web Standard Gateway Interface).")
3026 (license license:expat)))
3028 (define-public python2-paste
3029 (package-with-python2 python-paste))
3031 (define-public python-pastescript
3033 (name "python-pastescript")
3038 (uri (pypi-uri "PasteScript" version))
3041 "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
3042 (build-system python-build-system)
3044 `(("python-nose" ,python-nose)))
3046 `(("python-paste" ,python-paste)
3047 ("python-pastedeploy" ,python-pastedeploy)))
3048 (home-page (string-append "https://web.archive.org/web/20161025192515/"
3049 "http://pythonpaste.org/script/"))
3051 '(;; Unfortunately, this requires the latest unittest2,
3052 ;; but that requires traceback2 which requires linecache2 which requires
3053 ;; unittest2. So we're skipping tests for now.
3054 ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
3055 ;; so in theory we could get around this situation somehow.)
3058 "Pluggable command line tool for serving web applications and more")
3060 "PasteScript is a plugin-friendly command line tool which provides a
3061 variety of features, from launching web applications to bootstrapping project
3063 (license license:expat)))
3065 (define-public python2-pastescript
3066 (package-with-python2 python-pastescript))
3068 (define-public python2-urlgrabber
3070 (name "python2-urlgrabber")
3075 (uri (pypi-uri "urlgrabber" version))
3077 (base32 "0w1h7hlsq406bxfy2pn4i9bd003bwl0q9b7p03z3g6yl0d21ddq5"))))
3078 (build-system python-build-system)
3079 (arguments `(#:python ,python-2)) ; urlgrabber supports python2 only
3080 (home-page "http://urlgrabber.baseurl.org")
3081 (synopsis "High-level cross protocol url-grabber")
3082 (description "@code{urlgrabber} is Python2 library that unifies access to
3083 files available on web, FTP or locally. It supports HTTP, FTP and file://
3084 protocols, it supports features like HTTP keep-alive, reget, throttling and
3086 (license license:lgpl2.1+)))
3088 (define-public python-pycares
3090 (name "python-pycares")
3095 (uri (pypi-uri "pycares" version))
3098 "0h4fxw5drrhfyslzmfpljk0qnnpbhhb20hnnndzahhbwylyw1x1n"))))
3099 (build-system python-build-system)
3101 `(#:tests? #f)) ;tests require internet access
3102 (home-page "http://github.com/saghul/pycares")
3103 (synopsis "Python interface for @code{c-ares}")
3104 (description "@code{pycares} is a Python module which provides an
3105 interface to @code{c-ares}, a C library that performs DNS requests and
3106 name resolutions asynchronously.")
3107 (license license:expat)))
3109 (define-public python-yarl
3111 (name "python-yarl")
3116 (uri (pypi-uri "yarl" version))
3119 "1s6z13g8vgxfkkqwhn6imnm7pl7ky9arv4jygnn6bcndcbidg7d6"))))
3120 (build-system python-build-system)
3122 `(("python-pytest" ,python-pytest)
3123 ("python-pytest-runner" ,python-pytest-runner)))
3125 `(("python-idna" ,python-idna)
3126 ("python-multidict" ,python-multidict)))
3127 (home-page "https://github.com/aio-libs/yarl/")
3128 (synopsis "Yet another URL library")
3129 (description "@code{yarl} module provides handy @code{URL} class
3130 for URL parsing and changing.")
3131 (license license:asl2.0)))
3133 (define-public python-google-api-client
3135 (name "python-google-api-client")
3140 (uri (pypi-uri "google-api-python-client" version))
3143 "1wpbbbxfpy9mwxdy3kn352cb590ladv574j1aa2l4grjdqw3ln05"))))
3144 (build-system python-build-system)
3146 '(#:tests? #f)) ; tests require internet access
3148 `(("python-httplib2" ,python-httplib2)
3149 ("python-six" ,python-six)
3150 ("python-oauth2client" ,python-oauth2client)
3151 ("python-uritemplate" ,python-uritemplate)))
3152 (home-page "https://github.com/google/google-api-python-client")
3153 (synopsis "Core Python library for accessing Google APIs")
3154 (description "Python client library for Google's discovery based APIs")
3155 (license license:asl2.0)))
3157 (define-public python2-google-api-client
3158 (package-with-python2 python-google-api-client))
3160 (define-public python-hawkauthlib
3162 (name "python-hawkauthlib")
3167 (uri (pypi-uri "hawkauthlib" version))
3170 "03ai47s4h8nfnrf25shbfvkm1b9n1ccd4nmmj280sg1fayi69zgg"))))
3171 (build-system python-build-system)
3173 `(("python-requests" ,python-requests)
3174 ("python-webob" ,python-webob)))
3175 (home-page "https://github.com/mozilla-services/hawkauthlib")
3176 (synopsis "Hawk Access Authentication protocol")
3178 "This is a low-level Python library for implementing Hawk Access Authentication,
3179 a simple HTTP request-signing scheme.")
3180 (license license:mpl2.0)))
3182 (define-public python-pybrowserid
3184 (name "python-pybrowserid")
3189 (uri (pypi-uri "PyBrowserID" version))
3192 "1qvi79kfb8x9kxkm5lw2mp42hm82cpps1xknmsb5ghkwx1lpc8kc"))))
3193 (build-system python-build-system)
3195 `(("python-requests" ,python-requests)))
3197 `(("python-mock" ,python-mock)))
3198 (home-page "https://github.com/mozilla/PyBrowserID")
3199 (synopsis "Python library for the BrowserID protocol")
3201 "This is a Python client library for the BrowserID protocol that
3202 underlies Mozilla Persona.")
3203 (license license:mpl2.0)))
3205 (define-public python-pyfxa
3207 (name "python-pyfxa")
3212 (uri (pypi-uri "PyFxA" version))
3215 "0axl16fyrz2r88gnw4b12mk7dpkqscv8c4wsc1y5hicl7bsbc4fm"))))
3216 (build-system python-build-system)
3217 (arguments '(#:tests? #f)) ; 17 tests require network access
3219 `(("python-cryptography" ,python-cryptography)
3220 ("python-hawkauthlib" ,python-hawkauthlib)
3221 ("python-pybrowserid" ,python-pybrowserid)
3222 ("python-requests" ,python-requests)
3223 ("python-six" ,python-six)))
3225 `(("python-grequests" ,python-grequests)
3226 ("python-mock" ,python-mock)
3227 ("python-responses" ,python-responses)
3228 ("python-unittest2" ,python-unittest2)))
3229 (home-page "https://github.com/mozilla/PyFxA")
3230 (synopsis "Firefox Accounts client library for Python")
3232 "This is a Python library for interacting with the Firefox Accounts
3234 (license license:mpl2.0)))
3236 (define-public python-hyperlink
3238 (name "python-hyperlink")
3243 (uri (pypi-uri "hyperlink" version))
3246 "0m2nhi0j8wmgfscf974wd5v1xfq8mah286hil6npy1ys0m3y7222"))))
3247 (build-system python-build-system)
3249 `(("python-idna" ,python-idna)))
3250 (home-page "https://github.com/python-hyper/hyperlink")
3251 (synopsis "Python module to create immutable URLs according to spec")
3252 (description "This package provides a Python module to create immutable, and
3253 correct URLs for Python according to RFCs 3986 and 3987.")
3254 (license license:expat)))
3256 (define-public python-treq
3258 (name "python-treq")
3263 (uri (pypi-uri "treq" version))
3266 "0j4zwq9p1c9piv1vc66nxcv9s6hdinf90jwkbsm91k14npv9zq4i"))))
3267 (build-system python-build-system)
3269 `(("python-attrs" ,python-attrs)
3270 ("python-idna" ,python-idna)
3271 ("python-incremental" ,python-incremental)
3272 ("python-requests" ,python-requests)
3273 ("python-service-identity" ,python-service-identity)
3274 ("python-twisted" ,python-twisted)))
3275 (home-page "https://github.com/twisted/treq")
3276 (synopsis "Requests-like API built on top of twisted.web's Agent")
3277 (description "This package provides an HTTP library inspired by
3278 @code{requests}} but written on top of Twisted's @code{Agents}. It offers a
3279 high level API for making HTTP requests when using Twisted.")
3280 (license license:expat)))
3282 (define-public python-autobahn
3284 (name "python-autobahn")
3289 (uri (pypi-uri "autobahn" version))
3292 "1mm7j24ls01c7jb1ad5p5cpyxvzgydiyf8b04ihykh2v8g98j0x7"))))
3293 (build-system python-build-system)
3295 ;; The tests fail to run:
3296 ;; https://github.com/crossbario/autobahn-python/issues/1117
3299 `(("python-cffi" ,python-cffi)
3300 ("python-twisted" ,python-twisted)
3301 ("python-txaio" ,python-txaio)))
3302 (home-page "https://crossbar.io/autobahn/")
3303 (synopsis "Web Application Messaging Protocol implementation")
3304 (description "This package provides an implementation of the @dfn{Web Application
3305 Messaging Protocol} (WAMP). WAMP connects components in distributed
3306 applications using Publish and Subscribe (PubSub) and routed Remote Procedure
3307 Calls (rRPC). It is ideal for distributed, multi-client and server applications
3308 such as IoT applications or multi-user database-driven business applications.")
3309 (license license:expat)))
3311 (define-public python-ws4py
3313 (name "python-ws4py")
3318 (uri (pypi-uri "ws4py" version))
3321 "10slbbf2jm4hpr92jx7kh7mhf48sjl01v2w4d8z3f1p0ybbp7l19"))))
3322 (build-system python-build-system)
3325 (modify-phases %standard-phases
3326 (add-after 'unpack 'python3.7-compatibility
3328 (substitute* '("ws4py/server/tulipserver.py"
3329 "ws4py/async_websocket.py")
3331 "asyncio.ensure_future"))
3333 ;; We don't have a package for cherrypy.
3334 (add-after 'unpack 'remove-cherrypy-support
3336 (delete-file "ws4py/server/cherrypyserver.py")
3339 `(("python-gevent" ,python-gevent)
3340 ("python-tornado" ,python-tornado)))
3341 (home-page "https://github.com/Lawouach/WebSocket-for-Python")
3342 (synopsis "WebSocket client and server library")
3344 "This package provides a WebSocket client and server library for
3346 (license license:bsd-3)))
3348 (define-public python-slugify
3350 (name "python-slugify")
3355 (uri (pypi-uri "python-slugify" version))
3357 (base32 "0dv97yi5fq074q5qyqbin09pmi8ixg36caf5nkpw2bqkd8jh6pap"))
3359 (search-patches "python-slugify-depend-on-unidecode.patch"))))
3361 `(("python-wheel" ,python-wheel)))
3363 `(("python-unidecode" ,python-unidecode)))
3366 (modify-phases %standard-phases
3369 (invoke "python" "test.py"))))))
3370 (build-system python-build-system)
3371 (home-page "https://github.com/un33k/python-slugify")
3372 (synopsis "Python Slugify application that handles Unicode")
3373 (description "This package provides a @command{slufigy} command and
3374 library to create slugs from unicode strings while keeping it DRY.")
3375 (license license:expat)))
3377 (define-public python-branca
3379 (name "python-branca")
3384 (uri (pypi-uri "branca" version))
3387 "0pmigd521j2228xf8x34vbx0niwvms7xl7za0lymywj0vydjqxiy"))))
3388 (build-system python-build-system)
3390 `(("python-jinja2" ,python-jinja2)
3391 ("python-six" ,python-six)))
3393 `(("python-pytest" ,python-pytest)))
3394 (home-page "https://github.com/python-visualization/branca")
3395 (synopsis "Generate complex HTML+JS pages with Python")
3396 (description "Generate complex HTML+JS pages with Python")
3397 (license license:expat)))
3399 (define-public python-tinycss2
3401 (name "python-tinycss2")
3406 (uri (pypi-uri "tinycss2" version))
3408 (base32 "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4"))))
3409 (build-system python-build-system)
3412 (modify-phases %standard-phases
3414 (lambda _ (invoke "pytest"))))))
3416 `(("python-webencodings" ,python-webencodings)))
3418 `(("python-pytest-flake8" ,python-pytest-flake8)
3419 ("python-pytest-isort" ,python-pytest-isort)
3420 ("python-pytest-runner" ,python-pytest-runner)))
3421 (home-page "https://tinycss2.readthedocs.io/")
3422 (synopsis "Low-level CSS parser for Python")
3423 (description "@code{tinycss2} can parse strings, return Python objects
3424 representing tokens and blocks, and generate CSS strings corresponding to
3427 Based on the CSS Syntax Level 3 specification, @code{tinycss2} knows the
3428 grammar of CSS but doesn’t know specific rules, properties or values supported
3429 in various CSS modules.")
3430 (license license:bsd-3)))
3432 (define-public python-cssselect2
3434 (name "python-cssselect2")
3439 (uri (pypi-uri "cssselect2" version))
3441 (base32 "0skymzb4ncrm2zdsy80f53vi0arf776lvbp51hzh4ayp1il5lj3h"))))
3442 (build-system python-build-system)
3445 (modify-phases %standard-phases
3447 (lambda _ (invoke "pytest"))))))
3449 `(("python-tinycss2" ,python-tinycss2)))
3451 `(("python-pytest-cov" ,python-pytest-cov)
3452 ("python-pytest-flake8" ,python-pytest-flake8)
3453 ("python-pytest-isort" ,python-pytest-isort)
3454 ("python-pytest-runner" ,python-pytest-runner)))
3455 (home-page "https://cssselect2.readthedocs.io/")
3456 (synopsis "CSS selectors for Python ElementTree")
3457 (description "@code{cssselect2} is a straightforward implementation of
3458 CSS3 Selectors for markup documents (HTML, XML, etc.) that can be read by
3459 ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.).
3461 Unlike the Python package @code{cssselect}, it does not translate selectors to
3462 XPath and therefore does not have all the correctness corner cases that are
3463 hard or impossible to fix in cssselect.")
3464 (license license:bsd-3)))
3466 (define-public gunicorn
3473 (uri (pypi-uri "gunicorn" version))
3476 "09n6fc019bgrvph1s5h1lwhn2avcsprw6ncd203qhra3i8mvn10r"))))
3477 (outputs '("out" "doc"))
3478 (build-system python-build-system)
3481 (modify-phases %standard-phases
3482 (add-after 'build 'build-doc
3484 (invoke "make" "-C" "docs" "PAPER=a4" "html" "info")
3485 (delete-file "docs/build/texinfo/Makefile")
3486 (delete-file "docs/build/texinfo/Gunicorn.texi")
3490 (setenv "PYTHONPATH"
3491 (string-append ".:" (getenv "PYTHONPATH")))
3493 (add-after 'install 'install-doc
3494 (lambda* (#:key outputs #:allow-other-keys)
3495 (let* ((doc (string-append (assoc-ref outputs "doc")
3496 "/share/doc/" ,name "-" ,version))
3497 (html (string-append doc "/html"))
3498 (info (string-append doc "/info"))
3499 (examples (string-append doc "/examples")))
3503 (copy-recursively "docs/build/html" html)
3504 (copy-recursively "docs/build/texinfo" info)
3505 (copy-recursively "examples" examples)
3506 (for-each (lambda (file)
3507 (copy-file file (string-append doc "/" file)))
3508 '("README.rst" "NOTICE" "LICENSE" "THANKS")))
3511 `(("binutils" ,binutils) ;; for ctypes.util.find_library()
3512 ("python-aiohttp", python-aiohttp)
3513 ("python-pytest" ,python-pytest)
3514 ("python-pytest-cov" ,python-pytest-cov)
3515 ("python-sphinx" ,python-sphinx)
3516 ("texinfo" ,texinfo)))
3517 (home-page "https://gunicorn.org/")
3518 (synopsis "Python WSGI HTTP Server for UNIX")
3519 (description "Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP
3520 Server for UNIX. It’s a pre-fork worker model ported from Ruby’s
3521 Unicorn project. The Gunicorn server is broadly compatible with
3522 various web frameworks, simply implemented, light on server resources,
3523 and fairly speedy.")
3524 (license license:expat)))
3526 ;; break cyclic dependency for python-aiohttp, which depends on gunicorn for
3528 (define-public gunicorn-bootstrap
3532 (arguments `(#:tests? #f))
3533 (properties '((hidden? . #t)))
3534 (native-inputs `())))
3536 (define-public python-translation-finder
3538 (name "python-translation-finder")
3543 (uri (pypi-uri "translation-finder" version))
3546 "1pcy9z8gmb8x41gjhw9x0lkr0d2mv5mdxcs2hwg6q8mxs857j589"))))
3547 (build-system python-build-system)
3550 (modify-phases %standard-phases
3551 (add-before 'build 'remove-failing-test
3553 (delete-file "translation_finder/test_api.py")
3556 `(("python-chardet" ,python-chardet)
3557 ("python-pathlib2" ,python-pathlib2)
3558 ("python-ruamel.yaml" ,python-ruamel.yaml)
3559 ("python-six" ,python-six)))
3561 `(("python-codecov" ,python-codecov)
3562 ("python-codacy-coverage" ,python-codacy-coverage)
3563 ("python-pytest-cov" ,python-pytest-cov)
3564 ("python-pytest-runner" ,python-pytest-runner)
3565 ("python-twine" ,python-twine)))
3566 (home-page "https://weblate.org/")
3567 (synopsis "Translation file finder for Weblate")
3568 (description "This package provides a function to find translation file in
3569 the source code of a project. It supports many translation file formats and
3570 is part of the Weblate translation platform.")
3571 (license license:gpl3+)))
3573 (define-public python-gitlab
3575 (name "python-gitlab")
3580 (uri (pypi-uri "python-gitlab" version))
3583 "0zl6kz8v8cg1bcy2r78b2snb0lpw0b573gdx2x1ps0nhsh75l4j5"))))
3584 (build-system python-build-system)
3586 `(("python-requests" ,python-requests)
3587 ("python-six" ,python-six)))
3589 `(("python-httmock" ,python-httmock)
3590 ("python-mock" ,python-mock)))
3592 "https://github.com/python-gitlab/python-gitlab")
3593 (synopsis "Interact with GitLab API")
3594 (description "This package provides an extended library for interacting
3595 with GitLab instances through their API.")
3596 (license license:lgpl3+)))
3598 (define-public python-path-and-address
3600 (name "python-path-and-address")
3604 ;; The source distributed on PyPI doesn't include tests.
3607 (url "https://github.com/joeyespo/path-and-address")
3608 (commit (string-append "v" version))))
3609 (file-name (git-file-name name version))
3612 "0b0afpsaim06mv3lhbpm8fmawcraggc11jhzr6h72kdj1cqjk5h6"))))
3613 (build-system python-build-system)
3616 (modify-phases %standard-phases
3618 (lambda* (#:key inputs outputs #:allow-other-keys)
3619 (add-installed-pythonpath inputs outputs)
3620 (invoke "py.test"))))))
3622 `(("python-pytest" ,python-pytest)))
3623 (home-page "https://github.com/joeyespo/path-and-address")
3624 (synopsis "Functions for command-line server tools used by humans")
3625 (description "Path-and-address resolves ambiguities of command-line
3626 interfaces, inferring which argument is the path, and which is the address.")
3627 (license license:expat)))
3630 ;; No release by upstream for quite some time, some bugs fixed since. See:
3631 ;; https://github.com/joeyespo/grip/issues/304
3632 (let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3"))
3635 (version (git-version "4.5.2" "1" commit))
3640 (url "https://github.com/joeyespo/grip")
3642 (file-name (git-file-name name version))
3645 "0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w"))))
3646 (build-system python-build-system)
3648 `(("python-docopt" ,python-docopt)
3649 ("python-flask" ,python-flask)
3650 ("python-markdown" ,python-markdown)
3651 ("python-path-and-address" ,python-path-and-address)
3652 ("python-pygments" ,python-pygments)
3653 ("python-requests" ,python-requests)))
3655 `(("python-pytest" ,python-pytest)
3656 ("python-responses" ,python-responses)))
3659 (modify-phases %standard-phases
3661 (lambda* (#:key inputs outputs #:allow-other-keys)
3662 (add-installed-pythonpath inputs outputs)
3663 (setenv "PATH" (string-append
3665 (assoc-ref %outputs "out") "/bin"))
3666 (invoke "py.test" "-m" "not assumption"))))))
3667 (home-page "https://github.com/joeyespo/grip")
3668 (synopsis "Preview Markdown files using the GitHub API")
3669 (description "Grip is a command-line server application written in Python
3670 that uses the GitHub Markdown API to render a local Markdown file. The styles
3671 and rendering come directly from GitHub, so you'll know exactly how it will
3672 appear. Changes you make to the file will be instantly reflected in the browser
3673 without requiring a page refresh.")
3674 (license license:expat))))
3676 (define-public python-port-for
3678 (name "python-port-for")
3683 (uri (pypi-uri "port-for" version))
3686 "1pncxlj25ggw99r0ijfbkq70gd7cbhqdx5ivsxy4jdp0z14cpda7"))))
3687 (build-system python-build-system)
3690 (modify-phases %standard-phases
3691 (add-after 'unpack 'use-urllib3
3693 (substitute* "port_for/_download_ranges.py"
3694 (("urllib2") "urllib3"))
3697 `(("python-urllib3" ,python-urllib3)))
3699 `(("python-mock" ,python-mock)))
3700 (home-page "https://github.com/kmike/port-for/")
3701 (synopsis "TCP localhost port finder and association manager")
3703 "This package provides a utility that helps with local TCP ports
3704 management. It can find an unused TCP localhost port and remember the
3706 (license license:expat)))
3708 (define-public python-livereload
3710 (name "python-livereload")
3715 (uri (pypi-uri "livereload" version))
3718 "0rhggz185bxc3zjnfpmhcvibyzi86i624za1lfh7x7ajsxw4y9c9"))))
3719 (build-system python-build-system)
3721 `(("python-six" ,python-six)
3722 ("python-tornado" ,python-tornado)))
3723 (home-page "https://github.com/lepture/python-livereload")
3724 (synopsis "Python LiveReload")
3726 "Python LiveReload provides a command line utility, @command{livereload},
3727 for starting a web server in a directory. It can trigger arbitrary commands
3728 and serve updated contents upon changes to the directory.")
3729 (license license:bsd-3)))
3731 (define-public python-vf-1
3733 (name "python-vf-1")
3738 (uri (pypi-uri "VF-1" version))
3741 "0xlqsaxsiayk1sd07kpz8abbcnab582y29a1y4882fq6j4gma5xi"))))
3742 (build-system python-build-system)
3743 (home-page "https://github.com/solderpunk/VF-1")
3744 (synopsis "Command line gopher client")
3745 (description "@code{VF-1} is a command line gopher client with
3746 @acronym{TLS, Transport Layer Security} support.")
3747 (license license:bsd-2)))
3749 (define-public python-websockets
3751 (name "python-websockets")
3756 (uri (pypi-uri "websockets" version))
3759 "03s3ml6sbki24aajllf8aily0xzrn929zxi84p50zkkbikdd4raw"))))
3760 (build-system python-build-system)
3761 (arguments '(#:tests? #f)) ; Tests not included in release tarball.
3762 (home-page "https://github.com/aaugustin/websockets")
3764 "Python implementation of the WebSocket Protocol (RFC 6455 & 7692)")
3766 "@code{websockets} is a library for building WebSocket servers and clients
3767 in Python with a focus on correctness and simplicity.
3769 Built on top of @code{asyncio}, Python's standard asynchronous I/O framework,
3770 it provides an elegant coroutine-based API.")
3771 (license license:bsd-3)))
3773 (define-public python-selenium
3775 (name "python-selenium")
3780 (uri (pypi-uri "selenium" version))
3783 "039hf9knvl4s3hp21bzwsp1g5ri9gxsh504dp48lc6nr1av35byy"))))
3784 (build-system python-build-system)
3786 `(("python-urllib3" ,python-urllib3)))
3788 "https://github.com/SeleniumHQ/selenium/")
3789 (synopsis "Python bindings for Selenium")
3790 (description "Selenium enables web browser automation.
3791 Selenium specifically provides infrastructure for the W3C WebDriver specification
3792 — a platform and language-neutral coding interface compatible with all
3793 major web browsers.")
3794 (license license:asl2.0)))
3796 (define-public python-rapidjson
3798 (name "python-rapidjson")
3803 (uri (pypi-uri "python-rapidjson" version))
3806 "18cl2dhx3gds5vg52jxmh9wjlbiy8dx06c3n482rfpdi9dzbv05d"))
3807 (modules '((guix build utils)))
3809 '(begin (delete-file-recursively "rapidjson") #t))))
3810 (build-system python-build-system)
3813 (list (string-append "--rj-include-dir="
3814 (assoc-ref %build-inputs "rapidjson")
3815 "/include/rapidjson"))
3817 (modify-phases %standard-phases
3819 (lambda* (#:key inputs #:allow-other-keys)
3820 (invoke "python" "setup.py" "build"
3821 (string-append "--rj-include-dir="
3822 (assoc-ref %build-inputs "rapidjson")
3823 "/include/rapidjson"))))
3825 (lambda* (#:key inputs outputs #:allow-other-keys)
3826 (add-installed-pythonpath inputs outputs)
3827 ;; Some tests are broken.
3828 (delete-file "tests/test_base_types.py")
3829 (delete-file "tests/test_validator.py")
3830 (invoke "python" "-m" "pytest" "tests"))))))
3832 `(("rapidjson" ,rapidjson)
3833 ("python-pytest" ,python-pytest)
3834 ("python-pytz" ,python-pytz)))
3835 (home-page "https://github.com/python-rapidjson/python-rapidjson")
3836 (synopsis "Python wrapper around rapidjson")
3837 (description "This package provides a python wrapper around rapidjson.")
3838 (license license:expat)))
3840 (define-public python-venusian
3842 (name "python-venusian")
3847 (uri (pypi-uri "venusian" version))
3849 (base32 "0f7f67dkgxxcjfhpdd5frb9pszkf04lyzzpn5069q0xi89r2p17n"))))
3850 (build-system python-build-system)
3852 `(("python-pytest" ,python-pytest)
3853 ("python-runner" ,python-pytest-runner)
3854 ("python-pytest-cov" ,python-pytest-cov)))
3855 (arguments '(#:test-target "pytest"))
3856 (home-page "https://docs.pylonsproject.org/projects/venusian")
3857 (synopsis "Library for defering decorator actions")
3859 "Venusian is a library which allows framework authors to defer decorator
3860 actions. Instead of taking actions when a function (or class) decorator is
3861 executed at import time, you can defer the action usually taken by the
3862 decorator until a separate scan phase.")
3863 (license license:repoze)))
3865 (define-public python-zope-deprecation
3867 (name "python-zope-deprecation")
3871 (uri (pypi-uri "zope.deprecation" version))
3874 "1pz2cv7gv9y1r3m0bdv7ks1alagmrn5msm5spwdzkb2by0w36i8d"))))
3875 (build-system python-build-system)
3877 (propagated-inputs `())
3878 (home-page "https://zopedeprecation.readthedocs.io/")
3879 (synopsis "Function for marking deprecations")
3880 (description "The @code{zope.deprecation} module provides a function for
3881 marking modules, classes, functions, methods and properties as deprecated,
3882 displaying warnings when usaged in application code.")
3883 (license license:zpl2.1)))
3885 (define-public python-translationstring
3887 (name "python-translationstring")
3891 (uri (pypi-uri "translationstring" version))
3894 "0bdpcnd9pv0131dl08h4zbcwmgc45lyvq3pa224xwan5b3x4rr2f"))))
3895 (build-system python-build-system)
3896 (home-page "http://docs.pylonsproject.org/projects/translationstring")
3897 (synopsis "Internationalization tooling for the Pylons project")
3898 (description "This package provides a library used by various Pylons
3899 project packages for internationalization (i18n) duties related to
3901 (license license:repoze)))