me
/
guix
Archived
1
0
Fork 0

gnu: python-fido2: Update to 1.1.1.

* gnu/packages/security-tokens.scm (python-fido2): Update to 1.1.1.
[build-system]: Switch to pyproject-build-system.
[arguments]: Enable tests.  Use gexps in phases.
[propagated-inputs]: Remove python-six.  Add python-pyscard.
[native-inputs]: Remove python-mock and python-pyfakefs.  Add
python-poetry-core and python-pytest.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
John Kehayias 2023-07-14 12:13:53 -04:00
parent 221806905b
commit 66f0304e1d
No known key found for this signature in database
GPG Key ID: 499097AE5EA815D9
1 changed files with 21 additions and 20 deletions

View File

@ -49,6 +49,7 @@
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
@ -81,6 +82,7 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages swig)
@ -682,7 +684,7 @@ your existing infrastructure.")
(define-public python-fido2
(package
(name "python-fido2")
(version "0.9.3")
(version "1.1.1")
(source (origin
(method url-fetch)
(uri
@ -691,31 +693,30 @@ your existing infrastructure.")
version "/fido2-" version ".tar.gz"))
(sha256
(base32
"1v366h449f8q74jkmy1291ffj2345nm7cdsipgqvgz4w22k8jpml"))
"1hwz0xagkmy6hhcyfl66dxf2vfa69lqqqjrv70vw7harik59bi2x"))
(snippet
;; Remove bundled dependency.
'(delete-file "fido2/public_suffix_list.dat"))))
(build-system python-build-system)
(build-system pyproject-build-system)
(arguments
`(;; This attempts to access
;; /System/Library/Frameworks/IOKit.framework/IOKit
;; The recommendation is to use tox for testing.
#:tests? #false
(list
#:phases
(modify-phases %standard-phases
#~(modify-phases %standard-phases
(add-after 'unpack 'install-public-suffix-list
(lambda* (#:key inputs #:allow-other-keys)
(copy-file
(search-input-file inputs
(string-append
"/share/public-suffix-list-"
,(package-version public-suffix-list)
#$(package-version public-suffix-list)
"/public_suffix_list.dat"))
"fido2/public_suffix_list.dat"))))))
(propagated-inputs
(list python-cryptography python-six))
(list python-cryptography python-pyscard))
(native-inputs
(list python-mock python-pyfakefs public-suffix-list))
(list python-poetry-core
python-pytest
public-suffix-list))
(home-page "https://github.com/Yubico/python-fido2")
(synopsis "Python library for communicating with FIDO devices over USB")
(description