1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "nmapthon2";
11 version = "0.1.5";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.8";
15
16 src = fetchFromGitHub {
17 owner = "cblopez";
18 repo = "nmapthon2";
19 rev = "v${version}";
20 hash = "sha256-4Na75TdKDywUomJF4tDWUWwCCtcOSxBUMOF7+FDhbpY=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 enabledTestPaths = [ "tests/scanner_tests.py" ];
26
27 pythonImportsCheck = [ "nmapthon2" ];
28
29 meta = with lib; {
30 description = "Python library to automate nmap";
31 homepage = "https://github.com/cblopez/nmapthon2";
32 license = with licenses; [ asl20 ];
33 maintainers = with maintainers; [ fab ];
34 };
35}