~ruther/guix-local

6be739763cd66ac7fe5190f11f5d2a34d019c0b7 — Sharlatan Hellseher 1 year, 5 months ago 908b9b2
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
1 files changed, 24 insertions(+), 17 deletions(-)

M gnu/packages/web.scm
M gnu/packages/web.scm => gnu/packages/web.scm +24 -17
@@ 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