diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-02-03 23:51:00 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-02-03 23:51:00 +0100 |
commit | ea9149bb36f12e389bbb57be6e3dc10848685276 (patch) | |
tree | 2f8e7ce8d10c913f638c6cbe332efa9cf5616154 /pkgs/by-name/nm | |
parent | aacf58468932d2bddc6e28585d6708c04f8563a5 (diff) |
nmap-parse: init at 0-unstable-2022-09-26
Diffstat (limited to 'pkgs/by-name/nm')
-rw-r--r-- | pkgs/by-name/nm/nmap-parse/package.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/by-name/nm/nmap-parse/package.nix b/pkgs/by-name/nm/nmap-parse/package.nix new file mode 100644 index 0000000000000..7a8ab044377f7 --- /dev/null +++ b/pkgs/by-name/nm/nmap-parse/package.nix @@ -0,0 +1,48 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "nmap-parse"; + version = "0-unstable-2022-09-26"; + format = "other"; + + src = fetchFromGitHub { + owner = "jonny1102"; + repo = "nmap-parse"; + # https://github.com/jonny1102/nmap-parse/issues/12 + rev = "ae270ac9ce05bfbe822dbbb29411adf562d40abf"; + hash = "sha256-iaE4a5blbDPaKPRnR46+AfegXOEW88i+z/VIVGCepeM="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + beautifulsoup4 + cmd2 + colorama + ipy + tabulate + ]; + + installPhase = '' + runHook preInstall + + install -Dm 755 "nmap-parse.py" "$out/bin/nmap-parse" + + install -vd $out/${python3.sitePackages}/ + cp -R modules $out/${python3.sitePackages} + + runHook postInstall + ''; + + # Project has no tests + doCheck = false; + + meta = with lib; { + description = "Command line nmap XML parser"; + homepage = "https://github.com/jonny1102/nmap-parse"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + mainProgram = "nmap-parse"; + }; +} |