nixpkgs/pkgs/tools/networking/linkchecker/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, python3
, gettext
}:
python3.pkgs.buildPythonApplication rec {
pname = "linkchecker";
2022-12-06 10:39:21 +00:00
version = "10.2.1";
2022-11-22 03:27:19 +00:00
format = "pyproject";
src = fetchFromGitHub {
owner = pname;
repo = pname;
2022-12-06 10:39:21 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-z7Qp74cai8GfsxB4n9dSCWQepp0/4PimFiRJQBaVSoo=";
};
nativeBuildInputs = [
gettext
];
propagatedBuildInputs = with python3.pkgs; [
argcomplete
beautifulsoup4
2022-11-22 03:27:19 +00:00
configargparse
dnspython
2022-11-22 03:27:19 +00:00
hatch-vcs
hatchling
pyopenssl
requests
];
nativeCheckInputs = with python3.pkgs; [
parameterized
pytestCheckHook
];
disabledTests = [
# test_timeit2 is flakey, and depends sleep being precise to the milisecond
"TestLoginUrl"
"test_timeit2"
];
disabledTestPaths = [
"tests/checker/telnetserver.py"
"tests/checker/test_telnet.py"
] ++ lib.optionals stdenv.isDarwin [
"tests/checker/test_content_allows_robots.py"
"tests/checker/test_http*.py"
"tests/test_network.py"
];
2022-11-22 03:27:19 +00:00
meta = with lib; {
description = "Check websites for broken links";
mainProgram = "linkchecker";
homepage = "https://linkcheck.github.io/linkchecker/";
2022-12-06 21:31:14 +00:00
changelog = "https://github.com/linkchecker/linkchecker/releases/tag/v${version}";
license = licenses.gpl2Plus;
2022-11-22 03:27:19 +00:00
maintainers = with maintainers; [ peterhoeg tweber ];
};
}