2022-08-23 15:45:35 -07:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
boto3,
|
|
|
|
pytestCheckHook,
|
2024-05-22 16:01:06 +02:00
|
|
|
|
2022-10-24 07:30:44 -07:00
|
|
|
# downstream dependencies
|
|
|
|
localstack,
|
2022-08-23 15:45:35 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "localstack-client";
|
2022-10-24 07:26:55 -07:00
|
|
|
version = "1.39";
|
2023-12-07 16:53:02 +13:00
|
|
|
format = "setuptools";
|
2022-08-23 15:45:35 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "localstack";
|
|
|
|
repo = "localstack-python-client";
|
|
|
|
# Request for proper tags: https://github.com/localstack/localstack-python-client/issues/38
|
2022-10-24 07:26:55 -07:00
|
|
|
rev = "f1e538ad23700e5b1afe98720404f4801475e470";
|
2023-03-03 01:48:06 +01:00
|
|
|
hash = "sha256-MBXTiTzCwkduJPPRN7OKaWy2q9J8xCX/GGu09tyac3A=";
|
2022-08-23 15:45:35 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ boto3 ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "localstack_client" ];
|
|
|
|
|
2022-10-24 07:26:55 -07:00
|
|
|
# All commands test `localstack` which is a downstream dependency
|
|
|
|
doCheck = false;
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-08-23 15:45:35 -07:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Has trouble creating a socket
|
|
|
|
"test_session"
|
|
|
|
];
|
|
|
|
|
|
|
|
# For tests
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2022-10-24 07:30:44 -07:00
|
|
|
passthru.tests = {
|
|
|
|
inherit localstack;
|
|
|
|
};
|
|
|
|
|
2022-08-23 15:45:35 -07:00
|
|
|
meta = with lib; {
|
2024-06-07 09:46:46 +02:00
|
|
|
description = "Lightweight Python client for LocalStack";
|
2022-08-23 15:45:35 -07:00
|
|
|
homepage = "https://github.com/localstack/localstack-python-client";
|
|
|
|
license = licenses.asl20;
|
2024-06-25 09:11:25 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-08-23 15:45:35 -07:00
|
|
|
};
|
|
|
|
}
|