mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 21:13:40 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
64 lines
1.5 KiB
Nix
64 lines
1.5 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)
|
|
"test_markdown" # uses sys.version_info for conditional testing
|
|
"test_itms_services" # uses sys.version_info for conditional testing
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|