depot/third_party/nixpkgs/pkgs/development/python-modules/protobuf/default.nix

41 lines
938 B
Nix
Raw Normal View History

{
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 ];
};
}