2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
, gettext
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "linkchecker";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "10.2.1";
|
2022-11-27 09:42:12 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-z7Qp74cai8GfsxB4n9dSCWQepp0/4PimFiRJQBaVSoo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2020-04-24 23:36:52 +00:00
|
|
|
argcomplete
|
2020-09-25 04:45:31 +00:00
|
|
|
beautifulsoup4
|
2022-11-27 09:42:12 +00:00
|
|
|
configargparse
|
2020-04-24 23:36:52 +00:00
|
|
|
dnspython
|
2022-11-27 09:42:12 +00:00
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
|
|
|
pyopenssl
|
2020-04-24 23:36:52 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2020-04-24 23:36:52 +00:00
|
|
|
parameterized
|
2022-12-17 10:02:37 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-12-17 10:02:37 +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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Check websites for broken links";
|
|
|
|
homepage = "https://linkcheck.github.io/linkchecker/";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/linkchecker/linkchecker/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl2Plus;
|
2022-11-27 09:42:12 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg tweber ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|