nixpkgs-suyu/pkgs/development/python-modules/google_cloud_container/default.nix

30 lines
805 B
Nix
Raw Normal View History

{ 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.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "07rcq4c49zfaacyn5df62bs7qjf5hpmdm9mpb6nx510lylq0507x";
};
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 ];
};
}