From f9758c35680a2b197291f06a321d1d6a0894c947 Mon Sep 17 00:00:00 2001 From: Kirill Radzikhovskyy Date: Wed, 15 Mar 2023 07:12:19 +1100 Subject: [PATCH] awscli2: fixup, downgrade ipython --- pkgs/tools/admin/awscli2/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/tools/admin/awscli2/default.nix b/pkgs/tools/admin/awscli2/default.nix index 1185bd4d13b6..9068b9160179 100644 --- a/pkgs/tools/admin/awscli2/default.nix +++ b/pkgs/tools/admin/awscli2/default.nix @@ -11,6 +11,18 @@ let py = python3.override { packageOverrides = self: super: { + ipython = super.ipython.overridePythonAttrs (oldAttrs: rec { + pname = "ipython"; + version = "8.5.0"; + + src = self.fetchPypi { + inherit pname version; + sha256 = "sha256-CXvfXNh1dv0GYXnJ9/IIAE96aGTuGyDzfTRsC8sJn4Q="; + }; + + disabledTests = [ "testIPythonLexer" ] ++ oldAttrs.disabledTests; + }); + prompt-toolkit = super.prompt-toolkit.overridePythonAttrs (oldAttrs: rec { version = "3.0.28"; src = self.fetchPypi { @@ -36,6 +48,8 @@ with py.pkgs; buildPythonApplication rec { }; postPatch = '' + substituteInPlace requirements/bootstrap.txt \ + --replace "pip>=22.0.0,<23.0.0" "pip>=22.0.0,<24.0.0" substituteInPlace pyproject.toml \ --replace "distro>=1.5.0,<1.6.0" "distro>=1.5.0" \ --replace "cryptography>=3.3.2,<38.0.5" "cryptography>=3.3.2"