1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/development/python-modules/grpcio/default.nix

24 lines
722 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-06-21 06:37:17 +01:00
version = "1.12.1";
2017-12-20 22:46:51 +00:00
src = fetchPypi {
inherit pname version;
2018-06-21 06:37:17 +01:00
sha256 = "f14faadfd09aa8526536cd2149e274563f45b767fca1736ccc53803a6af3f90e";
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 ];
};
}