2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
boto3,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
click-default-group,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hypothesis,
|
|
|
|
moto,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "s3-credentials";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.16.1";
|
|
|
|
pyproject = true;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simonw";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "s3-credentials";
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-TuGrKSfnn0CSMpRxdCM6C446z+y9d2ZLB7+wSCxSqP4=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2022-11-21 17:40:18 +00:00
|
|
|
boto3
|
2022-03-30 09:31:56 +00:00
|
|
|
click
|
|
|
|
click-default-group
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
hypothesis
|
2022-10-06 18:32:54 +00:00
|
|
|
moto
|
2022-11-21 17:40:18 +00:00
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "s3_credentials" ];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AssertionError: assert 'directory/th...ory/...
|
|
|
|
"test_put_objects"
|
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python CLI utility for creating credentials for accessing S3 buckets";
|
|
|
|
homepage = "https://github.com/simonw/s3-credentials";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/simonw/s3-credentials/releases/tag/${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ techknowlogick ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "s3-credentials";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
}
|