Subject: bug#76320: closed ([PATCH] gnu: python-awesomeversion: Set version.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 17 Feb 2025 15:27:02 +0000

Your bug report

#76320: [PATCH] gnu: python-awesomeversion: Set version.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
76320: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76320
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: [PATCH] gnu: python-awesomeversion: Set version.
From: Sharlatan Hellseher <[email-masked]>
To: [email-masked]
Date: Mon, 17 Feb 2025 15:26:41 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Pushed to master as 7eaf64acddc7f1ae0738e7779312c2abc6fbfd38.

---
Oleg

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