2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
async-timeout,
|
|
|
|
buildPythonPackage,
|
|
|
|
certifi,
|
|
|
|
faker,
|
|
|
|
fetchFromGitHub,
|
|
|
|
googleapis-common-protos,
|
|
|
|
h2,
|
|
|
|
multidict,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-08-21 13:32:41 +00:00
|
|
|
pname = "grpclib";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.4.7";
|
|
|
|
pyproject = true;
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vmagamedov";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "grpclib";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-5221hVjD0TynCsTdruiUZkTsb7uOi49tZ8M/YqdWreE=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2022-08-21 13:32:41 +00:00
|
|
|
h2
|
|
|
|
multidict
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/vmagamedov/grpclib/blob/v${version}/docs/changelog/index.rst";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ nikstur ];
|
|
|
|
};
|
|
|
|
}
|