d2947cfef0
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
51 lines
934 B
Nix
51 lines
934 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, click
|
|
, click-default-group
|
|
, boto3
|
|
, pytestCheckHook
|
|
, hypothesis
|
|
, pytest-mock
|
|
, moto
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "s3-credentials";
|
|
version = "0.14";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "simonw";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-vKOcOSt9vscj5ixrHZGL6PRun/x38JLbni75nw2YAbg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
click-default-group
|
|
boto3
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
hypothesis
|
|
pytest-mock
|
|
moto
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"s3_credentials"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|