git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22740 from Mic92/libasyncns

gajim: use libasyncns as resolver

commit04f72ca64c927224e4496c7041c0b8115c811e27 authorFranz Pletz <fpletz@fnordicwalking.de> dateMon 13 Feb 2017, 15:08 (10 years ago) parent2e648bd8ed1d3f
3 files changed+38−11
pkgs/applications/networking/instant-messengers/gajim/default.nix+11−11 pkgs/development/python-modules/libasyncns.nix+23 pkgs/top-level/python-packages.nix+4
pkgs/applications/networking/instant-messengers/gajim/default.nix+11−11
@@ -2,7 +2,7 @@
22, ldns, pythonPackages
33
44# Test requirements
5−, xvfb_run, dnsutils
5+, xvfb_run
66
77, enableJingle ? true, farstream ? null, gst_plugins_bad ? null
88, libnice ? null
@@ -63,9 +63,8 @@ stdenv.mkDerivation rec {
6363 }$GST_PLUGIN_PATH"'"
6464 }' scripts/gajim.in
6565
66− sed -i -e 's/return helpers.is_in_path('"'"'drill.*/return True/' \
67− src/features_window.py
68− sed -i -e "s|'drill'|'${ldns}/bin/drill'|" src/common/resolver.py
66+ # requires network access
67+ echo "" > test/integration/test_resolver.py
6968
7069 # We want to run tests in installCheckPhase rather than checkPhase to test
7170 # whether the *installed* version of Gajim works rather than just whether it
@@ -83,19 +82,20 @@ stdenv.mkDerivation rec {
8382 nativeBuildInputs = [
8483 autoreconfHook pythonPackages.wrapPython intltool pkgconfig
8584 # Test dependencies
86− xvfb_run dnsutils
85+ xvfb_run
8786 ];
8887
8988 autoreconfPhase = ''
9089 sed -e 's/which/type -P/;s,\./configure,:,' autogen.sh | bash
9190 '';
9291
93− propagatedBuildInputs = [
94− pythonPackages.pygobject2 pythonPackages.pyGtkGlade
95− pythonPackages.pyasn1
96− pythonPackages.pyxdg
97− pythonPackages.nbxmpp
98− pythonPackages.pyopenssl pythonPackages.dbus-python
92+ propagatedBuildInputs = with pythonPackages; [
93+ libasyncns
94+ pygobject2 pyGtkGlade
95+ pyasn1
96+ pyxdg
97+ nbxmpp
98+ pyopenssl dbus-python
9999 ] ++ optional enableE2E pythonPackages.pycrypto
100100 ++ optional enableRST pythonPackages.docutils
101101 ++ optional enableNotifications pythonPackages.notify
pkgs/development/python-modules/libasyncns.nixnew file+23
@@ -0,0 +1,23 @@
1+{ stdenv, buildPythonPackage, fetchurl
2+, libasyncns, pkgconfig }:
3+
4+buildPythonPackage rec {
5+ name = "libasyncns-python-${version}";
6+ version = "0.7.1";
7+
8+ src = fetchurl {
9+ url = "https://launchpad.net/libasyncns-python/trunk/${version}/+download/libasyncns-python-${version}.tar.bz2";
10+ sha256 = "1q4l71b2h9q756x4pjynp6kczr2d8c1jvbdp982hf7xzv7w5gxqg";
11+ };
12+
13+ buildInputs = [ libasyncns ];
14+ nativeBuildInputs = [ pkgconfig ];
15+ doCheck = false; # requires network access
16+
17+ meta = with stdenv.lib; {
18+ description = "libasyncns-python is a python binding for the asynchronous name service query library";
19+ license = licenses.lgpl21;
20+ maintainers = [ maintainers.mic92 ];
21+ homepage = https://launchpad.net/libasyncns-python;
22+ };
23+}
pkgs/top-level/python-packages.nix+4
@@ -28117,6 +28117,10 @@ EOF
2811728117 buildInputs = with self; [ pytest pkgs.glibcLocales ];
2811828118 };
2811928119
28120+ libasyncns = callPackage ../development/python-modules/libasyncns.nix {
28121+ inherit (pkgs) libasyncns pkgconfig;
28122+ };
28123+
2812028124 pybrowserid = buildPythonPackage rec {
2812128125 name = "PyBrowserID-${version}";
2812228126 version = "0.9.2";