guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 7909a4f8728ddb5a3b021ea9b7ad5ebe5f8fc381
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 5 13:47:18 2025 +0200
gnu: python-pyfavicon: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-pyfavicon):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-backend, #:test-flags>: Configure tests.
[native-inputs]: Add python-setuptools.
Change-Id: I358e4317f0a58d88bfdd95462256ba6c2aaacbef
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 25 ++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 22df974a65..868743d8cb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -28315,15 +28315,26 @@ user's @file{~/Trash} directory.")
(version "0.1.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pyfavicon" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/bilelmoussaoui/pyfavicon")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "15wfpa99hvcfsv8j0m8iprmydi2p4qkhm86qfx485244y0ia5mgx"))))
- (build-system python-build-system)
+ (base32 "04mx8vbi6j9l8daqa18sv0kkcyqv4wbc9z4ma77w68baq6ss0jzf"))))
+ (build-system pyproject-build-system)
(arguments
- ;; There are no tests in the PyPI tarball and the tests from the
- ;; repository require online data.
- '(#:tests? #f))
+ (list
+ #:test-backend #~'unittest
+ #:test-flags
+ #~(list "-k" (string-join (list
+ ;; Socket name resolution fails.
+ "not test_url_icon_link_type"
+ "test_icon_sizes"
+ ;; Tuples differ.
+ "test_largest_icon")
+ " and not "))))
+ (native-inputs (list python-setuptools))
(propagated-inputs
(list python-aiohttp python-beautifulsoup4 python-pillow))
(home-page "https://github.com/bilelmoussaoui/pyfavicon")