2017-12-20 22:46:51 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, lib
|
|
|
|
, six, protobuf, enum34, futures, isPy26, isPy27, isPy34 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "grpcio";
|
2017-12-30 11:23:20 +00:00
|
|
|
version = "1.8.2";
|
2017-12-20 22:46:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 11:23:20 +00:00
|
|
|
sha256 = "1ea1336f0d1158c4e00e96a94df84b75f6bbff9816abb6cc68cbdc9442a9ac55";
|
2017-12-20 22:46:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six protobuf ]
|
|
|
|
++ lib.optionals (isPy26 || isPy27 || isPy34) [ enum34 ]
|
|
|
|
++ lib.optionals (isPy26 || isPy27) [ futures ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "HTTP/2-based RPC framework";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
homepage = "https://grpc.io/grpc/python/";
|
|
|
|
maintainers = with maintainers; [ vanschelven ];
|
|
|
|
};
|
|
|
|
}
|