-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
90 lines (69 loc) · 1.99 KB
/
default.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
let
bootstrap = import <nixpkgs> { };
nixpkgs = builtins.fromJSON (builtins.readFile ./nixpkgs.json);
src = bootstrap.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs-channels";
inherit (nixpkgs) rev sha256;
};
pkgs = import src { };
packageOverrides = self: super: {
python-gitlab = super.buildPythonPackage rec {
pname = "python-gitlab";
version = "1.6.0";
src = self.fetchPypi {
sha256 = "15g77mvkaw6si9f7pmb1a9sx04wh0fsscmj0apk2qhcs5wivkki0";
inherit pname version;
};
doCheck = false;
propagatedBuildInputs = [ super.six super.requests ];
};
commonmark = super.buildPythonPackage rec {
pname = "commonmark";
version = "0.8.0";
src = self.fetchPypi {
sha256 = "1kqcqizd8cf61pbb6gcwp1kv6ghw9kzydw99awsmiqx08fy5r8wn";
inherit pname version;
};
doCheck = false;
propagatedBuildInputs = [ super.future ];
};
consolemd = super.buildPythonPackage rec {
pname = "consolemd";
version = "0.4.3";
src = self.fetchPypi {
sha256 = "0mcggkyhnzxyalqljd4a5650x8phwnslvkpgbj04cbxcf5888cjz";
inherit pname version;
};
doCheck = false;
propagatedBuildInputs = [ super.pytestrunner super.click super.pygments self.commonmark super.setproctitle ];
};
};
python = pkgs.python3.override { inherit packageOverrides; };
pythonPkgs = python.pkgs;
repoSrc = ./.;
in
pythonPkgs.buildPythonApplication rec {
name = "gitlab-simple";
version = "1.4";
src = repoSrc;
propagatedBuildInputs = [
pythonPkgs.python-gitlab
pythonPkgs.terminaltables
pythonPkgs.termcolor
pythonPkgs.humanize
pythonPkgs.python-dateutil
pythonPkgs.pyxdg
pythonPkgs.consolemd
];
doCheck = false;
buildInputs = [
pkgs.python3
pythonPkgs.ipython
pythonPkgs.ipdb
pythonPkgs.pylint
pythonPkgs.pyflakes
pythonPkgs.mypy
pythonPkgs.black
];
}