{"id":48374160,"url":"https://github.com/pybind/pybind11_bazel","last_synced_at":"2026-04-05T17:44:29.125Z","repository":{"id":38886986,"uuid":"212541372","full_name":"pybind/pybind11_bazel","owner":"pybind","description":"Bazel wrapper around the pybind11 repository","archived":false,"fork":false,"pushed_at":"2026-03-30T07:42:21.000Z","size":87,"stargazers_count":115,"open_issues_count":4,"forks_count":67,"subscribers_count":10,"default_branch":"master","last_synced_at":"2026-04-05T17:44:25.553Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pybind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-10-03T09:25:05.000Z","updated_at":"2026-03-30T07:42:18.000Z","dependencies_parsed_at":"2024-01-17T16:01:41.304Z","dependency_job_id":"a6da3b04-cf0f-48f5-9d7e-7fcdff6a3c95","html_url":"https://github.com/pybind/pybind11_bazel","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/pybind/pybind11_bazel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybind%2Fpybind11_bazel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybind%2Fpybind11_bazel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybind%2Fpybind11_bazel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybind%2Fpybind11_bazel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pybind","download_url":"https://codeload.github.com/pybind/pybind11_bazel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pybind%2Fpybind11_bazel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31444702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-05T17:44:28.813Z","updated_at":"2026-04-05T17:44:29.113Z","avatar_url":"https://github.com/pybind.png","language":"Starlark","readme":"# Bazel extensions for pybind11\n\nGithub-CI:\n| OS \\ Build system | Bazel |\n|:------- | :---: |\n| Linux (`amd64`) | [![Build Status][amd64_linux_bazel_status]][amd64_linux_bazel_link] |\n| MacOS (`amd64`) | [![Build Status][amd64_macos_bazel_status]][amd64_macos_bazel_link] |\n| MacOS (`arm64`)     | [![Build Status][arm64_macos_bazel_status]][arm64_macos_bazel_link] |\n| Windows (`amd64`) | [![Build Status][amd64_windows_bazel_status]][amd64_windows_bazel_link] |\n\n[amd64_linux_bazel_status]: ./../../actions/workflows/amd64_linux_bazel.yml/badge.svg\n[amd64_linux_bazel_link]: ./../../actions/workflows/amd64_linux_bazel.yml\n[amd64_macos_bazel_status]: ./../../actions/workflows/amd64_macos_bazel.yml/badge.svg\n[amd64_macos_bazel_link]: ./../../actions/workflows/amd64_macos_bazel.yml\n[arm64_macos_bazel_status]: ./../../actions/workflows/arm64_macos_bazel.yml/badge.svg\n[arm64_macos_bazel_link]: ./../../actions/workflows/arm64_macos_bazel.yml\n[amd64_windows_bazel_status]: ./../../actions/workflows/amd64_windows_bazel.yml/badge.svg\n[amd64_windows_bazel_link]: ./../../actions/workflows/amd64_windows_bazel.yml\n\nProvided rules:\n\n-   `pybind_extension`: Builds a python extension, automatically adding the\n    required build flags and pybind11 dependencies. It defines a target which\n    can be included as a `data` dependency of a `py_*` target.\n-   `pybind_library`: Builds a C++ library, automatically adding the required\n    build flags and pybind11 dependencies. This library can then be used as a\n    dependency of a `pybind_extension`. The arguments match a `cc_library`.\n-   `pybind_library_test`: Builds a C++ test for a `pybind_library`. The\n    arguments match a `cc_test`.\n\nTo test a `pybind_extension`, the most common approach is to write the test in\nPython and use the standard `py_test` build rule.\n\nTo embed Python, add `@rules_python//python/cc:current_py_cc_libs` as a\ndependency to your `cc_binary`.\n\n## Installation\n\nIn your `WORKSPACE` file:\n\n```starlark\nhttp_archive(\n  name = \"pybind11_bazel\",\n  strip_prefix = \"pybind11_bazel-\u003cversion\u003e\",\n  urls = [\"https://github.com/pybind/pybind11_bazel/archive/v\u003cversion\u003e.zip\"],\n)\n# We still require the pybind library.\nhttp_archive(\n  name = \"pybind11\",\n  build_file = \"@pybind11_bazel//:pybind11-BUILD.bazel\",\n  strip_prefix = \"pybind11-\u003cversion\u003e\",\n  urls = [\"https://github.com/pybind/pybind11/archive/v\u003cversion\u003e.zip\"],\n)\n```\n\nThen, in your `BUILD` file:\n\n```starlark\nload(\"@pybind11_bazel//:build_defs.bzl\", \"pybind_extension\")\n```\n\n## Bzlmod\n\nIn your `MODULE.bazel` file:\n\n```starlark\nbazel_dep(name = \"pybind11_bazel\", version = \"\u003cversion\u003e\")\n```\n\nUsage in your `BUILD` file is as described previously.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpybind%2Fpybind11_bazel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpybind%2Fpybind11_bazel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpybind%2Fpybind11_bazel/lists"}