16 buildPythonPackage rec {
17 inherit (grpc) src version;
20 outputs = [ "out" "dev" ];
22 nativeBuildInputs = [ cython pkg-config ];
24 buildInputs = [ c-ares openssl zlib ];
25 propagatedBuildInputs = [ six protobuf ]
26 ++ lib.optionals (isPy27) [ enum34 futures ];
28 preBuild = lib.optionalString stdenv.isDarwin "unset AR";
30 GRPC_BUILD_WITH_BORING_SSL_ASM = "";
31 GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = 1;
32 GRPC_PYTHON_BUILD_SYSTEM_ZLIB = 1;
33 GRPC_PYTHON_BUILD_SYSTEM_CARES = 1;
35 # does not contain any tests
38 pythonImportsCheck = [ "grpc" ];
41 description = "HTTP/2-based RPC framework";
42 license = licenses.asl20;
43 homepage = "https://grpc.io/grpc/python/";
44 maintainers = with maintainers; [ SuperSandro2000 ];