Unverified Commit f5eea94d authored by Michael Daniels's avatar Michael Daniels
Browse files

python3Packages.ansiwrap: drop

Has been marked broken for at least a full release cycle.

Dropping per RFC 180.
parent 0feef16e
Loading
Loading
Loading
Loading
+0 −52
Original line number Diff line number Diff line
{
  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;
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -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
+0 −2
Original line number Diff line number Diff line
@@ -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 { };