git.iko.soy/typeable/nixpkgs
on master help sign in
Bumped blink version to 1.2.2
commit2b949cfd46e24e23f4bfabb041068d14f2181587 authorJonathan Glines <auntieNeo@gmail.com> dateTue 7 Apr 2015, 22:57 (12 years ago) parenta869c83
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
@@ -10094,19 +10094,19 @@ let
1009410094
1009510095 sipsimple = buildPythonPackage rec {
1009610096 name = "sipsimple-${version}";
10097− version = "1.4.2";
10097+ version = "2.3.1";
1009810098 disabled = isPy3k;
1009910099
1010010100 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";
1010110101
1010210102 src = pkgs.fetchurl {
1010310103 url = "http://download.ag-projects.com/SipClient/python-${name}.tar.gz";
10104− sha256 = "f6e6de7ab5f20e8ae08966b8811462e4271833db4f7fbab58ffba4e5c07ab114";
10104+ sha256 = "1n3g1zg3zgdybikdla0qdqvpa06vn1ka2asr61lb8kk6xbvqkljv";
1010510105 };
1010610106
10107− propagatedBuildInputs = with self; [ cython pkgs.openssl dns dateutil xcaplib msrplib];
10107+ propagatedBuildInputs = with self; [ cython pkgs.openssl dns dateutil xcaplib msrplib lxml ];
1010810108
10109− buildInputs = with self; [ pkgs.alsaLib ];
10109+ buildInputs = with pkgs; [ alsaLib ffmpeg libv4l pkgconfig sqlite ];
1011010110
1011110111 installPhase = "${python}/bin/${python.executable} setup.py install --prefix=$out";
1011210112