ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
40 lines
938 B
Nix
40 lines
938 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
lib,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "protobuf";
|
|
version = "5.28.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-WTeWdP8RlxdAT3RUZHkTeHA08D/nBJy+8ddKl7tFk/A=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
# the pypi source archive does not ship tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"google.protobuf"
|
|
"google.protobuf.compiler"
|
|
"google.protobuf.internal"
|
|
"google.protobuf.pyext"
|
|
"google.protobuf.testdata"
|
|
"google.protobuf.util"
|
|
"google._upb._message"
|
|
];
|
|
|
|
meta = {
|
|
description = "Protocol Buffers are Google's data interchange format";
|
|
homepage = "https://developers.google.com/protocol-buffers/";
|
|
changelog = "https://github.com/protocolbuffers/protobuf/releases/v${version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|