nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge pull request #44902 from danieldk/grpcio-darwin

python/grpcio: fix darwin build

authored by

Daiderd Jordan and committed by
GitHub
4c0e2508 e55eec52

+7 -2
+7 -2
pkgs/development/python-modules/grpcio/default.nix
··· 1 - { stdenv, buildPythonPackage, fetchPypi, lib 2 - , six, protobuf, enum34, futures, isPy27, isPy34 }: 1 + { stdenv, buildPythonPackage, fetchPypi, lib, darwin 2 + , six, protobuf, enum34, futures, isPy27, isPy34, pkgconfig }: 3 3 4 + with stdenv.lib; 4 5 buildPythonPackage rec { 5 6 pname = "grpcio"; 6 7 version = "1.13.0"; ··· 11 10 sha256 = "6324581e215157f0fbe335dff2e21a65b4406db98ac7cca05f1e23b4f510b426"; 12 11 }; 13 12 13 + nativeBuildInputs = [ pkgconfig ] ++ optional stdenv.isDarwin darwin.cctools; 14 + 14 15 propagatedBuildInputs = [ six protobuf ] 15 16 ++ lib.optionals (isPy27 || isPy34) [ enum34 ] 16 17 ++ lib.optionals (isPy27) [ futures ]; 18 + 19 + preBuild = optionalString stdenv.isDarwin "unset AR"; 17 20 18 21 meta = with stdenv.lib; { 19 22 description = "HTTP/2-based RPC framework";