lol

deepsecrets: modernize, enable tests

+16 -5
+16 -5
pkgs/tools/security/deepsecrets/default.nix
··· 22 22 "mmh3" 23 23 ]; 24 24 25 - nativeBuildInputs = with python3.pkgs; [ 25 + build-system = with python3.pkgs; [ 26 26 poetry-core 27 27 ]; 28 28 29 - propagatedBuildInputs = with python3.pkgs; [ 29 + dependencies = with python3.pkgs; [ 30 30 dotwiz 31 31 mmh3 32 32 ordered-set ··· 40 40 "deepsecrets" 41 41 ]; 42 42 43 - meta = with lib; { 43 + nativeCheckInputs = with python3.pkgs; [ 44 + pytestCheckHook 45 + ]; 46 + 47 + disabledTests = [ 48 + # assumes package is built in /app (docker?), and not /build/${src.name} (nix sandbox) 49 + "test_1_cli" 50 + "test_config" 51 + "test_basic_info" 52 + ]; 53 + 54 + meta = { 44 55 description = "Secrets scanner that understands code"; 45 56 mainProgram = "deepsecrets"; 46 57 homepage = "https://github.com/avito-tech/deepsecrets"; 47 58 changelog = "https://github.com/avito-tech/deepsecrets/releases/tag/v${version}"; 48 - license = licenses.mit; 49 - maintainers = with maintainers; [ fab ]; 59 + license = lib.licenses.mit; 60 + maintainers = with lib.maintainers; [ fab ]; 50 61 }; 51 62 }