From b57cc76031c278380c1aff8357e6e054483e1299 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 27 Apr 2023 18:51:47 +0200 Subject: [PATCH] apachetomcatscanner: init at 3.5 --- .../security/apachetomcatscanner/default.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/tools/security/apachetomcatscanner/default.nix diff --git a/pkgs/tools/security/apachetomcatscanner/default.nix b/pkgs/tools/security/apachetomcatscanner/default.nix new file mode 100644 index 00000000000..13a11808b7d --- /dev/null +++ b/pkgs/tools/security/apachetomcatscanner/default.nix @@ -0,0 +1,38 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 96a42f49cee..c40daf07c24 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1400,6 +1400,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 { };