2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-10-10 10:35:18 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-10-11 11:24:22 +01:00
|
|
|
, isPy3k
|
2020-10-10 10:35:18 +01:00
|
|
|
, protobuf
|
2021-03-05 15:20:42 +00:00
|
|
|
, googleapis-common-protos
|
2020-10-11 11:24:22 +01:00
|
|
|
, pytestCheckHook
|
2021-01-05 12:43:51 +00:00
|
|
|
, pytz
|
2020-10-10 10:35:18 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "proto-plus";
|
2021-01-05 12:43:51 +00:00
|
|
|
version = "1.13.0";
|
2020-10-11 11:24:22 +01:00
|
|
|
disabled = !isPy3k;
|
2020-10-10 10:35:18 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-05 12:43:51 +00:00
|
|
|
sha256 = "1i5jjnwpd288378h37zads08h695iwmhxm0sxbr3ln6aax97rdb1";
|
2020-10-10 10:35:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ protobuf ];
|
|
|
|
|
2021-03-05 15:20:42 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytz googleapis-common-protos ];
|
2021-01-05 12:43:51 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "proto" ];
|
2020-10-11 11:24:22 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-10 10:35:18 +01:00
|
|
|
description = "Beautiful, idiomatic protocol buffers in Python";
|
|
|
|
homepage = "https://github.com/googleapis/proto-plus-python";
|
|
|
|
license = licenses.asl20;
|
2021-01-05 12:43:51 +00:00
|
|
|
maintainers = with maintainers; [ ruuda SuperSandro2000 ];
|
2020-10-10 10:35:18 +01:00
|
|
|
};
|
|
|
|
}
|