about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/localstack-client/default.nix
blob: b78cc3da7633c75ed086ee5a37f03fbe95c84b01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{ lib
, buildPythonPackage
, fetchFromGitHub
, boto3
, pytestCheckHook

# downstream dependencies
, localstack
}:

buildPythonPackage rec {
  pname = "localstack-client";
  version = "1.39";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "localstack";
    repo = "localstack-python-client";
    # Request for proper tags: https://github.com/localstack/localstack-python-client/issues/38
    rev = "f1e538ad23700e5b1afe98720404f4801475e470";
    hash = "sha256-MBXTiTzCwkduJPPRN7OKaWy2q9J8xCX/GGu09tyac3A=";
  };

  propagatedBuildInputs = [
    boto3
  ];

  pythonImportsCheck = [
    "localstack_client"
  ];

  # All commands test `localstack` which is a downstream dependency
  doCheck = false;
  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    # Has trouble creating a socket
    "test_session"
  ];

  # For tests
  __darwinAllowLocalNetworking = true;

  passthru.tests = {
    inherit localstack;
  };

  meta = with lib; {
    description = "A lightweight Python client for LocalStack";
    homepage = "https://github.com/localstack/localstack-python-client";
    license = licenses.asl20;
    maintainers = with maintainers; [ jonringer ];
  };
}