2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, 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";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-11-27 09:42:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-05-15 15:35:15 +00:00
|
|
|
owner = "linkchecker";
|
|
|
|
repo = "linkchecker";
|
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
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ gettext ];
|
|
|
|
|
|
|
|
build-system = with python3.pkgs; [
|
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
polib # translations
|
2022-12-17 10:02:37 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = with python3.pkgs; [
|
2020-04-24 23:36:52 +00:00
|
|
|
argcomplete
|
2020-09-25 04:45:31 +00:00
|
|
|
beautifulsoup4
|
2020-04-24 23:36:52 +00:00
|
|
|
dnspython
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2024-05-15 15:35:15 +00:00
|
|
|
pyopenssl
|
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 = [
|
|
|
|
"TestLoginUrl"
|
2024-05-15 15:35:15 +00:00
|
|
|
"test_timeit2" # flakey, and depends sleep being precise to the milisecond
|
|
|
|
"test_internet" # uses network, fails on Darwin (not sure why it doesn't fail on linux)
|
2022-12-17 10:02:37 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/checker/telnetserver.py"
|
|
|
|
"tests/checker/test_telnet.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "linkchecker";
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|