2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, click
|
|
|
|
, click-default-group
|
|
|
|
, boto3
|
|
|
|
, pytestCheckHook
|
|
|
|
, hypothesis
|
|
|
|
, pytest-mock
|
2022-10-06 18:32:54 +00:00
|
|
|
, moto
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "s3-credentials";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "0.14";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simonw";
|
|
|
|
repo = pname;
|
2022-07-14 12:49:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
hash = "sha256-vKOcOSt9vscj5ixrHZGL6PRun/x38JLbni75nw2YAbg=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
boto3
|
2022-03-30 09:31:56 +00:00
|
|
|
click
|
|
|
|
click-default-group
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"s3_credentials"
|
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ techknowlogick ];
|
|
|
|
};
|
|
|
|
}
|