forked from clan/clan-core
matrix-bot: Code cleanup matrix-bot: Code cleanup# matrix-bot: Code cleanup# matrix-bot: Ping on review neede Add .gitignore Working user ping
31 lines
513 B
Nix
31 lines
513 B
Nix
{
|
|
matrix-bot,
|
|
mkShell,
|
|
ruff,
|
|
python3,
|
|
}:
|
|
let
|
|
devshellTestDeps =
|
|
matrix-bot.passthru.testDependencies
|
|
++ (with python3.pkgs; [
|
|
rope
|
|
setuptools
|
|
wheel
|
|
ipdb
|
|
pip
|
|
]);
|
|
in
|
|
mkShell {
|
|
buildInputs = [ ruff ] ++ devshellTestDeps;
|
|
|
|
PYTHONBREAKPOINT = "ipdb.set_trace";
|
|
|
|
shellHook = ''
|
|
export GIT_ROOT="$(git rev-parse --show-toplevel)"
|
|
export PKG_ROOT="$GIT_ROOT/pkgs/matrix-bot"
|
|
|
|
# Add clan command to PATH
|
|
export PATH="$PKG_ROOT/bin":"$PATH"
|
|
'';
|
|
}
|