0eeabdeb66
GitOrigin-RevId: c07b471b52be8fbc49a7dc194e9b37a6e19ee04d
41 lines
753 B
Nix
41 lines
753 B
Nix
{ lib
|
|
, appdirs
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nmapthon2";
|
|
version = "0.1.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cblopez";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-t4gAcDwHHejfipQmJvMLhKmdz8D6UN/Mmsrhpq0cygY=";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests/scanner_tests.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"nmapthon2"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to automate nmap";
|
|
homepage = "https://github.com/cblopez/nmapthon2";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|