mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
Merge #58456: pythonPackages.grpcio: fix build on Darwin
This commit is contained in:
commit
780c2de274
@ -1,17 +1,22 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, lib, darwin
|
{ stdenv, buildPythonPackage, fetchFromGitHub, lib, darwin
|
||||||
, six, protobuf, enum34, futures, isPy27, isPy34, pkgconfig }:
|
, six, protobuf, enum34, futures, isPy27, isPy34, pkgconfig
|
||||||
|
, cython}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "grpcio";
|
pname = "grpcio";
|
||||||
version = "1.18.0";
|
version = "1.18.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "grpc";
|
||||||
sha256 = "abe825aa49e6239d5edf4e222c44170d2c7f6f4b1fd5286b4756a62d8067e112";
|
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 ]
|
propagatedBuildInputs = [ six protobuf ]
|
||||||
++ lib.optionals (isPy27 || isPy34) [ enum34 ]
|
++ lib.optionals (isPy27 || isPy34) [ enum34 ]
|
||||||
|
Loading…
Reference in New Issue
Block a user