-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249286 from anthonyroussel/aws-encryption-sdk-cli
aws-encryption-sdk-cli: init at 4.1.0
- Loading branch information
Showing
5 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
pkgs/development/python-modules/aws-encryption-sdk/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters