2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-10-11 12:50:04 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-10-16 20:44:37 +00:00
|
|
|
, isPy3k
|
2020-10-11 12:50:04 +00:00
|
|
|
, protobuf
|
2021-03-09 03:18:52 +00:00
|
|
|
, googleapis-common-protos
|
2020-10-16 20:44:37 +00:00
|
|
|
, pytestCheckHook
|
2021-01-09 10:05:03 +00:00
|
|
|
, pytz
|
2020-10-11 12:50:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "proto-plus";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.22.2";
|
2020-10-16 20:44:37 +00:00
|
|
|
disabled = !isPy3k;
|
2020-10-11 12:50:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-DozaPVpjTZiVt1xXPJNSwWSGy3XesOB4tf2jTbQkMWU=";
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ protobuf ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook pytz googleapis-common-protos ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "proto" ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 12:50:04 +00:00
|
|
|
description = "Beautiful, idiomatic protocol buffers in Python";
|
|
|
|
homepage = "https://github.com/googleapis/proto-plus-python";
|
|
|
|
license = licenses.asl20;
|
2021-01-09 10:05:03 +00:00
|
|
|
maintainers = with maintainers; [ ruuda SuperSandro2000 ];
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
|
|
|
}
|