forked from mirrors/nixpkgs
24 lines
694 B
Nix
24 lines
694 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, lib
|
|
, six, protobuf, enum34, futures, isPy27, isPy34 }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "grpcio";
|
|
version = "1.12.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f14faadfd09aa8526536cd2149e274563f45b767fca1736ccc53803a6af3f90e";
|
|
};
|
|
|
|
propagatedBuildInputs = [ six protobuf ]
|
|
++ lib.optionals (isPy27 || isPy34) [ enum34 ]
|
|
++ lib.optionals (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 ];
|
|
};
|
|
}
|