nixpkgs/pkgs/applications/networking/errbot/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.5 KiB
Nix
Raw Normal View History

2021-02-05 09:27:13 +00:00
{ lib
, fetchFromGitHub
, python3
2021-02-05 09:27:13 +00:00
}:
2019-08-30 17:04:45 +00:00
python3.pkgs.buildPythonApplication rec {
pname = "errbot";
version = "6.1.9";
format = "setuptools";
2016-07-01 14:04:01 +00:00
2019-08-30 17:04:45 +00:00
src = fetchFromGitHub {
owner = "errbotio";
repo = "errbot";
rev = version;
hash = "sha256-BmHChLWWnrtg0p4WH8bANwpo+p4RTwjYbXfyPnz6mp8=";
2016-07-01 14:04:01 +00:00
};
nativeBuildInputs = with python3.pkgs; [
pythonRelaxDepsHook
];
2017-08-27 23:56:16 +00:00
pythonRelaxDeps = true;
2021-02-05 09:27:13 +00:00
2022-06-05 22:09:07 +00:00
propagatedBuildInputs = with python3.pkgs; [
2021-02-05 09:27:13 +00:00
ansi
colorlog
daemonize
deepmerge
dulwich
flask
irc
jinja2
markdown
pyasn1
pyasn1-modules
pygments
pygments-markdown-lexer
pyopenssl
requests
slixmpp
python-telegram-bot
2021-02-05 09:27:13 +00:00
webtest
];
nativeCheckInputs = with python3.pkgs; [
2021-02-05 09:27:13 +00:00
mock
pytestCheckHook
];
# errbot-backend-slackv3 has not been packaged
2021-02-05 09:27:13 +00:00
pytestFlagsArray = [ "--ignore=tests/backend_tests/slack_test.py" ];
disabledTests = [
# require networking
"test_backup"
"test_broken_plugin"
"test_plugin_cycle"
2016-07-01 14:04:01 +00:00
];
2021-02-05 09:27:13 +00:00
pythonImportsCheck = [ "errbot" ];
2019-08-30 17:04:45 +00:00
meta = with lib; {
changelog = "https://github.com/errbotio/errbot/blob/${version}/CHANGES.rst";
2016-07-01 14:04:01 +00:00
description = "Chatbot designed to be simple to extend with plugins written in Python";
homepage = "http://errbot.io/";
maintainers = with maintainers; [ ];
2021-02-05 09:27:13 +00:00
license = licenses.gpl3Plus;
platforms = platforms.linux;
# flaky on darwin, "RuntimeError: can't start new thread"
2023-11-27 01:17:53 +00:00
mainProgram = "errbot";
2016-07-01 14:04:01 +00:00
};
}