Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / grpclib / default.nix
blob11692e59ef23684c9a9b872cda3fa723411d7273
1 { buildPythonPackage
2 , fetchFromGitHub
3 , lib
4 , pythonOlder
5 , h2
6 , multidict
7 , pytestCheckHook
8 , pytest-asyncio
9 , async-timeout
10 , faker
11 , googleapis-common-protos
12 , certifi
14 let
15   pname = "grpclib";
16   version = "0.4.4";
18 buildPythonPackage {
19   inherit pname version;
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "vmagamedov";
24     repo = pname;
25     rev = "v${version}";
26     hash = "sha256-bCLyBfsNdIGdpz9l/r2iYIQ5TitKmsctekeOthIkXhw=";
27   };
29   propagatedBuildInputs = [
30     h2
31     multidict
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36     pytest-asyncio
37     async-timeout
38     faker
39     googleapis-common-protos
40     certifi
41   ];
43   pythonImportsCheck = [ "grpclib" ];
45   meta = with lib; {
46     description = "Pure-Python gRPC implementation for asyncio";
47     homepage = "https://github.com/vmagamedov/grpclib";
48     license = licenses.bsd3;
49     maintainers = with maintainers; [ nikstur ];
50   };