3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/google-cloud-tasks/default.nix
2022-08-25 22:16:33 +02:00

58 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, grpc-google-iam-v1
, libcst
, mock
, proto-plus
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-tasks";
version = "2.10.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-9vAUmK1GG06fNK+d3WMRht2/7Ftaz56ec9xwP5eXxDU=";
};
propagatedBuildInputs = [
google-api-core
grpc-google-iam-v1
libcst
proto-plus
];
checkInputs = [
mock
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# requires credentials
"test_list_queues"
];
pythonImportsCheck = [
"google.cloud.tasks"
"google.cloud.tasks_v2"
"google.cloud.tasks_v2beta2"
"google.cloud.tasks_v2beta3"
];
meta = with lib; {
description = "Cloud Tasks API API client library";
homepage = "https://github.com/googleapis/python-tasks";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}