blob: f89b8206dbe63072ba6a99f975c81aecb6537816 (
plain) (
blame)
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
|
{ stdenv, fetchurl, pythonPackages, glibcLocales }:
pythonPackages.buildPythonApplication rec {
name = "errbot-${version}";
version = "5.2.0";
src = fetchurl {
url = "mirror://pypi/e/errbot/${name}.tar.gz";
sha256 = "0q5fg113s3gnym38d4y5mlnxw6vrm388zw5mlapf7b2zgx34r053";
};
disabled = !pythonPackages.isPy3k;
LC_ALL = "en_US.utf8";
postPatch = ''
substituteInPlace setup.py \
--replace dnspython3 dnspython \
--replace 'cryptography<2.1.0' cryptography \
--replace 'pyOpenSSL<17.3.0' pyOpenSSL
'';
# tests folder is not included in release
doCheck = false;
buildInputs = [ glibcLocales ];
propagatedBuildInputs = with pythonPackages; [
webtest bottle threadpool rocket-errbot requests jinja2
pyopenssl colorlog Yapsy markdown ansi pygments dnspython pep8
daemonize pygments-markdown-lexer telegram irc slackclient
sleekxmpp hypchat pytest
];
meta = with stdenv.lib; {
description = "Chatbot designed to be simple to extend with plugins written in Python";
homepage = http://errbot.io/;
maintainers = with maintainers; [ fpletz globin ];
license = licenses.gpl3;
platforms = platforms.unix;
};
}
|