2017-12-20 22:46:51 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, lib
|
2018-04-07 23:04:44 +01:00
|
|
|
, six, protobuf, enum34, futures, isPy26, isPy27, isPy34 }:
|
2017-12-20 22:46:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "grpcio";
|
2018-07-02 16:47:06 +01:00
|
|
|
version = "1.13.0";
|
2017-12-20 22:46:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-02 16:47:06 +01:00
|
|
|
sha256 = "6324581e215157f0fbe335dff2e21a65b4406db98ac7cca05f1e23b4f510b426";
|
2017-12-20 22:46:51 +00:00
|
|
|
};
|
|
|
|
|
2018-04-07 23:04:44 +01:00
|
|
|
propagatedBuildInputs = [ six protobuf ]
|
2017-12-20 22:46:51 +00:00
|
|
|
++ 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 ];
|
|
|
|
};
|
|
|
|
}
|