From 947f2bf78233d4f8fb374099004b8cb819a06725 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 19 Oct 2025 19:38:43 +0200 Subject: [PATCH] gnu: python-progress: Switch to pyproject. * gnu/packages/python-xyz.scm (python-progress): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-backend, #:test-flags>: Set them. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: Ic1b2d829c77a60a90eb399160c144b515d047164 Signed-off-by: Sharlatan Hellseher --- 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 25e9e22ad9c4d583a1849a3b1365ec5617b2d03b..1223e453a6739ad606342bb8727a70e34e01fff6 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -20319,17 +20319,27 @@ in Python.") (version "1.6") (source (origin - (method url-fetch) - (uri (pypi-uri "progress" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/verigak/progress/") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "1k9lpb7lqr6mywpnqcz71y6qny54xlgprdp327za2gy0nnc6xj69")))) - (build-system python-build-system) - (home-page "http://github.com/verigak/progress/") + (base32 "0qz5b9d3cvfdy2f1gb4r20f1qgcsihhmbc2bm2jgbvryxylp0f5k")) + (snippet #~(delete-file "demo.gif")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-backend #~'custom + #:test-flags #~(list "test_progress.py"))) + (native-inputs (list python-setuptools)) + (home-page "https://github.com/verigak/progress/") (synopsis "Progress reporting bars for Python") - (description "This Python package provides progress reporting for visual -of progress of long running operations. There are multiple choices of -progress bars and spinners, with customizable options, such as width, fill -character, and suffix.") + (description + "This Python package provides progress reporting for visual of progress +of long running operations. There are multiple choices of progress bars and +spinners, with customizable options, such as width, fill character, and +suffix.") (license license:isc))) (define-public python-progressbar2