1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 08:29:20 +03:00
nixpkgs/pkgs/development/python-modules/python-libnmap/default.nix

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

40 lines
903 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
defusedxml,
fetchFromGitHub,
pythonOlder,
}:
buildPythonPackage rec {
pname = "python-libnmap";
version = "0.7.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "savon-noir";
repo = "python-libnmap";
tag = "v${version}";
hash = "sha256-cI8wdOvTmRy2cxLBkJn7vXRBRvewDMNl/tkIiRGhZJ8=";
};
optional-dependencies = {
defusedxml = [ defusedxml ];
};
# We don't want the nmap binary being present
doCheck = false;
pythonImportsCheck = [ "libnmap" ];
meta = with lib; {
description = "Library to run nmap scans, parse and diff scan results";
homepage = "https://github.com/savon-noir/python-libnmap";
changelog = "https://github.com/savon-noir/python-libnmap/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}