gnome-podcasts: 0.7.1 -> 0.7.2 (#373846)
[NixPkgs.git] / pkgs / by-name / li / linkchecker / package.nix
bloba00912637310e36bdc393af9849c0d008e8220a5
1 { lib
2 , fetchFromGitHub
3 , python3
4 , gettext
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "linkchecker";
9   version = "10.2.1";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "linkchecker";
14     repo = "linkchecker";
15     tag = "v${version}";
16     hash = "sha256-z7Qp74cai8GfsxB4n9dSCWQepp0/4PimFiRJQBaVSoo=";
17   };
19   nativeBuildInputs = [ gettext ];
21   build-system = with python3.pkgs; [
22     hatchling
23     hatch-vcs
24     polib # translations
25   ];
27   dependencies = with python3.pkgs; [
28     argcomplete
29     beautifulsoup4
30     dnspython
31     requests
32   ];
34   nativeCheckInputs = with python3.pkgs; [
35     pyopenssl
36     parameterized
37     pytestCheckHook
38   ];
40   disabledTests = [
41     "TestLoginUrl"
42     "test_timeit2" # flakey, and depends sleep being precise to the milisecond
43     "test_internet" # uses network, fails on Darwin (not sure why it doesn't fail on linux)
44     "test_markdown" # uses sys.version_info for conditional testing
45     "test_itms_services" # uses sys.version_info for conditional testing
46   ];
48   disabledTestPaths = [
49     "tests/checker/telnetserver.py"
50     "tests/checker/test_telnet.py"
51   ];
53   __darwinAllowLocalNetworking = true;
55   meta = with lib; {
56     description = "Check websites for broken links";
57     mainProgram = "linkchecker";
58     homepage = "https://linkcheck.github.io/linkchecker/";
59     changelog = "https://github.com/linkchecker/linkchecker/releases/tag/v${version}";
60     license = licenses.gpl2Plus;
61     maintainers = with maintainers; [ peterhoeg tweber ];
62   };