forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / gr / graphinder / package.nix
blob541e7ab3189d779fce461f723eabef37b45aba78
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "graphinder";
8   version = "1.11.6";
9   format = "pyproject";
11   src = fetchFromGitHub {
12     owner = "Escape-Technologies";
13     repo = pname;
14     rev = "refs/tags/v${version}";
15     hash = "sha256-TDc6aIFkxShlfC6fLYMKULfrFUAYhQZrIHZNDuMh68g=";
16   };
18   nativeBuildInputs = with python3.pkgs; [
19     poetry-core
20   ];
22   propagatedBuildInputs = with python3.pkgs; [
23     aiohttp
24     beautifulsoup4
25     requests
26     setuptools
27   ];
29   nativeCheckInputs = with python3.pkgs; [
30     pytest-asyncio
31     pytest-mock
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [
36     "graphinder"
37   ];
39   disabledTests = [
40     # Tests require network access
41     "test_domain_class"
42     "test_extract_file_zip"
43     "test_fetch_assets"
44     "test_full_run"
45     "test_init_domain_tasks"
46     "test_is_gql_endpoint"
47   ];
49   meta = with lib; {
50     description = "Tool to find GraphQL endpoints using subdomain enumeration";
51     mainProgram = "graphinder";
52     homepage = "https://github.com/Escape-Technologies/graphinder";
53     changelog = "https://github.com/Escape-Technologies/graphinder/releases/tag/v${version}";
54     license = with licenses; [ mit ];
55     maintainers = with maintainers; [ fab ];
56   };