diff --git a/modules/nanopb/0.4.9.1/MODULE.bazel b/modules/nanopb/0.4.9.1/MODULE.bazel new file mode 100644 index 00000000000..91487eef98f --- /dev/null +++ b/modules/nanopb/0.4.9.1/MODULE.bazel @@ -0,0 +1,28 @@ +module( + name = "nanopb", + version = "0.4.9.1", +) + +bazel_dep(name = "bazel_skylib", version = "1.7.1") +bazel_dep(name = "rules_cc", version = "0.0.10") +bazel_dep(name = "rules_python", version = "0.35.0") +bazel_dep(name = "rules_proto", version = "6.0.2") +bazel_dep(name = "protobuf", version = "28.2") +bazel_dep(name = "rules_proto_grpc", version = "5.0.0") + +pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") + +python = use_extension("@rules_python//python/extensions:python.bzl", "python") + +PYTHON_VERSION = "3.11" + +# No need for this since rules_python already creates our version. +# python.toolchain(python_version = PYTHON_VERSION) +use_repo(python, "python_versions") + +use_repo(pip, "nanopb_pypi") +pip.parse( + hub_name = "nanopb_pypi", + python_version = PYTHON_VERSION, + requirements_lock = "@nanopb//:extra/requirements_lock.txt", +) diff --git a/modules/nanopb/0.4.9.1/patches/bazel.patch b/modules/nanopb/0.4.9.1/patches/bazel.patch new file mode 100644 index 00000000000..3e17a806ba9 --- /dev/null +++ b/modules/nanopb/0.4.9.1/patches/bazel.patch @@ -0,0 +1,12 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +index 8aaa68e..91487ee 100644 +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,6 +1,6 @@ + module( + name = "nanopb", +- version = "0.4.9", ++ version = "0.4.9.1", + ) + + bazel_dep(name = "bazel_skylib", version = "1.7.1") diff --git a/modules/nanopb/0.4.9.1/presubmit.yml b/modules/nanopb/0.4.9.1/presubmit.yml new file mode 100644 index 00000000000..a6948214556 --- /dev/null +++ b/modules/nanopb/0.4.9.1/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@nanopb' + - '@nanopb//:protoc-gen-nanopb' diff --git a/modules/nanopb/0.4.9.1/source.json b/modules/nanopb/0.4.9.1/source.json new file mode 100644 index 00000000000..801bee68697 --- /dev/null +++ b/modules/nanopb/0.4.9.1/source.json @@ -0,0 +1,9 @@ +{ + "url": "https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.9.1.tar.gz", + "integrity": "sha256-iCzYRzrZMrJHh+Z2qAjk+ynBLghtILy/usxmwYMJS1w=", + "strip_prefix": "nanopb", + "patches": { + "bazel.patch": "sha256-ViUhBWdXZjM6SEG48qVxDtgilCXPqtLLgDfHu+2rykk=" + }, + "patch_strip": 1 +} diff --git a/modules/nanopb/metadata.json b/modules/nanopb/metadata.json index 4778a5da52e..71639bc4e86 100644 --- a/modules/nanopb/metadata.json +++ b/modules/nanopb/metadata.json @@ -16,7 +16,8 @@ "https://jpa.kapsi.fi/nanopb" ], "versions": [ - "0.4.9" + "0.4.9", + "0.4.9.1" ], "yanked_versions": {} }