nixpkgs/pkgs/by-name/ap/apachetomcatscanner/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.2 KiB
Nix
Raw Normal View History

{
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
};
# 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
'';
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
urllib3
2023-04-27 16:51:47 +00:00
xlsxwriter
];
# Project has no test
doCheck = false;
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 ];
mainProgram = "ApacheTomcatScanner";
2023-04-27 16:51:47 +00:00
};
}