ieda: init at 0-unstable-2024-10-11 (#338769)
[NixPkgs.git] / pkgs / by-name / nm / nmap-parse / package.nix
blob5ff2677d3d773bc9c02ef30331c5e356bf201872
2   lib,
3   fetchFromGitHub,
4   python3,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "nmap-parse";
9   version = "0-unstable-2022-09-26";
10   format = "other";
12   src = fetchFromGitHub {
13     owner = "jonny1102";
14     repo = "nmap-parse";
15     # https://github.com/jonny1102/nmap-parse/issues/12
16     rev = "ae270ac9ce05bfbe822dbbb29411adf562d40abf";
17     hash = "sha256-iaE4a5blbDPaKPRnR46+AfegXOEW88i+z/VIVGCepeM=";
18   };
20   propagatedBuildInputs = with python3.pkgs; [
21     beautifulsoup4
22     cmd2
23     colorama
24     ipy
25     tabulate
26   ];
28   installPhase = ''
29     runHook preInstall
31     install -Dm 755 "nmap-parse.py" "$out/bin/nmap-parse"
33     install -vd $out/${python3.sitePackages}/
34     cp -R modules $out/${python3.sitePackages}
36     runHook postInstall
37   '';
39   # Project has no tests
40   doCheck = false;
42   meta = with lib; {
43     description = "Command line nmap XML parser";
44     homepage = "https://github.com/jonny1102/nmap-parse";
45     license = licenses.mit;
46     maintainers = with maintainers; [ fab ];
47     mainProgram = "nmap-parse";
48   };