lol

poezio: 0.10 -> 0.11

+3 -109
-80
pkgs/development/python-modules/poezio/fix_plugins_imports.patch
··· 1 - diff -Nur poezio-0.10.orig/plugins/canat.py poezio-0.10/plugins/canat.py 2 - --- poezio-0.10.orig/plugins/canat.py 2016-08-21 14:56:35.000000000 +0200 3 - +++ poezio-0.10/plugins/canat.py 2016-11-16 14:32:21.565445266 +0100 4 - @@ -34,9 +34,9 @@ 5 - 6 - 7 - """ 8 - -from plugin import BasePlugin 9 - -import tabs 10 - -from decorators import command_args_parser 11 - +from poezio.plugin import BasePlugin 12 - +import poezio.tabs 13 - +from poezio.decorators import command_args_parser 14 - 15 - def move(text, step, spacing): 16 - new_text = text + (" " * spacing) 17 - diff -Nur poezio-0.10.orig/plugins/corrections_diff.py poezio-0.10/plugins/corrections_diff.py 18 - --- poezio-0.10.orig/plugins/corrections_diff.py 2016-08-21 14:56:35.000000000 +0200 19 - +++ poezio-0.10/plugins/corrections_diff.py 2016-11-16 14:30:53.992684959 +0100 20 - @@ -22,11 +22,11 @@ 21 - 22 - 23 - """ 24 - -from plugin import BasePlugin 25 - +from poezio.plugin import BasePlugin 26 - import difflib 27 - +import collections 28 - from functools import wraps 29 - -import tabs 30 - -from config import config 31 - +from poezio.config import config 32 - 33 - shim_message_fields = ('txt nick_color time str_time nickname user identifier' 34 - ' highlight me old_message revisions jid ack') 35 - @@ -61,10 +61,6 @@ 36 - rev -= 1 37 - return ''.join(acc) 38 - 39 - -Message.__repr__ = repr_message 40 - -Message.__str__ = repr_message 41 - - 42 - - 43 - 44 - def corrections_enabled(func): 45 - @wraps(func) 46 - diff -Nur poezio-0.10.orig/plugins/coucou.py poezio-0.10/plugins/coucou.py 47 - --- poezio-0.10.orig/plugins/coucou.py 2016-08-21 14:56:35.000000000 +0200 48 - +++ poezio-0.10/plugins/coucou.py 2016-11-16 14:25:37.101337668 +0100 49 - @@ -1,4 +1,4 @@ 50 - -from plugin import BasePlugin 51 - +from poezio.plugin import BasePlugin 52 - import tracemalloc 53 - import cProfile, pstats, io 54 - 55 - diff -Nur poezio-0.10.orig/plugins/flood.py poezio-0.10/plugins/flood.py 56 - --- poezio-0.10.orig/plugins/flood.py 2016-08-21 14:56:35.000000000 +0200 57 - +++ poezio-0.10/plugins/flood.py 2016-11-16 14:32:56.452155220 +0100 58 - @@ -1,6 +1,6 @@ 59 - -from plugin import BasePlugin 60 - -import tabs 61 - -import multiuserchat as muc 62 - +from poezio.plugin import BasePlugin 63 - +import poezio.tabs 64 - +import poezio.multiuserchat as muc 65 - 66 - class Plugin(BasePlugin): 67 - def init(self): 68 - diff -Nur poezio-0.10.orig/plugins/invisible.py poezio-0.10/plugins/invisible.py 69 - --- poezio-0.10.orig/plugins/invisible.py 2016-08-21 14:56:35.000000000 +0200 70 - +++ poezio-0.10/plugins/invisible.py 2016-11-16 14:31:31.743288152 +0100 71 - @@ -20,8 +20,7 @@ 72 - .. _XEP-0186: https://xmpp.org/extensions/xep-0186.html 73 - """ 74 - 75 - -from plugin import BasePlugin 76 - -import tabs 77 - +from poezio.plugin import BasePlugin 78 - 79 - class Plugin(BasePlugin): 80 - def init(self):
-25
pkgs/development/python-modules/poezio/make_default_config_writable.patch
··· 1 - diff -ruN a/src/config.py b/src/config.py 2 - --- a/src/config.py 2015-07-31 19:35:37.000000000 +0000 3 - +++ b/src/config.py 2015-08-03 09:23:34.322098081 +0000 4 - @@ -14,6 +14,7 @@ 5 - 6 - import logging.config 7 - import os 8 - +import stat 9 - import sys 10 - import pkg_resources 11 - 12 - @@ -563,6 +564,13 @@ 13 - copy2(default, options.filename) 14 - elif path.isfile(other): 15 - copy2(other, options.filename) 16 - + 17 - + # Inside the nixstore, the reference file is readonly, so is the copy. 18 - + # Make it writable by the user who just created it. 19 - + if os.path.exists(options.filename): 20 - + os.chmod(options.filename, 21 - + os.stat(options.filename).st_mode | stat.S_IWUSR) 22 - + 23 - global firstrun 24 - firstrun = True 25 -
+3 -4
pkgs/top-level/python-packages.nix
··· 30186 30186 30187 30187 poezio = buildPythonApplication rec { 30188 30188 name = "poezio-${version}"; 30189 - version = "0.10"; 30189 + version = "0.11"; 30190 30190 30191 30191 disabled = pythonOlder "3.4"; 30192 30192 ··· 30194 30194 propagatedBuildInputs = with self ; [ aiodns slixmpp pyinotify potr mpd2 ]; 30195 30195 30196 30196 src = pkgs.fetchurl { 30197 - url = "http://dev.louiz.org/attachments/download/102/${name}.tar.gz"; 30198 - sha256 = "1mm0c3250p0kh7lmmjlp05hbc7byn9lknafgb906xmp4vx1p4kjn"; 30197 + url = "http://dev.louiz.org/attachments/download/118/${name}.tar.gz"; 30198 + sha256 = "07cn3717swarjv47yw8x95bvngz4nvlyyy9m7ck9fhycjgdy82r0"; 30199 30199 }; 30200 30200 30201 30201 patches = [ 30202 30202 ../development/python-modules/poezio/fix_gnupg_import.patch 30203 - ../development/python-modules/poezio/fix_plugins_imports.patch 30204 30203 ]; 30205 30204 30206 30205 checkPhase = ''