about summary refs log tree commit diff
path: root/pkgs/tools/admin/aws-encryption-sdk-cli
diff options
context:
space:
mode:
authorKirill Radzikhovskyy2023-12-05 19:23:32 +1100
committerKirill Radzikhovskyy2023-12-06 06:37:26 +1100
commit106fde657e8db6078b99d59279a384216d82f9a2 (patch)
tree49825b5c51e91c0765c663fb123e59ceaf97a1a9 /pkgs/tools/admin/aws-encryption-sdk-cli
parent0eb6d4fb0c31f274d7d3803ec512dda8eb6cb437 (diff)
aws-encryption-sdk-cli: fix build, pin urllib3
Diffstat (limited to 'pkgs/tools/admin/aws-encryption-sdk-cli')
-rw-r--r--pkgs/tools/admin/aws-encryption-sdk-cli/default.nix26
1 files changed, 22 insertions, 4 deletions
diff --git a/pkgs/tools/admin/aws-encryption-sdk-cli/default.nix b/pkgs/tools/admin/aws-encryption-sdk-cli/default.nix
index 526730e72228..2bc331cc1874 100644
--- a/pkgs/tools/admin/aws-encryption-sdk-cli/default.nix
+++ b/pkgs/tools/admin/aws-encryption-sdk-cli/default.nix
@@ -1,12 +1,29 @@
 { lib
-, python3Packages
+, python3
 , fetchPypi
 , nix-update-script
 , testers
 , aws-encryption-sdk-cli
 }:
 
-python3Packages.buildPythonApplication rec {
+let
+  localPython = python3.override {
+    self = localPython;
+    packageOverrides = final: prev: {
+      urllib3 = prev.urllib3.overridePythonAttrs (prev: rec {
+        pyproject = true;
+        version = "1.26.18";
+        nativeBuildInputs = with final; [ setuptools ];
+        src = prev.src.override {
+          inherit version;
+          hash = "sha256-+OzBu6VmdBNFfFKauVW/jGe0XbeZ0VkGYmFxnjKFgKA=";
+        };
+      });
+    };
+  };
+in
+
+localPython.pkgs.buildPythonApplication rec {
   pname = "aws-encryption-sdk-cli";
   version = "4.1.0";
 
@@ -15,15 +32,16 @@ python3Packages.buildPythonApplication rec {
     hash = "sha256-OCbt0OkDVfpzUIogbsKzaPAle2L6l6N3cmZoS2hEaSM=";
   };
 
-  propagatedBuildInputs = with python3Packages; [
+  propagatedBuildInputs = with localPython.pkgs; [
     attrs
     aws-encryption-sdk
     base64io
+    urllib3
   ];
 
   doCheck = true;
 
-  nativeCheckInputs = with python3Packages; [
+  nativeCheckInputs = with localPython.pkgs; [
     mock
     pytest-mock
     pytestCheckHook