From patchwork Fri Apr 28 05:52:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kehayias X-Patchwork-Id: 49639 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8D7CA27BBEA; Fri, 28 Apr 2023 06:53:52 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 74A2627BBE2 for ; Fri, 28 Apr 2023 06:53:51 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psH2X-0006c7-I6; Fri, 28 Apr 2023 01:53:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psH2V-0006bY-Oo for guix-patches@gnu.org; Fri, 28 Apr 2023 01:53:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psH2V-0003Oo-Fn for guix-patches@gnu.org; Fri, 28 Apr 2023 01:53:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psH2V-0006hk-Al for guix-patches@gnu.org; Fri, 28 Apr 2023 01:53:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63139] [PATCH python 20/20] gnu: python-yubikey-manager: Update to 5.1.0 and enable tests. Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Apr 2023 05:53:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63139 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63139@debbugs.gnu.org Cc: John Kehayias Received: via spool by 63139-submit@debbugs.gnu.org id=B63139.168266115225701 (code B ref 63139); Fri, 28 Apr 2023 05:53:03 +0000 Received: (at 63139) by debbugs.gnu.org; 28 Apr 2023 05:52:32 +0000 Received: from localhost ([127.0.0.1]:60341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psH1z-0006gT-UZ for submit@debbugs.gnu.org; Fri, 28 Apr 2023 01:52:32 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:29739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psH1x-0006gE-HW for 63139@debbugs.gnu.org; Fri, 28 Apr 2023 01:52:30 -0400 Date: Fri, 28 Apr 2023 05:52:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1682661143; x=1682920343; bh=Scg5KNV0At+RGxbvFhgO2vmhXbGYwQqavB6pt4eEEuI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=K1hxcpczPFhMsgwp7JIgFZIWshMDhppT39vbDAPtuCcrYJqe20jcBIo32hROE6kfq VoUuBCmenzGri0jmGUwXXMmW9QRDlk+yI7kJvgOBlBqbGNb5bFCe8CCVIUlDBVJdJS BVgKPIRQuXd3Vt9yQVKOVDzUHBZfkEbozlrinev3huHPdB4El4x+163zpXhOh/3Agh HRn653VgreZHsIpoNGbF8fguZRaZzIrlj7JlbiLtpqWfvRS0CjreWdoT+4d16aIwTW 4E1Mh34Eoq1k4oue2itYfPtJdT+DxaumFK75a4H8vMQ9Lc3S6/fSP6GfaW0mQ54CJS Q6axkWLPAHVeA== Message-ID: <3909e79c0384e2c8f8bd330a0bb871f9d9d79833.1682660105.git.john.kehayias@protonmail.com> In-Reply-To: References: Feedback-ID: 7805494:user:proton MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches X-Patchwork-Original-From: John Kehayias via Guix-patches via From: John Kehayias Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/security-token.scm (python-yubikey-manager): Update to 5.1.0. [source]: Update url. [build-system]: Switch to pyproject-build-system. [arguments]: Enable tests. {phases}: Add a 'fix-piv-commands' phase to avoid an infinite loop in tests. [propagated-inputs]: Add python-keyring. Reorder alphabetically. [native-inputs]: Remove python-mock. Add python-makefun, python-poetry-core, and python-pytest. Reorder alphabetically. --- gnu/packages/security-token.scm | 35 ++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 14 deletions(-) -- 2.39.2 diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index ad772ef292..7db9fc9b61 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -741,33 +741,40 @@ (define-public python-fido2 (define-public python-yubikey-manager (package (name "python-yubikey-manager") - (version "4.0.7") + (version "5.1.0") (source (origin (method url-fetch) (uri (string-append "https://developers.yubico.com/yubikey-manager/Releases" - "/yubikey-manager-" version ".tar.gz")) + "/yubikey_manager-" version ".tar.gz")) (sha256 (base32 - "0kzwal7i4kyywm4f5zh8b823mh0ih2nsh5c0c4dfn4vw3j5dnwlr")))) - (build-system python-build-system) + "0wxi3rms9d5f7p4zl1na4412dirp1g2gd5wkgi6zs4g5hagzqgnk")))) + (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 + ;; Avoid an infinite loop with Python < 3.11 which causes tests + ;; to fail. See upstream bug report and fix at + ;; . + ;; TODO: Remove in next release. + (add-after 'unpack 'fix-piv-commands + (lambda* _ + (substitute* "yubikit/piv.py" + (("self:02X") "int(self):02X"))))))) (propagated-inputs - (list python-six - python-pyscard - python-pyusb - python-click + (list python-click python-cryptography + python-fido2 + python-keyring python-pyopenssl - python-fido2)) + python-pyscard + python-pyusb + python-six)) (inputs (list pcsc-lite)) (native-inputs - (list swig python-mock)) + (list python-makefun python-poetry-core python-pytest swig)) (home-page "https://developers.yubico.com/yubikey-manager/") (synopsis "Command line tool and library for configuring a YubiKey") (description