aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_container/default.nix
blob: 4d170d1c8b592306425b2e5657067c256ceaf3e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, google_api_core
, grpc_google_iam_v1, libcst, mock, proto-plus, pytest, pytest-asyncio }:

buildPythonPackage rec {
  pname = "google-cloud-container";
  version = "2.2.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "ce641b3ffaef407d5fe9b798955c6c6f2d1bfb58d6e11b4f87eb6fbb745a2711";
  };

  disabled = pythonOlder "3.6";

  checkInputs = [ mock pytest pytest-asyncio ];
  propagatedBuildInputs =
    [ google_api_core grpc_google_iam_v1 libcst proto-plus ];

  checkPhase = ''
    pytest tests/unit
  '';

  meta = with stdenv.lib; {
    description = "Google Container Engine API client library";
    homepage = "https://github.com/googleapis/python-container";
    license = licenses.asl20;
    maintainers = [ maintainers.costrouc ];
  };
}