Files
nixpkgs/pkgs/by-name/de/deepsecrets/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.2 KiB
Nix

{
lib,
stdenv,
python3,
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
pname = "deepsecrets";
version = "1.0.6";
pyproject = true;
src = fetchFromGitHub {
owner = "avito-tech";
repo = "deepsecrets";
tag = "v${version}";
hash = "sha256-VfIsPgStHcIYGbfrOs1mvgoq0ZoVSZwILFVBeMt/5Jc=";
};
pythonRelaxDeps = [
"pyyaml"
"regex"
"mmh3"
];
build-system = with python3.pkgs; [ poetry-core ];
dependencies = with python3.pkgs; [
dotwiz
mmh3
ordered-set
pydantic_1
pygments
pyyaml
regex
];
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
disabledTests = [
# assumes package is built in /app (docker?), and not /build/${src.name} (nix sandbox)
"test_1_cli"
"test_config"
"test_basic_info"
];
pythonImportsCheck = [ "deepsecrets" ];
meta = {
description = "Secrets scanner that understands code";
homepage = "https://github.com/avito-tech/deepsecrets";
changelog = "https://github.com/avito-tech/deepsecrets/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "deepsecrets";
broken = stdenv.hostPlatform.isDarwin;
};
}