2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
2024-07-31 10:19:44 +00:00
|
|
|
fetchPypi,
|
2024-06-05 15:53:02 +00:00
|
|
|
lib,
|
2024-07-31 10:19:44 +00:00
|
|
|
setuptools,
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "protobuf";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "5.28.0";
|
2024-07-31 10:19:44 +00:00
|
|
|
pyproject = true;
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-3edK8Pp3T6mIkiCZkila2/uR2j+pjI9nqIr+j1o0mt0=";
|
2024-07-31 10:19:44 +00:00
|
|
|
};
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
# the pypi source archive does not ship tests
|
|
|
|
doCheck = false;
|
2023-08-22 20:05:09 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.protobuf"
|
2024-07-31 10:19:44 +00:00
|
|
|
"google.protobuf.compiler"
|
|
|
|
"google.protobuf.internal"
|
|
|
|
"google.protobuf.pyext"
|
|
|
|
"google.protobuf.testdata"
|
|
|
|
"google.protobuf.util"
|
|
|
|
"google._upb._message"
|
2021-12-19 01:06:50 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Protocol Buffers are Google's data interchange format";
|
|
|
|
homepage = "https://developers.google.com/protocol-buffers/";
|
|
|
|
license = licenses.bsd3;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|