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-11-05 08:57:47 +00:00
|
|
|
version = "1.11.0";
|
2020-10-11 11:24:22 +01:00
|
|
|
disabled = !isPy3k;
|
2020-10-10 10:35:18 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-05 08:57:47 +00:00
|
|
|
sha256 = "416a0f13987789333cd8760a0ee998f8eccd6d7165ee9f283d64ca2de3e8774d";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|