diff --git a/pkgs/development/python-modules/flake8-debugger/default.nix b/pkgs/development/python-modules/flake8-debugger/default.nix index 41f97be8878..55858a9eaf2 100644 --- a/pkgs/development/python-modules/flake8-debugger/default.nix +++ b/pkgs/development/python-modules/flake8-debugger/default.nix @@ -1,32 +1,41 @@ -{ lib, fetchPypi, buildPythonPackage, isPy27 +{ lib +, buildPythonPackage +, fetchPypi , flake8 , pycodestyle -, six , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "flake8-debugger"; version = "4.1.2"; - disabled = isPy27; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-UrACVglB422b+Ab8olI9x/uFYKKV1fGm4VrC3tenOEA="; + hash = "sha256-UrACVglB422b+Ab8olI9x/uFYKKV1fGm4VrC3tenOEA="; }; - propagatedBuildInputs = [ flake8 pycodestyle six ]; + propagatedBuildInputs = [ + flake8 + pycodestyle + ]; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; - # Tests not included in PyPI tarball - # FIXME: Remove when https://github.com/JBKahn/flake8-debugger/pull/15 is merged - doCheck = false; + pythonImportsCheck = [ + "flake8_debugger" + ]; - meta = { - homepage = "https://github.com/jbkahn/flake8-debugger"; + meta = with lib; { description = "ipdb/pdb statement checker plugin for flake8"; - maintainers = with lib.maintainers; [ johbo ]; - license = lib.licenses.mit; + homepage = "https://github.com/jbkahn/flake8-debugger"; + license = licenses.mit; + maintainers = with maintainers; [ johbo ]; }; }