mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, boto3
|
|
, pytestCheckHook
|
|
|
|
# downstream dependencies
|
|
, localstack
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "localstack-client";
|
|
version = "1.39";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "localstack";
|
|
repo = "localstack-python-client";
|
|
# Request for proper tags: https://github.com/localstack/localstack-python-client/issues/38
|
|
rev = "f1e538ad23700e5b1afe98720404f4801475e470";
|
|
sha256 = "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 ];
|
|
};
|
|
}
|