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