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