git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #13858 from leenaars/blinkqt

python-sipsimple: 2.6.0 -> 3.0.0 (with all dependencies)

commit2b10296637694ccd24082f0382c9eaa947b022b2 authorFrederik Rietdijk <freddyrietdijk@fridh.nl> dateMon 28 Mar 2016, 14:18 (11 years ago) parentc603ae5d8cae4d
3 files changed+123−43
pkgs/applications/networking/instant-messengers/blink/default.nix+19−5 pkgs/applications/networking/instant-messengers/blink/pythonpath.patch+37−8 pkgs/top-level/python-packages.nix+67−30
pkgs/applications/networking/instant-messengers/blink/default.nix+19−5
@@ -1,13 +1,13 @@
11{ stdenv, fetchurl, pythonPackages, pyqt4, cython, libvncserver, zlib, twisted
2−, gnutls, libvpx }:
2+, gnutls, libvpx, makeDesktopItem }:
33
44pythonPackages.buildPythonApplication rec {
55 name = "blink-${version}";
6− version = "1.4.2";
6+ version = "2.0.0";
77
88 src = fetchurl {
99 url = "http://download.ag-projects.com/BlinkQt/${name}.tar.gz";
10− sha256 = "0ia5hgwyg6cm393ik4ggzhcmc957ncswycs07ilwj6vrrzraxfk7";
10+ sha256 = "07hvy45pavgkvdlh4wbz3shsxh4fapg96qlqmfymdi1nfhwghb05";
1111 };
1212
1313 patches = [ ./pythonpath.patch ];
@@ -20,16 +20,30 @@ pythonPackages.buildPythonApplication rec {
2020
2121 buildInputs = [ cython zlib libvncserver libvpx ];
2222
23+ desktopItem = makeDesktopItem {
24+ name = "Blink";
25+ exec = "blink";
26+ comment = meta.description;
27+ desktopName = "Blink";
28+ icon = "blink";
29+ genericName = "Instant Messaging";
30+ categories = "Application;Internet;";
31+ };
32+
2333 postInstall = ''
2434 wrapProgram $out/bin/blink \
2535 --prefix LD_LIBRARY_PATH ":" ${gnutls}/lib
36+ mkdir -p "$out/share/applications"
37+ mkdir -p "$out/share/pixmaps"
38+ cp "$desktopItem"/share/applications/* "$out/share/applications"
39+ cp "$out"/share/blink/icons/blink.* "$out/share/pixmaps"
2640 '';
2741
2842 meta = with stdenv.lib; {
2943 homepage = http://icanblink.com/;
30− description = "A state of the art, easy to use SIP client";
44+ description = "A state of the art, easy to use SIP client for Voice, Video and IM";
3145 platforms = platforms.linux;
32− license = licenses.mit;
46+ license = licenses.gplv3;
3347 maintainers = with maintainers; [ pSub ];
3448 };
3549}
pkgs/applications/networking/instant-messengers/blink/pythonpath.patch+37−8
@@ -1,14 +1,44 @@
1−diff -rupN a/blink/resources.py b/blink/resources.py
2−--- a/blink/resources.py 2015-03-17 03:24:06.000000000 -0600
3−+++ b/blink/resources.py 2015-04-07 22:52:06.101096413 -0600
4−@@ -60,14 +60,7 @@ class Resources(object):
1+--- blink-2.0.0/blink/resources.py 2016-03-09 14:39:07.000000000 +0100
2++++ blink-2.0.0/blink/resources-patched.py 2016-03-12 21:34:14.965476623 +0100
3+@@ -1,7 +1,10 @@
4++# Copyright (C) 2010-2013 AG Projects. See LICENSE for details.
5++#
6+
7+ """Provide access to Blink's resources"""
8+
9+-import __main__
10++__all__ = ['ApplicationData', 'Resources', 'IconManager']
11++
12+ import imghdr
13+ import os
14+ import platform
15+@@ -19,14 +22,10 @@
16+ from blink.util import run_in_gui_thread
17+
18+
19+-__all__ = ['ApplicationData', 'Resources', 'IconManager']
20+-
21+-
22+ class DirectoryContextManager(unicode):
23+ def __enter__(self):
24+ self.directory = os.getcwdu()
25+ os.chdir(self)
26+-
27+ def __exit__(self, type, value, traceback):
28+ os.chdir(self.directory)
29+
30+@@ -61,18 +60,7 @@
531 @classproperty
632 def directory(cls):
733 if cls._cached_directory is None:
8−- if sys.path[0] == '':
9−- application_directory = os.path.realpath('') # executed in interactive interpreter
34+- try:
35+- binary_directory = os.path.dirname(os.path.realpath(__main__.__file__))
36+- except AttributeError:
37+- if hasattr(sys, 'frozen'):
38+- application_directory = os.path.dirname(os.path.realpath(sys.executable))
39+- else:
40+- application_directory = os.path.realpath('') # executed in interactive interpreter
1041- else:
11−- binary_directory = os.path.dirname(os.path.realpath(sys.argv[0]))
1242- if os.path.basename(binary_directory) == 'bin':
1343- application_directory = os.path.dirname(binary_directory)
1444- else:
@@ -17,4 +47,3 @@ diff -rupN a/blink/resources.py b/blink/resources.py
1747 if os.path.exists(os.path.join(application_directory, 'resources', 'blink.ui')):
1848 cls._cached_directory = os.path.join(application_directory, 'resources').decode(sys.getfilesystemencoding())
1949 else:
20−Binary files a/blink/.resources.py.swp and b/blink/.resources.py.swp differ
pkgs/top-level/python-packages.nix+67−30
@@ -774,13 +774,18 @@ in modules // {
774774 };
775775
776776 application = buildPythonPackage rec {
777− name = "python-application-${version}";
778− version = "1.5.0";
777+ pname = "python-application";
778+ name = "${pname}-${version}";
779+ version = "2.0.2";
780+ disabled = isPy3k;
781+
782+ src = pkgs.fetchdarcs {
783+ url = "http://devel.ag-projects.com/repositories/${pname}";
784+ rev = "release-${version}";
785+ sha256 = "19dszv44py8qrq0jcjdycxpa7z2p8hi3ijq9gnqdsazbbjzf9svn";
786+ };
787+ buildInputs = with self; [ zope_interface ];
779788
780− src = pkgs.fetchurl {
781− url = "https://pypi.python.org/packages/source/p/python-application/${name}.tar.gz";
782− sha256 = "9bc00c2c639bf633e2c5e08d4bf1bb5d7edaad6ccdd473692f0362df08f8aafc";
783− };
784789 };
785790
786791 appnope = buildPythonPackage rec {
@@ -5357,16 +5362,18 @@ in modules // {
53575362
53585363
53595364 eventlib = buildPythonPackage rec {
5360− name = "python-eventlib-${version}";
5361− version = "0.2.1";
5365+ pname = "python-eventlib";
5366+ name = "${pname}-${version}";
5367+ version = "0.2.2";
53625368
53635369 # Judging from SyntaxError
53645370 disabled = isPy3k;
53655371
5366− src = pkgs.fetchurl {
5367− url = "http://download.ag-projects.com/SipClient/${name}.tar.gz";
5368− sha256 = "25224794420f430946fe46932718b521a6264903fe8c0ed3563dfdb844c623e7";
5369− };
5372+ src = pkgs.fetchdarcs {
5373+ url = "http://devel.ag-projects.com/repositories/${pname}";
5374+ rev = "release-${version}";
5375+ sha256 = "1zxhpq8i4jwsk7wmfncqfm211hqikj3hp38cfv509924bi76wak8";
5376+ };
53705377
53715378 propagatedBuildInputs = with self; [ greenlet ];
53725379
@@ -5798,8 +5805,8 @@ in modules // {
57985805 gnutls = buildPythonPackage rec {
57995806 name = "python-gnutls";
58005807 src = pkgs.fetchurl {
5801− url = "https://pypi.python.org/packages/source/p/python-gnutls/python-gnutls-2.0.1.tar.gz";
5802− sha256 = "d8fb368c6a4dd58bc6cd5e61d4a12d119c4506fd344a371b3429b3ac2623b9ac";
5808+ url = "https://pypi.python.org/packages/source/p/python-gnutls/python-gnutls-3.0.0.tar.gz";
5809+ sha256 = "1yrdxcj5rzvz8iglircz6icvyggz5fmdcd010n6w3j60yp4p84kc";
58035810 };
58045811
58055812 propagatedBuildInputs = with self; [ pkgs.gnutls ];
@@ -12179,14 +12186,16 @@ in modules // {
1217912186 };
1218012187
1218112188 msrplib = buildPythonPackage rec {
12182− name = "python-msrplib-${version}";
12183− version = "0.18.0";
12184−
12185− src = pkgs.fetchurl {
12186− url = "http://download.ag-projects.com/MSRP/${name}.tar.gz";
12187− sha256 = "0vp9g5p015g3f67rl4vz0qnn6x7hciry6nmvwf82h9h5rx11r43j";
12188− };
12189−
12189+ pname = "python-msrplib";
12190+ name = "${pname}-${version}";
12191+ version = "0.19";
12192+
12193+ src = pkgs.fetchdarcs {
12194+ url = "http://devel.ag-projects.com/repositories/${pname}";
12195+ rev = "release-${version}";
12196+ sha256 = "0jqvvssbwzq7bwqn3wrjfnpj8zb558mynn2visnlrcma6b57yhwd";
12197+ };
12198+
1219012199 propagatedBuildInputs = with self; [ eventlib application gnutls ];
1219112200 };
1219212201
@@ -13526,6 +13535,31 @@ in modules // {
1352613535 };
1352713536 };
1352813537
13538+ python-otr = buildPythonPackage rec {
13539+ name = "${pname}-${version}";
13540+ pname = "python-otr";
13541+ version = "1.2.0";
13542+
13543+ disabled = isPy3k;
13544+
13545+ src = pkgs.fetchFromGitHub {
13546+ owner = "AGProjects";
13547+ repo = pname;
13548+ rev = "release-" + version;
13549+ sha256 = "0p3b1n8jlxwd65gbk2k5007fkhdyjwcvr4982s42hncivxvabzzy";
13550+ };
13551+
13552+ propagatedBuildInputs = with self; [ zope_interface cryptography application gmpy2 ];
13553+
13554+ meta = {
13555+ description = "A pure python implementation of OTR";
13556+ homepage = https://github.com/AGProjects/otr;
13557+ license = licenses.lgpl21Plus;
13558+ platforms = platforms.linux;
13559+ maintainers = with maintainers; [ edwtjo ];
13560+ };
13561+ };
13562+
1352913563 ply = buildPythonPackage (rec {
1353013564 name = "ply-3.8";
1353113565
@@ -20282,15 +20316,15 @@ in modules // {
2028220316
2028320317 sipsimple = buildPythonPackage rec {
2028420318 name = "sipsimple-${version}";
20285− version = "2.6.0";
20319+ version = "3.0.0";
2028620320 disabled = isPy3k;
2028720321
2028820322 src = pkgs.fetchurl {
2028920323 url = "http://download.ag-projects.com/SipClient/python-${name}.tar.gz";
20290− sha256 = "0xcyasas28q1ad1hgw4vd62b72mf1sng7xwfcls6dc05k9p3q8v3";
20324+ sha256 = "1q35kgz151rr99240jq55rs39y741m8shh9yihl3x95rkjxchji4";
2029120325 };
2029220326
20293− propagatedBuildInputs = with self; [ cython pkgs.openssl dns dateutil xcaplib msrplib lxml ];
20327+ propagatedBuildInputs = with self; [ cython pkgs.openssl dns dateutil xcaplib msrplib lxml python-otr ];
2029420328 buildInputs = with pkgs; [ alsaLib ffmpeg libv4l pkgconfig sqlite libvpx ];
2029520329 };
2029620330
@@ -22563,12 +22597,15 @@ in modules // {
2256322597 };
2256422598
2256522599 xcaplib = buildPythonPackage rec {
22566− name = "python-xcaplib-${version}";
22567− version = "1.1.0";
22600+ pname = "python-xcaplib";
22601+ name = "${pname}-${version}";
22602+ version = "1.2.0";
22603+ disabled = isPy3k;
2256822604
22569− src = pkgs.fetchurl {
22570− url = "http://download.ag-projects.com/XCAP/${name}.tar.gz";
22571− sha256 = "2f8ea6fe7d005104ef1d854aa87bd8ee85ca242a70cde42f409f8e5557f864b3";
22605+ src = pkgs.fetchdarcs {
22606+ url = "http://devel.ag-projects.com/repositories/${pname}";
22607+ rev = "release-${version}";
22608+ sha256 = "0vna5r4ihv7z1yx6r93954jqskcxky77znzy1m9dg9vna1dgwfdn";
2257222609 };
2257322610
2257422611 propagatedBuildInputs = with self; [ eventlib application ];