python312Packages: remove some old backport modules (#355418)

authored by

Martin Weinelt and committed by
GitHub
d43eaad6 40641d0a

+18 -250
-5
pkgs/development/python-modules/astral/default.nix
··· 7 # build 8 poetry-core, 9 10 - # runtime 11 - backports-zoneinfo, 12 - 13 # tests 14 pytestCheckHook, 15 freezegun, ··· 28 }; 29 30 nativeBuildInputs = [ poetry-core ]; 31 - 32 - propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; 33 34 nativeCheckInputs = [ 35 freezegun
··· 7 # build 8 poetry-core, 9 10 # tests 11 pytestCheckHook, 12 freezegun, ··· 25 }; 26 27 nativeBuildInputs = [ poetry-core ]; 28 29 nativeCheckInputs = [ 30 freezegun
-45
pkgs/development/python-modules/backports-cached-property/default.nix
··· 1 - { 2 - lib, 3 - buildPythonPackage, 4 - fetchFromGitHub, 5 - pythonOlder, 6 - setuptools-scm, 7 - wheel, 8 - pytestCheckHook, 9 - pytest-mock, 10 - pytest-sugar, 11 - }: 12 - 13 - buildPythonPackage rec { 14 - pname = "backports-cached-property"; 15 - version = "1.0.2"; 16 - format = "pyproject"; 17 - 18 - disabled = pythonOlder "3.8"; 19 - 20 - src = fetchFromGitHub { 21 - owner = "penguinolog"; 22 - repo = "backports.cached_property"; 23 - rev = version; 24 - hash = "sha256-rdgKbVQaELilPrN4ve8RbbaLiT14Xex0esy5vUX2ZBc="; 25 - }; 26 - 27 - nativeBuildInputs = [ setuptools-scm ]; 28 - 29 - propagatedBuildInputs = [ wheel ]; 30 - 31 - nativeCheckInputs = [ 32 - pytestCheckHook 33 - pytest-mock 34 - pytest-sugar 35 - ]; 36 - 37 - pythonImportsCheck = [ "backports.cached_property" ]; 38 - 39 - meta = with lib; { 40 - description = "Python 3.8 functools.cached_property backport to python 3.6"; 41 - homepage = "https://github.com/penguinolog/backports.cached_property"; 42 - license = with licenses; [ mit ]; 43 - maintainers = with maintainers; [ izorkin ]; 44 - }; 45 - }
···
-37
pkgs/development/python-modules/backports-shutil-get-terminal-size/default.nix
··· 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 - }
···
-30
pkgs/development/python-modules/backports-shutil-which/default.nix
··· 1 - { 2 - lib, 3 - fetchPypi, 4 - buildPythonPackage, 5 - pytest, 6 - }: 7 - 8 - buildPythonPackage rec { 9 - pname = "backports-shutil-which"; 10 - version = "3.5.2"; 11 - 12 - src = fetchPypi { 13 - pname = "backports.shutil_which"; 14 - inherit version; 15 - sha256 = "fe39f567cbe4fad89e8ac4dbeb23f87ef80f7fe8e829669d0221ecdb0437c133"; 16 - }; 17 - 18 - nativeCheckInputs = [ pytest ]; 19 - 20 - checkPhase = '' 21 - py.test test 22 - ''; 23 - 24 - meta = with lib; { 25 - description = "Backport of shutil.which from Python 3.3"; 26 - homepage = "https://github.com/minrk/backports.shutil_which"; 27 - license = licenses.psfl; 28 - maintainers = with maintainers; [ jluttine ]; 29 - }; 30 - }
···
-80
pkgs/development/python-modules/backports-zoneinfo/default.nix
··· 1 - { 2 - lib, 3 - buildPythonPackage, 4 - fetchFromGitHub, 5 - pythonAtLeast, 6 - pythonOlder, 7 - python, 8 - substituteAll, 9 - importlib-resources, 10 - tzdata, 11 - hypothesis, 12 - pytestCheckHook, 13 - fetchpatch, 14 - }: 15 - 16 - buildPythonPackage rec { 17 - pname = "backports-zoneinfo"; 18 - version = "0.2.1"; 19 - format = "setuptools"; 20 - 21 - disabled = pythonAtLeast "3.9"; 22 - 23 - src = fetchFromGitHub { 24 - owner = "pganssle"; 25 - repo = "zoneinfo"; 26 - rev = version; 27 - hash = "sha256-00xdDOVdDanfsjQTd3yjMN2RFGel4cWRrAA3CvSnl24="; 28 - }; 29 - 30 - # Make sure test data update patch applies 31 - prePatch = '' 32 - substituteInPlace tests/data/zoneinfo_data.json --replace \"2020a\" \"2021a\" 33 - ''; 34 - 35 - patches = [ 36 - # Update test suite's test data to zoneinfo 2022a 37 - # https://github.com/pganssle/zoneinfo/pull/115 38 - (fetchpatch { 39 - name = "backports-zoneinfo-2022a-update-test-data1.patch"; 40 - url = "https://github.com/pganssle/zoneinfo/pull/115/commits/837e2a0f9f1a1332e4233f83e3648fa564a9ec9e.patch"; 41 - sha256 = "196knwa212mr0b7zsh8papzr3f5mii87gcjjjx1r9zzvmk3g3ri0"; 42 - }) 43 - (fetchpatch { 44 - name = "backports-zoneinfo-2022a-update-test-data2.patch"; 45 - url = "https://github.com/pganssle/zoneinfo/pull/115/commits/9fd330265b177916d6182249439bb40d5691eb58.patch"; 46 - sha256 = "1zxa5bkwi8hbnh4c0qv72wv6vdp5jlxqizfjsc05ymzvwa99cf75"; 47 - }) 48 - 49 - (substituteAll { 50 - name = "zoneinfo-path"; 51 - src = ./zoneinfo.patch; 52 - zoneinfo = "${tzdata}/${python.sitePackages}/tzdata/zoneinfo"; 53 - }) 54 - ]; 55 - 56 - propagatedBuildInputs = [ tzdata ] ++ lib.optionals (pythonOlder "3.7") [ importlib-resources ]; 57 - 58 - pythonImportsCheck = [ "backports.zoneinfo" ]; 59 - 60 - nativeCheckInputs = [ 61 - hypothesis 62 - pytestCheckHook 63 - ]; 64 - 65 - disabledTests = [ 66 - # AssertionError: 'AEDT' != 'AEST' 67 - "test_folds_and_gaps" 68 - # AssertionError: 0 != 1 : (datetime.datetime(1917, 3, 25, 2, 0, 1, tzinfo=backports.zoneinfo.ZoneInfo(key='Australia/Sydney')), datetime.datetime(1917, 3, 24, 15, 0, tzinfo=datetime.timezone.utc)) 69 - "test_folds_from_utc" 70 - # backports.zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key Eurasia/Badzone' 71 - "test_bad_keys" 72 - ]; 73 - 74 - meta = with lib; { 75 - description = "Backport of the standard library module zoneinfo"; 76 - homepage = "https://github.com/pganssle/zoneinfo"; 77 - license = licenses.asl20; 78 - maintainers = [ ]; 79 - }; 80 - }
···
-17
pkgs/development/python-modules/backports-zoneinfo/zoneinfo.patch
··· 1 - diff --git a/src/backports/zoneinfo/_tzpath.py b/src/backports/zoneinfo/_tzpath.py 2 - index 9baaf6b..3f842af 100644 3 - --- a/src/backports/zoneinfo/_tzpath.py 4 - +++ b/src/backports/zoneinfo/_tzpath.py 5 - @@ -24,10 +24,7 @@ def reset_tzpath(to=None): 6 - base_tzpath = _parse_python_tzpath(env_var) 7 - elif sys.platform != "win32": 8 - base_tzpath = [ 9 - - "/usr/share/zoneinfo", 10 - - "/usr/lib/zoneinfo", 11 - - "/usr/share/lib/zoneinfo", 12 - - "/etc/zoneinfo", 13 - + "@zoneinfo@" 14 - ] 15 - 16 - base_tzpath.sort(key=lambda x: not os.path.exists(x)) 17 -
···
+1 -2
pkgs/development/python-modules/curtsies/default.nix
··· 1 { 2 lib, 3 stdenv, 4 - backports-cached-property, 5 blessed, 6 buildPythonPackage, 7 cwcwidth, ··· 29 propagatedBuildInputs = [ 30 blessed 31 cwcwidth 32 - ] ++ lib.optionals (pythonOlder "3.8") [ backports-cached-property ]; 33 34 nativeCheckInputs = [ 35 pyte
··· 1 { 2 lib, 3 stdenv, 4 blessed, 5 buildPythonPackage, 6 cwcwidth, ··· 28 propagatedBuildInputs = [ 29 blessed 30 cwcwidth 31 + ]; 32 33 nativeCheckInputs = [ 34 pyte
+1 -3
pkgs/development/python-modules/icalendar/default.nix
··· 3 buildPythonPackage, 4 fetchFromGitHub, 5 replaceVars, 6 - pythonOlder, 7 hatch-vcs, 8 hatchling, 9 - backports-zoneinfo, 10 python-dateutil, 11 tzdata, 12 hypothesis, ··· 39 dependencies = [ 40 python-dateutil 41 tzdata 42 - ] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; 43 44 nativeCheckInputs = [ 45 hypothesis
··· 3 buildPythonPackage, 4 fetchFromGitHub, 5 replaceVars, 6 hatch-vcs, 7 hatchling, 8 python-dateutil, 9 tzdata, 10 hypothesis, ··· 37 dependencies = [ 38 python-dateutil 39 tzdata 40 + ]; 41 42 nativeCheckInputs = [ 43 hypothesis
-1
pkgs/development/python-modules/kombu/default.nix
··· 4 azure-identity, 5 azure-servicebus, 6 azure-storage-queue, 7 - backports-zoneinfo, 8 boto3, 9 buildPythonPackage, 10 confluent-kafka,
··· 4 azure-identity, 5 azure-servicebus, 6 azure-storage-queue, 7 boto3, 8 buildPythonPackage, 9 confluent-kafka,
+3 -2
pkgs/development/python-modules/libagent/default.nix
··· 13 unidecode, 14 mock, 15 pytestCheckHook, 16 - backports-shutil-which, 17 configargparse, 18 python-daemon, 19 pymsgbox, ··· 43 44 build-system = [ setuptools ]; 45 46 dependencies = [ 47 unidecode 48 - backports-shutil-which 49 configargparse 50 python-daemon 51 pymsgbox
··· 13 unidecode, 14 mock, 15 pytestCheckHook, 16 configargparse, 17 python-daemon, 18 pymsgbox, ··· 42 43 build-system = [ setuptools ]; 44 45 + # https://github.com/romanz/trezor-agent/pull/481 46 + pythonRemoveDeps = [ "backports.shutil-which" ]; 47 + 48 dependencies = [ 49 unidecode 50 configargparse 51 python-daemon 52 pymsgbox
-1
pkgs/development/python-modules/pelican/default.nix
··· 14 typogrify, 15 16 # dependencies 17 - backports-zoneinfo, 18 blinker, 19 docutils, 20 feedgenerator,
··· 14 typogrify, 15 16 # dependencies 17 blinker, 18 docutils, 19 feedgenerator,
-2
pkgs/development/python-modules/pendulum/default.nix
··· 14 iconv, 15 16 # dependencies 17 - backports-zoneinfo, 18 importlib-resources, 19 python-dateutil, 20 time-machine, ··· 69 ] 70 ++ lib.optional (!isPyPy) [ time-machine ] 71 ++ lib.optionals (pythonOlder "3.9") [ 72 - backports-zoneinfo 73 importlib-resources 74 ]; 75
··· 14 iconv, 15 16 # dependencies 17 importlib-resources, 18 python-dateutil, 19 time-machine, ··· 68 ] 69 ++ lib.optional (!isPyPy) [ time-machine ] 70 ++ lib.optionals (pythonOlder "3.9") [ 71 importlib-resources 72 ]; 73
+1 -2
pkgs/development/python-modules/psycopg/default.nix
··· 12 setuptools, 13 14 # propagates 15 - backports-zoneinfo, 16 typing-extensions, 17 18 # psycopg-c ··· 153 propagatedBuildInputs = [ 154 psycopg-c 155 typing-extensions 156 - ] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; 157 158 pythonImportsCheck = [ 159 "psycopg"
··· 12 setuptools, 13 14 # propagates 15 typing-extensions, 16 17 # psycopg-c ··· 152 propagatedBuildInputs = [ 153 psycopg-c 154 typing-extensions 155 + ]; 156 157 pythonImportsCheck = [ 158 "psycopg"
+1 -3
pkgs/development/python-modules/pytz-deprecation-shim/default.nix
··· 4 fetchPypi, 5 pythonAtLeast, 6 pythonOlder, 7 - backports-zoneinfo, 8 python-dateutil, 9 setuptools, 10 tzdata, ··· 28 nativeBuildInputs = [ setuptools ]; 29 30 propagatedBuildInputs = 31 - (lib.optionals (pythonAtLeast "3.6" && pythonOlder "3.9") [ backports-zoneinfo ]) 32 - ++ (lib.optionals (pythonOlder "3.6") [ python-dateutil ]) 33 ++ (lib.optionals (pythonAtLeast "3.6") [ tzdata ]); 34 35 nativeCheckInputs = [
··· 4 fetchPypi, 5 pythonAtLeast, 6 pythonOlder, 7 python-dateutil, 8 setuptools, 9 tzdata, ··· 27 nativeBuildInputs = [ setuptools ]; 28 29 propagatedBuildInputs = 30 + (lib.optionals (pythonOlder "3.6") [ python-dateutil ]) 31 ++ (lib.optionals (pythonAtLeast "3.6") [ tzdata ]); 32 33 nativeCheckInputs = [
+6 -11
pkgs/development/python-modules/urllib3/default.nix
··· 14 pysocks, 15 16 # tests 17 - backports-zoneinfo, 18 pytestCheckHook, 19 pytest-timeout, 20 - pythonOlder, 21 tornado, 22 trustme, 23 }: ··· 43 socks = [ pysocks ]; 44 }; 45 46 - nativeCheckInputs = 47 - [ 48 - pytest-timeout 49 - pytestCheckHook 50 - tornado 51 - trustme 52 - ] 53 - ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ] 54 - ++ lib.flatten (builtins.attrValues optional-dependencies); 55 56 # Tests in urllib3 are mostly timeout-based instead of event-based and 57 # are therefore inherently flaky. On your own machine, the tests will
··· 14 pysocks, 15 16 # tests 17 pytestCheckHook, 18 pytest-timeout, 19 tornado, 20 trustme, 21 }: ··· 41 socks = [ pysocks ]; 42 }; 43 44 + nativeCheckInputs = [ 45 + pytest-timeout 46 + pytestCheckHook 47 + tornado 48 + trustme 49 + ] ++ lib.flatten (builtins.attrValues optional-dependencies); 50 51 # Tests in urllib3 are mostly timeout-based instead of event-based and 52 # are therefore inherently flaky. On your own machine, the tests will
+1 -1
pkgs/servers/home-assistant/default.nix
··· 95 --replace-fail "poetry>=1.0.0b1" "poetry-core" \ 96 --replace-fail "poetry.masonry" "poetry.core.masonry" 97 ''; 98 - propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ 99 self.pytz 100 ]; 101 });
··· 95 --replace-fail "poetry>=1.0.0b1" "poetry-core" \ 96 --replace-fail "poetry.masonry" "poetry.core.masonry" 97 ''; 98 + propagatedBuildInputs = (oldAttrs.propagatedBuildInputs or []) ++ [ 99 self.pytz 100 ]; 101 });
+4
pkgs/top-level/python-aliases.nix
··· 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_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
-8
pkgs/top-level/python-packages.nix
··· 1436 1437 backoff = callPackage ../development/python-modules/backoff { }; 1438 1439 - backports-cached-property = callPackage ../development/python-modules/backports-cached-property { }; 1440 - 1441 backports-datetime-fromisoformat = callPackage ../development/python-modules/backports-datetime-fromisoformat { }; 1442 1443 backports-entry-points-selectable = callPackage ../development/python-modules/backports-entry-points-selectable { }; 1444 1445 - backports-shutil-get-terminal-size = callPackage ../development/python-modules/backports-shutil-get-terminal-size { }; 1446 - 1447 - backports-shutil-which = callPackage ../development/python-modules/backports-shutil-which { }; 1448 - 1449 backports-strenum = callPackage ../development/python-modules/backports-strenum { }; 1450 1451 backports-tarfile = callPackage ../development/python-modules/backports-tarfile { }; 1452 - 1453 - backports-zoneinfo = callPackage ../development/python-modules/backports-zoneinfo { }; 1454 1455 bacpypes = callPackage ../development/python-modules/bacpypes { }; 1456
··· 1436 1437 backoff = callPackage ../development/python-modules/backoff { }; 1438 1439 backports-datetime-fromisoformat = callPackage ../development/python-modules/backports-datetime-fromisoformat { }; 1440 1441 backports-entry-points-selectable = callPackage ../development/python-modules/backports-entry-points-selectable { }; 1442 1443 backports-strenum = callPackage ../development/python-modules/backports-strenum { }; 1444 1445 backports-tarfile = callPackage ../development/python-modules/backports-tarfile { }; 1446 1447 bacpypes = callPackage ../development/python-modules/bacpypes { }; 1448