GNU bug report logs -
#77575
[PATCH python-team 00/21] More patches
Previous Next
Reported by: Nicolas Graves <ngraves <at> ngraves.fr>
Date: Sun, 6 Apr 2025 12:34:02 UTC
Severity: normal
Tags: patch
Done: Andreas Enge <andreas <at> enge.fr>
Bug is archived. No further changes may be made.
Full log
Message #50 received at 77575 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/finance.scm (python-ledgerblue): Fix version detection.
[arguments]{phases}: Add 'pretend-version phase.
[native-inputs]: Add python-setuptools-scm.
---
gnu/packages/finance.scm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 680ebe467c..f7e7ca1fff 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1065,9 +1065,14 @@ (define-public python-ledgerblue
"0ghpvxgih1zarp788qi1xh5xmprv6yhaxglfbix4974i7r4pszqy"))))
(build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ; no tests
+ (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-wheel))
+ (list python-setuptools python-setuptools-scm python-wheel))
(propagated-inputs
(list python-bleak
python-pyelftools
--
2.49.0
This bug report was last modified 42 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.