2017-08-30 21:23:28 +01:00
|
|
|
{ stdenv, fetchurl, pythonPackages, glibcLocales }:
|
2016-07-01 15:04:01 +01:00
|
|
|
|
2016-09-12 18:55:08 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "errbot";
|
2018-05-27 00:21:50 +01:00
|
|
|
version = "5.2.0";
|
2016-07-01 15:04:01 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://pypi/e/errbot/${pname}-${version}.tar.gz";
|
2018-05-27 00:21:50 +01:00
|
|
|
sha256 = "0q5fg113s3gnym38d4y5mlnxw6vrm388zw5mlapf7b2zgx34r053";
|
2016-07-01 15:04:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !pythonPackages.isPy3k;
|
|
|
|
|
2017-08-28 00:56:16 +01:00
|
|
|
LC_ALL = "en_US.utf8";
|
|
|
|
|
2016-09-28 18:26:47 +01: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 18:26:47 +01:00
|
|
|
'';
|
2016-07-01 15:04:01 +01:00
|
|
|
|
2016-09-28 18:26:47 +01:00
|
|
|
# tests folder is not included in release
|
|
|
|
doCheck = false;
|
2016-07-01 15:04:01 +01:00
|
|
|
|
2017-08-30 21:23:28 +01:00
|
|
|
buildInputs = [ glibcLocales ];
|
2016-07-01 15:04:01 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2017-05-07 11:55:45 +01: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 15:04:01 +01:00
|
|
|
daemonize pygments-markdown-lexer telegram irc slackclient
|
2016-11-29 20:14:23 +00:00
|
|
|
sleekxmpp hypchat pytest
|
2016-07-01 15:04:01 +01: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 18:26:47 +01:00
|
|
|
maintainers = with maintainers; [ fpletz globin ];
|
2016-07-01 15:04:01 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|