1{ 2 lib, 3 buildPythonPackage, 4 defusedxml, 5 fetchFromGitHub, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "python-libnmap"; 11 version = "0.7.3"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "savon-noir"; 18 repo = "python-libnmap"; 19 tag = "v${version}"; 20 hash = "sha256-cI8wdOvTmRy2cxLBkJn7vXRBRvewDMNl/tkIiRGhZJ8="; 21 }; 22 23 optional-dependencies = { 24 defusedxml = [ defusedxml ]; 25 }; 26 27 # We don't want the nmap binary being present 28 doCheck = false; 29 30 pythonImportsCheck = [ "libnmap" ]; 31 32 meta = with lib; { 33 description = "Library to run nmap scans, parse and diff scan results"; 34 homepage = "https://github.com/savon-noir/python-libnmap"; 35 changelog = "https://github.com/savon-noir/python-libnmap/blob/${version}/CHANGELOG.md"; 36 license = licenses.asl20; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}