From 979bf1eb1cd458a0a10a1207b868ed05da11e205 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Tue, 23 Aug 2022 15:45:35 -0700 Subject: [PATCH] python3Packages.localstack-client: init at 1.36 --- .../localstack-client/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/localstack-client/default.nix diff --git a/pkgs/development/python-modules/localstack-client/default.nix b/pkgs/development/python-modules/localstack-client/default.nix new file mode 100644 index 000000000000..05e6c00e2268 --- /dev/null +++ b/pkgs/development/python-modules/localstack-client/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, boto3 +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "localstack-client"; + version = "1.36"; + + src = fetchFromGitHub { + owner = "localstack"; + repo = "localstack-python-client"; + # Request for proper tags: https://github.com/localstack/localstack-python-client/issues/38 + rev = "92229c02c5b3cd0cef006e99c3d47db15aefcb4f"; + sha256 = "sha256-pbDpe/5o4YU/2UIi8YbhzhIlXigOb/M2vjW9DKcIxoI="; + }; + + propagatedBuildInputs = [ + boto3 + ]; + + pythonImportsCheck = [ + "localstack_client" + ]; + + checkInputs = [ + pytestCheckHook + ]; + + disabledTests = [ + # Has trouble creating a socket + "test_session" + ]; + + # For tests + __darwinAllowLocalNetworking = true; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 60e3ab2ccbc4..795a04b8ea25 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5333,6 +5333,8 @@ in { localimport = callPackage ../development/python-modules/localimport { }; + localstack-client = callPackage ../development/python-modules/localstack-client { }; + localzone = callPackage ../development/python-modules/localzone { }; locationsharinglib = callPackage ../development/python-modules/locationsharinglib { };