Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 23 lines 704 B view raw
1{ stdenv, buildPythonPackage, darwin, grpc 2, six, protobuf, enum34, futures, isPy27, pkgconfig 3, cython}: 4 5buildPythonPackage rec { 6 inherit (grpc) src version; 7 pname = "grpcio"; 8 9 nativeBuildInputs = [ cython pkgconfig ] 10 ++ stdenv.lib.optional stdenv.isDarwin darwin.cctools; 11 12 propagatedBuildInputs = [ six protobuf ] 13 ++ stdenv.lib.optionals (isPy27) [ enum34 futures ]; 14 15 preBuild = stdenv.lib.optionalString stdenv.isDarwin "unset AR"; 16 17 meta = with stdenv.lib; { 18 description = "HTTP/2-based RPC framework"; 19 license = licenses.asl20; 20 homepage = "https://grpc.io/grpc/python/"; 21 maintainers = with maintainers; [ vanschelven ]; 22 }; 23}