summary refs log tree commit diff
path: root/pkgs/tools/security/stacs
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-11-22 00:22:48 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-11-22 00:22:48 +0100
commit3aa5d80be94d37b39d9a87a726f7b9226d46162d (patch)
treeb97506dbc68d31d135c71abcdd809544f3295336 /pkgs/tools/security/stacs
parent44bd0265ba2fa225ca5bc2d13004190f43a0bb58 (diff)
downloadnixpkgs-3aa5d80be94d37b39d9a87a726f7b9226d46162d.tar
nixpkgs-3aa5d80be94d37b39d9a87a726f7b9226d46162d.tar.gz
nixpkgs-3aa5d80be94d37b39d9a87a726f7b9226d46162d.tar.bz2
nixpkgs-3aa5d80be94d37b39d9a87a726f7b9226d46162d.tar.lz
nixpkgs-3aa5d80be94d37b39d9a87a726f7b9226d46162d.tar.xz
nixpkgs-3aa5d80be94d37b39d9a87a726f7b9226d46162d.tar.zst
nixpkgs-3aa5d80be94d37b39d9a87a726f7b9226d46162d.zip
stacs: init at 0.2.0
Diffstat (limited to 'pkgs/tools/security/stacs')
-rw-r--r--pkgs/tools/security/stacs/default.nix42
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 00000000000..352c217b76a
--- /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 ];
+  };
+}