1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5
6 # pythonPackages
7 mock,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "dodgy";
14 version = "0.2.1";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "landscapeio";
19 repo = "dodgy";
20 rev = version;
21 sha256 = "0ywwjpz0p6ls3hp1lndjr9ql6s5lkj7dgpll1h87w04kwan70j0x";
22 };
23
24 build-system = [ setuptools ];
25
26 nativeCheckInputs = [
27 mock
28 pytestCheckHook
29 ];
30
31 enabledTestPaths = [ "tests/test_checks.py" ];
32
33 meta = {
34 description = "Looks at Python code to search for things which look \"dodgy\" such as passwords or diffs";
35 mainProgram = "dodgy";
36 homepage = "https://github.com/landscapeio/dodgy";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ kamadorueda ];
39 };
40}