biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / stacs / default.nix
blobda66dca1cbd32e8a1edb9ebc0e9cc50c1067cddf
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "stacs";
8   version = "0.2.0";
10   src = fetchFromGitHub {
11     owner = "stacscan";
12     repo = pname;
13     rev = version;
14     sha256 = "00ZYdpJktqUXdzPcouHyZcOQyFm7jdFNVuDqsufOviE=";
15   };
17   nativeBuildInputs = with python3.pkgs; [
18     setupmeta
19   ];
21   propagatedBuildInputs = with python3.pkgs; [
22     click
23     pydantic_1
24     typing-extensions
25     yara-python
26   ];
28   nativeCheckInputs = with python3.pkgs; [
29     pytestCheckHook
30   ];
32   pythonImportsCheck = [
33     "stacs"
34   ];
36   meta = with lib; {
37     description = "Static token and credential scanner";
38     mainProgram = "stacs";
39     homepage = "https://github.com/stacscan/stacs";
40     license = with licenses; [ bsd3 ];
41     maintainers = with maintainers; [ fab ];
42   };