diff --git a/pkgs/development/python-modules/grpclib/default.nix b/pkgs/development/python-modules/grpclib/default.nix index be31ef9c78c0..9e39bd0da58a 100644 --- a/pkgs/development/python-modules/grpclib/default.nix +++ b/pkgs/development/python-modules/grpclib/default.nix @@ -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 ]; };