guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#77575] [PATCH 15/21] gnu: python-ledgerblue: Fix version detection.


From: Nicolas Graves
Subject: [bug#77575] [PATCH 15/21] gnu: python-ledgerblue: Fix version detection.
Date: Sun, 6 Apr 2025 14:37:17 +0200

* 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]