Merge pull request #249286 from anthonyroussel/aws-encryption-sdk-cli

aws-encryption-sdk-cli: init at 4.1.0
This commit is contained in:
Mario Rodas 2023-09-21 06:53:46 -05:00 committed by GitHub
commit 2880f62798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 141 additions and 0 deletions

View File

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchPypi
, attrs
, boto3
, cryptography
, setuptools
, wrapt
, mock
, pytest
, pytest-mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aws-encryption-sdk";
version = "3.1.1";
src = fetchPypi {
inherit pname version;
hash = "sha256-jV+/AY/GjWscrL5N0Df9gFKWx3Nqn+RX62hNBT9/lWM=";
};
propagatedBuildInputs = [
attrs
boto3
cryptography
setuptools
wrapt
];
doCheck = true;
nativeCheckInputs = [
mock
pytest
pytest-mock
pytestCheckHook
];
disabledTestPaths = [
# requires networking
"examples"
"test/integration"
];
meta = with lib; {
homepage = "https://aws-encryption-sdk-python.readthedocs.io/";
changelog = "https://github.com/aws/aws-encryption-sdk-python/blob/v${version}/CHANGELOG.rst";
description = "Fully compliant, native Python implementation of the AWS Encryption SDK.";
license = licenses.apsl20;
maintainers = with maintainers; [ anthonyroussel ];
};
}

View File

@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "base64io";
version = "1.0.3";
src = fetchPypi {
inherit pname version;
hash = "sha256-JPLQ/nZcNTOeGy0zqpX5E3sbdltZQWT60QFsFYJ6cHM=";
};
nativeCheckInputs = [
mock
pytestCheckHook
];
meta = with lib; {
homepage = "https://base64io-python.readthedocs.io/";
changelog = "https://github.com/aws/base64io-python/blob/${version}/CHANGELOG.rst";
description = "Python stream implementation for base64 encoding/decoding";
license = licenses.apsl20;
maintainers = with maintainers; [ anthonyroussel ];
};
}

View File

@ -0,0 +1,52 @@
{ lib
, python3Packages
, fetchPypi
, nix-update-script
, testers
, aws-encryption-sdk-cli
}:
python3Packages.buildPythonApplication rec {
pname = "aws-encryption-sdk-cli";
version = "4.1.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-OCbt0OkDVfpzUIogbsKzaPAle2L6l6N3cmZoS2hEaSM=";
};
propagatedBuildInputs = with python3Packages; [
attrs
aws-encryption-sdk
base64io
];
doCheck = true;
nativeCheckInputs = with python3Packages; [
mock
pytest-mock
pytestCheckHook
];
disabledTestPaths = [
# requires networking
"test/integration"
];
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = aws-encryption-sdk-cli;
command = "aws-encryption-cli --version";
};
};
meta = with lib; {
homepage = "https://aws-encryption-sdk-cli.readthedocs.io/";
changelog = "https://github.com/aws/aws-encryption-sdk-cli/blob/v${version}/CHANGELOG.rst";
description = "CLI wrapper around aws-encryption-sdk-python";
license = licenses.apsl20;
maintainers = with maintainers; [ anthonyroussel ];
};
}

View File

@ -3331,6 +3331,8 @@ with pkgs;
aliyun-cli = callPackage ../tools/admin/aliyun-cli { };
aws-encryption-sdk-cli = callPackage ../tools/admin/aws-encryption-sdk-cli { };
aws-iam-authenticator = callPackage ../tools/security/aws-iam-authenticator { };
awscli = callPackage ../tools/admin/awscli { };

View File

@ -951,6 +951,8 @@ self: super: with self; {
aws-adfs = callPackage ../development/python-modules/aws-adfs { };
aws-encryption-sdk = callPackage ../development/python-modules/aws-encryption-sdk { };
aws-lambda-builders = callPackage ../development/python-modules/aws-lambda-builders { };
aws-sam-translator = callPackage ../development/python-modules/aws-sam-translator { };
@ -1291,6 +1293,8 @@ self: super: with self; {
base58check = callPackage ../development/python-modules/base58check { };
base64io = callPackage ../development/python-modules/base64io { };
baseline = callPackage ../development/python-modules/baseline { };
baselines = callPackage ../development/python-modules/baselines { };