diff options
Diffstat (limited to 'pkgs/development/python-modules/grpcio/default.nix')
-rw-r--r-- | pkgs/development/python-modules/grpcio/default.nix | 80 |
1 files changed, 50 insertions, 30 deletions
diff --git a/pkgs/development/python-modules/grpcio/default.nix b/pkgs/development/python-modules/grpcio/default.nix index e890280c676c5..5e15248660871 100644 --- a/pkgs/development/python-modules/grpcio/default.nix +++ b/pkgs/development/python-modules/grpcio/default.nix @@ -1,46 +1,66 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, grpc -, six -, protobuf -, enum34 ? null -, futures ? null -, isPy27 -, pkg-config -, cython -, c-ares -, openssl -, zlib +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + grpc, + six, + protobuf, + enum34 ? null, + futures ? null, + isPy27, + pkg-config, + cython, + c-ares, + openssl, + zlib, }: buildPythonPackage rec { pname = "grpcio"; format = "setuptools"; - version = "1.62.1"; + version = "1.62.2"; src = fetchPypi { inherit pname version; - hash = "sha256-bEVeAI+obZ6anYW7dtpCd8DX2WaKO/pw2+hunzx1mUc="; + hash = "sha256-x3YYBx2Wt6i+LBBwGphTeCO5xluiVsC5Bn4FlM29lU0="; }; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; - nativeBuildInputs = [ cython pkg-config ]; + nativeBuildInputs = [ + cython + pkg-config + ]; - buildInputs = [ c-ares openssl zlib ]; - propagatedBuildInputs = [ six protobuf ] - ++ lib.optionals (isPy27) [ enum34 futures ]; + buildInputs = [ + c-ares + openssl + zlib + ]; + propagatedBuildInputs = + [ + six + protobuf + ] + ++ lib.optionals (isPy27) [ + enum34 + futures + ]; - preBuild = '' - export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$NIX_BUILD_CORES" - if [ -z "$enableParallelBuilding" ]; then - GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS=1 - fi - '' + lib.optionalString stdenv.isDarwin '' - unset AR - ''; + preBuild = + '' + export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$NIX_BUILD_CORES" + if [ -z "$enableParallelBuilding" ]; then + GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS=1 + fi + '' + + lib.optionalString stdenv.isDarwin '' + unset AR + ''; GRPC_BUILD_WITH_BORING_SSL_ASM = ""; GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = 1; |