From 26f4e2b0fdaf44db2e0378500dd80df592232c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 1 Apr 2025 16:43:12 -0700 Subject: [PATCH] python313Packages.pyflakes: modernize --- .../python-modules/pyflakes/default.nix | 28 ++++++------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/pyflakes/default.nix b/pkgs/development/python-modules/pyflakes/default.nix index 5443cfd4d3c2..88b8887519f9 100644 --- a/pkgs/development/python-modules/pyflakes/default.nix +++ b/pkgs/development/python-modules/pyflakes/default.nix @@ -2,8 +2,6 @@ lib, buildPythonPackage, isPyPy, - pythonAtLeast, - pythonOlder, fetchFromGitHub, setuptools, pytestCheckHook, @@ -12,39 +10,31 @@ buildPythonPackage rec { pname = "pyflakes"; version = "3.3.2"; - - disabled = pythonOlder "3.8"; - pyproject = true; src = fetchFromGitHub { owner = "PyCQA"; repo = "pyflakes"; - rev = version; + tag = version; hash = "sha256-nNug9EZ0coI095/QJu/eK1Ozlt01INT+mLlYdqrJuzE="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = - lib.optionals (pythonAtLeast "3.13") [ - # https://github.com/PyCQA/pyflakes/issues/812 - "test_errors_syntax" - ] - ++ lib.optionals isPyPy [ - # https://github.com/PyCQA/pyflakes/issues/779 - "test_eofSyntaxError" - "test_misencodedFileUTF8" - "test_multilineSyntaxError" - ]; + disabledTests = lib.optionals isPyPy [ + # https://github.com/PyCQA/pyflakes/issues/779 + "test_eofSyntaxError" + "test_misencodedFileUTF8" + "test_multilineSyntaxError" + ]; pythonImportsCheck = [ "pyflakes" ]; meta = with lib; { homepage = "https://github.com/PyCQA/pyflakes"; - changelog = "https://github.com/PyCQA/pyflakes/blob/${src.rev}/NEWS.rst"; + changelog = "https://github.com/PyCQA/pyflakes/blob/${src.tag}/NEWS.rst"; description = "Simple program which checks Python source files for errors"; mainProgram = "pyflakes"; license = licenses.mit;