1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

Merge pull request #9097 from lancelotsix/upgrade_poezio

Upgrade poezio
This commit is contained in:
Arseniy Seroka 2015-08-03 15:53:44 +03:00
commit c68f9cfc9e
3 changed files with 97 additions and 34 deletions

View file

@ -1,11 +0,0 @@
--- a/setup.py 2014-03-20 22:27:14.000000000 +0100
+++ b/setup.py 2015-07-10 21:18:30.156196111 +0200
@@ -49,7 +49,7 @@
scripts = ['scripts/poezio'],
data_files = [('share/man/man1/', ['data/poezio.1'])],
- install_requires = ['sleekxmpp==1.2.4',
+ install_requires = ['sleekxmpp==1.2.5',
'dnspython3>=1.11.1'],
extras_require = {'OTR plugin': 'python-potr>=1.0',
'Screen autoaway plugin': 'pyinotify==0.9.4'}

View file

@ -1,25 +1,25 @@
diff -ruN a/src/config.py b/src/config.py
--- a/src/config.py 2014-03-20 22:27:05.000000000 +0100
+++ b/src/config.py 2015-07-10 21:24:37.583136078 +0200
@@ -18,6 +18,7 @@
--- a/src/config.py 2015-07-31 19:35:37.000000000 +0000
+++ b/src/config.py 2015-08-03 09:23:34.322098081 +0000
@@ -14,6 +14,7 @@
import logging.config
import os
import logging
+import stat
import sys
import pkg_resources
from configparser import RawConfigParser, NoOptionError, NoSectionError
from os import environ, makedirs, path, remove
@@ -279,6 +280,13 @@
copy2(default, options.filename)
elif path.isfile(other):
copy2(other, options.filename)
@@ -563,6 +564,13 @@
copy2(default, options.filename)
elif path.isfile(other):
copy2(other, options.filename)
+
+ # Inside the nixstore, the reference file is readonly, so is the copy.
+ # Make it writable by the user who just created it.
+ if os.path.exists(options.filename):
+ os.chmod(options.filename,
+ os.stat(options.filename).st_mode | stat.S_IWUSR)
+ # Inside the nixstore, the reference file is readonly, so is the copy.
+ # Make it writable by the user who just created it.
+ if os.path.exists(options.filename):
+ os.chmod(options.filename,
+ os.stat(options.filename).st_mode | stat.S_IWUSR)
+
firstrun = True
global firstrun
firstrun = True
try:

View file

@ -275,6 +275,26 @@ let
};
};
aiodns = buildPythonPackage rec {
name = "aiodns-${version}";
version = "0.3.2";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/a/aiodns/${name}.tar.gz";
sha256 = "0i9ypv9l4d59j87kkrsh1livfgnspyzcbx26jw9x58xs5z05xj7k";
};
propagatedBuildInputs = with self ; [
pycares
] ++ optional (isPy33) self.asyncio
++ optional (isPy26 || isPy27) self.trollius;
meta = {
homepage = http://github.com/saghul/aiodns;
license = licenses.mit;
description = "Simple DNS resolver for asyncio";
};
};
alabaster = buildPythonPackage rec {
name = "alabaster-0.7.3";
@ -517,6 +537,24 @@ let
};
};
asyncio = buildPythonPackage rec {
name = "asyncio-${version}";
version = "3.4.3";
disabled = (!isPy33);
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/a/asyncio/${name}.tar.gz";
sha256 = "0hfbqwk9y0bbfgxzg93s2wyk6gcjsdxlr5jwy97hx64ppkw0ydl3";
};
meta = {
description = "reference implementation of PEP 3156";
homepage = http://www.python.org/dev/peps/pep-3156;
license = licenses.free;
};
};
funcsigs = buildPythonPackage rec {
name = "funcsigs-0.4";
disabled = ! (isPy26 || isPy27 || isPy33 || isPyPy);
@ -4198,6 +4236,23 @@ let
};
};
pycares = buildPythonPackage rec {
name = "pycares-${version}";
version = "0.7.0";
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/p/pycares/${name}.tar.gz";
sha256 = "10lr3ij67khmfm14cb3sqch3vhv37f3j1whwznq6qy4prfmz5gvl";
};
propagatedBuildInputs = [ pkgs.c-ares ];
meta = {
homepage = http://github.com/saghul/pycares;
description = "Interface for c-ares";
license = licenses.mit;
};
};
pyramid = buildPythonPackage rec {
name = "pyramid-1.5.2";
@ -8079,6 +8134,26 @@ let
};
};
slixmpp = buildPythonPackage rec {
name = "slixmpp-${version}";
version = "1.0.post5";
disabled = (!isPy34);
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/s/slixmpp/${name}.tar.gz";
sha256 = "0ik23w3y52m30z56874wgac07j70k7b06n20j44slii8avf58p4b";
};
propagatedBuildInputs = with self ; [ aiodns pyasn1 ];
meta = {
meta = "Elegant Python library for XMPP";
license = licenses.mit;
homepage = https://dev.louiz.org/projects/slixmpp;
};
};
netaddr = buildPythonPackage rec {
name = "netaddr-0.7.5";
@ -16747,21 +16822,20 @@ let
poezio = buildPythonPackage rec {
name = "poezio-${version}";
version = "0.8.1";
version = "0.9";
namePrefix = "";
disabled = (!isPy3k);
propagatedBuildInputs = with self ; [ dnspython3 sleekxmpp ];
disabled = (!isPy34);
propagatedBuildInputs = with self ; [ aiodns slixmpp ];
patches =
let patch_base = ../development/python-modules/poezio ;
in [ "${patch_base}/make_default_config_writable.patch"
"${patch_base}/fix_requirements.patch"
];
src = pkgs.fetchurl {
url = "http://dev.louiz.org/attachments/download/52/${name}.tar.xz";
sha256 = "0n3phh3lc82609ssfvqvd4papvhykd1sf2bm88dggh2x4mypwjff";
url = "http://dev.louiz.org/attachments/download/91/${name}.tar.xz";
sha256 = "1vc7zn4rp0ds0cdh1xcmbwx6w2qh4pnpzi5mdnj3rpl7xdr6jqzi";
};
meta = {