2022-12-06 21:40:36 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
, gettext
|
|
|
|
}:
|
2016-05-26 09:20:30 +00:00
|
|
|
|
2022-12-06 21:40:36 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2019-07-23 08:07:56 +00:00
|
|
|
pname = "linkchecker";
|
2022-12-06 10:39:21 +00:00
|
|
|
version = "10.2.1";
|
2022-11-22 03:27:19 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2018-03-05 15:14:21 +00:00
|
|
|
src = fetchFromGitHub {
|
2019-07-23 08:07:56 +00:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2022-12-06 10:39:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-z7Qp74cai8GfsxB4n9dSCWQepp0/4PimFiRJQBaVSoo=";
|
2016-05-26 09:20:30 +00:00
|
|
|
};
|
|
|
|
|
2022-12-06 21:40:36 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
];
|
2016-05-26 09:20:30 +00:00
|
|
|
|
2022-12-06 21:40:36 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2019-07-23 08:07:56 +00:00
|
|
|
argcomplete
|
2020-08-17 02:48:01 +00:00
|
|
|
beautifulsoup4
|
2022-11-22 03:27:19 +00:00
|
|
|
configargparse
|
2019-07-23 08:07:56 +00:00
|
|
|
dnspython
|
2022-11-22 03:27:19 +00:00
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
|
|
|
pyopenssl
|
2019-07-23 08:07:56 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2019-07-23 08:07:56 +00:00
|
|
|
parameterized
|
2022-12-06 21:40:36 +00:00
|
|
|
pytestCheckHook
|
2019-07-23 08:07:56 +00:00
|
|
|
];
|
|
|
|
|
2022-12-06 21:40:36 +00:00
|
|
|
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"
|
|
|
|
];
|
2016-10-11 03:02:52 +00:00
|
|
|
|
2022-11-22 03:27:19 +00:00
|
|
|
meta = with lib; {
|
2016-05-26 09:20:30 +00:00
|
|
|
description = "Check websites for broken links";
|
2020-04-01 01:11:51 +00:00
|
|
|
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 ];
|
2016-05-26 09:20:30 +00:00
|
|
|
};
|
|
|
|
}
|