diff options
Diffstat (limited to 'battering/packages/python-xyz.scm')
-rw-r--r-- | battering/packages/python-xyz.scm | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/battering/packages/python-xyz.scm b/battering/packages/python-xyz.scm index 9ccb37d..ae39c97 100644 --- a/battering/packages/python-xyz.scm +++ b/battering/packages/python-xyz.scm @@ -25,7 +25,8 @@ #:use-module (gnu packages tls) #:use-module (gnu packages tmux) #:use-module (gnu packages xdisorg) - #:use-module (gnu packages xml)) + #:use-module (gnu packages xml) + #:use-module (gnu packages web)) (define-public python-pyfzf (package @@ -717,3 +718,41 @@ and save it in machine-readable format.") (uri (pypi-uri "greenlet" version)) (sha256 (base32 "1h1l1mll5s4y1b09asf2jps0m7wyshnis1aassz9gc3xmw9xrj77")))))) + +(define-public python-requests-futures + (package + (name "python-requests-futures") + (version "1.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ross/requests-futures") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0n6bb1gs628xgjhiwqlw13i8ln0s5xshm0m374xzgjngv8rvwjvr")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-requests)) + (native-inputs + (list + python-black + python-docutils + ;; TODO: switch to greenlet 3 once the default python + ;; version is 3.12 + python-greenlet-2 + python-isort + python-pyflakes + python-pytest + python-pytest-cov + python-pytest-httpbin + python-readme-renderer + python-setuptools + python-twine + python-werkzeug + python-wheel)) + (home-page "https://github.com/ross/requests-futures") + (synopsis "Asynchronous Python HTTP for Humans") + (description "Small add-on for the Python @code{requests} HTTP +library. Makes use of python 3.2's @code{concurrent.futures}.") + (license license:asl2.0))) |