2020-10-10 10:35:18 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-10-11 11:24:22 +01:00
|
|
|
, isPy3k
|
2020-10-10 10:35:18 +01:00
|
|
|
, protobuf
|
2020-10-11 11:24:22 +01:00
|
|
|
, google_api_core
|
|
|
|
, pytestCheckHook
|
2020-10-10 10:35:18 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "proto-plus";
|
2020-10-25 09:06:54 +00:00
|
|
|
version = "1.10.2";
|
2020-10-11 11:24:22 +01:00
|
|
|
disabled = !isPy3k;
|
2020-10-10 10:35:18 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:54 +00:00
|
|
|
sha256 = "cee328fc3da159ebbbdf15da6fb0b3bfe79ca32b075d208ff2a033854f6b324a";
|
2020-10-10 10:35:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ protobuf ];
|
|
|
|
|
2020-10-11 11:24:22 +01:00
|
|
|
checkInputs = [ pytestCheckHook google_api_core ];
|
|
|
|
|
2020-10-10 10:35:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Beautiful, idiomatic protocol buffers in Python";
|
|
|
|
homepage = "https://github.com/googleapis/proto-plus-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ruuda ];
|
|
|
|
};
|
|
|
|
}
|