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