depot/third_party/nixpkgs/pkgs/development/python-modules/nmapthon2/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

35 lines
738 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "nmapthon2";
version = "0.1.5";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "cblopez";
repo = pname;
rev = "v${version}";
hash = "sha256-4Na75TdKDywUomJF4tDWUWwCCtcOSxBUMOF7+FDhbpY=";
};
nativeCheckInputs = [ 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 ];
};
}