diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-22 00:22:48 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-11-22 00:22:48 +0100 |
commit | 3aa5d80be94d37b39d9a87a726f7b9226d46162d (patch) | |
tree | b97506dbc68d31d135c71abcdd809544f3295336 /pkgs/tools/security/stacs | |
parent | 44bd0265ba2fa225ca5bc2d13004190f43a0bb58 (diff) |
stacs: init at 0.2.0
Diffstat (limited to 'pkgs/tools/security/stacs')
-rw-r--r-- | pkgs/tools/security/stacs/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/security/stacs/default.nix b/pkgs/tools/security/stacs/default.nix new file mode 100644 index 0000000000000..352c217b76a4b --- /dev/null +++ b/pkgs/tools/security/stacs/default.nix @@ -0,0 +1,42 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "stacs"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "stacscan"; + repo = pname; + rev = version; + sha256 = "00ZYdpJktqUXdzPcouHyZcOQyFm7jdFNVuDqsufOviE="; + }; + + nativeBuildInputs = with python3.pkgs; [ + setupmeta + ]; + + propagatedBuildInputs = with python3.pkgs; [ + click + pydantic + typing-extensions + yara-python + ]; + + checkInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "stacs" + ]; + + meta = with lib; { + description = "Static token and credential scanner"; + homepage = "https://github.com/stacscan/stacs"; + license = with licenses; [ bsd3 ]; + maintainers = with maintainers; [ fab ]; + }; +} |