2024-11-04 09:44:36 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3,
|
2023-04-27 16:51:47 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "apachetomcatscanner";
|
2024-10-05 12:11:51 +00:00
|
|
|
version = "3.7.2";
|
2024-10-06 07:59:20 +00:00
|
|
|
pyproject = true;
|
2023-04-27 16:51:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "p0dalirius";
|
|
|
|
repo = "ApacheTomcatScanner";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-10-05 12:11:51 +00:00
|
|
|
hash = "sha256-mzpJq0er13wcekTac3j4cnRokHh6Q0seM8vwZsM2tN8=";
|
2023-04-27 16:51:47 +00:00
|
|
|
};
|
|
|
|
|
2023-08-26 07:46:06 +00:00
|
|
|
# Posted a PR for discussion upstream that can be followed:
|
|
|
|
# https://github.com/p0dalirius/ApacheTomcatScanner/pull/32
|
|
|
|
postPatch = ''
|
|
|
|
sed -i '/apachetomcatscanner=apachetomcatscanner\.__main__:main/d' setup.py
|
|
|
|
'';
|
|
|
|
|
2024-11-04 09:44:36 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"requests"
|
|
|
|
"urllib3"
|
|
|
|
];
|
|
|
|
|
2024-10-06 07:59:20 +00:00
|
|
|
build-system = with python3.pkgs; [ setuptools ];
|
|
|
|
|
2023-04-27 16:51:47 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
requests
|
|
|
|
sectools
|
2024-11-04 09:44:36 +00:00
|
|
|
urllib3
|
2023-04-27 16:51:47 +00:00
|
|
|
xlsxwriter
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no test
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-11-04 09:44:36 +00:00
|
|
|
pythonImportsCheck = [ "apachetomcatscanner" ];
|
2023-04-27 16:51:47 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool to scan for Apache Tomcat server vulnerabilities";
|
|
|
|
homepage = "https://github.com/p0dalirius/ApacheTomcatScanner";
|
|
|
|
changelog = "https://github.com/p0dalirius/ApacheTomcatScanner/releases/tag/${version}";
|
2024-10-06 07:59:20 +00:00
|
|
|
license = licenses.gpl2Only;
|
2023-04-27 16:51:47 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-11-04 09:44:36 +00:00
|
|
|
mainProgram = "ApacheTomcatScanner";
|
2023-04-27 16:51:47 +00:00
|
|
|
};
|
|
|
|
}
|