nixpkgs/pkgs/development/python-modules/google-cloud-tasks/default.nix
2021-06-22 13:42:30 +02:00

45 lines
960 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, grpc_google_iam_v1
, libcst
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "google-cloud-tasks";
version = "2.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "7cc24d389073c40af41e2fc091417dec6e58af07db9b1295853fc3d545c80cfe";
};
propagatedBuildInputs = [ google-api-core grpc_google_iam_v1 libcst proto-plus ];
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
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 ];
};
}