guix_mirror_bot pushed a commit to branch master
in repository guix.
commit c09bc113fe0a682a14e4c6db827f9c0ec0eb874f
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 19 19:11:22 2025 +0200
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 <[email protected]>
---
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 5421006e40..1b4496b5b3 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)))