gnu: python-keyring: Update to 23.9.3.

* gnu/packages/python-crypto.scm (python-keyring): Update to 23.9.3.
[origin]: Fix indentation.
[build-system]: Use pyproject-build-system.
[test-flags]: New argument.
[phases]: Remove check phase.  Add workaround-test-failure phase.
[native-inputs]: Remove python-setuptools.
[propagated-inputs]: Add python-importlib-metadata and python-jaraco-classes.
This commit is contained in:
Maxim Cournoyer 2022-11-01 11:26:25 -04:00
parent e0b9cd7cc1
commit 0b709b1471
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -49,6 +49,7 @@
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix build-system cargo) #:use-module (guix build-system cargo)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python) #:use-module (guix build-system python)
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (gnu packages) #:use-module (gnu packages)
@ -326,29 +327,33 @@ do what is needed for client/server Kerberos authentication based on
(define-public python-keyring (define-public python-keyring
(package (package
(name "python-keyring") (name "python-keyring")
(version "22.0.1") (version "23.9.3")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "keyring" version)) (uri (pypi-uri "keyring" version))
(sha256 (sha256
(base32 (base32
"1pvqc6may03did0iz98gasg7cy4h8ljzs4ibh927bfzda8a3xjws")))) "19f4jpsxng9sjfqi8ww5hgg196r2zh1zb8g71wjr1xa27kc1vc39"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:test-flags '(list "-c" "/dev/null") ;avoid extra test dependencies
(replace 'check #:phases
(lambda* (#:key tests? #:allow-other-keys) #~(modify-phases %standard-phases
(when tests? (add-before 'check 'workaround-test-failure
(invoke "pytest" "-vv" "-c" "/dev/null" "tests"))))))) (lambda _
;; Workaround a failure in the test_entry_point test (see:
;; https://github.com/jaraco/keyring/issues/526).
(delete-file-recursively "keyring.egg-info"))))))
(native-inputs (native-inputs
(list python-toml (list python-toml
python-pytest python-pytest
python-setuptools
python-setuptools-scm)) python-setuptools-scm))
(propagated-inputs (propagated-inputs
(list python-secretstorage)) (list python-importlib-metadata
python-jaraco-classes
python-secretstorage))
(home-page "https://github.com/jaraco/keyring") (home-page "https://github.com/jaraco/keyring")
(synopsis "Store and access your passwords safely") (synopsis "Store and access your passwords safely")
(description (description