deepsecrets: modernize, enable tests (#405398)
This commit is contained in:
@@ -22,11 +22,11 @@ python3.pkgs.buildPythonApplication rec {
|
||||
"mmh3"
|
||||
];
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
build-system = with python3.pkgs; [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
dependencies = with python3.pkgs; [
|
||||
dotwiz
|
||||
mmh3
|
||||
ordered-set
|
||||
@@ -40,12 +40,23 @@ python3.pkgs.buildPythonApplication rec {
|
||||
"deepsecrets"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Secrets scanner that understands code";
|
||||
mainProgram = "deepsecrets";
|
||||
homepage = "https://github.com/avito-tech/deepsecrets";
|
||||
changelog = "https://github.com/avito-tech/deepsecrets/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user