Unverified Commit 0c3b78b4 authored by Theodore Ni's avatar Theodore Ni Committed by GitHub
Browse files

apachetomcatscanner: add missing dependencies (#353617)

parents d8227dfc 0a0e61b0
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
{ 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";
  };
}