depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-tasks/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

57 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.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-ZQ9PQ75yWEEQNyfqO8EyJ66euqL5na2q1TiIgxz8HXA=";
};
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 ];
};
}