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

Commit

Permalink
Merge #58456: pythonPackages.grpcio: fix build on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Apr 7, 2019
2 parents e1f5559 + 715ec6e commit 780c2de
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions pkgs/development/python-modules/grpcio/default.nix
@@ -1,17 +1,22 @@
{ stdenv, buildPythonPackage, fetchPypi, lib, darwin
, six, protobuf, enum34, futures, isPy27, isPy34, pkgconfig }:
{ stdenv, buildPythonPackage, fetchFromGitHub, lib, darwin
, six, protobuf, enum34, futures, isPy27, isPy34, pkgconfig
, cython}:

with stdenv.lib;
buildPythonPackage rec {
pname = "grpcio";
version = "1.18.0";

src = fetchPypi {
inherit pname version;
sha256 = "abe825aa49e6239d5edf4e222c44170d2c7f6f4b1fd5286b4756a62d8067e112";
src = fetchFromGitHub {
owner = "grpc";
repo = "grpc";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "0cilbhk35gv46mk40jl5f3iqa94x14qyxbavpfq0kh0rld82nx4m";
};

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

propagatedBuildInputs = [ six protobuf ]
++ lib.optionals (isPy27 || isPy34) [ enum34 ]
Expand Down

0 comments on commit 780c2de

Please sign in to comment.