1{ stdenv, buildPythonPackage, fetchPypi, lib 2, six, protobuf, enum34, futures, isPy26, isPy27, isPy34 }: 3 4buildPythonPackage rec { 5 pname = "grpcio"; 6 version = "1.9.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "e7c43b5619deff48cc177c1b0618c4beeb2797f910f160e3c2035d5baf790a5d"; 11 }; 12 13 propagatedBuildInputs = [ six protobuf ] 14 ++ lib.optionals (isPy26 || isPy27 || isPy34) [ enum34 ] 15 ++ lib.optionals (isPy26 || isPy27) [ futures ]; 16 17 meta = with stdenv.lib; { 18 description = "HTTP/2-based RPC framework"; 19 license = lib.licenses.bsd3; 20 homepage = "https://grpc.io/grpc/python/"; 21 maintainers = with maintainers; [ vanschelven ]; 22 }; 23}