From 6d3a1b00f6fc1ccb99dfac69ae8ca3073680a757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 11 Aug 2022 12:09:14 +0000 Subject: [PATCH] python310Packages.pycodestyle: 2.8.0 -> 2.9.1 https://github.com/PyCQA/pycodestyle/blob/2.9.1/CHANGES.txt --- .../python-modules/pycodestyle/default.nix | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pycodestyle/default.nix b/pkgs/development/python-modules/pycodestyle/default.nix index 865c1febddcf..9904353bfccd 100644 --- a/pkgs/development/python-modules/pycodestyle/default.nix +++ b/pkgs/development/python-modules/pycodestyle/default.nix @@ -1,4 +1,5 @@ { buildPythonPackage +, pythonOlder , fetchPypi , lib , python @@ -6,26 +7,30 @@ buildPythonPackage rec { pname = "pycodestyle"; - version = "2.8.0"; + version = "2.9.1"; + + disabled = pythonOlder "3.6"; + + format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "0zxyrg8029lzjhima6l5nk6y0z6lm5wfp9qchz3s33j3xx3mipgd"; + sha256 = "2c9607871d58c76354b697b42f5d57e1ada7d261c261efac224b664affdc5785"; }; - dontUseSetuptoolsCheck = true; - - # https://github.com/PyCQA/pycodestyle/blob/2.5.0/tox.ini#L14 + # https://github.com/PyCQA/pycodestyle/blob/2.9.1/tox.ini#L13 checkPhase = '' - ${python.interpreter} pycodestyle.py --max-doc-length=72 --testsuite testsuite - ${python.interpreter} pycodestyle.py --statistics pycodestyle.py - ${python.interpreter} pycodestyle.py --max-doc-length=72 --doctest + ${python.interpreter} -m pycodestyle --statistics pycodestyle.py + ${python.interpreter} -m pycodestyle --max-doc-length=72 --testsuite testsuite + ${python.interpreter} -m pycodestyle --max-doc-length=72 --doctest ${python.interpreter} -m unittest discover testsuite -vv ''; + pythonImportsCheck = [ "pycodestyle" ]; + meta = with lib; { - description = "Python style guide checker (formerly called pep8)"; - homepage = "https://pycodestyle.readthedocs.io"; + description = "Python style guide checker"; + homepage = "https://pycodestyle.pycqa.org/"; license = licenses.mit; maintainers = with maintainers; [ kamadorueda