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