1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, protobuf
6, googleapis-common-protos
7, pytestCheckHook
8, pytz
9}:
10
11buildPythonPackage rec {
12 pname = "proto-plus";
13 version = "1.22.3";
14 disabled = !isPy3k;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-/c0JcTy9QkgHQNL+KcmQ9/vYhaZ+/DKKqL5u4+n3ams=";
19 };
20
21 propagatedBuildInputs = [ protobuf ];
22
23 nativeCheckInputs = [ pytestCheckHook pytz googleapis-common-protos ];
24
25 pythonImportsCheck = [ "proto" ];
26
27 meta = with lib; {
28 description = "Beautiful, idiomatic protocol buffers in Python";
29 homepage = "https://github.com/googleapis/proto-plus-python";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ ruuda ];
32 };
33}