2017-08-30 20:23:28 +00:00
|
|
|
{ stdenv, fetchurl, pythonPackages, glibcLocales }:
|
2016-07-01 14:04:01 +00:00
|
|
|
|
2016-09-12 17:55:08 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-07-01 14:04:01 +00:00
|
|
|
name = "errbot-${version}";
|
2018-05-26 23:21:50 +00:00
|
|
|
version = "5.2.0";
|
2016-07-01 14:04:01 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/e/errbot/${name}.tar.gz";
|
2018-05-26 23:21:50 +00:00
|
|
|
sha256 = "0q5fg113s3gnym38d4y5mlnxw6vrm388zw5mlapf7b2zgx34r053";
|
2016-07-01 14:04:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !pythonPackages.isPy3k;
|
|
|
|
|
2017-08-27 23:56:16 +00:00
|
|
|
LC_ALL = "en_US.utf8";
|
|
|
|
|
2016-09-28 17:26:47 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2018-02-22 09:03:02 +00:00
|
|
|
--replace dnspython3 dnspython \
|
|
|
|
--replace 'cryptography<2.1.0' cryptography \
|
|
|
|
--replace 'pyOpenSSL<17.3.0' pyOpenSSL
|
2016-09-28 17:26:47 +00:00
|
|
|
'';
|
2016-07-01 14:04:01 +00:00
|
|
|
|
2016-09-28 17:26:47 +00:00
|
|
|
# tests folder is not included in release
|
|
|
|
doCheck = false;
|
2016-07-01 14:04:01 +00:00
|
|
|
|
2017-08-30 20:23:28 +00:00
|
|
|
buildInputs = [ glibcLocales ];
|
2016-07-01 14:04:01 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2017-05-07 10:55:45 +00:00
|
|
|
webtest bottle threadpool rocket-errbot requests jinja2
|
2017-12-10 14:27:06 +00:00
|
|
|
pyopenssl colorlog Yapsy markdown ansi pygments dnspython pep8
|
2016-07-01 14:04:01 +00:00
|
|
|
daemonize pygments-markdown-lexer telegram irc slackclient
|
2016-11-29 20:14:23 +00:00
|
|
|
sleekxmpp hypchat pytest
|
2016-07-01 14:04:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Chatbot designed to be simple to extend with plugins written in Python";
|
|
|
|
homepage = http://errbot.io/;
|
2016-09-28 17:26:47 +00:00
|
|
|
maintainers = with maintainers; [ fpletz globin ];
|
2016-07-01 14:04:01 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|