mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
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>
This commit is contained in:
committed by
Sharlatan Hellseher
parent
39a5a5d309
commit
8c17c6faa7
@@ -7591,31 +7591,29 @@ Protocol, WAMP}
|
|||||||
(define-public python-requests-oauthlib
|
(define-public python-requests-oauthlib
|
||||||
(package
|
(package
|
||||||
(name "python-requests-oauthlib")
|
(name "python-requests-oauthlib")
|
||||||
(version "1.2.0")
|
(version "2.0.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "requests-oauthlib" version))
|
(uri (git-reference (url
|
||||||
(sha256
|
"https://github.com/requests/requests-oauthlib")
|
||||||
(base32
|
(commit (string-append "v" version))))
|
||||||
"0mrglgcvq7k48pf27s4gifdk0za8xmgpf55jy15yjj471qrk6rdx"))))
|
(file-name (git-file-name name version))
|
||||||
(build-system python-build-system)
|
(sha256 (base32 "0i0vnanxqilnf2rgng7n96rl8fzq0dbcl3rpl7zkxj50kv66nqwl"))))
|
||||||
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-flags
|
||||||
;; removes tests that require network access
|
#~(list
|
||||||
(add-before 'check 'pre-check
|
"--ignore=tests/test_core.py" ; requires network access.
|
||||||
(lambda _
|
"--ignore=tests/examples/test_native_spa_pkce_auth0.py"
|
||||||
(delete-file "tests/test_core.py")
|
"-k" "not test_fetch_access_token"))) ; flaky tests.
|
||||||
#t)))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pyjwt python-requests-mock python-mock))
|
(list python-requests-mock python-pytest python-setuptools))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-oauthlib python-requests))
|
(list python-oauthlib python-requests))
|
||||||
(home-page
|
(home-page "https://github.com/requests/requests-oauthlib")
|
||||||
"https://github.com/requests/requests-oauthlib")
|
(synopsis "OAuthlib authentication support for Requests")
|
||||||
(synopsis
|
|
||||||
"OAuthlib authentication support for Requests")
|
|
||||||
(description
|
(description
|
||||||
"Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
|
"Requests-OAuthlib uses the Python Requests and OAuthlib libraries to
|
||||||
provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
|
provide an easy-to-use Python interface for building OAuth1 and OAuth2 clients.")
|
||||||
|
|||||||
Reference in New Issue
Block a user