guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

85/105: gnu: linkchecker: Update to 10.5.0.


From: guix-commits
Subject: 85/105: gnu: linkchecker: Update to 10.5.0.
Date: Wed, 25 Dec 2024 10:20:59 -0500 (EST)

rekado pushed a commit to branch python-team
in repository guix.

commit 22b186b8fc49f5224e496ba06be86dcfa54c47fe
Author: Sharlatan Hellseher <sharlatanus@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 4029f3b644..83ee2012fb 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -7318,7 +7318,7 @@ Instagram and YouTube.")
 (define-public linkchecker
   (package
     (name "linkchecker")
-    (version "10.0.1")
+    (version "10.5.0")
     (source
      (origin
        (method git-fetch)
@@ -7327,24 +7327,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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]