From 15415424ac68b941fd694fc9ee747da50b5a4dee Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Sun, 22 Mar 2026 11:09:07 +0100 Subject: [PATCH] python3Packages.flake8-future-import: drop flake8-future-import has seen no upstream activity since August 2022 [1], is unmaintained in nixpkgs, and is broken with Python 3.14 [2]. [1] https://github.com/xZise/flake8-future-import [2] https://hydra.nixos.org/build/324630891/nixlog/1 --- .../flake8-future-import/default.nix | 52 ------------------- .../fix-annotations-version-11.patch | 13 ----- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 4 files changed, 1 insertion(+), 67 deletions(-) delete mode 100644 pkgs/development/python-modules/flake8-future-import/default.nix delete mode 100644 pkgs/development/python-modules/flake8-future-import/fix-annotations-version-11.patch diff --git a/pkgs/development/python-modules/flake8-future-import/default.nix b/pkgs/development/python-modules/flake8-future-import/default.nix deleted file mode 100644 index c41bb467c632..000000000000 --- a/pkgs/development/python-modules/flake8-future-import/default.nix +++ /dev/null @@ -1,52 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - setuptools, - flake8, - six, - python, -}: - -buildPythonPackage rec { - pname = "flake8-future-import"; - version = "0.4.7"; - pyproject = true; - - # PyPI tarball doesn't include the test suite - src = fetchFromGitHub { - owner = "xZise"; - repo = "flake8-future-import"; - tag = version; - hash = "sha256-2EcCOx3+PCk9LYpQjHCFNpQVI2Pdi+lWL8R6bNadFe0="; - }; - - patches = [ - ./fix-annotations-version-11.patch - ]; - - postPatch = '' - substituteInPlace "test_flake8_future_import.py" \ - --replace-fail "'flake8'" "'${lib.getExe flake8}'" - ''; - - build-system = [ setuptools ]; - - dependencies = [ flake8 ]; - - nativeCheckInputs = [ six ]; - - checkPhase = '' - runHook preCheck - - ${python.interpreter} -m test_flake8_future_import - - runHook postCheck - ''; - - meta = { - description = "Flake8 extension to check for the imported __future__ modules to make it easier to have a consistent code base"; - homepage = "https://github.com/xZise/flake8-future-import"; - license = lib.licenses.mit; - }; -} diff --git a/pkgs/development/python-modules/flake8-future-import/fix-annotations-version-11.patch b/pkgs/development/python-modules/flake8-future-import/fix-annotations-version-11.patch deleted file mode 100644 index 7cbb5e562c33..000000000000 --- a/pkgs/development/python-modules/flake8-future-import/fix-annotations-version-11.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/flake8_future_import.py b/flake8_future_import.py -index 92c3fda..27a1a66 100755 ---- a/flake8_future_import.py -+++ b/flake8_future_import.py -@@ -76,7 +76,7 @@ UNICODE_LITERALS = Feature(4, 'unicode_literals', (2, 6, 0), (3, 0, 0)) - GENERATOR_STOP = Feature(5, 'generator_stop', (3, 5, 0), (3, 7, 0)) - NESTED_SCOPES = Feature(6, 'nested_scopes', (2, 1, 0), (2, 2, 0)) - GENERATORS = Feature(7, 'generators', (2, 2, 0), (2, 3, 0)) --ANNOTATIONS = Feature(8, 'annotations', (3, 7, 0), (4, 0, 0)) -+ANNOTATIONS = Feature(8, 'annotations', (3, 7, 0), (3, 11, 0)) - - - # Order important as it defines the error code diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index d9d1dd335ef6..ab0ce4df586c 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -199,6 +199,7 @@ mapAliases { fenics = throw "fenics has been removed, use fenics-dolfinx instead"; # added 2025-08-07 filebrowser_safe = throw "'filebrowser_safe' has been renamed to/replaced by 'filebrowser-safe'"; # Converted to throw 2025-10-29 filesplit = throw "filesplit has been removed, since it is unmaintained"; # added 2025-08-20 + flake8-future-import = throw "'flake8-future-import' has been removed as it was unmaintained upstream"; # Added 2026-03-22 flask-security-too = throw "'flask-security-too' has been renamed to/replaced by 'flask-security'"; # Converted to throw 2025-10-29 flask-silk = throw "flask-silk was removed, as it is unmaintained since 2018."; # added 2025-05-25 flask_assets = throw "'flask_assets' has been renamed to/replaced by 'flask-assets'"; # Converted to throw 2025-10-29 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fcf19791ac15..f890d1428180 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5595,8 +5595,6 @@ self: super: with self; { flake8-docstrings = callPackage ../development/python-modules/flake8-docstrings { }; - flake8-future-import = callPackage ../development/python-modules/flake8-future-import { }; - flake8-import-order = callPackage ../development/python-modules/flake8-import-order { }; flake8-length = callPackage ../development/python-modules/flake8-length { };