guix-commits
[Top][All Lists]
Advanced

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

11/12: gnu: python-prettytable: Update to 3.3.0.


From: guix-commits
Subject: 11/12: gnu: python-prettytable: Update to 3.3.0.
Date: Tue, 21 Jun 2022 11:43:12 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit d29b206ef14af88b1996429392d84783ba012841
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Jun 21 15:33:34 2022 +0200

    gnu: python-prettytable: Update to 3.3.0.
    
    * gnu/packages/python-xyz.scm (python-prettytable): Update to 3.3.0.
    [arguments]: New field.  Override check phase.
    [native-inputs]: Add PYTHON-PYTEST, PYTHON-PYTEST-LAZY-FIXTURE, and
    PYTHON-SETUPTOOLS-SCM.
    [propagated-inputs]: Add PYTHON-WCWIDTH.
    [home-page]: Update to current.
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a07e130e8a..194b342ee6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11542,16 +11542,28 @@ functional languages.")
 (define-public python-prettytable
   (package
     (name "python-prettytable")
-    (version "0.7.2")
+    (version "3.3.0")
     (source
      (origin
        (method url-fetch)
-       (uri (pypi-uri "prettytable" version ".tar.bz2"))
+       (uri (pypi-uri "prettytable" version))
        (sha256
         (base32
-         "0diwsicwmiq2cpzpxri7cyl5fmsvicafw6nfqf6p6p322dji2g45"))))
+         "1c599w31i2ndzbkn85xwsgv9sd2j16r56dl922w4jh3rs97vb3hi"))))
     (build-system python-build-system)
-    (home-page "https://code.google.com/archive/p/prettytable/";)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (replace 'check
+                 (lambda* (#:key tests? #:allow-other-keys)
+                   (when tests?
+                     (invoke "pytest" "-vv")))))))
+    (native-inputs
+     (list python-pytest
+           python-pytest-lazy-fixture
+           python-setuptools-scm))
+    (propagated-inputs (list python-wcwidth))
+    (home-page "https://github.com/jazzband/prettytable";)
     (synopsis "Display tabular data in an ASCII table format")
     (description
       "A library designed to represent tabular data in visually appealing ASCII



reply via email to

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