marge-bot: init at 0.10.1
This commit is contained in:
parent
09c1497ce5
commit
fdda5272cd
1 changed files with 50 additions and 0 deletions
50
pkgs/by-name/ma/marge-bot/package.nix
Normal file
50
pkgs/by-name/ma/marge-bot/package.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{ lib
|
||||
, python3
|
||||
, fetchFromGitLab
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "marge-bot";
|
||||
version = "0.10.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "marge-org";
|
||||
repo = "marge-bot";
|
||||
rev = version;
|
||||
hash = "sha256-2L7c/NEKyjscwpyf/5GtWXr7Ig14IQlRR5IbDYxp8jA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg --replace "--flake8 --pylint --cov=marge" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3.pkgs.setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
configargparse
|
||||
maya
|
||||
pyyaml
|
||||
requests
|
||||
];
|
||||
|
||||
nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];
|
||||
disabledTests = [
|
||||
# test broken when run under Nix:
|
||||
# "unittest.mock.InvalidSpecError: Cannot spec a Mock object."
|
||||
"test_get_mr_ci_status"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "marge" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A 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 ];
|
||||
mainProgram = "marge.app";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue