Files
nixpkgs/pkgs/by-name/nm/nmap-parse/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.0 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication {
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";
};
}