python312Packages.grpclib: refactor

This commit is contained in:
Fabian Affolter 2024-04-16 16:31:43 +02:00
parent a6a45ac157
commit 54dfe6624b
1 changed files with 21 additions and 16 deletions

View File

@ -1,33 +1,37 @@
{ buildPythonPackage
{ lib
, async-timeout
, buildPythonPackage
, certifi
, faker
, fetchFromGitHub
, lib
, pythonOlder
, googleapis-common-protos
, h2
, multidict
, pytestCheckHook
, pytest-asyncio
, async-timeout
, faker
, googleapis-common-protos
, certifi
, pytestCheckHook
, pythonOlder
, setuptools
}:
let
buildPythonPackage rec {
pname = "grpclib";
version = "0.4.4";
format = "setuptools";
in
buildPythonPackage {
inherit pname version;
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "vmagamedov";
repo = pname;
rev = "v${version}";
repo = "grpclib";
rev = "refs/tags/v${version}";
hash = "sha256-bCLyBfsNdIGdpz9l/r2iYIQ5TitKmsctekeOthIkXhw=";
};
propagatedBuildInputs = [
build-system = [
setuptools
];
dependencies = [
h2
multidict
];
@ -46,6 +50,7 @@ buildPythonPackage {
meta = with lib; {
description = "Pure-Python gRPC implementation for asyncio";
homepage = "https://github.com/vmagamedov/grpclib";
changelog = "https://github.com/vmagamedov/grpclib/blob/v${version}/docs/changelog/index.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ nikstur ];
};