rekado pushed a commit to branch master
in repository guix.

commit 1b6f4640277a97936271dda9b1430e0a78cb9478
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Jan 14 08:54:10 2025 +0000

    gnu: python-leather: Update to 0.4.0.
    
    * gnu/packages/wireservice.scm: Add pyproject, gexp and python-build.
    (python-leather): Update to 0.4.0.
    [build-system]: Swap to pyproject-build-system.
    [arguments] <phases>: Use default 'check. Remove 'install-docs.
    [native-inputs]: Remove python-nose, python-sphinx, and
    python-sphinx-rtd-theme. Add python-pytest, python-setuptools,
    python-wheel. Remove labels.
    [propagated-inputs]: Remove python-six.
    
    Change-Id: I1ab2e0042431c2af231193978d9cb03e78afd2d1
---
 gnu/packages/wireservice.scm | 56 +++++++++++++++++++++++++-------------------
 1 file changed, 32 insertions(+), 24 deletions(-)

diff --git a/gnu/packages/wireservice.scm b/gnu/packages/wireservice.scm
index a5bf702c92..9e6f7996c3 100644
--- a/gnu/packages/wireservice.scm
+++ b/gnu/packages/wireservice.scm
@@ -21,14 +21,17 @@
 
 (define-module (gnu packages wireservice)
   #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix build-system pyproject)
   #:use-module (guix build-system python)
   #:use-module (guix download)
+  #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module (guix packages)
   #:use-module (gnu packages)
   #:use-module (gnu packages base)
   #:use-module (gnu packages check)
   #:use-module (gnu packages databases)
+  #:use-module (gnu packages python-build)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages sphinx)
@@ -64,30 +67,35 @@
     extra-fields ...))
 
 (define-public python-leather
-  (wireservice-package
-   (name "python-leather")
-   (version "0.3.4")
-   (source (origin
-             (method git-fetch)
-             (uri (git-reference
-                   (url "https://github.com/wireservice/leather";)
-                   (commit version)))
-             (file-name (git-file-name name version))
-             (sha256
-              (base32
-               "00cg4cidl15q1xv2pmxdkia5brig7x0xy9hwf2mlf9cq39bpj1w6"))))
-   (native-inputs
-    `(("python-nose" ,python-nose)
-      ("python-sphinx" ,python-sphinx)
-      ("python-sphinx-rtd-theme" ,python-sphinx-rtd-theme)
-      ("python-csselect" ,python-cssselect)
-      ("python-lxml" ,python-lxml)))
-   (propagated-inputs
-    `(("python-six" ,python-six)))
-   (home-page "https://leather.rtfd.org";)
-   (synopsis "Python charting for 80% of humans")
-   (description "Leather is a Python charting library for those who need
-charts now and don't care if they're perfect.")))
+  (package
+    (name "python-leather")
+    (version "0.4.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/wireservice/leather";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "193hchrcrh5zyj0xlfs839h25jwzxvzjpbniqjd18mgnip5mk0zn"))))
+    (build-system pyproject-build-system)
+    ;; XXX: Documentation requires <https://github.com/pradyunsg/furo> which
+    ;; is not packaged yet and depends on some missing Node.js packages
+    (native-inputs
+     (list python-cssselect
+           python-lxml
+           python-pytest
+           python-setuptools
+           python-sphinx
+           python-sphinx-design
+           python-wheel))
+    (home-page "https://leather.rtfd.org";)
+    (synopsis "Python charting for 80% of humans")
+    (description
+     "Leather is a Python charting library for those who need charts now and
+don't care if they're perfect.")
+    (license license:expat)))
 
 (define python-agate-locales
   (make-glibc-utf8-locales

Reply via email to