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
35 lines
624 B
Nix
35 lines
624 B
Nix
{
|
|
python3,
|
|
setuptools,
|
|
matrix-nio,
|
|
...
|
|
}:
|
|
|
|
let
|
|
|
|
pythonDependencies = [ matrix-nio ];
|
|
|
|
runtimeDependencies = [ ];
|
|
|
|
testDependencies = pythonDependencies ++ runtimeDependencies ++ [ ];
|
|
|
|
in
|
|
python3.pkgs.buildPythonApplication {
|
|
name = "matrix-bot";
|
|
src = ./.;
|
|
format = "pyproject";
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = pythonDependencies;
|
|
|
|
passthru.testDependencies = testDependencies;
|
|
|
|
# Clean up after the package to avoid leaking python packages into a devshell
|
|
postFixup = ''
|
|
rm $out/nix-support/propagated-build-inputs
|
|
'';
|
|
|
|
meta.mainProgram = "matrix-bot";
|
|
}
|