From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OJ08DKRpS2Q3sgAASxT56A (envelope-from ) for ; Fri, 28 Apr 2023 08:37:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YHoeDKRpS2TbgAEA9RJhRA (envelope-from ) for ; Fri, 28 Apr 2023 08:37:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E6C5EF8CD for ; Fri, 28 Apr 2023 08:37:23 +0200 (CEST) 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 From: John Kehayias via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682663844; a=rsa-sha256; cv=none; b=bGkZLVPmtRKCbBGbxyzfXzFr3KMglIW/SGmh2+/klmwJRiglxm+jq7nabrW8m0sc4mZhDI tGCSZLd0UR1io5I9v9qRdjTv+Iqm643SlZSk64YmUg3MIIhxEaV+4b79OcDH4LHoKx4B/5 wKu6LJ6CMckpO0DEbfK/7oNp14h/rGZ+fxIw/vHnezeRuJBKr7sQgpG56hg/a2h8cNzEY/ r0SmEWeTqoHc+lEkCHl1LFdI3IMLx0M7DrV1s+MgHhfRjRXxwz15/ANLR6P4sxcMW524f1 YP1n3RRIVRp6j9ufOtoUph4jy+dnCQAbtVzunFzShHCL9X6q5QTxzcV7/BcaXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=K1hxcpcz; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682663843; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Scg5KNV0At+RGxbvFhgO2vmhXbGYwQqavB6pt4eEEuI=; b=cHyCMTbnhF5hBfySJUzXa6QUcYwvAfwZzpyCy/VlJwa7/dLGjzwPKOJO7iLNI7Bg3tamDc oTPNHnui4KbqJ1Zzx2bV7QLqz/UYTTmnHT2PVeHEeRwNkFHVRxdPgSgvqABXwYjssqlPuo LdMpcYeFXmBEI2WsD7+Kvko1nEBusvvpGG44PazfTk4J1+jumzrGna0vpgBM7FeTSBHc32 K+63VXnLop238uPu/1yIs59dBiLD3uRgAgeqrmVr9bIqNSDGK5Rxk6XBDIZnQ+0geCRDLd aAdm5cOMN0r2zJXJTP9YOKUw3vfZPUeI7+asq16aXhrUYg7wyJ7gSqNElK3jGg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=K1hxcpcz; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.20 X-Spam-Score: -2.20 X-Migadu-Queue-Id: E6C5EF8CD X-TUID: sR84xIR/oRP0 * 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(-) 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/Release= s" - "/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 t= ests + ;; 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 -- 2.39.2