Merge pull request #272215 from kirillrdy/aws-encyption-sdk-cli

aws-encryption-sdk-cli: fix build, pin urllib3
This commit is contained in:
maxine 2023-12-06 22:13:48 +01:00 committed by GitHub
commit 9cbc781563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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