about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/mkdocs-linkcheck/default.nix
blob: 18d9a9a9ab29996e6c5405f17496f4611fd73239 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pythonPackages
}:

buildPythonPackage rec {
  pname = "mkdocs-linkcheck";
  version = "unstable-2021-08-24";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "byrnereese";
    repo = "linkchecker-mkdocs";
    rev = "a75d765b0ec564e5ed0218880ed0b5ab4b973917" ;
    hash = "sha256-z59F7zUKZKIQSiTlE6wGbGDecPMeruNgltWUYfDf8jY=";
  };

  propagatedBuildInputs = with pythonPackages; [
    aiohttp
    requests
  ];

  pythonImportsCheck = [ "mkdocs_linkcheck" ];

  meta = with lib; {
    description = "Validate links in Markdown files for static site generators like MkDocs, Hugo or Jekyll";
    mainProgram = "mkdocs-linkcheck";
    longDescription = ''
      This is not a MkDocs plugin, but a companion tool that is useful to validate links in Markdown files for
      static site generators like MkDocs, Hugo or Jekyll. It can be used with any text files containing links.
    '';
    homepage = "https://github.com/byrnereese/mkdocs-linkcheck";
    license = licenses.mit;
    maintainers = with maintainers; [ totoroot ];
  };
}