about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/aws-encryption-sdk/default.nix
blob: b9186ab1779c5f07491af93b7740da51ad427900 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ lib
, buildPythonPackage
, fetchPypi
, attrs
, boto3
, cryptography
, setuptools
, wrapt
, mock
, pytest
, pytest-mock
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "aws-encryption-sdk";
  version = "3.1.1";
  format = "setuptools";

  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.asl20;
    maintainers = with maintainers; [ anthonyroussel ];
  };
}