tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
errbot: 6.1.1 -> 6.1.7
Fabian Affolter
5 years ago
364bb10c
b41db12e
+69
-56
2 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
errbot
default.nix
top-level
all-packages.nix
+68
-53
pkgs/applications/networking/errbot/default.nix
···
1
1
-
{ lib, fetchFromGitHub, python, glibcLocales }:
1
1
+
{ lib
2
2
+
, ansi
3
3
+
, buildPythonApplication
4
4
+
, colorlog
5
5
+
, daemonize
6
6
+
, deepmerge
7
7
+
, dulwich
8
8
+
, fetchFromGitHub
9
9
+
, flask
10
10
+
, glibcLocales
11
11
+
, hypchat
12
12
+
, irc
13
13
+
, jinja2
14
14
+
, markdown
15
15
+
, mock
16
16
+
, pyasn1
17
17
+
, pyasn1-modules
18
18
+
, pygments
19
19
+
, pygments-markdown-lexer
20
20
+
, pyopenssl
21
21
+
, pytestCheckHook
22
22
+
, requests
23
23
+
, slackclient
24
24
+
, sleekxmpp
25
25
+
, telegram
26
26
+
, webtest
27
27
+
}:
2
28
3
3
-
let
4
4
-
py = python.override {
5
5
-
packageOverrides = self: super: {
6
6
-
# errbot requires markdown<3, and is not compatible with it either.
7
7
-
markdown = super.markdown.overridePythonAttrs (oldAttrs: rec {
8
8
-
version = "2.6.11";
9
9
-
src = super.fetchPypi {
10
10
-
pname = "Markdown";
11
11
-
inherit version;
12
12
-
sha256 = "108g80ryzykh8bj0i7jfp71510wrcixdi771lf2asyghgyf8cmm8";
13
13
-
};
14
14
-
});
15
15
-
16
16
-
# errbot requires slackclient 1.x, see https://github.com/errbotio/errbot/pull/1367
17
17
-
# latest 1.x release would be 1.3.2, but it requires an older websocket_client than the one in nixpkgs
18
18
-
# so let's just vendor the known-working version until they've migrated to 2.x.
19
19
-
slackclient = super.slackclient.overridePythonAttrs (oldAttrs: rec {
20
20
-
version = "1.2.1";
21
21
-
pname = "slackclient";
22
22
-
src = fetchFromGitHub {
23
23
-
owner = "slackapi";
24
24
-
repo = "python-slackclient";
25
25
-
rev = version;
26
26
-
sha256 = "073fwf6fm2sqdp5ms3vm1v3ljh0pldi69k048404rp6iy3cfwkp0";
27
27
-
};
28
28
-
29
29
-
propagatedBuildInputs = with self; [ websocket_client requests six ];
30
30
-
31
31
-
checkInputs = with self; [ pytest codecov coverage mock pytestcov pytest-mock responses flake8 ];
32
32
-
# test_server.py fails because it needs connection (I think);
33
33
-
checkPhase = ''
34
34
-
py.test --cov-report= --cov=slackclient tests --ignore=tests/test_server.py
35
35
-
'';
36
36
-
});
37
37
-
};
38
38
-
};
39
39
-
40
40
-
in
41
41
-
py.pkgs.buildPythonApplication rec {
29
29
+
buildPythonApplication rec {
42
30
pname = "errbot";
43
43
-
version = "6.1.1";
31
31
+
version = "6.1.7";
44
32
45
33
src = fetchFromGitHub {
46
34
owner = "errbotio";
47
35
repo = "errbot";
48
36
rev = version;
49
49
-
sha256 = "1s4dl1za5imwsv6j3y7m47dy91hmqd5n221kkqm9ni4mpzgpffz0";
37
37
+
sha256 = "02h44qd3d91zy657hyqsw3gskgxg31848pw6zpb8dhd1x84z5y77";
50
38
};
51
39
52
40
LC_ALL = "en_US.utf8";
53
41
54
42
buildInputs = [ glibcLocales ];
55
55
-
propagatedBuildInputs = with py.pkgs; [
56
56
-
webtest requests jinja2 flask dulwich
57
57
-
pyopenssl colorlog markdown ansi pygments
58
58
-
daemonize pygments-markdown-lexer telegram irc slackclient
59
59
-
sleekxmpp pyasn1 pyasn1-modules hypchat
43
43
+
44
44
+
propagatedBuildInputs = [
45
45
+
ansi
46
46
+
colorlog
47
47
+
daemonize
48
48
+
deepmerge
49
49
+
dulwich
50
50
+
flask
51
51
+
hypchat
52
52
+
irc
53
53
+
jinja2
54
54
+
markdown
55
55
+
pyasn1
56
56
+
pyasn1-modules
57
57
+
pygments
58
58
+
pygments-markdown-lexer
59
59
+
pyopenssl
60
60
+
requests
61
61
+
slackclient
62
62
+
sleekxmpp
63
63
+
telegram
64
64
+
webtest
60
65
];
61
66
62
62
-
checkInputs = with py.pkgs; [ mock pytest ];
63
63
-
# avoid tests that do network calls
64
64
-
checkPhase = ''
65
65
-
pytest tests -k 'not backup and not broken_plugin and not plugin_cycle'
66
66
-
'';
67
67
+
checkInputs = [
68
68
+
mock
69
69
+
pytestCheckHook
70
70
+
];
71
71
+
72
72
+
# Slack backend test has an import issue
73
73
+
pytestFlagsArray = [ "--ignore=tests/backend_tests/slack_test.py" ];
74
74
+
75
75
+
disabledTests = [
76
76
+
"backup"
77
77
+
"broken_plugin"
78
78
+
"plugin_cycle"
79
79
+
];
80
80
+
81
81
+
pythonImportsCheck = [ "errbot" ];
67
82
68
83
meta = with lib; {
69
84
description = "Chatbot designed to be simple to extend with plugins written in Python";
70
85
homepage = "http://errbot.io/";
71
86
maintainers = with maintainers; [ fpletz globin ];
72
72
-
license = licenses.gpl3;
87
87
+
license = licenses.gpl3Plus;
73
88
platforms = platforms.linux;
74
89
# flaky on darwin, "RuntimeError: can't start new thread"
75
90
};
+1
-3
pkgs/top-level/all-packages.nix
···
21834
21834
21835
21835
eq10q = callPackage ../applications/audio/eq10q { };
21836
21836
21837
21837
-
errbot = callPackage ../applications/networking/errbot {
21838
21838
-
python = python3;
21839
21839
-
};
21837
21837
+
errbot = python3Packages.callPackage ../applications/networking/errbot { };
21840
21838
21841
21839
espeak-classic = callPackage ../applications/audio/espeak { };
21842
21840