1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, click
6, click-default-group
7, boto3
8, pytestCheckHook
9, hypothesis
10, pytest-mock
11, moto
12}:
13
14buildPythonPackage rec {
15 pname = "s3-credentials";
16 version = "0.14";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.6";
20
21 src = fetchFromGitHub {
22 owner = "simonw";
23 repo = pname;
24 rev = "refs/tags/${version}";
25 hash = "sha256-vKOcOSt9vscj5ixrHZGL6PRun/x38JLbni75nw2YAbg=";
26 };
27
28 propagatedBuildInputs = [
29 boto3
30 click
31 click-default-group
32 ];
33
34 checkInputs = [
35 hypothesis
36 moto
37 pytest-mock
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [
42 "s3_credentials"
43 ];
44
45 disabledTests = [
46 # AssertionError: assert 'directory/th...ory/...
47 "test_put_objects"
48 ];
49
50 meta = with lib; {
51 description = "Python CLI utility for creating credentials for accessing S3 buckets";
52 homepage = "https://github.com/simonw/s3-credentials";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ techknowlogick ];
55 };
56}