git.iko.soy/typeable/nixpkgs
on master help sign in
poezio: init at 0.8.1
commite1f2930213e5c6ae6f8198032b3e4fb3e7d42dc7 authorLancelot SIX <lsix@lancelotsix.com> dateThu 9 Jul 2015, 10:58 (11 years ago) parent976e34c
5 files changed+65
lib/maintainers.nix+1 pkgs/development/python-modules/poezio/fix_requirements.patch+11 pkgs/development/python-modules/poezio/make_default_config_writable.patch+25 pkgs/top-level/all-packages.nix+2 pkgs/top-level/python-packages.nix+26
lib/maintainers.nix+1
@@ -140,6 +140,7 @@
140140 linus = "Linus Arver <linusarver@gmail.com>";
141141 lnl7 = "Daiderd Jordan <daiderd@gmail.com>";
142142 lovek323 = "Jason O'Conal <jason@oconal.id.au>";
143+ lsix = "Lancelot SIX <lsix@lancelotsix.com>";
143144 ludo = "Ludovic Courtès <ludo@gnu.org>";
144145 madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
145146 magnetophon = "Bart Brouns <bart@magnetophon.nl>";
pkgs/development/python-modules/poezio/fix_requirements.patchnew file+11
@@ -0,0 +1,11 @@
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'}
pkgs/development/python-modules/poezio/make_default_config_writable.patchnew file+25
@@ -0,0 +1,25 @@
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:
pkgs/top-level/all-packages.nix+2
@@ -12322,6 +12322,8 @@ let
1232212322
1232312323 plugin-torture = callPackage ../applications/audio/plugin-torture { };
1232412324
12325+ poezio = python3Packages.poezio;
12326+
1232512327 pommed = callPackage ../os-specific/linux/pommed {
1232612328 inherit (xorg) libXpm;
1232712329 };
pkgs/top-level/python-packages.nix+26
@@ -16401,5 +16401,31 @@ let
1640116401 };
1640216402 };
1640316403
16404+ poezio = buildPythonPackage rec {
16405+ name = "poezio-${version}";
16406+ version = "0.8.1";
16407+
16408+ namePrefix = "";
16409+ disabled = (!isPy3k);
16410+ propagatedBuildInputs = with self ; [ dnspython3 sleekxmpp ];
16411+
16412+ patches =
16413+ let patch_base = ../development/python-modules/poezio ;
16414+ in [ "${patch_base}/make_default_config_writable.patch"
16415+ "${patch_base}/fix_requirements.patch"
16416+ ];
16417+
16418+ src = pkgs.fetchurl {
16419+ url = "http://dev.louiz.org/attachments/download/52/${name}.tar.xz";
16420+ sha256 = "0n3phh3lc82609ssfvqvd4papvhykd1sf2bm88dggh2x4mypwjff";
16421+ };
16422+
16423+ meta = {
16424+ description = "Free console XMPP client";
16425+ homepage = http://poez.io;
16426+ license = licenses.mit;
16427+ maintainers = [ maintainers.lsix ];
16428+ };
16429+ };
1640416430
1640516431}; in pythonPackages