From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOYn5-00035t-2m for guix-patches@gnu.org; Fri, 23 Jun 2017 20:19:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOYn1-0000Xe-0X for guix-patches@gnu.org; Fri, 23 Jun 2017 20:19:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOYn0-0000Xa-TL for guix-patches@gnu.org; Fri, 23 Jun 2017 20:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dOYn0-00084n-LX for guix-patches@gnu.org; Fri, 23 Jun 2017 20:19:02 -0400 Subject: [bug#27468] [PATCH] gnu: Add linkchecker. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <7a5dc060.AEQAMFHLF6MAAAAAAAAAAAOtUOAAAAACwQwAAAAAAAW9WABZTa-9@bnc3.mailjet.com>) id 1dOYmD-000343-67 for guix-patches@gnu.org; Fri, 23 Jun 2017 20:18:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <7a5dc060.AEQAMFHLF6MAAAAAAAAAAAOtUOAAAAACwQwAAAAAAAW9WABZTa-9@bnc3.mailjet.com>) id 1dOYm9-0008MC-2R for guix-patches@gnu.org; Fri, 23 Jun 2017 20:18:13 -0400 Received: from o166.p8.mailjet.com ([87.253.233.166]:44333) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <7a5dc060.AEQAMFHLF6MAAAAAAAAAAAOtUOAAAAACwQwAAAAAAAW9WABZTa-9@bnc3.mailjet.com>) id 1dOYm8-0008Lj-R6 for guix-patches@gnu.org; Fri, 23 Jun 2017 20:18:09 -0400 Message-Id: <7a5dc060.AEQAMFHLF6MAAAAAAAAAAAOtUOAAAAACwQwAAAAAAAW9WABZTa-9@mailjet.com> From: Arun Isaac Date: Sat, 24 Jun 2017 05:47:40 +0530 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27468@debbugs.gnu.org * gnu/packages/web.scm (linkchecker): New variable. --- gnu/packages/web.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 3625a1034..81bee1ec9 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4674,3 +4674,43 @@ message stream (in a web server that is per connecti= on).") (description "@code{httpretty} is a helper for faking web requests, inspired by Ruby's @code{fakeweb}.") (license l:expat))) + +(define-public linkchecker + (package + (name "linkchecker") + (version "9.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "LinkChecker" version)) + (sha256 + (base32 + "0v8pavf0bx33xnz1kwflv0r7lxxwj7vg3syxhy2wzza0wh6sc2pf")))) + (build-system python-build-system) + (inputs + `(("python2-dnspython" ,python2-dnspython) + ("python2-requests" ,python2-requests))) + (arguments + `(#:python ,python-2 + #:phases + (modify-phases %standard-phases + ;; Remove faulty python-requests version check. This has been fix= ed + ;; upstream, and can be removed in version 9.4. + (add-after 'unpack 'remove-python-requests-version + (lambda _ + (substitute* "linkcheck/__init__.py" + (("requests.__version__ <=3D '2.2.0'") "False"))))))) + (home-page "https://linkcheck.github.io/linkchecker/") + (synopsis "Check websites for broken links") + (description "LinkChecker is a website validator. It checks for broke= n +links in websites. It is recursive and multithreaded providing output in +colored or normal text, HTML, SQL, CSV, XML or as a sitemap graph. It +supports checking HTTP/1.1, HTTPS, FTP, mailto, news, nntp, telnet and loc= al +file links.") + (license (list l:gpl2+ + l:bsd-2 ; linkcheck/better_exchook2.py + l:bsd-3 ; linkcheck/colorama.py + l:psfl ; linkcheck/gzip2.py + l:expat ; linkcheck/mem.py + l:isc ; third_party/dnspython + l:asl2.0)))) ; third_party/miniboa --=20 2.12.2 =