1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 boto3,
6 pytestCheckHook,
7
8 # use for testing promoted localstack
9 pkgs,
10}:
11
12buildPythonPackage rec {
13 pname = "localstack-client";
14 version = "2.10";
15 format = "setuptools";
16
17 src = fetchPypi {
18 pname = "localstack_client";
19 inherit version;
20 hash = "sha256-cyoH4j//1qWBrycUu+AGrW+ISsT4rJVSEaimMyHNxAk=";
21 };
22
23 propagatedBuildInputs = [ boto3 ];
24
25 pythonImportsCheck = [ "localstack_client" ];
26
27 # All commands test `localstack` which is a downstream dependency
28 doCheck = false;
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 disabledTests = [
32 # Has trouble creating a socket
33 "test_session"
34 ];
35
36 # For tests
37 __darwinAllowLocalNetworking = true;
38
39 passthru.tests = {
40 inherit (pkgs) localstack;
41 };
42
43 meta = with lib; {
44 description = "Lightweight Python client for LocalStack";
45 homepage = "https://github.com/localstack/localstack-python-client";
46 license = licenses.asl20;
47 maintainers = [ ];
48 };
49}