Merge pull request #65770 from marsam/update-grpc

grpc: 1.19.1 -> 1.22.0
This commit is contained in:
Mario Rodas
2019-08-04 14:23:27 -05:00
committed by GitHub
3 changed files with 16 additions and 17 deletions

View File

@@ -1,24 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi, lib, grpcio}:
{ stdenv, buildPythonPackage, fetchPypi, protobuf, grpcio }:
buildPythonPackage rec {
pname = "grpcio-tools";
version = "1.18.0";
version = "1.22.0";
src = fetchPypi {
inherit pname version;
sha256 = "77ec4d3c92ccbbe3de37c457e3c72962e519c36cafb96abe5842bced8eb926fa";
sha256 = "b5c0fe51a155625c9d1132ab8deb56b3015e111a6961e48aeb9dd89bd7c670ab";
};
enableParallelBuilding = true;
propagatedBuildInputs = [ grpcio ];
propagatedBuildInputs = [ protobuf grpcio ];
# no tests in the package
doCheck = false;
meta = with stdenv.lib; {
description = "Protobuf code generator for gRPC";
license = lib.licenses.asl20;
license = licenses.asl20;
homepage = "https://grpc.io/grpc/python/";
maintainers = with maintainers; [ vanschelven ];
};

View File

@@ -1,32 +1,30 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, lib, darwin
, six, protobuf, enum34, futures, isPy27, isPy34, pkgconfig
{ stdenv, buildPythonPackage, fetchFromGitHub, darwin
, six, protobuf, enum34, futures, isPy27, pkgconfig
, cython}:
with stdenv.lib;
buildPythonPackage rec {
pname = "grpcio";
version = "1.18.0";
version = "1.22.0";
src = fetchFromGitHub {
owner = "grpc";
repo = "grpc";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "0cilbhk35gv46mk40jl5f3iqa94x14qyxbavpfq0kh0rld82nx4m";
sha256 = "093w8mgvl8ylqlqnfz06ijkmlnkxcjszf9zg6k5ybjw7dwal0jhz";
};
nativeBuildInputs = [ cython pkgconfig ]
++ optional stdenv.isDarwin darwin.cctools;
++ stdenv.lib.optional stdenv.isDarwin darwin.cctools;
propagatedBuildInputs = [ six protobuf ]
++ lib.optionals (isPy27 || isPy34) [ enum34 ]
++ lib.optionals (isPy27) [ futures ];
++ stdenv.lib.optionals (isPy27) [ enum34 futures ];
preBuild = optionalString stdenv.isDarwin "unset AR";
preBuild = stdenv.lib.optionalString stdenv.isDarwin "unset AR";
meta = with stdenv.lib; {
description = "HTTP/2-based RPC framework";
license = lib.licenses.asl20;
license = licenses.asl20;
homepage = "https://grpc.io/grpc/python/";
maintainers = with maintainers; [ vanschelven ];
};