···11-{
22- lib,
33- buildPythonPackage,
44- fetchFromGitHub,
55- pytest,
66- pythonOlder,
77-}:
88-99-if !(pythonOlder "3.3") then
1010- null
1111-else
1212- buildPythonPackage {
1313- pname = "backports-shutil-get-terminal-size";
1414- version = "unstable-2016-02-21";
1515-1616- # there have been numerous fixes committed since the initial release.
1717- # Most notably fixing a problem where the backport would always return
1818- # terminal size 0. See https://trac.sagemath.org/ticket/25320#comment:5.
1919- # Unfortunately the maintainer seems inactive and has not responded to
2020- # a request for a new release since 2016:
2121- # https://github.com/chrippa/backports.shutil_get_terminal_size/issues/7
2222- src = fetchFromGitHub {
2323- owner = "chrippa";
2424- repo = "backports.shutil_get_terminal_size";
2525- rev = "159e269450dbf37c3a837f6ea7e628d59acbb96a";
2626- sha256 = "17sgv8vg0xxfdnca45l1mmwwvj29gich5c8kqznnj51kfccch7sg";
2727- };
2828-2929- nativeCheckInputs = [ pytest ];
3030-3131- meta = with lib; {
3232- description = "Backport of the get_terminal_size function from Python 3.3’s shutil";
3333- homepage = "https://github.com/chrippa/backports.shutil_get_terminal_size";
3434- license = with licenses; [ mit ];
3535- maintainers = teams.sage.members;
3636- };
3737- }
···6868 awkward0 = throw "awkward0 has been removed, use awkward instead"; # added 2022-12-13
6969 azure-functions-devops-build = throw "azure-functions-devops-build has been removed, because it is abandoned"; # added 2024-10-04
7070 Babel = babel; # added 2022-05-06
7171+ backports-cached-property = throw "backports-cached-property has been removed, since we no longer need to backport to python3.7"; # added 2024-11-12
7272+ 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
7373+ backports-shutil-which = throw "backports-shutil-which has been removed, since we no longer need to backport to python3.2"; # added 2024-11-12
7474+ backports-zoneinfo = throw "backports-zoneinfo has been removed, since we no longer need to backport to python3.8"; # added 2024-11-12
7175 backports_csv = throw "backports_csv has been removed, since we no longer need to backport to python2"; # added 2023-07-28
7276 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
7377 backports_shutil_get_terminal_size = backports-shutil-get-terminal-size; # added 2024-04-21