2022-09-18 09:05:13 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "graphinder";
|
2022-11-26 09:59:43 +01:00
|
|
|
version = "1.11.6";
|
2022-09-18 09:05:13 +02:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Escape-Technologies";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2022-11-26 09:59:43 +01:00
|
|
|
hash = "sha256-TDc6aIFkxShlfC6fLYMKULfrFUAYhQZrIHZNDuMh68g=";
|
2022-09-18 09:05:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiohttp
|
|
|
|
beautifulsoup4
|
|
|
|
requests
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-09-18 09:05:13 +02:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"graphinder"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_domain_class"
|
|
|
|
"test_extract_file_zip"
|
|
|
|
"test_fetch_assets"
|
|
|
|
"test_full_run"
|
|
|
|
"test_init_domain_tasks"
|
|
|
|
"test_is_gql_endpoint"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to find GraphQL endpoints using subdomain enumeration";
|
|
|
|
homepage = "https://github.com/Escape-Technologies/graphinder";
|
2022-11-26 12:58:55 +01:00
|
|
|
changelog = "https://github.com/Escape-Technologies/graphinder/releases/tag/v${version}";
|
2022-09-18 09:05:13 +02:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|