Merge pull request #187193 from nikstur/python-grpclib

python3Packages.grpclib: init at 0.4.3
This commit is contained in:
Robert Scott 2022-08-18 23:54:01 +01:00 committed by GitHub
commit c2c3e56d50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{ 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 ];
};
}

View file

@ -3948,6 +3948,8 @@ in {
grpcio-tools = callPackage ../development/python-modules/grpcio-tools { };
grpclib = callPackage ../development/python-modules/grpclib { };
gruut = callPackage ../development/python-modules/gruut { };
gruut-ipa = callPackage ../development/python-modules/gruut-ipa {