diff --git a/pkgs/development/python-modules/backports-shutil-which/default.nix b/pkgs/development/python-modules/backports-shutil-which/default.nix deleted file mode 100644 index 07335b5bf6b1..000000000000 --- a/pkgs/development/python-modules/backports-shutil-which/default.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ - lib, - fetchPypi, - buildPythonPackage, - pytest, -}: - -buildPythonPackage rec { - pname = "backports-shutil-which"; - version = "3.5.2"; - - src = fetchPypi { - pname = "backports.shutil_which"; - inherit version; - sha256 = "fe39f567cbe4fad89e8ac4dbeb23f87ef80f7fe8e829669d0221ecdb0437c133"; - }; - - nativeCheckInputs = [ pytest ]; - - checkPhase = '' - py.test test - ''; - - meta = with lib; { - description = "Backport of shutil.which from Python 3.3"; - homepage = "https://github.com/minrk/backports.shutil_which"; - license = licenses.psfl; - maintainers = with maintainers; [ jluttine ]; - }; -} diff --git a/pkgs/development/python-modules/libagent/default.nix b/pkgs/development/python-modules/libagent/default.nix index 3422ae2ced2d..15d3cefb88ca 100644 --- a/pkgs/development/python-modules/libagent/default.nix +++ b/pkgs/development/python-modules/libagent/default.nix @@ -13,7 +13,6 @@ unidecode, mock, pytestCheckHook, - backports-shutil-which, configargparse, python-daemon, pymsgbox, @@ -43,9 +42,11 @@ buildPythonPackage rec { build-system = [ setuptools ]; + # https://github.com/romanz/trezor-agent/pull/481 + pythonRemoveDeps = [ "backports.shutil-which" ]; + dependencies = [ unidecode - backports-shutil-which configargparse python-daemon pymsgbox diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 5f813c4e068c..0034eb1ff000 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-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 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 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c42f3be8973e..27bfeeafccda 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1440,8 +1440,6 @@ self: super: with self; { backports-shutil-get-terminal-size = callPackage ../development/python-modules/backports-shutil-get-terminal-size { }; - backports-shutil-which = callPackage ../development/python-modules/backports-shutil-which { }; - backports-strenum = callPackage ../development/python-modules/backports-strenum { }; backports-tarfile = callPackage ../development/python-modules/backports-tarfile { };