about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dodgy/default.nix
blob: ada91ac3181e4a0437995c46fe406e72880a112d (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
41
42
{ buildPythonPackage
, fetchFromGitHub
, isPy3k
, lib

# pythonPackages
, mock
, nose
}:

buildPythonPackage rec {
  pname = "dodgy";
  version = "0.2.1";
  format = "setuptools";
  disabled = !isPy3k;

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

  nativeCheckInputs = [
    mock
    nose
  ];

  checkPhase = ''
    nosetests tests/test_checks.py
  '';

  meta = with lib; {
    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 = licenses.mit;
    maintainers = with maintainers; [
      kamadorueda
    ];
  };
}