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-10-06 13:57:05 +00:00
|
|
|
version = "1.19.2";
|
2020-10-16 20:44:37 +00:00
|
|
|
disabled = !isPy3k;
|
2020-10-11 12:50:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-06 13:57:05 +00:00
|
|
|
sha256 = "sha256-ylMLBxjGJbpj8VGrP83INrWTQ9FJt9/RXsLc6zhEwi0=";
|
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
|
|
|
};
|
|
|
|
}
|