rekado pushed a commit to branch python-team in repository guix. commit 1f887e06a68e82d93f89e305f3de260653047f81 Author: Sharlatan Hellseher <sharlata...@gmail.com> AuthorDate: Tue Dec 17 20:33:50 2024 +0000
gnu: linkchecker: Update to 10.5.0. * gnu/packages/web.scm (linkchecker): Update to 10.5.0. Improve package style. Fix bulid. [build-system]: Swap to pyproject-build-system. [arguments]<test-flags>: Skip 2 tests. <phases>: Add 'set-version. Use default 'check. [inputs]: Remove python-pyxdg. [native-inputs]: Remove lables. Remove gettext-minimal, python-miniboa, and python-parameterized; add python-hatch-vcs, python-hatchling, and python-setuptools-scm. Change-Id: I2292be0305e8ad3991680ced6b154c48571e3efc --- gnu/packages/web.scm | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index ef3f4ebccd..18c94187c7 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -7328,7 +7328,7 @@ Instagram and YouTube.") (define-public linkchecker (package (name "linkchecker") - (version "10.0.1") + (version "10.5.0") (source (origin (method git-fetch) @@ -7337,24 +7337,31 @@ Instagram and YouTube.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 - "1j97dc9a4yhpscwadhv5dxp7036pnrxiaky18l8ddr3pvxdjvkxs")))) - (build-system python-build-system) + (base32 "19giahk5bs2r2ay54cc6b2ba5hr3lszn5a89m7zmwb0bk9655z56")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list + ;; OSError: Command ... '-m', 'linkcheck', '-V']' returned non-zero + ;; exit status 2. + "--deselect=tests/test_linkchecker.py::TestLinkchecker::test_linkchecker" + ;; FileNotFoundError: [Errno 2] No such file or directory: 'msgfmt' + "--deselect=tests/test_po.py::TestPo::test_pos") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) + (native-inputs + (list python-hatch-vcs + python-hatchling + python-pytest + python-setuptools-scm)) (inputs - (list python-beautifulsoup4 python-dnspython python-pyxdg + (list python-beautifulsoup4 + python-dnspython python-requests)) - (native-inputs - `(("gettext" ,gettext-minimal) - ("python-pytest" ,python-pytest) - ("python-miniboa" ,python-miniboa) - ("python-parameterized" ,python-parameterized))) - (arguments - `(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - (invoke "py.test" "tests"))))))) (home-page "https://linkchecker.github.io/linkchecker/") (synopsis "Check websites for broken links") (description "LinkChecker is a website validator. It checks for broken