Merge pull request #9097 from lancelotsix/upgrade_poezio

Upgrade poezio

+97 -34
-11
pkgs/development/python-modules/poezio/fix_requirements.patch
··· 1 - --- a/setup.py 2014-03-20 22:27:14.000000000 +0100 2 - +++ b/setup.py 2015-07-10 21:18:30.156196111 +0200 3 - @@ -49,7 +49,7 @@ 4 - scripts = ['scripts/poezio'], 5 - data_files = [('share/man/man1/', ['data/poezio.1'])], 6 - 7 - - install_requires = ['sleekxmpp==1.2.4', 8 - + install_requires = ['sleekxmpp==1.2.5', 9 - 'dnspython3>=1.11.1'], 10 - extras_require = {'OTR plugin': 'python-potr>=1.0', 11 - 'Screen autoaway plugin': 'pyinotify==0.9.4'}
···
+17 -17
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 2014-03-20 22:27:05.000000000 +0100 3 - +++ b/src/config.py 2015-07-10 21:24:37.583136078 +0200 4 - @@ -18,6 +18,7 @@ 5 6 import os 7 - import logging 8 +import stat 9 10 - from configparser import RawConfigParser, NoOptionError, NoSectionError 11 - from os import environ, makedirs, path, remove 12 - @@ -279,6 +280,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 - firstrun = True 24 25 - try:
··· 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
+80 -6
pkgs/top-level/python-packages.nix
··· 275 }; 276 }; 277 278 279 alabaster = buildPythonPackage rec { 280 name = "alabaster-0.7.3"; ··· 514 meta = { 515 description = "A Python wrapper for the SQLite embedded relational database engine"; 516 homepage = http://code.google.com/p/apsw/; 517 }; 518 }; 519 ··· 4198 }; 4199 }; 4200 4201 4202 pyramid = buildPythonPackage rec { 4203 name = "pyramid-1.5.2"; ··· 8076 description = "XMPP library for Python"; 8077 license = licenses.mit; 8078 homepage = "http://sleekxmpp.com/"; 8079 }; 8080 }; 8081 ··· 16747 16748 poezio = buildPythonPackage rec { 16749 name = "poezio-${version}"; 16750 - version = "0.8.1"; 16751 16752 namePrefix = ""; 16753 - disabled = (!isPy3k); 16754 - propagatedBuildInputs = with self ; [ dnspython3 sleekxmpp ]; 16755 16756 patches = 16757 let patch_base = ../development/python-modules/poezio ; 16758 in [ "${patch_base}/make_default_config_writable.patch" 16759 - "${patch_base}/fix_requirements.patch" 16760 ]; 16761 16762 src = pkgs.fetchurl { 16763 - url = "http://dev.louiz.org/attachments/download/52/${name}.tar.xz"; 16764 - sha256 = "0n3phh3lc82609ssfvqvd4papvhykd1sf2bm88dggh2x4mypwjff"; 16765 }; 16766 16767 meta = {
··· 275 }; 276 }; 277 278 + aiodns = buildPythonPackage rec { 279 + name = "aiodns-${version}"; 280 + version = "0.3.2"; 281 + 282 + src = pkgs.fetchurl { 283 + url = "https://pypi.python.org/packages/source/a/aiodns/${name}.tar.gz"; 284 + sha256 = "0i9ypv9l4d59j87kkrsh1livfgnspyzcbx26jw9x58xs5z05xj7k"; 285 + }; 286 + 287 + propagatedBuildInputs = with self ; [ 288 + pycares 289 + ] ++ optional (isPy33) self.asyncio 290 + ++ optional (isPy26 || isPy27) self.trollius; 291 + 292 + meta = { 293 + homepage = http://github.com/saghul/aiodns; 294 + license = licenses.mit; 295 + description = "Simple DNS resolver for asyncio"; 296 + }; 297 + }; 298 299 alabaster = buildPythonPackage rec { 300 name = "alabaster-0.7.3"; ··· 534 meta = { 535 description = "A Python wrapper for the SQLite embedded relational database engine"; 536 homepage = http://code.google.com/p/apsw/; 537 + }; 538 + }; 539 + 540 + asyncio = buildPythonPackage rec { 541 + name = "asyncio-${version}"; 542 + version = "3.4.3"; 543 + 544 + disabled = (!isPy33); 545 + 546 + src = pkgs.fetchurl { 547 + url = "https://pypi.python.org/packages/source/a/asyncio/${name}.tar.gz"; 548 + sha256 = "0hfbqwk9y0bbfgxzg93s2wyk6gcjsdxlr5jwy97hx64ppkw0ydl3"; 549 + }; 550 + 551 + meta = { 552 + description = "reference implementation of PEP 3156"; 553 + homepage = http://www.python.org/dev/peps/pep-3156; 554 + license = licenses.free; 555 }; 556 }; 557 ··· 4236 }; 4237 }; 4238 4239 + pycares = buildPythonPackage rec { 4240 + name = "pycares-${version}"; 4241 + version = "0.7.0"; 4242 + 4243 + src = pkgs.fetchurl { 4244 + url = "https://pypi.python.org/packages/source/p/pycares/${name}.tar.gz"; 4245 + sha256 = "10lr3ij67khmfm14cb3sqch3vhv37f3j1whwznq6qy4prfmz5gvl"; 4246 + }; 4247 + 4248 + propagatedBuildInputs = [ pkgs.c-ares ]; 4249 + 4250 + meta = { 4251 + homepage = http://github.com/saghul/pycares; 4252 + description = "Interface for c-ares"; 4253 + license = licenses.mit; 4254 + }; 4255 + }; 4256 4257 pyramid = buildPythonPackage rec { 4258 name = "pyramid-1.5.2"; ··· 8131 description = "XMPP library for Python"; 8132 license = licenses.mit; 8133 homepage = "http://sleekxmpp.com/"; 8134 + }; 8135 + }; 8136 + 8137 + slixmpp = buildPythonPackage rec { 8138 + name = "slixmpp-${version}"; 8139 + version = "1.0.post5"; 8140 + 8141 + disabled = (!isPy34); 8142 + 8143 + src = pkgs.fetchurl { 8144 + url = "https://pypi.python.org/packages/source/s/slixmpp/${name}.tar.gz"; 8145 + sha256 = "0ik23w3y52m30z56874wgac07j70k7b06n20j44slii8avf58p4b"; 8146 + }; 8147 + 8148 + propagatedBuildInputs = with self ; [ aiodns pyasn1 ]; 8149 + 8150 + meta = { 8151 + meta = "Elegant Python library for XMPP"; 8152 + license = licenses.mit; 8153 + homepage = https://dev.louiz.org/projects/slixmpp; 8154 }; 8155 }; 8156 ··· 16822 16823 poezio = buildPythonPackage rec { 16824 name = "poezio-${version}"; 16825 + version = "0.9"; 16826 16827 namePrefix = ""; 16828 + disabled = (!isPy34); 16829 + propagatedBuildInputs = with self ; [ aiodns slixmpp ]; 16830 16831 patches = 16832 let patch_base = ../development/python-modules/poezio ; 16833 in [ "${patch_base}/make_default_config_writable.patch" 16834 ]; 16835 16836 src = pkgs.fetchurl { 16837 + url = "http://dev.louiz.org/attachments/download/91/${name}.tar.xz"; 16838 + sha256 = "1vc7zn4rp0ds0cdh1xcmbwx6w2qh4pnpzi5mdnj3rpl7xdr6jqzi"; 16839 }; 16840 16841 meta = {