1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
attrs,
|
|
boto3,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
mock,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
wrapt,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aws-encryption-sdk";
|
|
version = "4.0.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws";
|
|
repo = "aws-encryption-sdk-python";
|
|
tag = "v${version}";
|
|
hash = "sha256-SlYXob61YLl96NKnmsGZTIU10bfwKYbhLsHjC/tXGI4=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
attrs
|
|
boto3
|
|
cryptography
|
|
wrapt
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
enabledTestPaths = [ "test" ];
|
|
|
|
disabledTestPaths = [
|
|
# Tests require networking
|
|
"examples"
|
|
"test/integration"
|
|
# requires yet to be packaged aws-cryptographic-material-providers
|
|
"test/mpl"
|
|
];
|
|
|
|
disabledTests = [
|
|
# pytest 8 compat issue
|
|
"test_happy_version"
|
|
];
|
|
|
|
pythonImportsCheck = [ "aws_encryption_sdk" ];
|
|
|
|
meta = {
|
|
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 = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ anthonyroussel ];
|
|
};
|
|
}
|