1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7 requests,
8}:
9
10buildPythonPackage {
11 pname = "mkdocs-linkcheck";
12 version = "unstable-2021-08-24";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "byrnereese";
19 repo = "linkchecker-mkdocs";
20 rev = "a75d765b0ec564e5ed0218880ed0b5ab4b973917";
21 hash = "sha256-z59F7zUKZKIQSiTlE6wGbGDecPMeruNgltWUYfDf8jY=";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 requests
27 ];
28
29 pythonImportsCheck = [ "mkdocs_linkcheck" ];
30
31 meta = with lib; {
32 description = "Validate links in Markdown files for static site generators like MkDocs, Hugo or Jekyll";
33 mainProgram = "mkdocs-linkcheck";
34 longDescription = ''
35 This is not a MkDocs plugin, but a companion tool that is useful to validate links in Markdown files for
36 static site generators like MkDocs, Hugo or Jekyll. It can be used with any text files containing links.
37 '';
38 homepage = "https://github.com/byrnereese/mkdocs-linkcheck";
39 license = licenses.mit;
40 maintainers = with maintainers; [ totoroot ];
41 };
42}