diff options
| author | Matthew Bauer <mjbauer95@gmail.com> | 2020-04-27 22:54:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 22:54:46 -0500 |
| commit | 365ca1112115598bca7126565184fb89559e1519 (patch) | |
| tree | d7cbad96a8937c84bba31a03829b5c72ac8ea7ca | |
| parent | Merge pull request #86118 from xaverdh/options-types-backport (diff) | |
| parent | python.pkgs.grpcio: use system openssl, zlib, and c-ares (diff) | |
| download | nixpkgs-365ca1112115598bca7126565184fb89559e1519.tar.gz | |
Merge pull request #86154 from bhipple/bp/grpcio
[20.03] python.pkgs.grpcio: use system openssl, zlib, and c-ares
| -rw-r--r-- | pkgs/development/python-modules/grpcio/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/grpcio/default.nix b/pkgs/development/python-modules/grpcio/default.nix index 60bfae8dca5b..668b7cfffa3b 100644 --- a/pkgs/development/python-modules/grpcio/default.nix +++ b/pkgs/development/python-modules/grpcio/default.nix @@ -1,6 +1,6 @@ { stdenv, buildPythonPackage, darwin, grpc , six, protobuf, enum34, futures, isPy27, pkgconfig -, cython}: +, cython, c-ares, openssl, zlib }: buildPythonPackage rec { inherit (grpc) src version; @@ -9,11 +9,16 @@ buildPythonPackage rec { nativeBuildInputs = [ cython pkgconfig ] ++ stdenv.lib.optional stdenv.isDarwin darwin.cctools; + buildInputs = [ c-ares openssl zlib ]; propagatedBuildInputs = [ six protobuf ] ++ stdenv.lib.optionals (isPy27) [ enum34 futures ]; preBuild = stdenv.lib.optionalString stdenv.isDarwin "unset AR"; + GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = 1; + GRPC_PYTHON_BUILD_SYSTEM_ZLIB = 1; + GRPC_PYTHON_BUILD_SYSTEM_CARES = 1; + meta = with stdenv.lib; { description = "HTTP/2-based RPC framework"; license = licenses.asl20; |
