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";
|
2021-01-09 10:05:03 +00:00
|
|
|
version = "1.13.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
disabled = !isPy3k;
|
2020-10-11 12:50:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-09 10:05:03 +00:00
|
|
|
sha256 = "1i5jjnwpd288378h37zads08h695iwmhxm0sxbr3ln6aax97rdb1";
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ protobuf ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
checkInputs = [ 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
|
|
|
};
|
|
|
|
}
|