nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "atomic-operator";
9 version = "0.8.5";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "swimlane";
14 repo = "atomic-operator";
15 tag = version;
16 hash = "sha256-DyNqu3vndyLkmfybCfTbgxk3t/ALg7IAkAMg4kBkH7Q=";
17 };
18
19 build-system = with python3.pkgs; [
20 setuptools
21 ];
22
23 pythonRelaxDeps = [
24 "charset_normalizer"
25 "urllib3"
26 ];
27
28 dependencies = with python3.pkgs; [
29 attrs
30 certifi
31 chardet
32 charset-normalizer
33 fire
34 idna
35 paramiko
36 pick
37 pypsrp
38 pyyaml
39 requests
40 urllib3
41 ];
42
43 nativeCheckInputs = with python3.pkgs; [
44 pytestCheckHook
45 ];
46
47 pythonImportsCheck = [
48 "atomic_operator"
49 ];
50
51 disabledTests = [
52 # Tests require network access
53 "test_download_of_atomic_red_team_repo"
54 "test_setting_input_arguments"
55 "test_config_parser"
56 ];
57
58 meta = {
59 description = "Tool to execute Atomic Red Team tests (Atomics)";
60 mainProgram = "atomic-operator";
61 homepage = "https://www.atomic-operator.com/";
62 license = lib.licenses.mit;
63 maintainers = with lib.maintainers; [ fab ];
64 };
65}