mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 02:46:38 +00:00
24 lines
721 B
Nix
24 lines
721 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, lib
|
|
, six, protobuf, enum34, futures, isPy26, isPy27, isPy34 }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "grpcio";
|
|
version = "1.8.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "88d87aab9c7889b3ab29dd74aac1a5493ed78b9bf5afba1c069c9dd5531f951d";
|
|
};
|
|
|
|
propagatedBuildInputs = [ six protobuf ]
|
|
++ lib.optionals (isPy26 || isPy27 || isPy34) [ enum34 ]
|
|
++ lib.optionals (isPy26 || isPy27) [ futures ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "HTTP/2-based RPC framework";
|
|
license = lib.licenses.bsd3;
|
|
homepage = "https://grpc.io/grpc/python/";
|
|
maintainers = with maintainers; [ vanschelven ];
|
|
};
|
|
}
|