python3Packages.grpcio: remove cctools from build inputs

This fixes `aarch64-darwin` build in #105026. Without this the `strip` in `PATH`
is the one from `darwin.cctools`, which doesn't preserve code signatures,
resulting in code that cannot run and pass `pythonImportsCheckPhase`.

The dependency on cctools was introduced in #44902 in 2018,
but it doesn't seem to be necessary on `x86_64-darwin` today.
This commit is contained in:
Ivan Babrou 2021-02-27 22:16:38 -08:00 committed by github-actions[bot]
parent d6876bc879
commit d191f2278d

View File

@ -1,6 +1,5 @@
{ lib, stdenv { lib, stdenv
, buildPythonPackage , buildPythonPackage
, darwin
, grpc , grpc
, six , six
, protobuf , protobuf
@ -20,8 +19,7 @@ buildPythonPackage rec {
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
nativeBuildInputs = [ cython pkg-config ] nativeBuildInputs = [ cython pkg-config ];
++ lib.optional stdenv.isDarwin darwin.cctools;
buildInputs = [ c-ares openssl zlib ]; buildInputs = [ c-ares openssl zlib ];
propagatedBuildInputs = [ six protobuf ] propagatedBuildInputs = [ six protobuf ]