summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-11-30 16:59:21 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-04 21:49:57 +0000
commit8c17c6faa76c301c7e8206692ce8ce063f9d6ecb (patch)
treebd4025d44407bfdeedcebc856f8b5263c3c98cf3 /gnu
parent39a5a5d309d77e16f04d3da35039a5a513a781c3 (diff)
gnu: python-requests-oauthlib: Update to 2.0.0.
* gnu/packages/python-web.scm (python-requests-oauthlib): Update to 2.0.0. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: [native-inputs]: Add python-pytest, python-setuptools. Remove python-pyjwt, python-mock. [home-page, synopsis]: Improve style. Change-Id: I2d4bb2703cdb499aafa068b13cd2a042f08236e3 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-web.scm36
1 files changed, 17 insertions, 19 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index fdb55183fef..d9cb62fbbcc 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -7591,31 +7591,29 @@ Protocol, WAMP}
(define-public python-requests-oauthlib
(package
(name "python-requests-oauthlib")
- (version "1.2.0")
+ (version "2.0.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "requests-oauthlib" version))
- (sha256
- (base32
- "0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
- (build-system python-build-system)
+ (method git-fetch)
+ (uri (git-reference (url
+ "https://github.com/requests/requests-oauthlib")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256 (base32 "0i0vnanxqilnf2rgng7n96rl8fzq0dbcl3rpl7zkxj50kv66nqwl"))))
+ (build-system pyproject-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)))))
+ (list
+ #:test-flags
+ #~(list
+ "--ignore=tests/test_core.py" ; requires network access.
+ "--ignore=tests/examples/test_native_spa_pkce_auth0.py"
+ "-k" "not test_fetch_access_token"))) ; flaky tests.
(native-inputs
- (list python-pyjwt python-requests-mock python-mock))
+ (list python-requests-mock python-pytest python-setuptools))
(propagated-inputs
(list python-oauthlib python-requests))
- (home-page
- "https://github.com/requests/requests-oauthlib")
- (synopsis
- "OAuthlib authentication support for 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.")