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