pythonPackages.grpcio: inherit src from grpc
This commit is contained in:
parent
e90d7e7a62
commit
6b09e24bba
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user