depot/third_party/nixpkgs/pkgs/development/python-modules/aws-encryption-sdk/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

66 lines
1.2 KiB
Nix

{ lib
, attrs
, boto3
, buildPythonPackage
, cryptography
, fetchPypi
, mock
, pytest-mock
, pytestCheckHook
, pythonOlder
, setuptools
, wrapt
}:
buildPythonPackage rec {
pname = "aws-encryption-sdk";
version = "3.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-QwT8+M4qo/qYsaz/ejvzzQUowynAxDe1Xg9Fa79iNH4=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
attrs
boto3
cryptography
wrapt
];
nativeCheckInputs = [
mock
pytest-mock
pytestCheckHook
];
disabledTestPaths = [
# Tests require networking
"examples"
"test/integration"
];
disabledTests = [
# pytest 8 compat issue
"test_happy_version"
];
pythonImportsCheck = [
"aws_encryption_sdk"
];
meta = with lib; {
description = "Python implementation of the AWS Encryption SDK";
homepage = "https://aws-encryption-sdk-python.readthedocs.io/";
changelog = "https://github.com/aws/aws-encryption-sdk-python/blob/v${version}/CHANGELOG.rst";
license = licenses.asl20;
maintainers = with maintainers; [ anthonyroussel ];
};
}