Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fe792ef27a62
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cb0e20d6db96
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Feb 15, 2019

  1. python/grpcio: fix darwin build

    grpcio currently does not build on Darwin (10.13.6). Due to the
    following issues:
    
    * ar is invoked with incorrect flags (#33765).
    * libtool cannot be found, with a libtool dependency, with libtool
      the option '-no_warning_for_no_symbols' is not recognized.
    * the module build cannot find boringssl that is packaged with
      python-grpcio when pkgconfig is not installed (grpc/#10058).
    
    (cherry picked from commit 4beb94d)
    danieldk authored and matthewbauer committed Feb 15, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cb0e20d View commit details
Showing with 7 additions and 2 deletions.
  1. +7 −2 pkgs/development/python-modules/grpcio/default.nix
9 changes: 7 additions & 2 deletions pkgs/development/python-modules/grpcio/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ stdenv, buildPythonPackage, fetchPypi, lib
, six, protobuf3_5, enum34, futures, isPy26, isPy27, isPy34 }:
{ stdenv, buildPythonPackage, fetchPypi, lib, darwin
, six, protobuf3_5, enum34, futures, isPy26, isPy27, isPy34, pkgconfig }:

with stdenv.lib;
buildPythonPackage rec {
pname = "grpcio";
version = "1.9.1";
@@ -14,6 +15,10 @@ buildPythonPackage rec {
++ lib.optionals (isPy26 || isPy27 || isPy34) [ enum34 ]
++ lib.optionals (isPy26 || isPy27) [ futures ];

nativeBuildInputs = [ pkgconfig ] ++ optional stdenv.isDarwin darwin.cctools;

preBuild = optionalString stdenv.isDarwin "unset AR";

meta = with stdenv.lib; {
description = "HTTP/2-based RPC framework";
license = lib.licenses.bsd3;