about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dodgy/default.nix
blob: 3e4569f3035a9e4797067e5e17af22e9164b662a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,

  # pythonPackages
  mock,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "dodgy";
  version = "0.2.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "landscapeio";
    repo = "dodgy";
    rev = version;
    sha256 = "0ywwjpz0p6ls3hp1lndjr9ql6s5lkj7dgpll1h87w04kwan70j0x";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [
    mock
    pytestCheckHook
  ];

  pytestFlagsArray = [ "tests/test_checks.py" ];

  meta = {
    description = "Looks at Python code to search for things which look \"dodgy\" such as passwords or diffs";
    mainProgram = "dodgy";
    homepage = "https://github.com/landscapeio/dodgy";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ kamadorueda ];
  };
}