aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-04-06 14:37:17 +0200
committerAndreas Enge <andreas@enge.fr>2025-04-16 11:46:31 +0200
commitde25335437d37b4f8e6d95b0a5dc927e53c22f09 (patch)
tree8ec9d4366e657c6a93bd0e9cb6d26191c4bed297
parent7de2ae6945ad7860f9b46c522b945c965bd58cbe (diff)
downloadguix-de25335437d37b4f8e6d95b0a5dc927e53c22f09.tar.gz
guix-de25335437d37b4f8e6d95b0a5dc927e53c22f09.zip
gnu: python-ledgerblue: Fix version detection.
* gnu/packages/finance.scm (python-ledgerblue): Fix version detection. [arguments]{phases}: Add 'pretend-version phase. [native-inputs]: Add python-setuptools-scm. Change-Id: Ib62881b490557b838a74ce35d5557afc97c9a9bc Signed-off-by: Steve George <steve@futurile.net>
-rw-r--r--gnu/packages/finance.scm52
1 files changed, 28 insertions, 24 deletions
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 2f9ac2f59b..7157d8ab36 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1067,32 +1067,36 @@ of Bitcoin BIP-0039.")
(name "python-ledgerblue")
(version "0.1.54")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "ledgerblue" version))
- (sha256
- (base32
- "0ghpvxgih1zarp788qi1xh5xmprv6yhaxglfbix4974i7r4pszqy"))))
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "ledgerblue" version))
+ (sha256
+ (base32 "0ghpvxgih1zarp788qi1xh5xmprv6yhaxglfbix4974i7r4pszqy"))))
(build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ; no tests
- (native-inputs
- (list python-setuptools python-wheel))
- (propagated-inputs
- (list python-bleak
- python-pyelftools
- python-pycryptodome
- python-ecpy
- python-future
- python-gnupg
- python-hidapi
- python-nfcpy
- python-pillow
- python-protobuf
- python-pycryptodomex
- python-pyscard
- python-u2flib-host
- python-websocket-client))
+ (list
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'pretend-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION"
+ #$version))))))
+ (native-inputs (list python-setuptools python-setuptools-scm python-wheel))
+ (propagated-inputs (list python-bleak
+ python-pyelftools
+ python-pycryptodome
+ python-ecpy
+ python-future
+ python-gnupg
+ python-hidapi
+ python-nfcpy
+ python-pillow
+ python-protobuf
+ python-pycryptodomex
+ python-pyscard
+ python-u2flib-host
+ python-websocket-client))
(home-page "https://github.com/LedgerHQ/blue-loader-python")
(synopsis "Python library to communicate with Ledger Blue/Nano S")
(description "@code{ledgerblue} is a Python library to communicate with