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