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-10-11 05:15:48 +00:00
|
|
|
version = "5.28.2";
|
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-10-11 05:15:48 +00:00
|
|
|
hash = "sha256-WTeWdP8RlxdAT3RUZHkTeHA08D/nBJy+8ddKl7tFk/A=";
|
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
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Protocol Buffers are Google's data interchange format";
|
|
|
|
homepage = "https://developers.google.com/protocol-buffers/";
|
2024-10-11 05:15:48 +00:00
|
|
|
changelog = "https://github.com/protocolbuffers/protobuf/releases/v${version}";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|