depot/third_party/nixpkgs/pkgs/development/python-modules/s3-credentials/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

60 lines
1.2 KiB
Nix

{
lib,
boto3,
buildPythonPackage,
click,
click-default-group,
fetchFromGitHub,
hypothesis,
moto,
pytest-mock,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "s3-credentials";
version = "0.16.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "simonw";
repo = "s3-credentials";
rev = "refs/tags/${version}";
hash = "sha256-TuGrKSfnn0CSMpRxdCM6C446z+y9d2ZLB7+wSCxSqP4=";
};
build-system = [ setuptools ];
dependencies = [
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";
changelog = "https://github.com/simonw/s3-credentials/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ techknowlogick ];
mainProgram = "s3-credentials";
};
}