You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

4082 lines
144 KiB

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Eric Dvorsak <eric@dvorsak.fr>
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
;;; Copyright © 2016, 2017 Danny Milosavljevic <dannym+a@scratchpost.org>
;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2016, 2017, 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
;;; Copyright © 2016, 2017, 2020 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
;;; Copyright © 2014, 2017 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com>
;;; Copyright © 2015, 2016, 2017, 2019 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2015, 2016 Christopher Allan Webber <cwebber@dustycloud.org>
;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com>
;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2015, 2016 David Thompson <davet@gnu.org>
;;; Copyright © 2017 Mark Meyer <mark@ofosos.org>
;;; Copyright © 2018 Tomáš Čech <sleep_walker@gnu.org>
;;; Copyright © 2018, 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2019 Vagrant Cascadian <vagrant@debian.org>
;;; Copyright © 2019 Brendan Tildesley <mail@brendan.scot>
;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
;;; Copyright © 2020 Holger Peters <holger.peters@posteo.de>
;;; Copyright © 2020 Noisytoot <noisytoot@gmail.com>
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages python-web)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system python)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages base)
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages django)
#:use-module (gnu packages groff)
#:use-module (gnu packages libffi)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages serialization)
#:use-module (gnu packages sphinx)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages tls)
#:use-module (gnu packages time)
#:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (srfi srfi-1))
(define-public python-aiohttp
(package
(name "python-aiohttp")
(version "3.6.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aiohttp" version))
(sha256
(base32
"09pkw6f1790prnrq0k8cqgnf1qy57ll8lpmc6kld09q7zw4vi6i5"))
(patches (search-patches "python-aiohttp-3.6.2-no-warning-fail.patch"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-tests
(lambda _
;; disable brotli tests, because we’re not providing that optional library
(substitute* "tests/test_http_parser.py"
((" async def test_feed_eof_no_err_brotli")
" @pytest.mark.xfail\n async def test_feed_eof_no_err_brotli"))
;; make sure the timestamp of this file is > 1990, because a few
;; tests like test_static_file_if_modified_since_past_date depend on it
(invoke "touch" "-d" "2020-01-01" "tests/data.unknown_mime_type")
;; FIXME: These tests are failing due to deprecation warnings
;; in Python 3.8. Remove this when updating to aiohttp >= 3.7.
;; https://github.com/aio-libs/aiohttp/issues/4477
;; https://github.com/aio-libs/aiohttp/issues/4525
(with-directory-excursion "tests"
(for-each delete-file '("test_client_session.py"
"test_multipart.py"
"test_web_middleware.py"
"test_web_protocol.py"
"test_web_urldispatcher.py")))
#t)))))
(propagated-inputs
`(("python-aiodns" ,python-aiodns)
("python-async-timeout" ,python-async-timeout)
("python-attrs" ,python-attrs)
("python-chardet" ,python-chardet)
("python-idna-ssl" ,python-idna-ssl)
("python-multidict" ,python-multidict)
("python-yarl" ,python-yarl)))
(native-inputs
`(("python-pytest-runner" ,python-pytest-runner)
("python-pytest-xdit" ,python-pytest-xdist)
("python-pytest-timeout" ,python-pytest-timeout)
("python-pytest-forked" ,python-pytest-forked)
("python-pytest-mock" ,python-pytest-mock)
("gunicorn" ,gunicorn-bootstrap)
("python-freezegun" ,python-freezegun)
("python-async-generator" ,python-async-generator)))
(home-page "https://github.com/aio-libs/aiohttp/")
(synopsis "Async HTTP client/server framework (asyncio)")
(description "@code{aiohttp} is an asynchronous HTTP client/server
framework.
Its main features are:
@itemize
@item Supports both client and server side of HTTP protocol.
@item Supports both client and server Web-Sockets out-of-the-box without the
Callback Hell.
@item Web-server has middlewares and pluggable routing.
@end itemize")
(license license:asl2.0)))
(define-public python-aiohttp-socks
(package
(name "python-aiohttp-socks")
(version "0.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aiohttp_socks" version))
(sha256
(base32
"0473702jk66xrgpm28wbdgpnak4v0dh2qmdjw7ky7hf3lwwqkggf"))))
(build-system python-build-system)
(propagated-inputs
`(("python-aiohttp" ,python-aiohttp)))
(home-page "https://github.com/romis2012/aiohttp-socks")
(synopsis "SOCKS proxy connector for aiohttp")
(description "This package provides a SOCKS proxy connector for
aiohttp. It supports SOCKS4(a) and SOCKS5.")
(license license:asl2.0)))
(define-public python-aiodns
(package
(name "python-aiodns")
(version "1.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aiodns" version))
(sha256
(base32
"1snr5paql8dgvc676n8xq460wypjsb1xj53cf3px1s4wczf7lryq"))))
(build-system python-build-system)
(inputs
`(("python-pycares" ,python-pycares)))
(arguments
`(#:tests? #f)) ;tests require internet access
(home-page "https://github.com/saghul/aiodns")
(synopsis "Simple DNS resolver for asyncio")
(description "@code{aiodns} provides a simple way for doing
asynchronous DNS resolutions with a synchronous looking interface by
using @url{https://github.com/saghul/pycares,pycares}.")
(license license:expat)))
(define-public python-aiorpcx
(package
(name "python-aiorpcx")
(version "0.18.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aiorpcX" version))
(sha256
(base32
"0k545hc7wl6sh1svydzbv6x7sx5pig2pqkl3yxs9riwmvzawx9xp"))))
(build-system python-build-system)
(propagated-inputs
`(("python-attrs" ,python-attrs)))
(home-page "https://github.com/kyuupichan/aiorpcX")
(synopsis "Generic asyncio RPC implementation")
(description
"The aiorpcX library is a generic asyncio implementation of RPC suitable
for an application that is a client, server or both.
The package includes a module with full coverage of JSON RPC versions 1.0 and
2.0, JSON RPC protocol auto-detection, and arbitrary message framing. It also
comes with a SOCKS proxy client.")
(license (list license:expat license:bsd-2))))
(define-public python-falcon
(package
(name "python-falcon")
(version "2.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "falcon" version))
(sha256
(base32
"1z6mqfv574x6jiawf67ib52g4kk20c2x7xk7wrn1573b8v7r79gf"))
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "falcon/vendor")
(substitute* "setup.py"
((".*falcon\\.vendor\\.mimeparse.*") ""))
(substitute* '("falcon/media/handlers.py"
"falcon/request.py")
(("from falcon\\.vendor ") ""))
(substitute* "falcon.egg-info/SOURCES.txt"
(("falcon/vendor.*") ""))
#t))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
;; Skip orjson, which requires rust to build.
(substitute* "tests/test_media_handlers.py"
(("== 'CPython") "!= 'CPython"))
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "--ignore" "falcon"))))))
(propagated-inputs
`(("python-mimeparse" ,python-mimeparse)))
(native-inputs
`(("python-cython" ,python-cython) ;for faster binaries
("python-mujson" ,python-mujson)
("python-msgpack" ,python-msgpack)
("python-pytest" ,python-pytest)
("python-pytest-runner" ,python-pytest-runner)
("python-pyyaml" ,python-pyyaml)
("python-rapidjson" ,python-rapidjson)
("python-requests" ,python-requests)
("python-testtools" ,python-testtools)
("python-ujson" ,python-ujson)))
(home-page "https://falconframework.org")
(synopsis
"Web framework for building APIs and application backends")
(description
"Falcon is a web API framework for building microservices, application
backends and higher-level frameworks. Among its features are:
@itemize
@item Optimized and extensible code base
@item Routing via URI templates and REST-inspired resource
classes
@item Access to headers and bodies through request and response
classes
@item Request processing via middleware components and hooks
@item Idiomatic HTTP error responses
@item Straightforward exception handling
@item Unit testing support through WSGI helpers and mocks
@item Compatible with both CPython and PyPy
@item Cython support for better performance when used with CPython
@end itemize")
(properties `((python2-variant . ,(delay python2-falcon))))
(license license:asl2.0)))
(define-public python2-falcon
(let ((falcon (package-with-python2 (strip-python2-variant python-falcon))))
(package
(inherit falcon)
(native-inputs
(alist-delete "python-rapidjson" (package-native-inputs falcon))))))
(define-public python-falcon-cors
(package
(name "python-falcon-cors")
(version "1.1.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "falcon-cors" version))
(sha256
(base32
"12pym7hwsbd8b0c1azn95nas8gm3f1qpr6lpyx0958xm65ffr20p"))))
(build-system python-build-system)
(native-inputs
`(("python-falcon" ,python-falcon)))
(home-page
"https://github.com/lwcolton/falcon-cors")
(synopsis "Falcon @dfn{cross-origin resource sharing} (CORS) library")
(description "This middleware provides @dfn{cross-origin resource
sharing} (CORS) support for Falcon. It allows applying a specially crafted
CORS object to the incoming requests, enabling the ability to serve resources
over a different origin than that of the web application.")
(license license:asl2.0)))
(define-public python2-falcon-cors
(package-with-python2 python-falcon-cors))
(define-public python-furl
(package
(name "python-furl")
(version "2.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "furl" version))
(sha256
(base32
"1v2lakx03d5w8954a39ki44xv5mllnq0a0avhxykv9hrzg0yvjpx"))))
(build-system python-build-system)
(propagated-inputs
`(("python-six" ,python-six)
("python-orderedmultidict" ,python-orderedmultidict)))
(native-inputs
`(("python-flake8" ,python-flake8)))
(home-page "https://github.com/gruns/furl")
(synopsis "URL manipulation in Python")
(description "Furl provides an easy-to-use alternative to the
@code{urllib} and @code{urlparse} modules for manipulating URLs.")
(license license:unlicense)))
(define-public python2-furl
(package-with-python2 python-furl))
(define-public python-httplib2
(package
(name "python-httplib2")
(version "0.9.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "httplib2" version))
(sha256
(base32
"126rsryvw9vhbf3qmsfw9lf4l4xm2srmgs439lgma4cpag4s3ay3"))))
(build-system python-build-system)
(home-page "https://github.com/jcgregorio/httplib2")
(synopsis "Comprehensive HTTP client library")
(description
"A comprehensive HTTP client library supporting many features left out of
other HTTP libraries.")
(license license:expat)))
(define-public python2-httplib2
(package-with-python2 python-httplib2))
(define-public httpie
(package
(name "httpie")
(version "2.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "httpie" version))
(sha256
(base32
"18058k0i3cc4ixvgzj882w693lf40283flvspbrvd876iq42ib1i"))))
(build-system python-build-system)
(arguments
;; The tests attempt to access external web servers, so we cannot run them.
'(#:tests? #f))
(propagated-inputs
`(("python-colorama" ,python-colorama)
("python-pygments" ,python-pygments)
("python-requests" ,python-requests)))
(home-page "https://httpie.org/")
(synopsis "cURL-like tool for humans")
(description
"A command line HTTP client with an intuitive UI, JSON support,
syntax highlighting, wget-like downloads, plugins, and more. It consists of
a single http command designed for painless debugging and interaction with
HTTP servers, RESTful APIs, and web services.")
(license license:bsd-3)))
(define-public python-html2text
(package
(name "python-html2text")
(version "2019.8.11")
(source
(origin
(method url-fetch)
(uri (pypi-uri "html2text" version))
(sha256
(base32
"0ppgjplg06kmv9sj0x8p7acczcq2mcfgk1jdjwm4w5w40b0vj5pm"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "test/"))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(home-page "https://github.com/Alir3z4/html2text")
(synopsis "Convert HTML into plain text")
(description "html2text takes HTML and converts it into plain ASCII text
which is also valid markdown. html2text was originally written by Aaron
Swartz.")
(license license:gpl3+)))
(define-public python2-html2text
(package-with-python2 python-html2text))
(define-public python-mechanicalsoup
(package
(name "python-mechanicalsoup")
(version "0.11.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "MechanicalSoup" version))
(sha256
(base32 "0k59wwk75q7nz6i6gynvzhagy02ql0bv7py3qqcwgjw7607yq4i7"))))
(build-system python-build-system)
(arguments
;; TODO: Enable tests when python-flake8@3.5 hits master.
`(#:tests? #f))
(propagated-inputs
`(("python-beautifulsoup4" ,python-beautifulsoup4)
("python-lxml" ,python-lxml)
("python-requests" ,python-requests)
("python-six" ,python-six)))
;; (native-inputs
;; ;; For tests.
;; `(("python-pytest-flake8" ,python-pytest-flake8)
;; ("python-pytest-httpbin" ,python-pytest-httpbin)
;; ("python-pytest-mock" ,python-pytest-mock)
;; ("python-pytest-runner" ,python-pytest-runner)
;; ("python-requests-mock" ,python-requests-mock)))
(home-page "https://mechanicalsoup.readthedocs.io/")
(synopsis "Python library for automating website interaction")
(description
"MechanicalSoup is a Python library for automating interaction with
websites. It automatically stores and sends cookies, follows redirects, and can
follow links and submit forms. It doesn’t do JavaScript.")
(license license:expat)))
(define-public python2-mechanicalsoup
(package-with-python2 python-mechanicalsoup))
(define-public python-sockjs-tornado
(package
(name "python-sockjs-tornado")
(version "1.0.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "sockjs-tornado" version))
(sha256
(base32
"15dgv6hw6c7h3m310alw1h6p5443lrm9pyqhcv2smc13fz1v04pc"))))
(build-system python-build-system)
(arguments
`(;; There are no tests, and running the test phase requires missing
;; dependencies
#:tests? #f))
(propagated-inputs
`(("python-tornado" ,python-tornado)))
(home-page "https://github.com/mrjoes/sockjs-tornado/")
(synopsis
"SockJS Python server implementation on top of the Tornado framework")
(description
"SockJS-tornado provides the server-side counterpart to a SockJS client
library, through the Tornado framework.
SockJS provides a low-latency, full-duplex, cross-domain communication channel
between a web browser and web server.")
(license license:expat)))
(define-public python2-sockjs-tornado
(package-with-python2 python-sockjs-tornado))
(define-public python-flask-babel
(package
(name "python-flask-babel")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Flask-Babel" version))
(sha256
(base32
"0gmb165vkwv5v7dxsxa2i3zhafns0fh938m2zdcrv4d8z5l099yn"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(with-directory-excursion "tests"
(invoke "python" "tests.py")))))))
(propagated-inputs
`(("python-flask" ,python-flask)
("python-babel" ,python-babel)
("python-jinja2" ,python-jinja2)
("python-pytz" ,python-pytz)))
(home-page "https://github.com/python-babel/flask-babel")
(synopsis "Add i18n/l10n support to Flask applications")
(description "This package implements internationalization and localization
support for Flask. This is based on the Python babel module as well as pytz -
both of which are installed automatically if you install this library.")
(license license:bsd-3)))
(define-public python2-flask-babel
(package-with-python2 python-flask-babel))
(define-public python-html5lib
(package
(name "python-html5lib")
(version "1.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "html5lib" version))
(sha256
(base32
"0dipzfrycv6j1jw82v9b7d8lzggx3x8xngx6l4xrqkxwvg7hvjv6"))))
(build-system python-build-system)
(propagated-inputs
`(("python-six" ,python-six)
("python-webencodings" ,python-webencodings)))
(arguments
`(#:test-target "check"))
(home-page
"https://github.com/html5lib/html5lib-python")
(synopsis
"Python HTML parser based on the WHATWG HTML specifcation")
(description
"Html5lib is an HTML parser based on the WHATWG HTML specifcation
and written in Python.")
(license license:expat)))
(define-public python2-html5lib
(package-with-python2 python-html5lib))
;; Needed for python-bleach, a dependency of python-notebook
(define-public python-html5lib-0.9
(package
(inherit python-html5lib)
(version "0.999")
(source
(origin
(method url-fetch)
(uri (pypi-uri "html5lib" version))
(sha256
(base32
"17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
(define-public python2-html5lib-0.9
(package-with-python2 python-html5lib-0.9))
(define-public python-html5-parser
(package
(name "python-html5-parser")
(version "0.4.9")
(source (origin
(method url-fetch)
(uri (pypi-uri "html5-parser" version))
(sha256
(base32
"13yl3vnf3sxl05m0nhpngnrz3g1jvyahd33lys3m3hfb91l8zzi5"))))
(build-system python-build-system)
(native-inputs
`(("pkg-config" ,pkg-config)))
(inputs
`(("libxml2" ,libxml2)))
(propagated-inputs
`(("python-lxml" ,python-lxml)
("python-beautifulsoup4" ,python-beautifulsoup4)))
(home-page "https://html5-parser.readthedocs.io")
(synopsis "Fast C-based HTML5 parsing for Python")
(description "This package provides a fast implementation of the HTML5
parsing spec for Python. Parsing is done in C using a variant of the gumbo
parser. The gumbo parse tree is then transformed into an lxml tree, also in
C, yielding parse times that can be a thirtieth of the html5lib parse times.")
;; src/as-python-tree.[c|h] are licensed GPL3. The other files
;; indicate ASL2.0, including the LICENSE file for the whole project.
(license (list license:asl2.0 license:gpl3))))
(define-public python2-html5-parser
(package-with-python2 python-html5-parser))
(define-public python-pycurl
(package
(name "python-pycurl")
(version "7.43.0.5")
(source
(origin
(method url-fetch)
(uri (string-append "https://dl.bintray.com/pycurl/pycurl/pycurl-"
version ".tar.gz"))
(sha256
(base32 "1cwlb76vddqp2mxqvjbhf367caddzy82rhangddjjhjqaj8x4zgc"))))
(build-system python-build-system)
(arguments
;; The tests attempt to access external web servers, so we cannot run
;; them. Furthermore, they are skipped altogether when using Python 2.
'(#:tests? #f
#:phases (modify-phases %standard-phases
(add-before 'build 'configure-tls-backend
(lambda _
;; XXX: PycURL fails to automatically determine which TLS
;; backend to use when cURL is built with --disable-static.
;; See setup.py and <https://github.com/pycurl/pycurl/pull/147>.
(setenv "PYCURL_SSL_LIBRARY" "gnutls")
#t)))))
(native-inputs
`(("python-nose" ,python-nose)
("python-bottle" ,python-bottle)))
(inputs
`(("curl" ,curl)
("gnutls" ,gnutls)))
(home-page "http://pycurl.io/")
(synopsis "Lightweight Python wrapper around libcurl")
(description "Pycurl is a lightweight wrapper around libcurl. It provides
high-speed transfers via libcurl and frequently outperforms alternatives.")
;; Per 'README.rst', this is dual-licensed: users can redistribute pycurl
;; under the terms of LGPLv2.1+ or Expat.
(license (list license:lgpl2.1+ license:expat))))
(define-public python2-pycurl
(package-with-python2 python-pycurl))
(define-public python-webencodings
(package
(name "python-webencodings")
(version "0.5.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "webencodings" version))
(sha256
(base32
"08qrgrc4hrximb2gqnl69g01s93rhf2842jfxdjljc1dbwj1qsmk"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "py.test" "-v" "webencodings/tests.py")
#t)))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(home-page "https://github.com/SimonSapin/python-webencodings")
(synopsis "Character encoding aliases for legacy web content")
(description
"In order to be compatible with legacy web content when interpreting
something like @code{Content-Type: text/html; charset=latin1}, tools need
to use a particular set of aliases for encoding labels as well as some
overriding rules. For example, @code{US-ASCII} and @code{iso-8859-1} on
the web are actually aliases for @code{windows-1252}, and a @code{UTF-8}
or @code{UTF-16} BOM takes precedence over any other encoding declaration.
The WHATWG @url{https://encoding.spec.whatwg.org/,Encoding} standard
defines all such details so that implementations do not have to
reverse-engineer each other.
This module implements the Encoding standard and has encoding labels and
BOM detection, but the actual implementation for encoders and decoders
is Python’s.")
(license license:bsd-3)))
(define-public python2-webencodings
(package-with-python2 python-webencodings))
(define-public python-openid
(package
(name "python-openid")
(version "3.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python3-openid" version))
(sha256
(base32
"00l5hrjh19740w00b3fnsqldnla41wbr2rics09dl4kyd1fkd3b2"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "coverage" "run" "-m"
"unittest" "openid.test.test_suite"))))))
(properties `((python2-variant . ,(delay python2-openid))))
(propagated-inputs
`(("python-defusedxml" ,python-defusedxml)))
(native-inputs
`(("python-coverage" ,python-coverage)
("python-psycopg2" ,python-psycopg2)
("python-django" ,python-django)))
(home-page "https://github.com/necaris/python3-openid")
(synopsis "OpenID support for servers and consumers")
(description "This library provides OpenID authentication for Python, both
for clients and servers.")
(license license:asl2.0)))
(define-public python2-openid
(package
(name "python2-openid")
(version "2.2.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-openid" version))
(sha256
(base32
"1vvhxlghjan01snfdc4k7ykd80vkyjgizwgg9bncnin8rqz1ricj"))))
(build-system python-build-system)
(arguments
;; Python 3 support is in `python3-openid`, a separate package.
`(#:python ,python-2
;; Tests aren't initialized correctly.
#:tests? #f))
(home-page "https://github.com/openid/python-openid")
(synopsis "OpenID support for servers and consumers")
(description "This library provides OpenID authentication for Python, both
for clients and servers.")
(license license:asl2.0)))
(define-public python-cssutils
(package
(name "python-cssutils")
(version "1.0.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cssutils" version))
(sha256
(base32
"1bxchrbqzapwijap0yhlxdil1w9bmwvgx77aizlkhc2mcxjg1z52"))))
(build-system python-build-system)
(native-inputs
`(("unzip" ,unzip))) ; for unpacking the source
(arguments
`(#:tests? #f)) ; tests require python-pbr < 1.7.0
(home-page "http://cthedot.de/cssutils/")
(synopsis
"CSS Cascading Style Sheets library for Python")
(description
"Cssutils is a Python package for parsing and building CSS
Cascading Style Sheets. Currently it provides a DOM only and no rendering
options.")
(license license:lgpl3+)))
(define-public python2-cssutils
(package-with-python2 python-cssutils))
(define-public python-css-parser
(package
(inherit python-cssutils)
(name "python-css-parser")
(version "1.0.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "css-parser" version ".tar.gz"))
(sha256
(base32
"0i4xfykiffxzr4f6y0m2ggqvx1rzam6pw6krlr5k6ldf29akbay7"))))
(home-page "https://github.com/ebook-utils/css-parser")
(synopsis "Fork of cssutils modified for parsing ebooks")
(description
"Css-parser is a fork of cssutils 1.0.2, updated and modified for parsing
ebooks, due to cssutils not receiving updates as of 1.0.2.")
(license license:lgpl3+)))
(define-public python2-css-parser
(package-with-python2 python-css-parser))
(define-public python-cssselect
(package
(name "python-cssselect")
(version "1.1.0")
(source (origin
;; The PyPI release does not contain tests.
(method git-fetch)
(uri (git-reference
(url "https://github.com/scrapy/cssselect")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0xslrnhbrmgakp4xg6k26qffay3kqffp3a2z2sk27c65rwxa79kc"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"))))))
(native-inputs
`(("python-lxml" ,python-lxml)
("python-pytest" ,python-pytest)))
(home-page "https://github.com/scrapy/cssselect")
(synopsis "CSS3 selector parser and translator to XPath 1.0")
(description
"Cssselect ia a Python module that parses CSS3 Selectors and translates
them to XPath 1.0 expressions. Such expressions can be used in lxml or
another XPath engine to find the matching elements in an XML or HTML document.")
(license license:bsd-3)))
(define-public python2-cssselect
(package-with-python2 python-cssselect))
(define-public python-openid-cla
(package
(name "python-openid-cla")
(version "1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-openid-cla" version))
(sha256
(base32
"102hy2qisvjxp5s0v9lvwqi4f2dk0dhns40vjgn008yxc7k0h3cr"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; No tests.
(home-page "https://github.com/puiterwijk/python-openid-cla/")
(synopsis "Implementation of the OpenID CLA extension for python-openid")
(description "@code{openid-cla} is an implementation of the OpenID
contributor license agreement extension for python-openid.")
(license license:bsd-3)))
(define-public python2-openid-cla
(package-with-python2 python-openid-cla))
(define-public python-openid-teams
(package
(name "python-openid-teams")
(version "1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-openid-teams" version))
(sha256
(base32
"05zrh78alav24rxkbqlpbad6d3x2nljk6z6j7kflxf3vdqa7w969"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; No tests.
(home-page "https://github.com/puiterwijk/python-openid-teams/")
(synopsis "Implementation of the OpenID teams extension for python-openid")
(description
"@code{openid-teams} is an implementation of the OpenID
teams extension for python-openid.")
(license license:bsd-3)))
(define-public python2-openid-teams
(package-with-python2 python-openid-teams))
(define-public python-tornado
(package
(name "python-tornado")
(version "5.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tornado" version))
(sha256
(base32
"02clqk2116jbnq8lnaqmdw3p52nqrd9ib59r4xz2ll43fpcmhlaf"))))
(build-system python-build-system)
(arguments
'(;; FIXME: Two tests error out with:
;; AssertionError: b'Error in atexit._run_exitfuncs:\nFileNotF[44 chars]ry\n' != b''
;; #:phases
;; (modify-phases %standard-phases
;; (replace 'check
;; (lambda _
;; ;; 'setup.py test' hits an AssertionError on BSD-specific
;; ;; "tornado/platform/kqueue.py". This is the supported method:
;; (invoke "python" "-m" "tornado.test.runtests")
;; #t)))
#:tests? #f))
(native-inputs
`(("python-certifi" ,python-certifi)))
(home-page "https://www.tornadoweb.org/")
(synopsis "Python web framework and asynchronous networking library")
(description
"Tornado is a Python web framework and asynchronous networking library,
originally developed at FriendFeed. By using non-blocking network I/O,
Tornado can scale to tens of thousands of open connections, making it ideal
for long polling, WebSockets, and other applications that require a long-lived
connection to each user.")
(license license:asl2.0)
(properties `((python2-variant . ,(delay python2-tornado))))))
(define-public python-tornado-6
(package
(name "python-tornado")
(version "6.0.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tornado" version))
(sha256
(base32
"1p5n7sw4580pkybywg93p8ddqdj9lhhy72rzswfa801vlidx9qhg"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "-m" "tornado.test.runtests")
#t)))))
(native-inputs
`(("python-certifi" ,python-certifi)))
(home-page "https://www.tornadoweb.org/")
(synopsis "Python web framework and asynchronous networking library")
(description
"Tornado is a Python web framework and asynchronous networking library,
originally developed at FriendFeed. By using non-blocking network I/O,
Tornado can scale to tens of thousands of open connections, making it ideal
for long polling, WebSockets, and other applications that require a long-lived
connection to each user.")
(license license:asl2.0)))
(define-public python2-tornado
(let ((tornado (package-with-python2 (strip-python2-variant python-tornado))))
(package (inherit tornado)
(propagated-inputs
`(("python2-backport-ssl-match-hostname"
,python2-backport-ssl-match-hostname)
("python2-backports-abc" ,python2-backports-abc)
("python2-singledispatch" ,python2-singledispatch)
,@(package-propagated-inputs tornado))))))
(define-public python-tornado-http-auth
(package
(name "python-tornado-http-auth")
(version "1.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tornado-http-auth" version))
(sha256
(base32 "0hyc5f0a09i5yb99pk4bxpg6w9ichbrb5cv7hc9hff7rxd8w0v0x"))))
(build-system python-build-system)
(propagated-inputs
`(("python-tornado" ,python-tornado)))
(home-page "https://github.com/gvalkov/tornado-http-auth")
(synopsis "Digest and basic authentication module for Tornado")
(description
"Provides support for adding authentication to services using the Tornado
web framework, either via the basic or digest authentication schemes.")
(license license:asl2.0)))
(define-public python-terminado
(package
(name "python-terminado")
(version "0.8.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "terminado" version))
(sha256
(base32
"0yh69k6579g848rmjyllb5h75pkvgcy27r1l3yzgkf33wnnzkasm"))))
(build-system python-build-system)
(propagated-inputs
`(("python-tornado" ,python-tornado)
("python-ptyprocess" ,python-ptyprocess)))
(native-inputs
`(("python-nose" ,python-nose)))
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "nosetests") #t)))))
(home-page "https://github.com/takluyver/terminado")
(synopsis "Terminals served to term.js using Tornado websockets")
(description "This package provides a Tornado websocket backend for the
term.js Javascript terminal emulator library.")
(license license:bsd-2)
(properties `((python2-variant . ,(delay python2-terminado))))))
(define-public python2-terminado
(let ((terminado (package-with-python2 (strip-python2-variant python-terminado))))
(package (inherit terminado)
(propagated-inputs
`(("python2-backport-ssl-match-hostname"
,python2-backport-ssl-match-hostname)
("python2-futures" ,python2-futures)
,@(package-propagated-inputs terminado))))))
(define-public python-wsgi-intercept
(package
(name "python-wsgi-intercept")
(version "1.2.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "wsgi_intercept" version))
(sha256
(base32
"0kjj2v2dvmnpdd5h5gk9rzz0f54rhjb0yiz3zg65bmp65slfw65d"))))
(build-system python-build-system)
(propagated-inputs
`(("python-six" ,python-six)))
(native-inputs
`(("python-pytest" ,python-pytest)
("python-httplib2" ,python-httplib2)
("python-requests" ,python-requests)
("python-urllib3" ,python-urllib3)))
(synopsis "Puts a WSGI application in place of a real URI for testing")
(description "Wsgi_intercept installs a WSGI application in place of a real
URI for testing. Testing a WSGI application normally involves starting a
server at a local host and port, then pointing your test code to that address.
Instead, this library lets you intercept calls to any specific host/port
combination and redirect them into a WSGI application importable by your test
program. Thus, you can avoid spawning multiple processes or threads to test
your Web app.")
(home-page "https://github.com/cdent/wsgi-intercept")
(license license:expat)))
(define-public python-webob
(package
(name "python-webob")
(version "1.8.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "WebOb" version))
(sha256
(base32
"026i3z99nr3px75isa9mbnky5i7rffiv4d124h5kxfjjsxz92fma"))))
(build-system python-build-system)
(native-inputs
`(("python-nose" ,python-nose)))
(home-page "https://webob.org/")
(synopsis "WSGI request and response object")
(description
"WebOb provides wrappers around the WSGI request environment, and an
object to help create WSGI responses.")
(license license:expat)))
(define-public python2-webob
(package-with-python2 python-webob))
(define-public python-zope-event
(package
(name "python-zope-event")
(version "4.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.event" version))
(sha256
(base32
"1ksbc726av9xacml6jhcfyn828hlhb9xlddpx6fcvnlvmpmpvhk9"))))
(build-system python-build-system)
(home-page "https://pypi.org/project/zope.event/")
(synopsis "Event publishing system for Python")
(description "Zope.event provides an event publishing API, intended for
use by applications which are unaware of any subscribers to their events. It
is a simple event-dispatching system on which more sophisticated event
dispatching systems can be built.")
(license license:zpl2.1)))
(define-public python2-zope-event
(package-with-python2 python-zope-event))
(define-public python-zope-interface
(package
(name "python-zope-interface")
(version "4.7.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.interface" version))
(sha256
(base32
"0r9kvb1q3lxrdhxabliv9nwhjsdmn1n0vcjv93rlqkyb7yyh24gx"))))
(build-system python-build-system)
(native-inputs
`(("python-zope-event" ,python-zope-event)))
(home-page "https://github.com/zopefoundation/zope.interface")
(synopsis "Python implementation of the \"design by contract\"
methodology")
(description "Zope.interface provides an implementation of \"object
interfaces\" for Python. Interfaces are a mechanism for labeling objects as
conforming to a given API or contract.")
(license license:zpl2.1)))
(define-public python2-zope-interface
(package-with-python2 python-zope-interface))
(define-public python-zope-exceptions
(package
(name "python-zope-exceptions")
(version "4.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.exceptions" version))
(sha256
(base32
"04bjskwas17yscl8bs3l44maxspw1gdji0zcmr499fs420y9r9az"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; circular dependency with zope.testrunner
(propagated-inputs
`(("python-zope-interface" ,python-zope-interface)))
(home-page "https://pypi.org/project/zope.exceptions/")
(synopsis "Zope exceptions")
(description "Zope.exceptions provides general-purpose exception types
that have uses outside of the Zope framework.")
(license license:zpl2.1)))
(define-public python2-zope-exceptions
(package-with-python2 python-zope-exceptions))
(define-public python-zope-testing
(package
(name "python-zope-testing")
(version "4.7")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.testing" version))
(sha256
(base32
"1sh3c3i0m8n8fnhqiry0bk3rr356i56ry7calmn57s1pvv8yhsyn"))))
(build-system python-build-system)
(home-page "https://pypi.org/project/zope.testing/")
(synopsis "Zope testing helpers")
(description "Zope.testing provides a number of testing utilities for HTML
forms, HTTP servers, regular expressions, and more.")
(license license:zpl2.1)))
(define-public python2-zope-testing
(package-with-python2 python-zope-testing))
(define-public python-zope-testrunner
(package
(name "python-zope-testrunner")
(version "5.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.testrunner" version))
(sha256
(base32
"0w3q66cy4crpj7c0hw0vvvvwf3g931rnvw7wwa20av7yqvv6ajim"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
(native-inputs
`(("python-zope-testing" ,python-zope-testing)))
(propagated-inputs
`(("python-six" ,python-six)
("python-zope-exceptions" ,python-zope-exceptions)
("python-zope-interface" ,python-zope-interface)))
(home-page "https://pypi.org/project/zope.testrunner/")
(synopsis "Zope testrunner script")
(description "Zope.testrunner provides a script for running Python
tests.")
(license license:zpl2.1)))
(define-public python2-zope-testrunner
(package-with-python2 python-zope-testrunner))
(define-public python-zope-i18nmessageid
(package
(name "python-zope-i18nmessageid")
(version "5.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.i18nmessageid" version))
(sha256
(base32
"0ndhn4w1qgwkfbwf9vm2bgq418z5g0wmfsgl0d9nz62cd0mi8d4m"))))
(build-system python-build-system)
(native-inputs
`(("python-coverage" ,python-coverage)
("python-zope-testrunner" ,python-zope-testrunner)))
(propagated-inputs
`(("python-six" ,python-six)))
(home-page "https://pypi.org/project/zope.i18nmessageid/")
(synopsis "Message identifiers for internationalization")
(description "Zope.i18nmessageid provides facilities for declaring
internationalized messages within program source text.")
(license license:zpl2.1)))
(define-public python2-zope-i18nmessageid
(package-with-python2 python-zope-i18nmessageid))
(define-public python-zope-schema
(package
(name "python-zope-schema")
(version "5.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.schema" version))
(sha256
(base32
"0q93j0x52a42khw12al90jw2bk0wly3jwghql3a25zpwwxvn24ya"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.event.
(propagated-inputs
`(("python-zope-event" ,python-zope-event)
("python-zope-interface" ,python-zope-interface)))
(native-inputs
`(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
("python-zope-testing" ,python-zope-testing)
("python-zope-testrunner" ,python-zope-testrunner)))
(home-page "https://pypi.org/project/zope.schema/")
(synopsis "Zope data schemas")
(description "Zope.scheme provides extensions to zope.interface for
defining data schemas.")
(license license:zpl2.1)))
(define-public python2-zope-schema
(package-with-python2 python-zope-schema))
(define-public python-zope-configuration
(package
(name "python-zope-configuration")
(version "4.3.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "zope.configuration" version))
(sha256
(base32
"1qb88764fd7nkkmqv7fl9bxd1jirynkg5vbqkpqdiffnkxzp85kf"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
(native-inputs
`(("python-zope-testing" ,python-zope-testing)
("python-zope-testrunner" ,python-zope-testrunner)))
(propagated-inputs
`(("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
("python-zope-interface" ,python-zope-interface)
("python-zope-schema" ,python-zope-schema)))
(home-page "https://pypi.org/project/zope.configuration/")
(synopsis "Zope Configuration Markup Language")
(description "Zope.configuration implements ZCML, the Zope Configuration
Markup Language.")
(license license:zpl2.1)))
(define-public python2-zope-configuration
(package-with-python2 python-zope-configuration))
(define-public python-zope-proxy
(package
(name "python-zope-proxy")
(version "4.3.4")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.proxy" version))
(sha256
(base32
"1g0rcfnbchpvqhm76aixqlz544dawrgmy8gw9zwmijhk6wfl9f26"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
(native-inputs
`(("python-zope-testrunner" ,python-zope-testrunner)))
(propagated-inputs
`(("python-zope-interface" ,python-zope-interface)))
(home-page "https://pypi.org/project/zope.proxy/")
(synopsis "Generic, transparent proxies")
(description "Zope.proxy provides generic, transparent proxies for Python.
Proxies are special objects which serve as mostly-transparent wrappers around
another object, intervening in the apparent behavior of the wrapped object
only when necessary to apply the policy (e.g., access checking, location
brokering, etc.) for which the proxy is responsible.")
(license license:zpl2.1)))
(define-public python2-zope-proxy
(package-with-python2 python-zope-proxy))
(define-public python-zope-location
(package
(name "python-zope-location")
(version "4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.location" version))
(sha256
(base32
"1b40pzl8v00d583d3gsxv1qjdw2dhghlgkbgxl3m07d5r3izj857"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.interface.
(native-inputs
`(("python-zope-testrunner" ,python-zope-testrunner)))
(propagated-inputs
`(("python-zope-interface" ,python-zope-interface)
("python-zope-proxy" ,python-zope-proxy)
("python-zope-schema" ,python-zope-schema)))
(home-page "https://pypi.org/project/zope.location/")
(synopsis "Zope location library")
(description "Zope.location implements the concept of \"locations\" in
Zope3, which are are special objects that have a structural location.")
(license license:zpl2.1)))
(define-public python2-zope-location
(package-with-python2 python-zope-location))
(define-public python-zope-security
(package
(name "python-zope-security")
(version "5.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.security" version))
(sha256
(base32
"1npfrgnm202v48wavpwn3450dsn7az12lfww95vbhxyjl11f14yb"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: Tests can't find zope.testrunner.
(propagated-inputs
`(("python-zope-component" ,python-zope-component)
("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
("python-zope-interface" ,python-zope-interface)
("python-zope-location" ,python-zope-location)
("python-zope-proxy" ,python-zope-proxy)
("python-zope-schema" ,python-zope-schema)))
(native-inputs
`(("python-zope-configuration" ,python-zope-configuration)
("python-zope-testrunner" ,python-zope-testrunner)
("python-zope-testing" ,python-zope-testing)))
(home-page "https://pypi.org/project/zope.security/")
(synopsis "Zope security framework")
(description "Zope.security provides a generic mechanism to implement
security policies on Python objects.")
(license license:zpl2.1)))
(define-public python2-zope-security
(package-with-python2 python-zope-security))
(define-public python-zope-component
(package
(name "python-zope-component")
(version "4.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "zope.component" version))
(sha256
(base32
"1hlvzwj1kcfz1qms1dzhwsshpsf38z9clmyksb1gh41n8k3kchdv"))))
(build-system python-build-system)
(arguments
;; Skip tests due to circular dependency with python-zope-security.
'(#:tests? #f))
(native-inputs
`(("python-zope-testing" ,python-zope-testing)))
(propagated-inputs
`(("python-zope-event" ,python-zope-event)
("python-zope-interface" ,python-zope-interface)
("python-zope-i18nmessageid" ,python-zope-i18nmessageid)
("python-zope-configuration" ,python-zope-configuration)))
(home-page "https://github.com/zopefoundation/zope.component")
(synopsis "Zope Component Architecture")
(description "Zope.component represents the core of the Zope Component
Architecture. Together with the zope.interface package, it provides
facilities for defining, registering and looking up components.")
(license license:zpl2.1)))
(define-public python2-zope-component
(package-with-python2 python-zope-component))
(define-public python-ndg-httpsclient
(package
(name "python-ndg-httpsclient")
(version "0.5.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "ndg_httpsclient" version))
(sha256
(base32
"0412b7i1s4vj7lz9r72nmb28h9syd4q2x89bdirkkc3a6z8awbyp"))))
(build-system python-build-system)
(arguments
'(;; The tests appear to require networking.
#:tests? #f))
(propagated-inputs
`(("python-pyopenssl" ,python-pyopenssl)))
(synopsis "HTTPS support for Python's httplib and urllib2")
(description "This is a HTTPS client implementation for httplib and urllib2
based on PyOpenSSL. PyOpenSSL provides a more fully-featured SSL implementation
over the default provided with Python and, importantly, enables full
verification of the SSL peer.")
(home-page "https://github.com/cedadev/ndg_httpsclient/")
(license license:bsd-3)))
;; python2-openssl requires special care, so package-with-python2 is
;; insufficient.
(define-public python2-ndg-httpsclient
(package (inherit python-ndg-httpsclient)
(name "python2-ndg-httpsclient")
(arguments
(substitute-keyword-arguments (package-arguments python-ndg-httpsclient)
((#:python _) python-2)))
(propagated-inputs
`(("python2-pyopenssl" ,python2-pyopenssl)))))
(define-public python-websocket-client
(package
(name "python-websocket-client")
(version "0.54.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "websocket_client" version))
(sha256
(base32
"0j88zmikaypf38lvpkf4aaxrjp9j07dmy5ghj7kli0fv3p4n45g5"))))
(build-system python-build-system)
(propagated-inputs
`(("python-six" ,python-six)))
(home-page "https://github.com/liris/websocket-client")
(synopsis "WebSocket client for Python")
(description "The Websocket-client module provides the low level APIs for
WebSocket usage in Python programs.")
(properties `((python2-variant . ,(delay python2-websocket-client))))
(license license:lgpl2.1+)))
(define-public python2-websocket-client
(let ((base (package-with-python2
(strip-python2-variant python-websocket-client))))
(package
(inherit base)
(native-inputs
`(("python2-backport-ssl-match-hostname"
,python2-backport-ssl-match-hostname)
,@(package-native-inputs base))))))
(define-public python-requests
(package
(name "python-requests")
(version "2.23.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "requests" version))
(sha256
(base32
"1rhpg0jb08v0gd7f19jjiwlcdnxpmqi1fhvw7r4s9avddi4kvx5k"))))
(build-system python-build-system)
(propagated-inputs
`(("python-certifi" ,python-certifi)
("python-chardet" ,python-chardet)
("python-idna" ,python-idna)
("python-urllib3" ,python-urllib3)))
(arguments
;; FIXME: Some tests require network access.
'(#:tests? #f))
(home-page "http://python-requests.org/")
(synopsis "Python HTTP library")
(description
"Requests is a Python HTTP client library. It aims to be easier to use
than Python’s urllib2 library.")
(license license:asl2.0)))
;; Some software requires an older version of Requests, notably Docker/Docker
;; Compose.
(define-public python-requests-2.20
(package (inherit python-requests)
(version "2.20.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "requests" version))
(sha256
(base32
"0qzj6cgv3k9wyj7wlxgz7xq0cfg4jbbkfm24pp8dnhczwl31527a"))))
(propagated-inputs
`(("python-urllib3" ,python-urllib3-1.24)
("python-idna" ,python-idna-2.7)
,@(package-propagated-inputs python-requests)))))
;; Some software requires an older version of Requests, notably Docker
;; Compose.
(define-public python-requests-2.7
(package (inherit python-requests)
(version "2.7.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "requests" version))
(sha256
(base32
"0gdr9dxm24amxpbyqpbh3lbwxc2i42hnqv50sigx568qssv3v2ir"))))))
(define-public python2-requests
(package-with-python2 python-requests))
(define-public python-requests_ntlm
(package
(name "python-requests_ntlm")
(version "1.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "requests_ntlm" version))
(sha256
(base32
"0wgbqzaq9w7bas16b7brdb75f91bh3275fb459093bk1ihpck2ci"))))
(build-system python-build-system)
(propagated-inputs
`(("python-cryptography" ,python-cryptography)
("python-ntlm-auth" ,python-ntlm-auth)
("python-requests" ,python-requests)))
(home-page "https://github.com/requests/requests-ntlm")
(synopsis
"NTLM authentication support for Requests")
(description
"This package allows for HTTP NTLM authentication using the requests
library.")
(license license:isc)))
(define-public python-requests-mock
(package
(name "python-requests-mock")
(version "1.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "requests-mock" version))
(sha256
(base32
"0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx"))))
(build-system python-build-system)
(propagated-inputs
`(("python-requests" ,python-requests)
("python-six" ,python-six)))
(native-inputs
`(("python-pbr" ,python-pbr)
("python-discover" ,python-discover)
("python-docutils" ,python-docutils)
("python-fixtures" ,python-fixtures)
("python-mock" ,python-mock)
("python-sphinx" ,python-sphinx)
("python-testrepository" ,python-testrepository)
("python-testtools" ,python-testtools)))
(home-page "https://requests-mock.readthedocs.org/")
(synopsis "Mock out responses from the requests package")
(description
"This module provides a building block to stub out the HTTP requests
portions of your testing code.")
(properties `((python2-variant . ,(delay python2-requests-mock))))
(license license:asl2.0)))
(define-public python2-requests-mock
(package (inherit (package-with-python2
(strip-python2-variant python-requests-mock)))
(arguments
`(#:python ,python-2
;; FIXME: 'subunit.run discover: error: no such option: --list'
#:tests? #f))))
(define-public python-requests-toolbelt
(package
(name "python-requests-toolbelt")
(version "0.8.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "requests-toolbelt" version))
(sha256
(base32
"1dc7l42i4080r8i4m9fj51jx367lqkai170vrv7wd93gdj9k39gn"))))
(build-system python-build-system)
(native-inputs
`(("python-betamax" ,python-betamax)
("python-mock" ,python-mock)
("python-pytest" ,python-pytest)))
(propagated-inputs
`(("python-requests" ,python-requests)))
(synopsis "Extensions to python-requests")
(description "This is a toolbelt of useful classes and functions to be used
with python-requests.")
(home-page "https://github.com/sigmavirus24/requests-toolbelt")
(license license:asl2.0)))
(define-public python2-requests-toolbelt
(package-with-python2 python-requests-toolbelt))
(define-public python-oauthlib
(package
(name "python-oauthlib")
(version "3.0.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "oauthlib" version))
(sha256
(base32
"163jg4a8f7c5ki655grrr47kgljy12wri3qly7ijf64sk1fjrqqc"))))
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"))))))
(native-inputs
`(("python-pytest" ,python-pytest)
("python-pytest-cov" ,python-pytest-cov)
("python-mock" ,python-mock)))
(propagated-inputs
`(("python-cryptography" ,python-cryptography)
("python-pyjwt" ,python-pyjwt)
("python-blinker" ,python-blinker)))
(home-page "https://github.com/oauthlib/oauthlib")
(synopsis "OAuth implementation for Python")
(description
"Oauthlib is a generic, spec-compliant, thorough implementation of the
OAuth request-signing logic.")
(license license:bsd-3)))
(define-public python2-oauthlib
(package-with-python2 python-oauthlib))
(define-public python-rauth
(package
(name "python-rauth")
(version "0.7.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rauth" version))
(sha256
(base32
"02kv8w8l98ky223avyq7vw7x1f2ya9chrm59r77ylq45qb0xnk2j"))))
(build-system python-build-system)
(arguments
`(#:test-target "check"))
(propagated-inputs
`(("python-requests" ,python-requests)))
(home-page "https://github.com/litl/rauth")
(synopsis "Python library for OAuth 1.0/a, 2.0, and Ofly")
(description
"Rauth is a Python library for OAuth 1.0/a, 2.0, and Ofly. It also
provides service wrappers for convenient connection initialization and
authenticated session objects providing things like keep-alive.")
(license license:expat)
(properties `((python2-variant . ,(delay python2-rauth))))))
(define-public python2-rauth
(let ((base (package-with-python2 (strip-python2-variant python-rauth))))
(package
(inherit base)
(native-inputs `(("python2-unittest2" ,python2-unittest2)
,@(package-native-inputs base))))))
(define-public python-urllib3
(package
(name "python-urllib3")
(version "1.25.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "urllib3" version))
(sha256
(base32
"09rmjqm5syhhc8fx3v06h3yv6cqy0b1081jg8wm5grpwpr72j61h"))))
(build-system python-build-system)
(arguments `(#:tests? #f))
(propagated-inputs
`(;; These 5 inputs are used to build urrlib3[secure]
("python-certifi" ,python-certifi)
("python-cryptography" ,python-cryptography)
("python-idna" ,python-idna)
("python-ipaddress" ,python-ipaddress)
("python-pyopenssl" ,python-pyopenssl)
("python-pysocks" ,python-pysocks)))
(home-page "https://urllib3.readthedocs.io/")
(synopsis "HTTP library with thread-safe connection pooling")
(description
"Urllib3 supports features left out of urllib and urllib2 libraries. It
can reuse the same socket connection for multiple requests, it can POST files,
supports url redirection and retries, and also gzip and deflate decoding.")
(license license:expat)))
;; Some software requires an older version of urllib3, notably Docker.
(define-public python-urllib3-1.24
(package (inherit python-urllib3)
(version "1.24.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "urllib3" version))
(sha256
(base32
"1x0slqrv6kixkbcdnxbglvjliwhc1payavxjvk8fvbqjrnasd4r3"))))))
(define-public python2-urllib3
(package-with-python2 python-urllib3))
(define-public awscli
(package
(name "awscli")
(version "1.18.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri name version))
(sha256
(base32
"0p479mfs9r0m82a217pap8156ijwvhv6r3kqa4k267gd05wgvygm"))))
(build-system python-build-system)
(arguments
;; FIXME: The 'pypi' release does not contain tests.
'(#:tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-reference-to-groff
(lambda _
(substitute* "awscli/help.py"
(("if not self._exists_on_path\\('groff'\\):") "")
(("raise ExecutableNotFoundError\\('groff'\\)") "")
(("cmdline = \\['groff'")
(string-append "cmdline = ['" (which "groff") "'")))
#t)))))
(propagated-inputs
`(("python-colorama" ,python-colorama)
("python-botocore" ,python-botocore)
("python-s3transfer" ,python-s3transfer)
("python-docutils" ,python-docutils)
("python-pyyaml" ,python-pyyaml)
("python-rsa" ,python-rsa)))
(native-inputs
`(("groff" ,groff)))
(home-page "https://aws.amazon.com/cli/")
(synopsis "Command line client for AWS")
(description "AWS CLI provides a unified command line interface to the
Amazon Web Services (AWS) API.")
(license license:asl2.0)))
(define-public python-wsgiproxy2
(package
(name "python-wsgiproxy2")
(version "0.4.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "WSGIProxy2" version ".tar.gz"))
(sha256
(base32 "16jch5nic0hia28lps3c678s9s9mjdq8n87igxncjg0rpi5adqnf"))))
(build-system python-build-system)
(native-inputs
`(("python-webtest" ,python-webtest)))
(propagated-inputs
`(("python-requests" ,python-requests)
("python-six" ,python-six)
("python-urllib3" ,python-urllib3)
("python-webob" ,python-webob)))
(home-page "https://github.com/gawel/WSGIProxy2/")
(synopsis "WSGI Proxy with various http client backends")
(description "WSGI turns HTTP requests into WSGI function calls.
WSGIProxy turns WSGI function calls into HTTP requests.
It also includes code to sign requests and pass private data,
and to spawn subprocesses to handle requests.")
(license license:expat)))
(define-public python2-wsgiproxy2
(package-with-python2 python-wsgiproxy2))
(define-public python-pastedeploy
(package
(name "python-pastedeploy")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PasteDeploy" version))
(sha256
(base32 "16qsq5y6mryslmbp5pn35x4z8z3ndp5rpgl42h226879nrw9hmg7"))))
(build-system python-build-system)
(arguments
'(#:test-target "pytest"))
(native-inputs
`(("python-pytest" ,python-pytest)
("python-pytest-runner" ,python-pytest-runner)))
(home-page "https://pylonsproject.org/")
(synopsis
"Load, configure, and compose WSGI applications and servers")
(description
"This tool provides code to load WSGI applications and servers from URIs;
these URIs can refer to Python Eggs for INI-style configuration files. Paste
Script provides commands to serve applications based on this configuration
file.")
(license license:expat)))
(define-public python2-pastedeploy
(package-with-python2 python-pastedeploy))
(define-public python-webtest
(package
(name "python-webtest")
(version "2.0.33")
(source
(origin
(method url-fetch)
(uri (pypi-uri "WebTest" version))
(sha256
(base32
"1l3z0cwqslsf4rcrhi2gr8kdfh74wn2dw76376i4g9i38gz8wd21"))))
(build-system python-build-system)
(arguments
;; Tests require python-pyquery, which creates a circular dependency.
`(#:tests? #f))
(propagated-inputs
`(("python-waitress" ,python-waitress)
("python-webob" ,python-webob)
("python-six" ,python-six)
("python-beautifulsoup4" ,python-beautifulsoup4)))
(home-page "https://docs.pylonsproject.org/projects/webtest/")
(synopsis "Helper to test WSGI applications")
(description "Webtest allows you to test your Python web applications
without starting an HTTP server. It supports anything that supports the
minimum of WSGI.")
(license license:expat)))
(define-public python2-webtest
(package-with-python2 python-webtest))
(define-public python-flask
(package
(name "python-flask")
(version "1.1.2")
(source (origin
(method url-fetch)
(uri (pypi-uri "Flask" version))
(sha256
(base32
"0q3h295izcil7lswkzfnyg3k5gq4hpmqmpl6i7s5m1n9szi1myjf"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(setenv "PYTHONPATH" (string-append "./build/lib:"
(getenv "PYTHONPATH")))
(invoke "pytest" "-vv" "tests"))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs
`(("python-itsdangerous" ,python-itsdangerous)
("python-jinja2" ,python-jinja2)
("python-click" ,python-click)
("python-werkzeug" ,python-werkzeug)))
(home-page "https://www.palletsprojects.com/p/flask/")
(synopsis "Microframework based on Werkzeug, Jinja2 and good intentions")
(description "Flask is a micro web framework based on the Werkzeug toolkit
and Jinja2 template engine. It is called a micro framework because it does not
presume or force a developer to use a particular tool or library.")
(license license:bsd-3)))
(define-public python2-flask
(package-with-python2 python-flask))
(define-public python-flask-wtf
(package
(name "python-flask-wtf")
(version "0.14.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Flask-WTF" version))
(sha256
(base32
"086pvg2x69n0nczcq7frknfjd8am1zdy8qqpva1sanwb02hf65yl"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(setenv "PYTHONPATH" (string-append "./build/lib:"
(getenv "PYTHONPATH")))
(invoke "pytest" "-vv"))))))
(propagated-inputs
`(("python-flask-babel" ,python-flask-babel)
("python-babel" ,python-babel)
("python-wtforms" ,python-wtforms)))
(native-inputs
`(("python-pytest" ,python-pytest)))
(home-page "https://github.com/lepture/flask-wtf")
(synopsis "Simple integration of Flask and WTForms")
(description "Flask-WTF integrates Flask and WTForms, including CSRF, file
upload, and reCAPTCHA.")
(license license:bsd-3)))
(define-public python2-flask-wtf
(package-with-python2 python-flask-wtf))
(define-public python-flask-multistatic
(package
(name "python-flask-multistatic")
(version "1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flask-multistatic" version))
(sha256
(base32
"0p4v50rwv64wcd0zlq7rzl4waprwr4hj19s3cgf1isywa7jcisgm"))))
(build-system python-build-system)
(propagated-inputs
`(("python-flask" ,python-flask)))
(home-page "https://pagure.io/flask-multistatic")
(synopsis "Flask plugin to allow overriding static files")
(description "@code{flask-multistatic} is a flask plugin that adds support
for overriding static files.")
(license license:gpl3+)))
(define-public python2-flask-multistatic
(package-with-python2 python-flask-multistatic))
(define-public python-cookies
(package
(name "python-cookies")
(version "2.2.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "cookies" version))
(sha256
(base32
"13pfndz8vbk4p2a44cfbjsypjarkrall71pgc97glk5fiiw9idnn"))))
(build-system python-build-system)
(arguments
`(;; test are broken: https://gitlab.com/sashahart/cookies/issues/3
#:tests? #f))
(native-inputs
`(("python-pytest" ,python-pytest)))
(synopsis "HTTP cookie parser and renderer")
(description "A RFC 6265-compliant HTTP cookie parser and renderer in
Python.")
(home-page "https://gitlab.com/sashahart/cookies")
(license license:expat)))
(define-public python2-cookies
(package-with-python2 python-cookies))
(define-public python-responses
(package
(name "python-responses")
(version "0.10.6")
(source (origin
(method url-fetch)
(uri (pypi-uri "responses" version))
(sha256
(base32
"147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah"))))
(build-system python-build-system)
(arguments
`(;; Test suite is not distributed:
;; https://github.com/getsentry/responses/issues/38
#:tests? #f))
(native-inputs
`(("python-mock" ,python-mock)))
(propagated-inputs
`(("python-requests" ,python-requests)
("python-cookies" ,python-cookies)
("python-six" ,python-six)))
(home-page "https://github.com/getsentry/responses")
(synopsis "Utility for mocking out the `requests` Python library")
(description "A utility library for mocking out the `requests` Python
library.")
(license license:asl2.0)))
(define-public python2-responses
(package-with-python2 python-responses))
(define-public python-grequests
(package
(name "python-grequests")
(version "0.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "grequests" version))
(sha256
(base32
"1j9icncllbkv7x5719b20mx670c6q1jrdx1sakskkarvx3pc8h8g"))))
(build-system python-build-system)
(propagated-inputs
`(("python-gevent" ,python-gevent)
("python-requests" ,python-requests)))
(native-inputs
`(("python-nose" ,python-nose)
("python-zope.interface" ,python-zope-interface)
("python-zope.event" ,python-zope-event)))
(home-page "https://github.com/kennethreitz/grequests")
(synopsis "Python library for asynchronous HTTP requests")
(description "GRequests is a Python library that allows you to use
@code{Requests} with @code{Gevent} to make asynchronous HTTP Requests easily")
(license license:bsd-2)))
(define-public python-geventhttpclient
(package
(name "python-geventhttpclient")
(version "1.3.1")
(source (origin
(method url-fetch)
(uri (pypi-uri "geventhttpclient" version))
(sha256
(base32
"07d0q3wzmml75227r6y6mrl5a0zpf4v9gj0ni5rhbyzmaj4az1xx"))
(modules '((guix build utils)))
(snippet
'(begin
;; Delete pre-compiled files.
(for-each delete-file (find-files "src/geventhttpclient"
".*\\.pyc"))
#t))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'delete-network-tests
(lambda _
(delete-file "src/geventhttpclient/tests/test_client.py")
#t))
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "py.test" "src/geventhttpclient/tests" "-v"
;; Append the test modules to sys.path to avoid
;; namespace conflict which breaks SSL tests.
"--import-mode=append"
;; XXX: Disable test fails with Python 3.8:
;; https://github.com/gwik/geventhttpclient/issues/119
"-k" (string-append "not test_cookielib_compatibility"))
#t)))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs
`(("python-certifi" ,python-certifi)
("python-gevent" ,python-gevent)
("python-six" ,python-six)))
(home-page "https://github.com/gwik/geventhttpclient")
(synopsis "HTTP client library for gevent")
(description "@code{python-geventhttpclient} is a high performance,
concurrent HTTP client library for python using @code{gevent}.")
(license license:expat)))
(define-public python2-geventhttpclient
(package-with-python2 python-geventhttpclient))
(define-public python-requests-oauthlib
(package
(name "python-requests-oauthlib")
(version "1.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "requests-oauthlib" version))
(sha256
(base32
"0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; removes tests that require network access
(add-before 'check 'pre-check
(lambda _
(delete-file "tests/test_core.py")
#t)))))
(native-inputs
`(("python-pyjwt" ,python-pyjwt)
("python-requests-mock" ,python-requests-mock)
("python-mock" ,python-mock)))
(propagated-inputs
`(("python-oauthlib" ,python-oauthlib)
("python-requests" ,python-requests)))
(home-page
"https://github.com/requests/requests-oauthlib")
(synopsis
"OAuthlib authentication support for Requests")
(description
"Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
(license license:isc)))
(define-public python2-requests-oauthlib
(package-with-python2 python-requests-oauthlib))
(define-public python-url
(package
(name "python-url")
(version "0.2.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "url" version))
(sha256
(base32
"0v879yadcz9qxfl41ak6wkga1kimp9cflla9ddz03hjjvgkqy5ki"))))
(build-system python-build-system)
(propagated-inputs
`(("python-publicsuffix" ,python-publicsuffix)))
(native-inputs
`(("python-coverage" ,python-coverage)
("python-nose" ,python-nose)))
(arguments
`(#:tests? #f)) ; FIXME: tests fail with "ImportError: No module named 'tests'"
(home-page "https://github.com/seomoz/url-py")
(synopsis "URL Parsing")
(description "Library for parsing urls.")
(license license:expat)
(properties `((python2-variant . ,(delay python2-url))))))
(define-public python2-url
(let ((base (package-with-python2 (strip-python2-variant python-url))))
(package (inherit base)
(propagated-inputs
`(("python2-publicsuffix" ,python2-publicsuffix))))))
(define-public python-cachecontrol
(package
(name "python-cachecontrol")
(version "0.12.5")
(source
(origin
(method git-fetch)
;; Pypi does not have tests.
(uri (git-reference
(url "https://github.com/ionrock/cachecontrol")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"03lgc65sl04n0cgzmmgg99bk83f9i6k8yrmcd4hpl46q1pymn0kz"))))
(build-system python-build-system)
(arguments
;; Versions > 0.11.6 depend on CherryPy for testing.
;; It's too much work to package CherryPy for now.
`(#:tests? #f))
(propagated-inputs
`(("python-requests" ,python-requests)
("python-msgpack" ,python-msgpack)
("python-lockfile" ,python-lockfile)))
(home-page "https://github.com/ionrock/cachecontrol")
(synopsis "The httplib2 caching algorithms for use with requests")
(description "CacheControl is a port of the caching algorithms in
@code{httplib2} for use with @code{requests} session objects.")
(license license:asl2.0)))
(define-public python2-cachecontrol
(package-with-python2 python-cachecontrol))
(define-public python-betamax
(package
(name "python-betamax")
(version "0.8.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "betamax" version))
(sha256
(base32
"1hki1c2vs7adq7zr56wi6i5bhrkia4s2ywpv2c98ibnczz709w2v"))))
(build-system python-build-system)
(arguments
'(;; Many tests fail because they require networking.
#:tests? #f))
(propagated-inputs
`(("python-requests" ,python-requests)))
(home-page "https://github.com/sigmavirus24/betamax")
(synopsis "Record HTTP interactions with python-requests")
(description "Betamax will record your test suite's HTTP interactions and
replay them during future tests. It is designed to work with python-requests.")
(license license:expat)))
(define-public python2-betamax
(package-with-python2 python-betamax))
(define-public python-betamax-matchers
(package
(name "python-betamax-matchers")
(version "0.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "betamax-matchers" version))
(sha256
(base32
"07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"))))
(build-system python-build-system)
(propagated-inputs
`(("python-betamax" ,python-betamax)
("python-requests-toolbelt" ,python-requests-toolbelt)))
(home-page "https://github.com/sigmavirus24/betamax_matchers")
(synopsis "VCR imitation for python-requests")
(description "@code{betamax-matchers} provides a set of Matchers for
Betamax.")
(license license:asl2.0)))
(define-public python2-betamax-matchers
(package-with-python2 python-betamax-matchers))
(define-public python-s3transfer
(package
(name "python-s3transfer")
(version "0.2.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "s3transfer" version))
(sha256
(base32
"08fhj73b1ai52hrs2q3nggshq3pswn1gq8ch3m009cb2v2vmqggj"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch
(lambda _
;; There's a small issue with one test with Python 3.8, this
;; change has been suggested upstream:
;; https://github.com/boto/s3transfer/pull/164
(substitute* "tests/unit/test_s3transfer.py"
(("super\\(FailedDownloadParts, self\\)\\.submit\\(function\\)")
"futures.Future()"))
#t))
(replace 'check
(lambda _
;; Some of the 'integration' tests require network access or
;; login credentials.
(invoke "nosetests" "--exclude=integration")
#t)))))
(native-inputs
`(("python-docutils" ,python-docutils)
("python-mock" ,python-mock)
("python-nose" ,python-nose)))
(propagated-inputs
`(("python-botocore" ,python-botocore)
("python-urllib3" ,python-urllib3)))
(synopsis "Amazon S3 Transfer Manager")
(description "S3transfer is a Python library for managing Amazon S3
transfers.")
(home-page "https://github.com/boto/s3transfer")
(license license:asl2.0)
(properties `((python2-variant . ,(delay python2-s3transfer))))))
(define-public python2-s3transfer
(let ((base (package-with-python2 (strip-python2-variant python-s3transfer))))
(package
(inherit base)
(native-inputs
`(("python2-futures" ,python2-futures)
,@(package-native-inputs base))))))
(define-public python-slimit
(package
(name "python-slimit")
(version "0.8.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "slimit" version ".zip"))
(sha256
(base32
"02vj2x728rs1127q2nc27frrqra4fczivnb7gch6n5lzi7pxqczl"))))
(build-system python-build-system)
(native-inputs
`(("unzip" ,unzip)))
(propagated-inputs
`(("python-ply" ,python-ply)))
(home-page "https://slimit.readthedocs.io/")
(synopsis "JavaScript minifier, parser and lexer written in Python")
(description
"SlimIt is a JavaScript minifier written in Python. It compiles
JavaScript into more compact code so that it downloads and runs faster.
SlimIt also provides a library that includes a JavaScript parser, lexer,
pretty printer and a tree visitor.")
(license license:expat)))
(define-public python-flask-restful
(package
(name "python-flask-restful")
(version "0.3.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Flask-RESTful" version))
(patches (search-patches "python-flask-restful-werkzeug-compat.patch"))
(sha256
(base32
"05b9lzx5yc3wgml2bcq50lq35h66m8zpj6dc9advcb5z3acsbaay"))))
(build-system python-build-system)
(propagated-inputs
`(("python-aniso8601" ,python-aniso8601)
("python-flask" ,python-flask)
("python-pycrypto" ,python-pycrypto)
("python-pytz" ,python-pytz)))
(native-inputs
`(;; Optional dependency of Flask. Tests need it.
("python-blinker" ,python-blinker)
("python-mock" ,python-mock) ; For tests
("python-nose" ,python-nose))) ;for tests
(home-page
"https://www.github.com/flask-restful/flask-restful/")
(synopsis
"Flask module for creating REST APIs")
(description
"This package contains a Flask module for creating REST APIs.")
(license license:bsd-3)))
(define-public python-flask-basicauth
(package
(name "python-flask-basicauth")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Flask-BasicAuth" version))
(sha256
(base32
"1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
(build-system python-build-system)
(propagated-inputs
`(("python-flask" ,python-flask)))
(home-page
"https://github.com/jpvanhal/flask-basicauth")
(synopsis
"HTTP basic access authentication for Flask")
(description
"This package provides HTTP basic access authentication for Flask.")
(license license:bsd-3)))
(define-public python-flask-htpasswd
(package
(name "python-flask-htpasswd")
(version "0.3.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flask-htpasswd" version))
(sha256
(base32
"14q1y1y9i9bhabdnwd25jqzc4ljli23smxfyyh8abxz1vq93pxra"))))
(build-system python-build-system)
(propagated-inputs
`(("python-flask" ,python-flask)
("python-itsdangerous" ,python-itsdangerous)
("python-passlib" ,python-passlib)
("python-tox" ,python-tox)))
(home-page "https://github.com/carsongee/flask-htpasswd")
(synopsis "Basic authentication via htpasswd files in Flask applications")
(description "This package provides Basic authentication via
@file{htpasswd} files and access_token authentication in Flask
applications.")
(license license:bsd-3)))
(define-public python-flask-sqlalchemy
(package
(name "python-flask-sqlalchemy")
(version "2.4.3")
(source (origin
(method url-fetch)
(uri (pypi-uri "Flask-SQLAlchemy" version))
(sha256
(base32
"19apnn2m9bl1d1h2nc52pnmiyx993mwzmfjrv04l3wn5hyznyr8b"))))
(build-system python-build-system)
(propagated-inputs
`(("python-flask" ,python-flask)
("python-sqlalchemy" ,python-sqlalchemy)))
(home-page "https://github.com/mitsuhiko/flask-sqlalchemy")
(synopsis "Module adding SQLAlchemy support to your Flask application")
(description
"This package adds SQLAlchemy support to your Flask application.")
(license license:bsd-3)))
(define-public python-flask-restplus
(package
(name "python-flask-restplus")
(version "0.9.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flask-restplus" version))
(sha256
(base32
"11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; FIXME: 35/882 tests failing.
;; #:phases
;; (modify-phases %standard-phases
;; (replace 'check
;; (lambda _
;; (invoke "nosetests")
;; #t)))))
(propagated-inputs
`(("python-aniso8601" ,python-aniso8601)
("python-flask" ,python-flask)
("python-jsonschema" ,python-jsonschema)
("python-pytz" ,python-pytz)
("python-six" ,python-six)))
(native-inputs
`(("python-tzlocal" ,python-tzlocal)
("python-blinker" ,python-blinker)
("python-nose" ,python-nose)
("python-rednose" ,python-rednose)))
(home-page "https://github.com/noirbizarre/flask-restplus")
(synopsis "Framework for documented API development with Flask")
(description "This package provides a framework for API development with
the Flask web framework in Python. It is similar to package
@code{python-flask-restful} but supports the @code{python-swagger}
documentation builder.")
(license license:expat)))
(define-public python-flask-restful-swagger
(package
(name "python-flask-restful-swagger")
(version "0.20.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flask-restful-swagger" version))
(sha256
(base32
"1p66f98b5zpypnnz56pxpbirchqj6aniw6qyrp8h572l0dn9xlvq"))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ;no tests
(propagated-inputs
`(("python-flask-restful" ,python-flask-restful)))
(home-page "https://github.com/rantav/flask-restful-swagger")
(synopsis "Extract Swagger specs from Flask-Restful projects")
(description "This package lets you extract Swagger API documentation
specs from your Flask-Restful projects.")
(license license:expat)))
(define-public python2-flask-restful-swagger
(package-with-python2 python-flask-restful-swagger))
(define-public python-htmlmin
(package
(name "python-htmlmin")
(version "0.1.12")
(source
(origin
(method url-fetch)
(uri (pypi-uri "htmlmin" version))
(sha256
(base32
"0y51xhabw6x8jk8k93xl8vznshpz3jb6l28075r5sjip613fzhah"))))
(arguments
`(#:tests? #f)) ; no tests
(build-system python-build-system)
(home-page "https://htmlmin.readthedocs.org/en/latest/")
(synopsis "HTML minifier")
(description "@code{htmlmin} is an HTML minifier that just works.
It comes with safe defaults and easily configurable options.")
(license license:bsd-3)))
(define-public python2-htmlmin
(package-with-python2 python-htmlmin))
(define-public python-flask-htmlmin
(package
(name "python-flask-htmlmin")
(version "1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Flask-HTMLmin" version))
(sha256
(base32
"1n6zlq72kakkw0z2jpq6nh74lfsmxybm4g053pwhc14fbr809348"))))
(propagated-inputs
`(("python-flask" ,python-flask)
("python-htmlmin" ,python-htmlmin)))
(build-system python-build-system)
(home-page "https://github.com/hamidfzm/Flask-HTMLmin")
(synopsis "HTML response minifier for Flask")
(description
"Minify @code{text/html} MIME type responses when using @code{Flask}.")
(license license:bsd-3)))
(define-public python2-flask-htmlmin
(package-with-python2 python-flask-htmlmin))
(define-public python-jsmin
(package
(name "python-jsmin")
(version "2.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "jsmin" version))
(sha256
(base32
"0fsmqbjvpxvff0984x7c0y8xmf49ax9mncz48b9xjx8wrnr9kpxn"))))
(build-system python-build-system)
(home-page "https://github.com/tikitu/jsmin/")
(synopsis "Python JavaScript minifier")
(description
"@code{jsmin} is a JavaScript minifier, usable from both Python code and
on the command line.")
(license license:expat)))
(define-public python-flask-login
(package
(name "python-flask-login")
(version "0.5.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/maxcountryman/flask-login")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "11ac924w0y4m0kf3mxnxdlidy88jfa7njw5yyrq16dvnx4iwd8gg"))))
(build-system python-build-system)
(propagated-inputs
`(("python-flask" ,python-flask)))
(native-inputs
;; For tests.
`(("python-blinker" ,python-blinker)
("python-coverage" ,python-coverage)
("python-mock" ,python-mock)
("python-pycodestyle" ,python-pycodestyle)
("python-pyflakes" ,python-pyflakes)
("python-pytest" ,python-pytest)
("python-semantic-version" ,python-semantic-version)
("python-werkzeug" ,python-werkzeug)))
(home-page "https://github.com/maxcountryman/flask-login")
(synopsis "User session management for Flask")
(description
"@code{Flask-Login} provides user session management for Flask. It
handles the common tasks of logging in, logging out, and remembering your
users' sessions over extended periods of time.")
(license license:expat)))
(define-public python2-flask-login
(package-with-python2 python-flask-login))
(define-public python-oauth2client
(package
(name "python-oauth2client")
(version "4.0.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "oauth2client" version))
(sha256
(base32
"1irqqap2zibysf8dba8sklfqikia579srd0phm5n754ni0h59gl0"))))
(build-system python-build-system)
(arguments
`(#:tests? #f))
(propagated-inputs
`(("python-httplib2" ,python-httplib2)
("python-pyasn1" ,python-pyasn1)
("python-pyasn1-modules" ,python-pyasn1-modules)
("python-rsa" ,python-rsa)
("python-six" ,python-six)))
(home-page "https://github.com/google/oauth2client/")
(synopsis "OAuth 2.0 client library")
(description "@code{python-oauth2client} provides an OAuth 2.0 client
library for Python")
(license license:asl2.0)))
(define-public python2-oauth2client
(package-with-python2 python-oauth2client))
(define-public python-flask-oidc
(package
(name "python-flask-oidc")
(version "1.1.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "flask-oidc" version))
(sha256
(base32
"1ay5j0mf174bix7i67hclr95gv16z81fpx0dijvi0gydvdj3ddy2"))))
(build-system python-build-system)
(propagated-inputs
`(("python-flask" ,python-flask)
("python-itsdangerous" ,python-itsdangerous)
("python-oauth2client" ,python-oauth2client)
("python-six" ,python-six)))
(native-inputs
`(("python-nose" ,python-nose)
("python-mock" ,python-mock)))
(home-page "https://github.com/puiterwijk/flask-oidc")
(synopsis "OpenID Connect extension for Flask")
(description "@code{python-flask-oidc} provides an OpenID Connect extension
for Flask.")
(license license:bsd-2)))
(define-public python-webassets
(package
(name "python-webassets")
(version "0.12.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "webassets" version))
(sha256
(base32
"1nrqkpb7z46h2b77xafxihqv3322cwqv6293ngaky4j3ff4cing7"))))
(build-system python-build-system)
(native-inputs
`(("python-jinja2" ,python-jinja2)
("python-mock" ,python-mock)
("python-nose" ,python-nose)
("python-pytest" ,python-pytest)))
(home-page "https://github.com/miracle2k/webassets")
(synopsis "Media asset management")
(description "Merges, minifies and compresses Javascript and CSS files,
supporting a variety of different filters, including YUI, jsmin, jspacker or
CSS tidy. Also supports URL rewriting in CSS files.")
(license license:bsd-2)))
(define-public python-cssmin
(package
(name "python-cssmin")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cssmin" version))
(sha256
(base32
"1dk723nfm2yf8cp4pj785giqlwv42l0kj8rk40kczvq1hk6g04p0"))))
(build-system python-build-system)
(home-page "https://github.com/zacharyvoase/cssmin")
(synopsis "Python port of the YUI CSS Compressor")
(description "Python port of the YUI CSS Compressor.")
(license (list license:expat license:bsd-3))))
(define-public python2-cssmin
(package-with-python2 python-cssmin))
(define-public python-elasticsearch
(package
(name "python-elasticsearch")
(version "7.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "elasticsearch" version))
(sha256
(base32
"0rnjvlhw4v3vg14l519qliy1s1zpmx3827q0xfviwvk42rr7hh01"))))
(build-system python-build-system)
(native-inputs
`(("python-mock" ,python-mock)
("python-nosexcover" ,python-nosexcover)
("python-pyaml" ,python-pyaml)
("python-requests" ,python-requests)))
(propagated-inputs
`(("urllib3" ,python-urllib3)))
(arguments
;; tests require the test_elasticsearch module but it is not distributed.
`(#:tests? #f))
(home-page "https://github.com/elastic/elasticsearch-py")
(synopsis "Low-level client for Elasticsearch")
(description "Official low-level client for Elasticsearch. Its goal is to
provide common ground for all Elasticsearch-related code in Python; because of
this it tries to be opinion-free and very extendable.")
(license license:expat)))
(define-public python2-elasticsearch
(package-with-python2 python-elasticsearch))
(define-public python-flask-script
(package
(name "python-flask-script")
(version "2.0.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Flask-Script" version))
(sha256
(base32
"0r8w2v89nj6b9p91p495cga5m72a673l2wc0hp0zqk05j4yrc9b4"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-tests
(lambda _
(substitute* "tests.py"
(("flask\\.ext\\.script") "flask_script"))
#t)))))
(propagated-inputs
`(("python-flask" ,python-flask)
("python-argcomplete" ,python-argcomplete)
("python-werkzeug" ,python-werkzeug)))
(native-inputs
`(("python-pytest" ,python-pytest)))
(home-page
"https://github.com/smurfix/flask-script")
(synopsis "Scripting support for Flask")
(description "The Flask-Script extension provides support for writing
external scripts in Flask. This includes running a development server,
a customised Python shell, scripts to set up your database, cronjobs,
and other command-line tasks that belong outside the web application
itself.")
(license license:bsd-3)))
(define-public python2-flask-script
(package-with-python2 python-flask-script))
(define-public python-flask-migrate
(package
(name "python-flask-migrate")
(version "2.5.3")
(source
(origin
(method url-fetch)
(uri (pypi-uri "Flask-Migrate" version))
(sha256
(base32
"1vip9ww6l18dxffjsggm83k71zkvihxpnhaswpv8klh95s6517d6"))))
(build-system python-build-system)
(propagated-inputs
`(("python-flask" ,python-flask)
("python-alembic" ,python-alembic)
("python-sqlalchemy" ,python-sqlalchemy)
("python-flask-script" ,python-flask-script)
("python-flask-sqlalchemy" ,python-flask-sqlalchemy)))
(home-page "https://github.com/miguelgrinberg/flask-migrate/")
(synopsis "SQLAlchemy database migrations for Flask programs using
Alembic")
(description "This package contains SQLAlchemy database migration tools
for Flask programs that are using @code{python-alembic}.")
(license license:expat)))
(define-public python-genshi
(package
(name "python-genshi")
(version "0.7.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/edgewall/genshi")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "04bw7nd4wyn8ixnhik57hny2xpjjpn80k5hp6691inix5gc6rxaf"))))
(build-system python-build-system)
(home-page "https://genshi.edgewall.org/")
(synopsis "Toolkit for generation of output for the web")
(description "Genshi is a Python library that provides an integrated set
of components for parsing, generating, and processing HTML, XML or other
textual content for output generation on the web.")
(license license:bsd-3)))
(define-public python2-genshi
(package-with-python2 python-genshi))
(define-public python-flask-principal