pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-tasks / default.nix
blob22e3c2454ade73f6a4f0ee7b56324fda7b8e5f6d
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   google-api-core,
6   grpc-google-iam-v1,
7   mock,
8   proto-plus,
9   protobuf,
10   pytest-asyncio,
11   pytestCheckHook,
12   pythonOlder,
13   setuptools,
16 buildPythonPackage rec {
17   pname = "google-cloud-tasks";
18   version = "2.17.0";
19   pyproject = true;
21   disabled = pythonOlder "3.7";
23   src = fetchPypi {
24     pname = "google_cloud_tasks";
25     inherit version;
26     hash = "sha256-5tcJsIrzsXO2w/uA/wK2bi1ZVPkulNVHTYCzA4R6OME=";
27   };
29   build-system = [ setuptools ];
31   dependencies = [
32     google-api-core
33     grpc-google-iam-v1
34     proto-plus
35     protobuf
36   ] ++ google-api-core.optional-dependencies.grpc;
38   nativeCheckInputs = [
39     mock
40     pytest-asyncio
41     pytestCheckHook
42   ];
44   disabledTests = [
45     # Test requires credentials
46     "test_list_queues"
47   ];
49   pythonImportsCheck = [
50     "google.cloud.tasks"
51     "google.cloud.tasks_v2"
52     "google.cloud.tasks_v2beta2"
53     "google.cloud.tasks_v2beta3"
54   ];
56   meta = with lib; {
57     description = "Cloud Tasks API API client library";
58     homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-tasks";
59     changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-tasks-v${version}/packages/google-cloud-tasks/CHANGELOG.md";
60     license = licenses.asl20;
61     maintainers = [ ];
62   };