2022-06-13 18:28:08 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "atomic-operator";
|
|
|
|
version = "0.8.5";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swimlane";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-07-16 19:17:40 +02:00
|
|
|
hash = "sha256-DyNqu3vndyLkmfybCfTbgxk3t/ALg7IAkAMg4kBkH7Q=";
|
2022-06-13 18:28:08 +02:00
|
|
|
};
|
|
|
|
|
2022-07-20 20:49:14 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "charset_normalizer~=2.0.0" "charset_normalizer"
|
|
|
|
'';
|
|
|
|
|
2022-06-13 18:28:08 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|