aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-12-17 20:33:50 +0000
committerRicardo Wurmus <rekado@elephly.net>2025-01-20 21:37:24 +0100
commit6be739763cd66ac7fe5190f11f5d2a34d019c0b7 (patch)
treeb3dac8ca49ad388517eb04e65a5848c6cf61a9cb
parent908b9b27e5b3631ca41b62dfb0b0e2b0eb5501cc (diff)
downloadguix-6be739763cd66ac7fe5190f11f5d2a34d019c0b7.tar.gz
guix-6be739763cd66ac7fe5190f11f5d2a34d019c0b7.zip
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
-rw-r--r--gnu/packages/web.scm41
1 files changed, 24 insertions, 17 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 377ba2a36f..f73ecc14d4 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