1{
2 buildPythonPackage,
3 fetchPypi,
4 lib,
5 setuptools,
6 protobuf,
7}:
8
9buildPythonPackage rec {
10 pname = "protobuf";
11 version = "5.29.5";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-vBRjuv1LCSkhbDX0N6jihzGit/49mLt3pgDvztWhXIQ=";
17 };
18
19 build-system = [ setuptools ];
20
21 propagatedNativeBuildInputs = [
22 protobuf
23 ];
24
25 # the pypi source archive does not ship tests
26 doCheck = false;
27
28 pythonImportsCheck = [
29 "google.protobuf"
30 "google.protobuf.compiler"
31 "google.protobuf.internal"
32 "google.protobuf.pyext"
33 "google.protobuf.testdata"
34 "google.protobuf.util"
35 "google._upb._message"
36 ];
37
38 meta = {
39 description = "Protocol Buffers are Google's data interchange format";
40 homepage = "https://developers.google.com/protocol-buffers/";
41 changelog = "https://github.com/protocolbuffers/protobuf/releases/v${version}";
42 license = lib.licenses.bsd3;
43 maintainers = with lib.maintainers; [ SuperSandro2000 ];
44 };
45}