guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 5b31003983a230741d12da2e30e6c57b06d5faa5
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Sun Jul 20 23:03:39 2025 +0100

    gnu: python-smart-open: Set version.
    
    * gnu/packages/python-web.scm (python-smart-open):
      [arguments] <phases>: Add 'set-version.
      [native-inputs]: Add python-setuptools-scm.
    
    Change-Id: I724175db61c9438f14e11c4ced53a777a567f2dc
---
 gnu/packages/python-web.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 72a85100c7..7702c56eab 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -10201,7 +10201,12 @@ library for Python.")
               
"--deselect=tests/test_smart_open.py::ParseUriTest::test_gs_uri_contains_question_mark"
               
"--deselect=tests/test_smart_open.py::ParseUriTest::test_gs_uri_contains_slash"
               "--deselect=tests/test_smart_open.py::ParseUriTest::test_scheme"
-              "--ignore=tests/test_gcs.py")))
+              "--ignore=tests/test_gcs.py")
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-before 'build 'set-version
+              (lambda _
+                (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
     (propagated-inputs
      (list python-azure-common
            python-azure-core
@@ -10219,6 +10224,7 @@ library for Python.")
            python-pytest-rerunfailures
            python-responses
            python-setuptools
+           python-setuptools-scm
            python-wheel))
     (home-page "https://github.com/piskvorky/smart_open";)
     (synopsis "Utilities for streaming large files")

Reply via email to