apachetomcatscanner: add missing dependencies (#353617)

This commit is contained in:
Theodore Ni 2024-11-04 09:13:37 -08:00 committed by GitHub
commit 0c3b78b476
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
{ lib
, python3
, fetchFromGitHub
{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
@ -21,27 +22,31 @@ python3.pkgs.buildPythonApplication rec {
sed -i '/apachetomcatscanner=apachetomcatscanner\.__main__:main/d' setup.py
'';
pythonRelaxDeps = [
"requests"
"urllib3"
];
build-system = with python3.pkgs; [ setuptools ];
propagatedBuildInputs = with python3.pkgs; [
requests
sectools
urllib3
xlsxwriter
];
# Project has no test
doCheck = false;
pythonImportsCheck = [
"apachetomcatscanner"
];
pythonImportsCheck = [ "apachetomcatscanner" ];
meta = with lib; {
description = "Tool to scan for Apache Tomcat server vulnerabilities";
mainProgram = "ApacheTomcatScanner";
homepage = "https://github.com/p0dalirius/ApacheTomcatScanner";
changelog = "https://github.com/p0dalirius/ApacheTomcatScanner/releases/tag/${version}";
license = licenses.gpl2Only;
maintainers = with maintainers; [ fab ];
mainProgram = "ApacheTomcatScanner";
};
}