nixpkgs/pkgs/development/python-modules/grpcio/default.nix

24 lines
721 B
Nix
Raw Normal View History

2017-12-20 22:46:51 +00:00
{ stdenv, buildPythonPackage, fetchPypi, lib
, six, protobuf, enum34, futures, isPy26, isPy27, isPy34 }:
2017-12-20 22:46:51 +00:00
buildPythonPackage rec {
pname = "grpcio";
2018-02-17 13:20:09 +00:00
version = "1.9.1";
2017-12-20 22:46:51 +00:00
src = fetchPypi {
inherit pname version;
2018-02-17 13:20:09 +00:00
sha256 = "e7c43b5619deff48cc177c1b0618c4beeb2797f910f160e3c2035d5baf790a5d";
2017-12-20 22:46:51 +00:00
};
propagatedBuildInputs = [ six protobuf ]
2017-12-20 22:46:51 +00:00
++ 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 ];
};
}