1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 23:10:02 +00:00
nixpkgs/pkgs/development/python-modules/grpcio/default.nix

29 lines
869 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, lib, darwin
, six, protobuf, enum34, futures, isPy27, isPy34, pkgconfig }:
2017-12-20 22:46:51 +00:00
with stdenv.lib;
2017-12-20 22:46:51 +00:00
buildPythonPackage rec {
pname = "grpcio";
2018-08-13 08:24:50 +01:00
version = "1.14.1";
2017-12-20 22:46:51 +00:00
src = fetchPypi {
inherit pname version;
2018-08-13 08:24:50 +01:00
sha256 = "4bf23666e763ca7ff6010465864e9f088f4ac7ecc1e11abd6f85b250e66b2c05";
2017-12-20 22:46:51 +00:00
};
nativeBuildInputs = [ pkgconfig ] ++ optional stdenv.isDarwin darwin.cctools;
propagatedBuildInputs = [ six protobuf ]
++ lib.optionals (isPy27 || isPy34) [ enum34 ]
++ lib.optionals (isPy27) [ futures ];
2017-12-20 22:46:51 +00:00
preBuild = optionalString stdenv.isDarwin "unset AR";
2017-12-20 22:46:51 +00:00
meta = with stdenv.lib; {
description = "HTTP/2-based RPC framework";
license = lib.licenses.asl20;
2017-12-20 22:46:51 +00:00
homepage = "https://grpc.io/grpc/python/";
maintainers = with maintainers; [ vanschelven ];
};
}