diff --git a/pkgs/development/python-modules/pycodestyle/default.nix b/pkgs/development/python-modules/pycodestyle/default.nix index 0a2ffde07b42..29089d7e61f2 100644 --- a/pkgs/development/python-modules/pycodestyle/default.nix +++ b/pkgs/development/python-modules/pycodestyle/default.nix @@ -1,32 +1,31 @@ { buildPythonPackage, - pythonOlder, fetchFromGitHub, lib, python, pytestCheckHook, + setuptools, }: buildPythonPackage rec { pname = "pycodestyle"; version = "2.13.0"; - - disabled = pythonOlder "3.6"; - - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "PyCQA"; repo = "pycodestyle"; - rev = version; + tag = version; hash = "sha256-jpF0/sVzRjot8KRdXqvhWpdafzC/Fska6jmG3s2U6Wk="; }; + build-system = [ setuptools ]; + pythonImportsCheck = [ "pycodestyle" ]; nativeCheckInputs = [ pytestCheckHook ]; - # https://github.com/PyCQA/pycodestyle/blob/2.11.0/tox.ini#L16 + # https://github.com/PyCQA/pycodestyle/blob/2.13.0/tox.ini#L16 postCheck = '' ${python.interpreter} -m pycodestyle --statistics pycodestyle.py '';