nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aws-encryption-sdk-cli,
4 fetchPypi,
5 nix-update-script,
6 python3Packages,
7 testers,
8}:
9
10python3Packages.buildPythonApplication rec {
11 pname = "aws-encryption-sdk-cli";
12 version = "4.3.0";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit version;
17 pname = "aws_encryption_sdk_cli";
18 hash = "sha256-FfLgR7gocZ0cLV7bxqvKNI+Fs7kQF0XhR3zf6tHXwOE=";
19 };
20
21 pythonRelaxDeps = [ "aws-encryption-sdk" ];
22
23 build-system = with python3Packages; [
24 setuptools
25 ];
26
27 dependencies = with python3Packages; [
28 attrs
29 aws-encryption-sdk
30 base64io
31 setuptools # for pkg_resources
32 urllib3
33 ];
34
35 doCheck = true;
36
37 nativeCheckInputs = with python3Packages; [
38 mock
39 pytest-mock
40 pytest7CheckHook
41 ];
42
43 disabledTestPaths = [
44 # requires networking
45 "test/integration"
46 ];
47
48 # Upstream did not adapt to pytest 8 yet.
49 pytestFlags = [
50 "-Wignore::pytest.PytestRemovedIn8Warning"
51 ];
52
53 passthru = {
54 updateScript = nix-update-script { };
55 tests.version = testers.testVersion {
56 package = aws-encryption-sdk-cli;
57 command = "aws-encryption-cli --version";
58 };
59 };
60
61 meta = {
62 homepage = "https://aws-encryption-sdk-cli.readthedocs.io/";
63 changelog = "https://github.com/aws/aws-encryption-sdk-cli/blob/v${version}/CHANGELOG.rst";
64 description = "CLI wrapper around aws-encryption-sdk-python";
65 license = lib.licenses.asl20;
66 mainProgram = "aws-encryption-cli";
67 maintainers = with lib.maintainers; [ anthonyroussel ];
68 };
69}