2019-10-19 02:31:34 +02:00
|
|
|
{ stdenv, buildPythonPackage, darwin, grpc
|
2019-08-03 23:20:00 +02:00
|
|
|
, six, protobuf, enum34, futures, isPy27, pkgconfig
|
2019-03-27 19:56:19 +01:00
|
|
|
, cython}:
|
2017-12-20 23:46:51 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-19 02:31:34 +02:00
|
|
|
inherit (grpc) src version;
|
2017-12-20 23:46:51 +01:00
|
|
|
pname = "grpcio";
|
|
|
|
|
2019-03-27 19:56:19 +01:00
|
|
|
nativeBuildInputs = [ cython pkgconfig ]
|
2019-08-03 23:20:00 +02:00
|
|
|
++ stdenv.lib.optional stdenv.isDarwin darwin.cctools;
|
2018-08-11 16:42:43 +02:00
|
|
|
|
2018-04-08 00:04:44 +02:00
|
|
|
propagatedBuildInputs = [ six protobuf ]
|
2019-08-03 23:20:00 +02:00
|
|
|
++ stdenv.lib.optionals (isPy27) [ enum34 futures ];
|
2017-12-20 23:46:51 +01:00
|
|
|
|
2019-08-03 23:20:00 +02:00
|
|
|
preBuild = stdenv.lib.optionalString stdenv.isDarwin "unset AR";
|
2018-08-11 16:42:43 +02:00
|
|
|
|
2017-12-20 23:46:51 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "HTTP/2-based RPC framework";
|
2019-08-03 23:20:00 +02:00
|
|
|
license = licenses.asl20;
|
2017-12-20 23:46:51 +01:00
|
|
|
homepage = "https://grpc.io/grpc/python/";
|
|
|
|
maintainers = with maintainers; [ vanschelven ];
|
|
|
|
};
|
|
|
|
}
|