workspace(name = "tabfm")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Rules Python
http_archive(
    name = "rules_python",
    sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b",
    strip_prefix = "rules_python-0.26.0",
    url = "https://github.com/bazelbuild/rules_python/archive/0.26.0.tar.gz",
)

load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()

load("@rules_python//python:pip.bzl", "pip_parse")

# Parse pip dependencies from pyproject.toml
pip_parse(
    name = "pip",
    requirements_lock = "//:pyproject.toml",
)

load("@pip//:requirements.bzl", "install_deps")
install_deps()
