about summary refs log tree commit diff
path: root/pkgs/development/python-modules/poezio
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2015-07-09 10:58:28 +0200
committerLancelot SIX <lsix@lancelotsix.com>2015-07-10 22:40:49 +0200
commite1f2930213e5c6ae6f8198032b3e4fb3e7d42dc7 (patch)
tree149248c97c96008abce60be197dbf27ecf059bb2 /pkgs/development/python-modules/poezio
parent976e34cd6cfa45b9cdeb5fe40ada8d7484108807 (diff)
downloadnixlib-e1f2930213e5c6ae6f8198032b3e4fb3e7d42dc7.tar
nixlib-e1f2930213e5c6ae6f8198032b3e4fb3e7d42dc7.tar.gz
nixlib-e1f2930213e5c6ae6f8198032b3e4fb3e7d42dc7.tar.bz2
nixlib-e1f2930213e5c6ae6f8198032b3e4fb3e7d42dc7.tar.lz
nixlib-e1f2930213e5c6ae6f8198032b3e4fb3e7d42dc7.tar.xz
nixlib-e1f2930213e5c6ae6f8198032b3e4fb3e7d42dc7.tar.zst
nixlib-e1f2930213e5c6ae6f8198032b3e4fb3e7d42dc7.zip
poezio: init at 0.8.1
Diffstat (limited to 'pkgs/development/python-modules/poezio')
-rw-r--r--pkgs/development/python-modules/poezio/fix_requirements.patch11
-rw-r--r--pkgs/development/python-modules/poezio/make_default_config_writable.patch25
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/poezio/fix_requirements.patch b/pkgs/development/python-modules/poezio/fix_requirements.patch
new file mode 100644
index 000000000000..99b022c0e782
--- /dev/null
+++ b/pkgs/development/python-modules/poezio/fix_requirements.patch
@@ -0,0 +1,11 @@
+--- 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'}
diff --git a/pkgs/development/python-modules/poezio/make_default_config_writable.patch b/pkgs/development/python-modules/poezio/make_default_config_writable.patch
new file mode 100644
index 000000000000..aa431dcc928f
--- /dev/null
+++ b/pkgs/development/python-modules/poezio/make_default_config_writable.patch
@@ -0,0 +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 @@
+ 
+ import os
+ import logging
++import stat
+ 
+ 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)
++
++    # 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
+ 
+ try: