guix-commits
[Top][All Lists]
Advanced

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

16/23: gnu: python-progressbar2: Update to 4.5.0.


From: guix-commits
Subject: 16/23: gnu: python-progressbar2: Update to 4.5.0.
Date: Sun, 1 Dec 2024 19:48:44 -0500 (EST)

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

commit 281a21a48c828a64bd8dd0f5478ad2ef688e94c9
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Dec 1 20:41:42 2024 +0000

    gnu: python-progressbar2: Update to 4.5.0.
    
    * gnu/packages/python-xyz.scm (python-progressbar2): Update to 4.5.0.
    [build-system]: Swap to pyproject-build-system.
    [argumetns]<test-flags>: Add bare minimal tests options to make them work.
    <phases>: Add 'fix-pytest-config.
    [propagated-inputs]: Remove python-six.
    [native-inputs]: Remove python-flake8, python-pycodestyle,
    python-pytest-cache, python-pytest-cov, python-pytest-flakes,
    python-pytest-pep8, and python-sphinx; add python-dill,
    python-setuptools, python-setuptools-scm, and python-wheel.
    
    Change-Id: Ia0771e92753f991471e63d7270803ca885382917
---
 gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++--------------
 1 file changed, 20 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a164e9b563..38b0b1e979 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19412,27 +19412,33 @@ character, and suffix.")
 (define-public python-progressbar2
   (package
     (name "python-progressbar2")
-    (version "3.51.3")
+    (version "4.5.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "progressbar2" version))
        (sha256
-        (base32
-         "0b2v3mim90rmfvixkaniz2qrs650sk230rzgd5zhcjfldmlqgxpc"))))
-    (build-system python-build-system)
-    (propagated-inputs
-     (list python-six python-utils))
+        (base32 "1yw8j3sz9y3nw2x1ffiqqzml8l9vb0kixxnsjkmk3vc691icnqk6"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags #~(list "--pyargs" "progressbar" "tests")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'fix-pytest-config
+            (lambda _
+              ;; Drop test coverage requirements.
+              (substitute* "pytest.ini"
+                ((".*-cov.*") "")))))))
     (native-inputs
-     (list python-flake8
-           python-freezegun
-           python-pycodestyle
+     (list python-dill
            python-pytest
-           python-pytest-cache
-           python-pytest-cov
-           python-pytest-flakes
-           python-pytest-pep8
-           python-sphinx))
+           python-freezegun
+           python-setuptools
+           python-setuptools-scm
+           python-wheel))
+    (propagated-inputs
+     (list python-utils))
     (home-page "https://github.com/WoLpH/python-progressbar";)
     (synopsis "Text progress bar library for Python")
     (description



reply via email to

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