2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "errbot";
|
|
version = "6.1.9";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "errbotio";
|
|
repo = "errbot";
|
|
rev = version;
|
|
hash = "sha256-BmHChLWWnrtg0p4WH8bANwpo+p4RTwjYbXfyPnz6mp8=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = true;
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
ansi
|
|
colorlog
|
|
daemonize
|
|
deepmerge
|
|
dulwich
|
|
flask
|
|
irc
|
|
jinja2
|
|
markdown
|
|
pyasn1
|
|
pyasn1-modules
|
|
pygments
|
|
pygments-markdown-lexer
|
|
pyopenssl
|
|
requests
|
|
slixmpp
|
|
python-telegram-bot
|
|
webtest
|
|
];
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
# errbot-backend-slackv3 has not been packaged
|
|
pytestFlagsArray = [ "--ignore=tests/backend_tests/slack_test.py" ];
|
|
|
|
disabledTests = [
|
|
# require networking
|
|
"test_backup"
|
|
"test_broken_plugin"
|
|
"test_plugin_cycle"
|
|
];
|
|
|
|
pythonImportsCheck = [ "errbot" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/errbotio/errbot/blob/${version}/CHANGES.rst";
|
|
description = "Chatbot designed to be simple to extend with plugins written in Python";
|
|
homepage = "http://errbot.io/";
|
|
maintainers = with maintainers; [ ];
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
# flaky on darwin, "RuntimeError: can't start new thread"
|
|
};
|
|
}
|