2017-12-20 23:46:51 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, lib
|
2018-06-25 10:50:44 +02:00
|
|
|
, six, protobuf, enum34, futures, isPy27, isPy34 }:
|
2017-12-20 23:46:51 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "grpcio";
|
2018-07-02 17:47:06 +02:00
|
|
|
version = "1.13.0";
|
2017-12-20 23:46:51 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-02 17:47:06 +02:00
|
|
|
sha256 = "6324581e215157f0fbe335dff2e21a65b4406db98ac7cca05f1e23b4f510b426";
|
2017-12-20 23:46:51 +01:00
|
|
|
};
|
|
|
|
|
2018-04-08 00:04:44 +02:00
|
|
|
propagatedBuildInputs = [ six protobuf ]
|
2018-06-25 10:50:44 +02:00
|
|
|
++ lib.optionals (isPy27 || isPy34) [ enum34 ]
|
|
|
|
++ lib.optionals (isPy27) [ futures ];
|
2017-12-20 23:46:51 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "HTTP/2-based RPC framework";
|
2018-07-03 23:07:43 +02:00
|
|
|
license = lib.licenses.asl20;
|
2017-12-20 23:46:51 +01:00
|
|
|
homepage = "https://grpc.io/grpc/python/";
|
|
|
|
maintainers = with maintainers; [ vanschelven ];
|
|
|
|
};
|
|
|
|
}
|