From c09bc113fe0a682a14e4c6db827f9c0ec0eb874f Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 19 Oct 2025 19:11:22 +0200 Subject: [PATCH] gnu: python-texttable: Switch to pyproject. * gnu/packages/python-xyz.scm (python-texttable): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Use <#:test-flags> rather than <#:phases>. [native-inputs]: Add python-setuptools. [synopsis, description]: Improve style. Change-Id: I4cbbf4c453c45365a869f53c59a0b19c6fb48f25 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5421006e40e2b47e46e96647169a055b20d0c524..1b4496b5b3c5371b367881478038764dfb89bd83 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -19817,23 +19817,20 @@ and dataclasses.") (version "1.6.4") (source (origin - (method url-fetch) - (uri (pypi-uri "texttable" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/foutaise/texttable/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1sbn821394rix6xgj3zqk743pj6nqm1qz81zgis2bcpp2ng7pvj2")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? (invoke "pytest" "-vv" "tests.py"))))))) - (native-inputs - (list python-pytest)) + (base32 "1lcn76wx6fsj8d79gs985irkqz5qbwq1v9ji9jxsra6dbb643v5j")))) + (build-system pyproject-build-system) + (arguments (list #:test-flags #~(list "tests.py"))) + (native-inputs (list python-pytest python-setuptools)) (home-page "https://github.com/foutaise/texttable/") - (synopsis "Python module for creating simple ASCII tables") - (description "Texttable is a Python module for creating simple ASCII + (synopsis "Create simple ASCII tables in Python") + (description + "This package provides a Python module for creating simple ASCII tables.") (license license:expat)))