Unverified Commit 033485f8 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #228561 from fabaff/apachetomcatscanner

apachetomcatscanner: init at 3.5
parents e7f8904a b57cc760
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, ldap3
, pythonOlder
}:

buildPythonPackage rec {
  pname = "sectools";
  version = "1.3.9";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "p0dalirius";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-F9mmPSlfSSS7UDNuX9OPrqDsEpqq0bD3eROG8D9CC78=";
  };

  propagatedBuildInputs = [
    ldap3
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "sectools"
  ];

  meta = with lib; {
    description = "library containing functions to write security tools";
    homepage = "https://github.com/p0dalirius/sectools";
    changelog = "https://github.com/p0dalirius/sectools/releases/tag/${version}";
    license = with licenses; [ gpl3Only ];
    maintainers = with maintainers; [ fab ];
  };
}
+38 −0
Original line number Diff line number Diff line
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "apachetomcatscanner";
  version = "3.5";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "p0dalirius";
    repo = "ApacheTomcatScanner";
    rev = "refs/tags/${version}";
    hash = "sha256-ChVVXUjm6y71iRs64Kv63oiOG1GSqmx6J0YiGtEI0ao=";
  };

  propagatedBuildInputs = with python3.pkgs; [
    requests
    sectools
    xlsxwriter
  ];

  # Project has no test
  doCheck = false;

  pythonImportsCheck = [
    "apachetomcatscanner"
  ];

  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}";
    license = with licenses; [ gpl2Only ];
    maintainers = with maintainers; [ fab ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -1407,6 +1407,8 @@ with pkgs;
  apache-airflow = with python3.pkgs; toPythonApplication apache-airflow;
  apachetomcatscanner = callPackage ../tools/security/apachetomcatscanner { };
  airsonic = callPackage ../servers/misc/airsonic { };
  airspy = callPackage ../applications/radio/airspy { };
+2 −0
Original line number Diff line number Diff line
@@ -10714,6 +10714,8 @@ self: super: with self; {

  securetar = callPackage ../development/python-modules/securetar { };

  sectools = callPackage ../development/python-modules/sectools { };

  seedir = callPackage ../development/python-modules/seedir { };

  seekpath = callPackage ../development/python-modules/seekpath { };