1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-03 22:32:26 +03:00
nixpkgs/pkgs/development/python-modules/s3-credentials/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1 KiB
Nix
Raw Normal View History

2022-03-26 23:50:39 -04:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, click
, click-default-group
, boto3
, pytestCheckHook
, hypothesis
, pytest-mock
2022-09-15 21:17:13 -04:00
, moto
2022-03-26 23:50:39 -04:00
}:
buildPythonPackage rec {
pname = "s3-credentials";
2022-09-15 21:17:13 -04:00
version = "0.14";
format = "setuptools";
2022-03-26 23:50:39 -04:00
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "simonw";
repo = pname;
rev = "refs/tags/${version}";
2022-09-15 21:17:13 -04:00
hash = "sha256-vKOcOSt9vscj5ixrHZGL6PRun/x38JLbni75nw2YAbg=";
2022-03-26 23:50:39 -04:00
};
propagatedBuildInputs = [
boto3
2022-03-26 23:50:39 -04:00
click
click-default-group
];
checkInputs = [
hypothesis
2022-09-15 21:17:13 -04:00
moto
pytest-mock
pytestCheckHook
2022-03-26 23:50:39 -04:00
];
pythonImportsCheck = [
"s3_credentials"
];
disabledTests = [
# AssertionError: assert 'directory/th...ory/...
"test_put_objects"
];
2022-03-26 23:50:39 -04:00
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 ];
};
}