Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitLab,
|
|
git,
|
|
openssh,
|
|
nix-update-script,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "marge-bot";
|
|
version = "0.18.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "marge-org";
|
|
repo = "marge-bot";
|
|
rev = version;
|
|
hash = "sha256-JaxUEXBxaZIh6fmOjSAa5FZnrO2uAnY3zKoO/mBukUU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
python3.pkgs.setuptools
|
|
];
|
|
|
|
propagatedBuildInputs =
|
|
(with python3.pkgs; [
|
|
configargparse
|
|
maya
|
|
pyyaml
|
|
requests
|
|
python-gitlab
|
|
hatchling
|
|
])
|
|
++ [
|
|
git
|
|
openssh
|
|
];
|
|
|
|
nativeCheckInputs =
|
|
(with python3.pkgs; [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
pendulum
|
|
])
|
|
++ [
|
|
git
|
|
];
|
|
|
|
pythonImportsCheck = [ "marge" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Merge bot for GitLab";
|
|
homepage = "https://gitlab.com/marge-org/marge-bot";
|
|
changelog = "https://gitlab.com/marge-org/marge-bot/-/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [
|
|
bcdarwin
|
|
lelgenio
|
|
];
|
|
mainProgram = "marge.app";
|
|
};
|
|
}
|