errbot: 6.1.1 -> 6.1.7

+69 -56
+68 -53
pkgs/applications/networking/errbot/default.nix
··· 1 - { lib, fetchFromGitHub, python, glibcLocales }: 1 + { lib 2 + , ansi 3 + , buildPythonApplication 4 + , colorlog 5 + , daemonize 6 + , deepmerge 7 + , dulwich 8 + , fetchFromGitHub 9 + , flask 10 + , glibcLocales 11 + , hypchat 12 + , irc 13 + , jinja2 14 + , markdown 15 + , mock 16 + , pyasn1 17 + , pyasn1-modules 18 + , pygments 19 + , pygments-markdown-lexer 20 + , pyopenssl 21 + , pytestCheckHook 22 + , requests 23 + , slackclient 24 + , sleekxmpp 25 + , telegram 26 + , webtest 27 + }: 2 28 3 - let 4 - py = python.override { 5 - packageOverrides = self: super: { 6 - # errbot requires markdown<3, and is not compatible with it either. 7 - markdown = super.markdown.overridePythonAttrs (oldAttrs: rec { 8 - version = "2.6.11"; 9 - src = super.fetchPypi { 10 - pname = "Markdown"; 11 - inherit version; 12 - sha256 = "108g80ryzykh8bj0i7jfp71510wrcixdi771lf2asyghgyf8cmm8"; 13 - }; 14 - }); 15 - 16 - # errbot requires slackclient 1.x, see https://github.com/errbotio/errbot/pull/1367 17 - # latest 1.x release would be 1.3.2, but it requires an older websocket_client than the one in nixpkgs 18 - # so let's just vendor the known-working version until they've migrated to 2.x. 19 - slackclient = super.slackclient.overridePythonAttrs (oldAttrs: rec { 20 - version = "1.2.1"; 21 - pname = "slackclient"; 22 - src = fetchFromGitHub { 23 - owner = "slackapi"; 24 - repo = "python-slackclient"; 25 - rev = version; 26 - sha256 = "073fwf6fm2sqdp5ms3vm1v3ljh0pldi69k048404rp6iy3cfwkp0"; 27 - }; 28 - 29 - propagatedBuildInputs = with self; [ websocket_client requests six ]; 30 - 31 - checkInputs = with self; [ pytest codecov coverage mock pytestcov pytest-mock responses flake8 ]; 32 - # test_server.py fails because it needs connection (I think); 33 - checkPhase = '' 34 - py.test --cov-report= --cov=slackclient tests --ignore=tests/test_server.py 35 - ''; 36 - }); 37 - }; 38 - }; 39 - 40 - in 41 - py.pkgs.buildPythonApplication rec { 29 + buildPythonApplication rec { 42 30 pname = "errbot"; 43 - version = "6.1.1"; 31 + version = "6.1.7"; 44 32 45 33 src = fetchFromGitHub { 46 34 owner = "errbotio"; 47 35 repo = "errbot"; 48 36 rev = version; 49 - sha256 = "1s4dl1za5imwsv6j3y7m47dy91hmqd5n221kkqm9ni4mpzgpffz0"; 37 + sha256 = "02h44qd3d91zy657hyqsw3gskgxg31848pw6zpb8dhd1x84z5y77"; 50 38 }; 51 39 52 40 LC_ALL = "en_US.utf8"; 53 41 54 42 buildInputs = [ glibcLocales ]; 55 - propagatedBuildInputs = with py.pkgs; [ 56 - webtest requests jinja2 flask dulwich 57 - pyopenssl colorlog markdown ansi pygments 58 - daemonize pygments-markdown-lexer telegram irc slackclient 59 - sleekxmpp pyasn1 pyasn1-modules hypchat 43 + 44 + propagatedBuildInputs = [ 45 + ansi 46 + colorlog 47 + daemonize 48 + deepmerge 49 + dulwich 50 + flask 51 + hypchat 52 + irc 53 + jinja2 54 + markdown 55 + pyasn1 56 + pyasn1-modules 57 + pygments 58 + pygments-markdown-lexer 59 + pyopenssl 60 + requests 61 + slackclient 62 + sleekxmpp 63 + telegram 64 + webtest 60 65 ]; 61 66 62 - checkInputs = with py.pkgs; [ mock pytest ]; 63 - # avoid tests that do network calls 64 - checkPhase = '' 65 - pytest tests -k 'not backup and not broken_plugin and not plugin_cycle' 66 - ''; 67 + checkInputs = [ 68 + mock 69 + pytestCheckHook 70 + ]; 71 + 72 + # Slack backend test has an import issue 73 + pytestFlagsArray = [ "--ignore=tests/backend_tests/slack_test.py" ]; 74 + 75 + disabledTests = [ 76 + "backup" 77 + "broken_plugin" 78 + "plugin_cycle" 79 + ]; 80 + 81 + pythonImportsCheck = [ "errbot" ]; 67 82 68 83 meta = with lib; { 69 84 description = "Chatbot designed to be simple to extend with plugins written in Python"; 70 85 homepage = "http://errbot.io/"; 71 86 maintainers = with maintainers; [ fpletz globin ]; 72 - license = licenses.gpl3; 87 + license = licenses.gpl3Plus; 73 88 platforms = platforms.linux; 74 89 # flaky on darwin, "RuntimeError: can't start new thread" 75 90 };
+1 -3
pkgs/top-level/all-packages.nix
··· 21834 21834 21835 21835 eq10q = callPackage ../applications/audio/eq10q { }; 21836 21836 21837 - errbot = callPackage ../applications/networking/errbot { 21838 - python = python3; 21839 - }; 21837 + errbot = python3Packages.callPackage ../applications/networking/errbot { }; 21840 21838 21841 21839 espeak-classic = callPackage ../applications/audio/espeak { }; 21842 21840