From 7f4c4705b65925b2fa2392cd9826df71b5655bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 1 Apr 2025 16:46:02 -0700 Subject: [PATCH] python313Packages.pycodestyle: modernize --- .../python-modules/pycodestyle/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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 '';