diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/s3-credentials/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/s3-credentials/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/s3-credentials/default.nix b/nixpkgs/pkgs/development/python-modules/s3-credentials/default.nix new file mode 100644 index 000000000000..dd142cd09c79 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/s3-credentials/default.nix @@ -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 ]; + }; +} |