diff options
author | Hanketsu <hanketsu@egregore.fun> | 2025-03-04 12:23:21 +0100 |
---|---|---|
committer | Hanketsu <hanketsu@egregore.fun> | 2025-06-13 00:04:47 +0200 |
commit | 615caf0c9b3e8ebac5c4940cd6e113c768b4d7f6 (patch) | |
tree | ae0e54c12fdcd7f2d75668f734b2f23f1c0c49ce | |
parent | f56238a278d54508003613eb737fd93164ee760b (diff) |
battering: Add python-requests-futures.
* battering/packages/python-xyz.scm (python-requests-futures): New variable.
-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))) |