From b2422f6a3ab66bc0b7479e2f9a76f5317d73680d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 11 Aug 2022 12:02:48 +0000 Subject: [PATCH] python310Packages.pyflakes: 2.4.0 -> 2.5.0 https://github.com/PyCQA/pyflakes/blob/2.5.0/NEWS.rst --- .../python-modules/pyflakes/default.nix | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pyflakes/default.nix b/pkgs/development/python-modules/pyflakes/default.nix index f8e00b20e726..64f554a00efd 100644 --- a/pkgs/development/python-modules/pyflakes/default.nix +++ b/pkgs/development/python-modules/pyflakes/default.nix @@ -1,23 +1,34 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder, unittest2 }: +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, pytestCheckHook +}: buildPythonPackage rec { pname = "pyflakes"; - version = "2.4.0"; + version = "2.5.0"; + + disabled = pythonOlder "3.6"; + + format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c"; + sha256 = "491feb020dca48ccc562a8c0cbe8df07ee13078df59813b83959cbdada312ea3"; }; - checkInputs = [ unittest2 ]; + checkInputs = [ + pytestCheckHook + ]; - # some tests are output dependent, which have changed slightly - doCheck = pythonOlder "3.9"; + pythonImportsCheck = [ "pyflakes" ]; meta = with lib; { - homepage = "https://launchpad.net/pyflakes"; + homepage = "https://github.com/PyCQA/pyflakes"; + changelog = "https://github.com/PyCQA/pyflakes/blob/${version}/NEWS.rst"; description = "A simple program which checks Python source files for errors"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ dotlambda ]; }; }