depot/third_party/nixpkgs/pkgs/development/python-modules/s3-credentials/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

56 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, click
, click-default-group
, boto3
, pytestCheckHook
, hypothesis
, pytest-mock
, moto
}:
buildPythonPackage rec {
pname = "s3-credentials";
version = "0.15";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "simonw";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-YSsm5SMfDRqJ53XnBjMgaWWHjA6IXnmEBvxme4uiOPw=";
};
propagatedBuildInputs = [
boto3
click
click-default-group
];
nativeCheckInputs = [
hypothesis
moto
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"s3_credentials"
];
disabledTests = [
# AssertionError: assert 'directory/th...ory/...
"test_put_objects"
];
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 ];
};
}