commit
492faa4f42
@ -0,0 +1,41 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, poetry-core |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "pick"; |
||||
version = "1.2.0"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "wong2"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-9y9O6Iqo07Q+aPM6AvyvjAMQzZQOSpal92Qto8p8bzI="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
poetry-core |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"pick" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Module to create curses-based interactive selection list in the terminal"; |
||||
homepage = "https://github.com/wong2/pick"; |
||||
license = with licenses; [ mit ]; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,54 @@ |
||||
{ lib |
||||
, fetchFromGitHub |
||||
, python3 |
||||
}: |
||||
|
||||
python3.pkgs.buildPythonApplication rec { |
||||
pname = "atomic-operator"; |
||||
version = "0.8.5"; |
||||
format = "setuptools"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "swimlane"; |
||||
repo = pname; |
||||
rev = version; |
||||
hash = "sha256-fO8bvzeMdJVWlhpzdTmJo9mrT6iorsLqr/GPF9gvE70="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [ |
||||
attrs |
||||
certifi |
||||
chardet |
||||
charset-normalizer |
||||
fire |
||||
idna |
||||
paramiko |
||||
pick |
||||
pypsrp |
||||
pyyaml |
||||
requests |
||||
urllib3 |
||||
]; |
||||
|
||||
checkInputs = with python3.pkgs; [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"atomic_operator" |
||||
]; |
||||
|
||||
disabledTests = [ |
||||
# Tests require network access |
||||
"test_download_of_atomic_red_team_repo" |
||||
"test_setting_input_arguments" |
||||
"test_config_parser" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Tool to execute Atomic Red Team tests (Atomics)"; |
||||
homepage = "https://www.atomic-operator.com/"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue