6 python3.pkgs.buildPythonApplication rec {
11 src = fetchFromGitLab {
15 hash = "sha256-2L7c/NEKyjscwpyf/5GtWXr7Ig14IQlRR5IbDYxp8jA=";
19 substituteInPlace setup.cfg --replace-fail "--flake8 --pylint --cov=marge" ""
23 python3.pkgs.setuptools
26 propagatedBuildInputs = with python3.pkgs; [
33 nativeCheckInputs = with python3.pkgs; [ pytestCheckHook pendulum ];
35 # test broken when run under Nix:
36 # "unittest.mock.InvalidSpecError: Cannot spec a Mock object."
37 "test_get_mr_ci_status"
40 # test errors due to API mismatch in test setup:
41 # "ImportError: cannot import name 'set_test_now' from 'pendulum.helpers'"
42 "tests/test_interval.py"
45 pythonImportsCheck = [ "marge" ];
48 description = "Merge bot for GitLab";
49 homepage = "https://gitlab.com/marge-org/marge-bot";
50 changelog = "https://gitlab.com/marge-org/marge-bot/-/blob/${src.rev}/CHANGELOG.md";
51 license = licenses.bsd3;
52 maintainers = with maintainers; [ bcdarwin ];
53 mainProgram = "marge.app";