depot/third_party/nixpkgs/pkgs/development/python-modules/grpclib/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

51 lines
925 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, lib
, pythonOlder
, h2
, multidict
, pytestCheckHook
, pytest-asyncio
, async-timeout
, faker
, googleapis-common-protos
, certifi
}:
let
pname = "grpclib";
version = "0.4.3";
in
buildPythonPackage {
inherit pname version;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "vmagamedov";
repo = pname;
rev = "v${version}";
sha256 = "sha256-zjctvsuX5yJl1EXIAaiukWGYJbdgU7OZllgOYAmp1b4=";
};
propagatedBuildInputs = [
h2
multidict
];
checkInputs = [
pytestCheckHook
pytest-asyncio
async-timeout
faker
googleapis-common-protos
certifi
];
pythonImportsCheck = [ "grpclib" ];
meta = with lib; {
description = "Pure-Python gRPC implementation for asyncio";
homepage = "https://github.com/vmagamedov/grpclib";
license = licenses.bsd3;
maintainers = with maintainers; [ nikstur ];
};
}