Merge pull request #165909 from techknowlogick/init-s3-credentials

s3-credentials: init at 0.10
This commit is contained in:
Fabian Affolter 2022-03-28 09:43:26 +02:00 committed by GitHub
commit ca671342f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, click
, click-default-group
, boto3
, pytestCheckHook
, hypothesis
, pytest-mock
}:
buildPythonPackage rec {
pname = "s3-credentials";
version = "0.10";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "simonw";
repo = pname;
rev = version;
hash = "sha256-JgqKmZG3K4JwQ1Bzw2oll/LQ1njA9wFhX0/uYr9XjAU=";
};
propagatedBuildInputs = [
click
click-default-group
boto3
];
checkInputs = [
pytestCheckHook
hypothesis
pytest-mock
];
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 ];
};
}

View file

@ -9708,6 +9708,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
s3-credentials = with python3Packages; toPythonApplication s3-credentials;
s4cmd = callPackage ../tools/networking/s4cmd { };
s5cmd = callPackage ../tools/networking/s5cmd { };

View file

@ -8956,6 +8956,8 @@ in {
s3transfer = callPackage ../development/python-modules/s3transfer { };
s3-credentials = callPackage ../development/python-modules/s3-credentials { };
sabyenc3 = callPackage ../development/python-modules/sabyenc3 { };
sabyenc = callPackage ../development/python-modules/sabyenc { };