guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 395264ac6b8b8d1911c5c5622e37b9aec13b956d
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Jul 25 10:34:01 2025 +0100

    gnu: python-logical-unification: Set version manually.
    
    * gnu/packages/python-xyz.scm (python-logical-unification):
      [arguments] <phases>: Add 'versioneer.
      [native-inputs]: Add python-versioneer.
    
    Change-Id: Id8cce49a53409d5ad1a4834a7c641e47bfcfd97a
---
 gnu/packages/python-xyz.scm | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 51447aae61..daacccab6b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -36486,11 +36486,25 @@ needed and registers the function with its 
annotations.")
        (sha256
         (base32 "1kvhvf1p9a5733pqb15k4fhwrfnj5ijsv6yn92mxzaa0zh89z7g3"))))
     (build-system pyproject-build-system)
-    (native-inputs (list python-pytest
-                         python-pytest-benchmark
-                         python-setuptools
-                         python-wheel))
-    (propagated-inputs (list python-multipledispatch python-toolz))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'versioneer
+            (lambda _
+              (invoke "versioneer" "install")
+              (substitute* "setup.py"
+                (("version=versioneer.get_version\\(),")
+                 (format #f "version=~s," #$version))))))))
+    (native-inputs
+     (list python-pytest
+           python-pytest-benchmark
+           python-setuptools
+           python-versioneer
+           python-wheel))
+    (propagated-inputs
+     (list python-multipledispatch
+           python-toolz))
     (home-page "https://github.com/pythological/unification/";)
     (synopsis "Logical unification in Python for solving symbolic expressions")
     (description "This library provides algorithms and data types for solving

Reply via email to