depot/third_party/nixpkgs/pkgs/tools/networking/linkchecker/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

61 lines
1.4 KiB
Nix

{ lib
, fetchFromGitHub
, python3
, gettext
}:
python3.pkgs.buildPythonApplication rec {
pname = "linkchecker";
version = "10.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "linkchecker";
repo = "linkchecker";
rev = "refs/tags/v${version}";
hash = "sha256-z7Qp74cai8GfsxB4n9dSCWQepp0/4PimFiRJQBaVSoo=";
};
nativeBuildInputs = [ gettext ];
build-system = with python3.pkgs; [
hatchling
hatch-vcs
polib # translations
];
dependencies = with python3.pkgs; [
argcomplete
beautifulsoup4
dnspython
requests
];
nativeCheckInputs = with python3.pkgs; [
pyopenssl
parameterized
pytestCheckHook
];
disabledTests = [
"TestLoginUrl"
"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)
];
disabledTestPaths = [
"tests/checker/telnetserver.py"
"tests/checker/test_telnet.py"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Check websites for broken links";
mainProgram = "linkchecker";
homepage = "https://linkcheck.github.io/linkchecker/";
changelog = "https://github.com/linkchecker/linkchecker/releases/tag/v${version}";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ peterhoeg tweber ];
};
}