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
74 lines
1.8 KiB
Nix
74 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
botocore,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pythonAtLeast,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aws-secretsmanager-caching";
|
|
version = "1.1.3";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "aws_secretsmanager_caching";
|
|
inherit version;
|
|
hash = "sha256-9tbsnUPg2+T21d6982tMtpHRWpZ7NYsldfXZGXSmwP8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace-fail "'pytest-runner'," ""
|
|
'';
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [
|
|
botocore
|
|
setuptools # Needs pkg_resources at runtime.
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Integration tests require networking.
|
|
"test/integ"
|
|
];
|
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.12") [
|
|
# TypeError: 'float' object cannot be interpreted as an integer
|
|
"test_calls_hook_binary"
|
|
"test_calls_hook_string"
|
|
"test_get_secret_binary"
|
|
"test_get_secret_string"
|
|
"test_invalid_json"
|
|
"test_missing_key"
|
|
"test_string_with_additional_kwargs"
|
|
"test_string"
|
|
"test_valid_json_with_mixed_args"
|
|
"test_valid_json_with_no_secret_kwarg"
|
|
"test_valid_json"
|
|
];
|
|
|
|
pythonImportsCheck = [ "aws_secretsmanager_caching" ];
|
|
|
|
meta = {
|
|
description = "Client-side AWS secrets manager caching library";
|
|
homepage = "https://github.com/aws/aws-secretsmanager-caching-python";
|
|
changelog = "https://github.com/aws/aws-secretsmanager-caching-python/releases/tag/v${version}";
|
|
longDescription = ''
|
|
The AWS Secrets Manager Python caching client enables in-process caching of secrets for Python applications.
|
|
'';
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ tomaskala ];
|
|
};
|
|
}
|