git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #7280 from auntieNeo/blink

Bumped blink version to 1.2.2

commit2425f27b175d76765c574a66d53d138b9d120cf6 authorArseniy Seroka <jagajaga@users.noreply.github.com> dateThu 9 Apr 2015, 05:20 (12 years ago) parent76e67b42b949cf
3 files changed+28−17
pkgs/applications/networking/instant-messengers/blink/default.nix+5−2 pkgs/applications/networking/instant-messengers/blink/pythonpath.patch+19−11 pkgs/top-level/python-packages.nix+4−4
pkgs/applications/networking/instant-messengers/blink/default.nix+5−2
@@ -2,14 +2,17 @@
22
33pythonPackages.buildPythonPackage rec {
44 name = "blink-${version}";
5− version = "0.9.1";
5+ version = "1.2.2";
66
77 src = fetchurl {
88 url = "http://download.ag-projects.com/BlinkQt/${name}.tar.gz";
9− sha256 = "f578e5186893c3488e7773fbb775028ae54540433a0c51aefa5af983ca2bfdae";
9+ sha256 = "0z7bhfz2775cm7c7s794s5ighp5q7fb6jn8dw025m49vlgqzr78c";
1010 };
1111
1212 patches = [ ./pythonpath.patch ];
13+ postPatch = ''
14+ sed -i 's|@out@|'"''${out}"'|g' blink/resources.py
15+ '';
1316
1417 propagatedBuildInputs = [ pyqt4 pythonPackages.cjson pythonPackages.sipsimple twisted ];
1518
pkgs/applications/networking/instant-messengers/blink/pythonpath.patch+19−11
@@ -1,12 +1,20 @@
1−diff --git a/blink/resources.py b/blink/resources.py
2−index 524d9e5..c271887 100644
3−--- a/blink/resources.py
4−+++ b/blink/resources.py
5−@@ -64,6 +64,7 @@ class Resources(object):
6− if script == '':
7− application_directory = os.path.realpath(script) # executed in interactive interpreter
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):
5+ @classproperty
6+ def directory(cls):
7+ if cls._cached_directory is None:
8+- if sys.path[0] == '':
9+- application_directory = os.path.realpath('') # executed in interactive interpreter
10+- else:
11+- binary_directory = os.path.dirname(os.path.realpath(sys.argv[0]))
12+- if os.path.basename(binary_directory) == 'bin':
13+- application_directory = os.path.dirname(binary_directory)
14+- else:
15+- application_directory = binary_directory
16++ application_directory = '@out@'
17+ if os.path.exists(os.path.join(application_directory, 'resources', 'blink.ui')):
18+ cls._cached_directory = os.path.join(application_directory, 'resources').decode(sys.getfilesystemencoding())
819 else:
9−+ script = os.path.join(sys.path[0], script)
10− binary_directory = os.path.dirname(os.path.realpath(script))
11− if os.path.basename(binary_directory) == 'bin':
12− application_directory = os.path.dirname(binary_directory)
20+Binary files a/blink/.resources.py.swp and b/blink/.resources.py.swp differ
pkgs/top-level/python-packages.nix+4−4
@@ -10982,19 +10982,19 @@ let
1098210982
1098310983 sipsimple = buildPythonPackage rec {
1098410984 name = "sipsimple-${version}";
10985− version = "1.4.2";
10985+ version = "2.3.1";
1098610986 disabled = isPy3k;
1098710987
1098810988 configurePhase = "find -name 'configure' -exec chmod a+x {} \\; ; find -name 'aconfigure' -exec chmod a+x {} \\; ; ${python}/bin/${python.executable} setup.py build_ext --pjsip-clean-compile";
1098910989
1099010990 src = pkgs.fetchurl {
1099110991 url = "http://download.ag-projects.com/SipClient/python-${name}.tar.gz";
10992− sha256 = "f6e6de7ab5f20e8ae08966b8811462e4271833db4f7fbab58ffba4e5c07ab114";
10992+ sha256 = "1n3g1zg3zgdybikdla0qdqvpa06vn1ka2asr61lb8kk6xbvqkljv";
1099310993 };
1099410994
10995− propagatedBuildInputs = with self; [ cython pkgs.openssl dns dateutil xcaplib msrplib];
10995+ propagatedBuildInputs = with self; [ cython pkgs.openssl dns dateutil xcaplib msrplib lxml ];
1099610996
10997− buildInputs = with self; [ pkgs.alsaLib ];
10997+ buildInputs = with pkgs; [ alsaLib ffmpeg libv4l pkgconfig sqlite ];
1099810998
1099910999 installPhase = "${python}/bin/${python.executable} setup.py install --prefix=$out";
1100011000