summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-21 16:11:51 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:48 +0100
commitfa5e3062e18faa094e20172661781f2fc2e6aab0 (patch)
treeaca9a7e0dc79894c1d95a1d083b4ceea43833da1 /gnu/packages/python-web.scm
parenta065c38de19d6296a0b2e5851747036d60617083 (diff)
gnu: python-grequests: Update to 0.7.0-0.60f70e9.
* gnu/packages/python-web.scm (python-grequests): Update to 0.7.0-0.60f70e9. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Set test-related arguments. [description]: Improve style. Change-Id: I62ba93c961229a536464effd666fd135ca8d3ed9 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm50
1 files changed, 30 insertions, 20 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 326a8e8518b..bc3b470b131 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -6320,26 +6320,36 @@ library.")
(license license:asl2.0)))
(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
- (list python-gevent python-requests))
- (native-inputs
- (list python-nose python-zope-interface 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)))
+ (let ((commit "60f70e99e942a2df378b4e4f6202dcf862754c2d")
+ (revision "0"))
+ (package
+ (name "python-grequests")
+ (version (git-version "0.7.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kennethreitz/grequests")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0132yv1rr4pmrmwasrnasqbnd80pi6rgy52608731p7lidkmxz9a"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; XXX: Most failing tests seem to be caused by network access,
+ ;; but there is no easy/flag way to disable tests selectively.
+ #:tests? #f
+ #:test-backend #~'unittest
+ #:test-flags #~(list "tests.py")))
+ (propagated-inputs (list python-gevent python-requests))
+ (native-inputs (list python-setuptools))
+ (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-gwebsockets
(package