forked from smarkets/marge-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
marge.nix
40 lines (40 loc) · 1002 Bytes
/
marge.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ pkgs
, lib
}:
let
python = import ./requirements.nix { inherit pkgs; };
version = lib.fileContents ./version;
in
python.mkDerivation {
version = "${version}";
name = "marge-${version}";
src = lib.sourceByRegex ./. [
"marge(/.*\.py)?"
"tests(/.*\.py)?"
"marge\.app"
"pylintrc"
"setup\.cfg"
"setup\.py"
"version"
];
checkInputs = with python.packages; [
pytest
pytest-cov
pytest-flake8
pytest-pylint
pytest-runner
];
propagatedBuildInputs = with python.packages; [
ConfigArgParse maya PyYAML requests
];
meta = {
homepage = "https://github.com/smarkets/marge-bot";
description = "A build bot for GitLab";
license = lib.licenses.bsd3;
maintainers = [
"Alexander Schmolck <[email protected]>"
"Jaime Lennox <[email protected]>"
];
platforms = pkgs.lib.platforms.linux ++ pkgs.lib.platforms.darwin;
};
}