guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 2bd64e9a94d4d9a71fd06df40d9ccfed9910fd1b
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Oct 4 00:57:27 2025 +0200

    gnu: python-clyent: Update to 1.2.2.
    
    * gnu/packages/python-xyz.scm (python-clyent): Update to 1.2.2.
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:test-backend>: Set it.
    <phases>: Add versioneer.
    [native-inputs]: Add python-setuptools, python-versioneer.
    [description]: Improve style.
    
    Change-Id: I5d305bb058fdc927092ee81c7f8553584a4cce6a
    Modified-by: Sharlatan Hellseher <[email protected]>
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 36 +++++++++++++++++++++++++++---------
 1 file changed, 27 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a319fdacca..739641524e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4596,21 +4596,39 @@ and function call return values in a human-readable 
way.")
 (define-public python-clyent
   (package
     (name "python-clyent")
-    (version "1.2.1")
+    (version "1.2.2")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "clyent" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/Anaconda-Platform/clyent";)
+              (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32
-         "1r9987qmy1pz3hq54160bapqsywpq14waw4w9x3ly8hmq7kpgfbj"))))
-    (build-system python-build-system)
+        (base32 "0vi9nkd4hnvycwwpz9xip1drc5zn7bdwff1pz3azmyvh8v4hsias"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-backend #~'unittest
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; Replace version manually because clyent uses
+          ;; versioneer, which requires git metadata.
+          (add-after 'unpack 'versioneer
+            (lambda _
+              (invoke "versioneer" "install")
+              (substitute* "setup.py"
+                (("version=versioneer.get_version\\(),")
+                 (string-append "version='" #$version "',"))))))))
     (native-inputs
-     (list python-mock))
+     (list python-mock
+           python-setuptools
+           python-versioneer))
     (home-page "https://github.com/Anaconda-Platform/clyent";)
     (synopsis "Command line client library")
-    (description "Clyent is a Python command line utility library.  It is used
-by @code{binstar}, @code{binstar-build}, and @code{chalmers}.")
+    (description
+     "Clyent is a Python command line utility library.  It is used by
+@code{binstar}, @code{binstar-build}, and @code{chalmers}.")
     (license license:bsd-3)))
 
 (define-public python-babel

Reply via email to