nixpkgs/pkgs/tools/security/stacs/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

43 lines
814 B
Nix

{ 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_1
typing-extensions
yara-python
];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
pythonImportsCheck = [
"stacs"
];
meta = with lib; {
description = "Static token and credential scanner";
mainProgram = "stacs";
homepage = "https://github.com/stacscan/stacs";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}