1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 boto3, 6 pytestCheckHook, 7 8 # downstream dependencies 9 localstack, 10}: 11 12buildPythonPackage rec { 13 pname = "localstack-client"; 14 version = "1.39"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "localstack"; 19 repo = "localstack-python-client"; 20 # Request for proper tags: https://github.com/localstack/localstack-python-client/issues/38 21 rev = "f1e538ad23700e5b1afe98720404f4801475e470"; 22 hash = "sha256-MBXTiTzCwkduJPPRN7OKaWy2q9J8xCX/GGu09tyac3A="; 23 }; 24 25 propagatedBuildInputs = [ boto3 ]; 26 27 pythonImportsCheck = [ "localstack_client" ]; 28 29 # All commands test `localstack` which is a downstream dependency 30 doCheck = false; 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 disabledTests = [ 34 # Has trouble creating a socket 35 "test_session" 36 ]; 37 38 # For tests 39 __darwinAllowLocalNetworking = true; 40 41 passthru.tests = { 42 inherit localstack; 43 }; 44 45 meta = with lib; { 46 description = "A lightweight Python client for LocalStack"; 47 homepage = "https://github.com/localstack/localstack-python-client"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ jonringer ]; 50 }; 51}