aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/debugpy/init.lua
blob: 38f46911f4611ddab9f1ef3cdd7a7992679014c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local Pkg = require "mason-core.package"
local pip3 = require "mason-core.managers.pip3"
local path = require "mason-core.path"

return Pkg.new {
    name = "debugpy",
    desc = [[An implementation of the Debug Adapter Protocol for Python]],
    homepage = "https://github.com/microsoft/debugpy",
    languages = { Pkg.Lang.Python },
    categories = { Pkg.Cat.DAP },
    ---@async
    ---@param ctx InstallContext
    install = function(ctx)
        pip3.install({ "debugpy" }).with_receipt()
        ctx:link_bin("debugpy", ctx:write_pyvenv_exec_wrapper("debugpy", "debugpy"))
    end,
}