git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8719 from lancelotsix/add_poezio

Add poezio

commit6bf51d3a8513d5b337a58e51fdfb660cef6718ce authorlethalman <lucabru@src.gnome.org> dateTue 14 Jul 2015, 14:56 (11 years ago) parent2fa88f6e1f2930
5 files changed+103
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+64
lib/maintainers.nix+1
@@ -142,6 +142,7 @@
142142 linus = "Linus Arver <linusarver@gmail.com>";
143143 lnl7 = "Daiderd Jordan <daiderd@gmail.com>";
144144 lovek323 = "Jason O'Conal <jason@oconal.id.au>";
145+ lsix = "Lancelot SIX <lsix@lancelotsix.com>";
145146 ludo = "Ludovic Courtès <ludo@gnu.org>";
146147 madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
147148 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
@@ -12342,6 +12342,8 @@ let
1234212342
1234312343 plugin-torture = callPackage ../applications/audio/plugin-torture { };
1234412344
12345+ poezio = python3Packages.poezio;
12346+
1234512347 pommed = callPackage ../os-specific/linux/pommed {
1234612348 inherit (xorg) libXpm;
1234712349 };
pkgs/top-level/python-packages.nix+64
@@ -2848,6 +2848,25 @@ let
28482848 };
28492849 };
28502850
2851+ dnspython3 = buildPythonPackage rec {
2852+ name = "dnspython3-${version}";
2853+ version = "1.12.0";
2854+
2855+ disabled = (!isPy3k);
2856+
2857+ src = pkgs.fetchurl {
2858+ url = "https://pypi.python.org/packages/source/d/dnspython3/${name}.zip";
2859+ sha256 = "138wxj702vx6zni9g2y8dbgbpin95v6hk23rh2kwfr3q4130jqz9";
2860+ };
2861+
2862+ meta = {
2863+ description = "A DNS toolkit for Python 3.x";
2864+ homepage = http://www.dnspython.org;
2865+ # BSD-like, check http://www.dnspython.org/LICENSE for details
2866+ license = licenses.free;
2867+ };
2868+ };
2869+
28512870 docker = buildPythonPackage rec {
28522871 name = "docker-py-1.1.0";
28532872
@@ -7922,6 +7941,25 @@ let
79227941 };
79237942 };
79247943
7944+ sleekxmpp = buildPythonPackage rec {
7945+ name = "sleekxmpp-${version}";
7946+ version = "1.2.5";
7947+
7948+ disabled = (!isPy3k);
7949+
7950+ propagatedBuildInputs = with self ; [ dnspython3 pyasn1 ];
7951+
7952+ src = pkgs.fetchurl {
7953+ url = "https://github.com/fritzy/SleekXMPP/archive/${version}.tar.gz";
7954+ sha256 = "1hqs2w5d7x532psfqipd2wl1mkmsaak83jvp1rh9rv406fzp9h67";
7955+ };
7956+
7957+ meta = {
7958+ description = "XMPP library for Python";
7959+ license = licenses.mit;
7960+ homepage = "http://sleekxmpp.com/";
7961+ };
7962+ };
79257963
79267964 netaddr = buildPythonPackage rec {
79277965 name = "netaddr-0.7.5";
@@ -16577,5 +16615,31 @@ let
1657716615 };
1657816616 };
1657916617
16618+ poezio = buildPythonPackage rec {
16619+ name = "poezio-${version}";
16620+ version = "0.8.1";
16621+
16622+ namePrefix = "";
16623+ disabled = (!isPy3k);
16624+ propagatedBuildInputs = with self ; [ dnspython3 sleekxmpp ];
16625+
16626+ patches =
16627+ let patch_base = ../development/python-modules/poezio ;
16628+ in [ "${patch_base}/make_default_config_writable.patch"
16629+ "${patch_base}/fix_requirements.patch"
16630+ ];
16631+
16632+ src = pkgs.fetchurl {
16633+ url = "http://dev.louiz.org/attachments/download/52/${name}.tar.xz";
16634+ sha256 = "0n3phh3lc82609ssfvqvd4papvhykd1sf2bm88dggh2x4mypwjff";
16635+ };
16636+
16637+ meta = {
16638+ description = "Free console XMPP client";
16639+ homepage = http://poez.io;
16640+ license = licenses.mit;
16641+ maintainers = [ maintainers.lsix ];
16642+ };
16643+ };
1658016644
1658116645}; in pythonPackages