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