2020-10-11 12:50:04 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-10-16 20:44:37 +00:00
|
|
|
, isPy3k
|
2020-10-11 12:50:04 +00:00
|
|
|
, protobuf
|
2021-01-09 10:05:03 +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-01-09 10:05:03 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytz googleapis_common_protos ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "proto" ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|