Subject: [PATCH] gnu: python-awesomeversion: Set version.
From: Evgeny Pisemsky <[email-masked]>
To: [email-masked]
Date: Sun, 16 Feb 2025 07:53:48 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/python-xyz.scm (python-awesomeversion): Set version.
[source]: Set actual version in pyproject.toml file.

Change-Id: Ib0625d3094989d65f0031c002ae7ef3f531c0b56
---
 gnu/packages/python-xyz.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bb0ab777d5..236e39cf34 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -445,7 +445,11 @@ (define-public python-awesomeversion
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1kvzhhd2ah0sadlsp5xs3qbiknixq4xwhk3yb6kmhcdl2zcbi4cn"))))
+        (base32 "1kvzhhd2ah0sadlsp5xs3qbiknixq4xwhk3yb6kmhcdl2zcbi4cn"))
+       (modules '((guix build utils)))
+       (snippet #~(substitute* "pyproject.toml"
+                    (("version = \"0\"")
+                     (format #f "version = \"~a\"" #$version))))))
     (build-system pyproject-build-system)
     (native-inputs
      (list python-poetry-core

base-commit: 696f2acbc7ba0ab7874d7ee4766135b623f88424
-- 
2.48.1