2021-02-16 17:04:54 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glibcLocales
|
2022-06-26 10:26:21 +00:00
|
|
|
, python39
|
2021-02-16 17:04:54 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
let
|
|
|
|
python3 = python39;
|
|
|
|
in python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "errbot";
|
2021-02-16 17:04:54 +00:00
|
|
|
version = "6.1.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "errbotio";
|
|
|
|
repo = "errbot";
|
|
|
|
rev = version;
|
2021-02-16 17:04:54 +00:00
|
|
|
sha256 = "02h44qd3d91zy657hyqsw3gskgxg31848pw6zpb8dhd1x84z5y77";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL = "en_US.utf8";
|
|
|
|
|
|
|
|
buildInputs = [ glibcLocales ];
|
2021-02-16 17:04:54 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-02-16 17:04:54 +00:00
|
|
|
ansi
|
|
|
|
colorlog
|
|
|
|
daemonize
|
|
|
|
deepmerge
|
|
|
|
dulwich
|
|
|
|
flask
|
|
|
|
hypchat
|
|
|
|
irc
|
|
|
|
jinja2
|
|
|
|
markdown
|
|
|
|
pyasn1
|
|
|
|
pyasn1-modules
|
|
|
|
pygments
|
|
|
|
pygments-markdown-lexer
|
|
|
|
pyopenssl
|
|
|
|
requests
|
|
|
|
slackclient
|
|
|
|
sleekxmpp
|
|
|
|
telegram
|
|
|
|
webtest
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-02-16 17:04:54 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# Slack backend test has an import issue
|
|
|
|
pytestFlagsArray = [ "--ignore=tests/backend_tests/slack_test.py" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"backup"
|
|
|
|
"broken_plugin"
|
|
|
|
"plugin_cycle"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
pythonImportsCheck = [ "errbot" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Chatbot designed to be simple to extend with plugins written in Python";
|
|
|
|
homepage = "http://errbot.io/";
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ globin ];
|
2021-02-16 17:04:54 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
# flaky on darwin, "RuntimeError: can't start new thread"
|
|
|
|
};
|
|
|
|
}
|