Files
nixpkgs/pkgs/by-name/li/linkchecker/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.4 KiB
Nix

{
python3Packages,
lib,
fetchFromGitHub,
gettext,
pdfSupport ? true,
}:
python3Packages.buildPythonApplication rec {
pname = "linkchecker";
version = "10.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "linkchecker";
repo = "linkchecker";
tag = "v${version}";
hash = "sha256-CzDShtqcGO2TP5qNVf2zkI3Yyh80I+pSVIFzmi3AaGQ=";
};
nativeBuildInputs = [ gettext ];
build-system = with python3Packages; [
hatchling
hatch-vcs
polib # translations
];
dependencies =
with python3Packages;
[
argcomplete
beautifulsoup4
dnspython
requests
]
++ lib.optional pdfSupport pdfminer-six;
nativeCheckInputs = with python3Packages; [
pyopenssl
parameterized
pytestCheckHook
pyftpdlib
];
# Needed for tests to be able to create a ~/.local/share/linkchecker/plugins directory
preCheck = ''
export HOME=$(mktemp -d)
'';
disabledTests = [
"test_timeit2" # flakey, and depends sleep being precise to the milisecond
];
__darwinAllowLocalNetworking = true;
meta = {
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 = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [
peterhoeg
tweber
];
};
}