From 0e9b77d8d08e0270f372f122a6e26d2a95c249c0 Mon Sep 17 00:00:00 2001 From: Dhruvin Gandhi Date: Sat, 3 Jul 2021 10:02:17 +0530 Subject: gnu: python-yubikey-manager: Fix libykpers reference. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/security-token.scm (python-yubikey-manager): Fix libykpers reference. Signed-off-by: Ludovic Courtès --- gnu/packages/security-token.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/security-token.scm b/gnu/packages/security-token.scm index f8c9661df1..1f60e25458 100644 --- a/gnu/packages/security-token.scm +++ b/gnu/packages/security-token.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2020 Raphaël Mélotte ;;; Copyright © 2021 Antero Mejr ;;; Copyright © 2021 Sergey Trofimov +;;; Copyright © 2021 Dhruvin Gandhi ;;; ;;; This file is part of GNU Guix. ;;; @@ -657,6 +658,23 @@ implementing a Relying Party.") (base32 "11rsmcaj60k3y5m5gdhr2nbbz0w5dm3m04klyxz0fh5hnpcmr7fm")))) (build-system python-build-system) + (arguments + '(#:modules ((srfi srfi-1) + (guix build utils) + (guix build python-build-system)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-libykpers-reference + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "ykman/driver_otp.py" + (("Ykpers\\('ykpers-1', '1'\\)") + (string-append + "Ykpers('" + (find (negate symbolic-link?) + (find-files (assoc-ref inputs "yubikey-personalization") + "^libykpers-.*\\.so\\..*")) + "')"))) + #t))))) (propagated-inputs `(("python-six" ,python-six) ("python-pyscard" ,python-pyscard) -- cgit v1.2.3