···1-{
2- lib,
3- buildPythonPackage,
4- fetchFromGitHub,
5- pytest,
6- pythonOlder,
7-}:
8-9-if !(pythonOlder "3.3") then
10- null
11-else
12- buildPythonPackage {
13- pname = "backports-shutil-get-terminal-size";
14- version = "unstable-2016-02-21";
15-16- # there have been numerous fixes committed since the initial release.
17- # Most notably fixing a problem where the backport would always return
18- # terminal size 0. See https://trac.sagemath.org/ticket/25320#comment:5.
19- # Unfortunately the maintainer seems inactive and has not responded to
20- # a request for a new release since 2016:
21- # https://github.com/chrippa/backports.shutil_get_terminal_size/issues/7
22- src = fetchFromGitHub {
23- owner = "chrippa";
24- repo = "backports.shutil_get_terminal_size";
25- rev = "159e269450dbf37c3a837f6ea7e628d59acbb96a";
26- sha256 = "17sgv8vg0xxfdnca45l1mmwwvj29gich5c8kqznnj51kfccch7sg";
27- };
28-29- nativeCheckInputs = [ pytest ];
30-31- meta = with lib; {
32- description = "Backport of the get_terminal_size function from Python 3.3’s shutil";
33- homepage = "https://github.com/chrippa/backports.shutil_get_terminal_size";
34- license = with licenses; [ mit ];
35- maintainers = teams.sage.members;
36- };
37- }
···68 awkward0 = throw "awkward0 has been removed, use awkward instead"; # added 2022-12-13
69 azure-functions-devops-build = throw "azure-functions-devops-build has been removed, because it is abandoned"; # added 2024-10-04
70 Babel = babel; # added 2022-05-06
000071 backports_csv = throw "backports_csv has been removed, since we no longer need to backport to python2"; # added 2023-07-28
72 backports_functools_lru_cache = throw "backports_functools_lru_cache has been removed, since we no longer need to backport to python3.2"; # added 2023-07-28
73 backports_shutil_get_terminal_size = backports-shutil-get-terminal-size; # added 2024-04-21
···68 awkward0 = throw "awkward0 has been removed, use awkward instead"; # added 2022-12-13
69 azure-functions-devops-build = throw "azure-functions-devops-build has been removed, because it is abandoned"; # added 2024-10-04
70 Babel = babel; # added 2022-05-06
71+ backports-cached-property = throw "backports-cached-property has been removed, since we no longer need to backport to python3.7"; # added 2024-11-12
72+ 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
73+ backports-shutil-which = throw "backports-shutil-which has been removed, since we no longer need to backport to python3.2"; # added 2024-11-12
74+ backports-zoneinfo = throw "backports-zoneinfo has been removed, since we no longer need to backport to python3.8"; # added 2024-11-12
75 backports_csv = throw "backports_csv has been removed, since we no longer need to backport to python2"; # added 2023-07-28
76 backports_functools_lru_cache = throw "backports_functools_lru_cache has been removed, since we no longer need to backport to python3.2"; # added 2023-07-28
77 backports_shutil_get_terminal_size = backports-shutil-get-terminal-size; # added 2024-04-21