From f5eea94db2187a12bfff31e09164d2c71fafff89 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Fri, 3 Oct 2025 08:50:13 -0400 Subject: [PATCH] python3Packages.ansiwrap: drop Has been marked broken for at least a full release cycle. Dropping per RFC 180. --- .../python-modules/ansiwrap/default.nix | 52 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 54 deletions(-) delete mode 100644 pkgs/development/python-modules/ansiwrap/default.nix diff --git a/pkgs/development/python-modules/ansiwrap/default.nix b/pkgs/development/python-modules/ansiwrap/default.nix deleted file mode 100644 index 48963155d0c0..000000000000 --- a/pkgs/development/python-modules/ansiwrap/default.nix +++ /dev/null @@ -1,52 +0,0 @@ -{ - lib, - ansicolors, - buildPythonPackage, - fetchPypi, - pytestCheckHook, - pythonAtLeast, - pythonOlder, - setuptools, - textwrap3, -}: -buildPythonPackage rec { - pname = "ansiwrap"; - version = "0.8.4"; - pyproject = true; - - disabled = pythonOlder "3.7" || pythonAtLeast "3.12"; - - src = fetchPypi { - inherit pname version; - extension = "zip"; - hash = "sha256-ygx0BzTN5Zv5Gfj/LDhvdPmjaYGM3GDv6UiT0B6o2bc="; - }; - - postPatch = '' - # https://github.com/jonathaneunice/ansiwrap/issues/18 - substituteInPlace test/test_ansiwrap.py \ - --replace-fail "set(range(20, 120)).difference(LINE_LENGTHS)" "sorted(set(range(20, 120)).difference(LINE_LENGTHS))" \ - --replace-fail "set(range(120, 400)).difference(LINE_LENGTHS)" "sorted(set(range(120, 400)).difference(LINE_LENGTHS))" - ''; - - build-system = [ setuptools ]; - - dependencies = [ textwrap3 ]; - - nativeCheckInputs = [ - ansicolors - pytestCheckHook - ]; - - pythonImportsCheck = [ "ansiwrap" ]; - - meta = with lib; { - description = "Textwrap, but savvy to ANSI colors and styles"; - homepage = "https://github.com/jonathaneunice/ansiwrap"; - changelog = "https://github.com/jonathaneunice/ansiwrap/blob/master/CHANGES.yml"; - license = licenses.asl20; - maintainers = [ ]; - - broken = true; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index f17434b17512..8cd77293272d 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -72,6 +72,7 @@ mapAliases ({ aionotify = throw "aionotify has been removed because is unmaintained and incompatible with python3.11."; # Added 2023-10-27 aiosenseme = throw "aiosenseme has been removed, because it does no longer work with the latest firmware and has become unmaintained"; # Added 2023-07-05 aioquic-mitmproxy = throw "aioquic-mitmproxy has been removed because mitmproxy no longer uses it"; # Added 2024-01-16 + ansiwrap = throw "ansiwrap has been removed because it has been marked as broken since at least November 2024."; # Added 2025-10-03 amazon_kclpy = amazon-kclpy; # added 2023-08-08 ambiclimate = throw "ambiclimate has been removed, because the service has been terminated after 2024-03-31."; # Added 2024-06-07 ambee = throw "ambee has been removed because the upstream repository was archived in 2022"; # Added 2024-10-04 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1dd003ebee66..107bb03a76db 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -745,8 +745,6 @@ self: super: with self; { ansitable = callPackage ../development/python-modules/ansitable { }; - ansiwrap = callPackage ../development/python-modules/ansiwrap { }; - anthemav = callPackage ../development/python-modules/anthemav { }; anthropic = callPackage ../development/python-modules/anthropic { };