nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3,
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "errbot";
9 version = "6.2.0";
10
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "errbotio";
15 repo = "errbot";
16 rev = version;
17 hash = "sha256-UdqzBrlcb9NkuVo8ChADJmaKevadoGLyZUrckStb5ko=";
18 };
19
20 build-system = with python3.pkgs; [
21 setuptools
22 ];
23
24 pythonRelaxDeps = true;
25
26 dependencies = with python3.pkgs; [
27 ansi
28 colorlog
29 daemonize
30 deepmerge
31 dulwich
32 flask
33 irc
34 jinja2
35 markdown
36 pyasn1
37 pyasn1-modules
38 pygments
39 pygments-markdown-lexer
40 pyopenssl
41 requests
42 setuptools
43 slixmpp
44 python-telegram-bot
45 webtest
46 ];
47
48 nativeCheckInputs = with python3.pkgs; [
49 mock
50 pytestCheckHook
51 ];
52
53 disabledTests = [
54 # require networking
55 "test_backup"
56 "test_broken_plugin"
57 "test_plugin_cycle"
58 "test_entrypoint_paths"
59 ];
60
61 pythonImportsCheck = [ "errbot" ];
62
63 meta = {
64 changelog = "https://github.com/errbotio/errbot/blob/${version}/CHANGES.rst";
65 description = "Chatbot designed to be simple to extend with plugins written in Python";
66 homepage = "http://errbot.io/";
67 maintainers = with lib.maintainers; [ hlad ];
68 license = lib.licenses.gpl3Plus;
69 platforms = lib.platforms.linux;
70 # flaky on darwin, "RuntimeError: can't start new thread"
71 mainProgram = "errbot";
72 };
73}