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