From 9f4b11ccd225ece1b0842b31c1ac185930ab5844 Mon Sep 17 00:00:00 2001 From: natsukium Date: Tue, 12 Nov 2024 21:50:11 +0900 Subject: [PATCH] python312Packages.backports-shutil-get-terminal-size: remove backports-shutil-get-terminal-size has been removed, since we no longer need to backport to python3.2 --- .../default.nix | 37 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 pkgs/development/python-modules/backports-shutil-get-terminal-size/default.nix diff --git a/pkgs/development/python-modules/backports-shutil-get-terminal-size/default.nix b/pkgs/development/python-modules/backports-shutil-get-terminal-size/default.nix deleted file mode 100644 index b70f3acaaea9..000000000000 --- a/pkgs/development/python-modules/backports-shutil-get-terminal-size/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - pytest, - pythonOlder, -}: - -if !(pythonOlder "3.3") then - null -else - buildPythonPackage { - pname = "backports-shutil-get-terminal-size"; - version = "unstable-2016-02-21"; - - # there have been numerous fixes committed since the initial release. - # Most notably fixing a problem where the backport would always return - # terminal size 0. See https://trac.sagemath.org/ticket/25320#comment:5. - # Unfortunately the maintainer seems inactive and has not responded to - # a request for a new release since 2016: - # https://github.com/chrippa/backports.shutil_get_terminal_size/issues/7 - src = fetchFromGitHub { - owner = "chrippa"; - repo = "backports.shutil_get_terminal_size"; - rev = "159e269450dbf37c3a837f6ea7e628d59acbb96a"; - sha256 = "17sgv8vg0xxfdnca45l1mmwwvj29gich5c8kqznnj51kfccch7sg"; - }; - - nativeCheckInputs = [ pytest ]; - - meta = with lib; { - description = "Backport of the get_terminal_size function from Python 3.3’s shutil"; - homepage = "https://github.com/chrippa/backports.shutil_get_terminal_size"; - license = with licenses; [ mit ]; - maintainers = teams.sage.members; - }; - } diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 0034eb1ff000..681d882159a4 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -68,6 +68,7 @@ mapAliases ({ awkward0 = throw "awkward0 has been removed, use awkward instead"; # added 2022-12-13 azure-functions-devops-build = throw "azure-functions-devops-build has been removed, because it is abandoned"; # added 2024-10-04 Babel = babel; # added 2022-05-06 + backports-shutil-get-terminal-size = throw "backports-shutil-get-terminal-size has been removed, since we no longer need to backport to python3.2"; # added 2024-11-12 backports-shutil-which = throw "backports-shutil-which has been removed, since we no longer need to backport to python3.2"; # added 2024-11-12 backports-zoneinfo = throw "backports-zoneinfo has been removed, since we no longer need to backport to python3.8"; # added 2024-11-12 backports_csv = throw "backports_csv has been removed, since we no longer need to backport to python2"; # added 2023-07-28 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 27bfeeafccda..14c411e3d193 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1438,8 +1438,6 @@ self: super: with self; { backports-entry-points-selectable = callPackage ../development/python-modules/backports-entry-points-selectable { }; - backports-shutil-get-terminal-size = callPackage ../development/python-modules/backports-shutil-get-terminal-size { }; - backports-strenum = callPackage ../development/python-modules/backports-strenum { }; backports-tarfile = callPackage ../development/python-modules/backports-tarfile { };