diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-05 13:47:18 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-05 17:09:12 +0100 |
| commit | 7909a4f8728ddb5a3b021ea9b7ad5ebe5f8fc381 (patch) | |
| tree | 2a1cfe02eb1bfb4288dfe30c155d7ccb7915733a /gnu/packages/python-xyz.scm | |
| parent | 129fc488342d6cb12f82acfa2df96e29f970e1cf (diff) | |
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 25 |
1 files 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") |
