diff options
Diffstat (limited to 'pkgs/development/python-modules/dodgy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/dodgy/default.nix | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/dodgy/default.nix b/pkgs/development/python-modules/dodgy/default.nix index ada91ac3181e..3e4569f3035a 100644 --- a/pkgs/development/python-modules/dodgy/default.nix +++ b/pkgs/development/python-modules/dodgy/default.nix @@ -1,42 +1,40 @@ -{ buildPythonPackage -, fetchFromGitHub -, isPy3k -, lib +{ + buildPythonPackage, + fetchFromGitHub, + lib, -# pythonPackages -, mock -, nose + # pythonPackages + mock, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { pname = "dodgy"; version = "0.2.1"; - format = "setuptools"; - disabled = !isPy3k; + pyproject = true; src = fetchFromGitHub { owner = "landscapeio"; - repo = pname; + repo = "dodgy"; rev = version; sha256 = "0ywwjpz0p6ls3hp1lndjr9ql6s5lkj7dgpll1h87w04kwan70j0x"; }; + build-system = [ setuptools ]; + nativeCheckInputs = [ mock - nose + pytestCheckHook ]; - checkPhase = '' - nosetests tests/test_checks.py - ''; + pytestFlagsArray = [ "tests/test_checks.py" ]; - meta = with lib; { + 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 = licenses.mit; - maintainers = with maintainers; [ - kamadorueda - ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ kamadorueda ]; }; } |