1{ lib 2, appdirs 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 = pname; 19 rev = "v${version}"; 20 hash = "sha256-4Na75TdKDywUomJF4tDWUWwCCtcOSxBUMOF7+FDhbpY="; 21 }; 22 23 checkInputs = [ 24 pytestCheckHook 25 ]; 26 27 pytestFlagsArray = [ 28 "tests/scanner_tests.py" 29 ]; 30 31 pythonImportsCheck = [ 32 "nmapthon2" 33 ]; 34 35 meta = with lib; { 36 description = "Python library to automate nmap"; 37 homepage = "https://github.com/cblopez/nmapthon2"; 38 license = with licenses; [ asl20 ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}