guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

469/474: gnu: python-cwcwidth: Update to 0.1.9.


From: guix-commits
Subject: 469/474: gnu: python-cwcwidth: Update to 0.1.9.
Date: Sat, 30 Nov 2024 18:21:19 -0500 (EST)

sharlatan pushed a commit to branch python-team
in repository guix.

commit ab2eb3eaf074c318cfbbf73c2a06ffd0e3f609ea
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Nov 29 15:59:04 2024 +0000

    gnu: python-cwcwidth: Update to 0.1.9.
    
    * gnu/packages/python-xyz.scm (python-cwcwidth): Update to 0.1.9.
    Improve style.
    [build-system]: Swap to pyproject-build-system.
    [arguments]<phases>: Add 'build-extensions.
    [native-inputs]: Add python-setuptools.
    
    Change-Id: Ifccd290dbcb1655eb8b78956187602d774cf7927
---
 gnu/packages/python-xyz.scm | 28 +++++++++++++++++++---------
 1 file changed, 19 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 89950ce587..6df09c5754 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -35599,23 +35599,33 @@ Generalized Mark-up Language}.")
 (define-public python-cwcwidth
   (package
     (name "python-cwcwidth")
-    (version "0.1.4")
+    (version "0.1.9")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "cwcwidth" version))
        (sha256
-        (base32
-         "1azrphpkcyggg38xvkfb9dpc4xmmm90p02kf8dkqd4d6j5w96aj8"))))
-    (build-system python-build-system)
+        (base32 "1f3nvc4f2icg0c285bl6l4ak9km8pj9nxjb4s2n8qjld2jh137gi"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'build-extensions
+            (lambda _
+              (invoke "python" "setup.py" "build_ext" "--inplace"))))))
     (native-inputs
-     (list python-cython python-pytest python-setuptools-scm python-toml
+     (list python-cython
+           python-pytest
+           python-setuptools
+           python-setuptools-scm
+           python-toml
            python-wheel))
-    (home-page
-     "https://github.com/sebastinas/cwcwidth";)
+    (home-page "https://github.com/sebastinas/cwcwidth";)
     (synopsis "Python bindings for wc(s)width")
-    (description "This package provides bindings for wcwidth and wcswidth
-functions defined in POSIX.1-2001 and POSIX.1-2008.")
+    (description
+     "This package provides bindings for wcwidth and wcswidth functions
+defined in POSIX.1-2001 and POSIX.1-2008.")
     (license license:expat)))
 
 (define-public python-pyan3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]