My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/nmapthon2/default.nix

41 lines
753 B

{ lib
, appdirs
, 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=";
};
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 ];
};
}