All checks were successful
buildbot/nix-build .#checks.x86_64-linux.clan-merge Build done.
buildbot/nix-build .#checks.x86_64-linux.devShell-clan-merge Build done.
buildbot/nix-build .#checks.x86_64-linux.package-action-flake-update Build done.
buildbot/nix-build .#checks.x86_64-linux.package-clan-merge Build done.
buildbot/nix-build .#checks.x86_64-linux.treefmt Build done.
buildbot/nix-build .#checks.x86_64-linux.package-gitea Build done.
buildbot/nix-build .#checks.x86_64-linux.package-job-flake-update-clan-core Build done.
buildbot/nix-build .#checks.x86_64-linux.devShell-matrix-bot Build done.
buildbot/nix-build .#checks.x86_64-linux.package-matrix-bot Build done.
buildbot/nix-build .#checks.x86_64-linux.package-job-flake-update-clan-homepage Build done.
buildbot/nix-build .#checks.x86_64-linux.package-job-flake-update-clan-infra Build done.
buildbot/nix-build .#checks.x86_64-linux.package-action-flake-update-pr-clan Build done.
buildbot/nix-build .#checks.x86_64-linux.package-action-create-pr Build done.
buildbot/nix-build .#checks.x86_64-linux.package-action-ensure-tea-login Build done.
buildbot/nix-build .#checks.x86_64-linux.nixos-web01 Build done.
buildbot/nix-build .#checks.x86_64-linux.devShell-default Build done.
buildbot/nix-eval Build done.
43 lines
738 B
Nix
43 lines
738 B
Nix
{
|
|
python3,
|
|
setuptools,
|
|
matrix-nio,
|
|
aiofiles,
|
|
aiohttp,
|
|
markdown2,
|
|
git,
|
|
...
|
|
}:
|
|
|
|
let
|
|
|
|
pythonDependencies = [
|
|
matrix-nio
|
|
aiofiles
|
|
aiohttp
|
|
markdown2
|
|
];
|
|
|
|
runtimeDependencies = [ git ];
|
|
|
|
testDependencies = pythonDependencies ++ runtimeDependencies ++ [ ];
|
|
in
|
|
python3.pkgs.buildPythonApplication {
|
|
name = "matrix-bot";
|
|
src = ./.;
|
|
format = "pyproject";
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = pythonDependencies ++ runtimeDependencies;
|
|
|
|
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";
|
|
}
|