pythonPackages.grpcio: inherit src from grpc

This commit is contained in:
Thomas Bereknyei 2019-10-18 20:31:34 -04:00 committed by Mario Rodas
parent e90d7e7a62
commit 6b09e24bba
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8

View File

@ -1,18 +1,10 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, darwin { stdenv, buildPythonPackage, darwin, grpc
, six, protobuf, enum34, futures, isPy27, pkgconfig , six, protobuf, enum34, futures, isPy27, pkgconfig
, cython}: , cython}:
buildPythonPackage rec { buildPythonPackage rec {
inherit (grpc) src version;
pname = "grpcio"; pname = "grpcio";
version = "1.23.0";
src = fetchFromGitHub {
owner = "grpc";
repo = "grpc";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "18hf794frncqvq3n4j5n8kip0gp6ch4pf5b3n6809q0c1paf6rp5";
};
nativeBuildInputs = [ cython pkgconfig ] nativeBuildInputs = [ cython pkgconfig ]
++ stdenv.lib.optional stdenv.isDarwin darwin.cctools; ++ stdenv.lib.optional stdenv.isDarwin darwin.cctools;