mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
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
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user