blob: 98e5668f0c28e9ccfb44eec303402f0c60ebd3ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
boto3,
buildPythonPackage,
click,
click-default-group,
fetchFromGitHub,
hypothesis,
moto,
pytest-mock,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "s3-credentials";
version = "0.17";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "s3-credentials";
tag = version;
hash = "sha256-zDolFoil/oTmvFDGVF+cLTgCpfigvvEW2UuVdIN2pYM=";
};
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 = {
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/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ techknowlogick ];
mainProgram = "s3-credentials";
};
}
|