summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@higgsboson.tk>2017-02-09 14:02:47 +0100
committerJörg Thalheim <joerg@higgsboson.tk>2017-02-13 14:11:57 +0100
commit8ed1d3f8d8264aab302f5f0e6fe8cd00f801bffd (patch)
tree592bdde0ec85c8ae63148b6818d74dcf7b6a6e61
parentb059f63c6e10d864c641ebcc43cbd850b62d0f58 (diff)
downloadnixpkgs-8ed1d3f8d8264aab302f5f0e6fe8cd00f801bffd.tar
nixpkgs-8ed1d3f8d8264aab302f5f0e6fe8cd00f801bffd.tar.gz
nixpkgs-8ed1d3f8d8264aab302f5f0e6fe8cd00f801bffd.tar.bz2
nixpkgs-8ed1d3f8d8264aab302f5f0e6fe8cd00f801bffd.tar.lz
nixpkgs-8ed1d3f8d8264aab302f5f0e6fe8cd00f801bffd.tar.xz
nixpkgs-8ed1d3f8d8264aab302f5f0e6fe8cd00f801bffd.tar.zst
nixpkgs-8ed1d3f8d8264aab302f5f0e6fe8cd00f801bffd.zip
gajim: use libasyncns as resolver
-rw-r--r--pkgs/applications/networking/instant-messengers/gajim/default.nix22
1 files changed, 11 insertions, 11 deletions
diff --git a/pkgs/applications/networking/instant-messengers/gajim/default.nix b/pkgs/applications/networking/instant-messengers/gajim/default.nix
index f0652bf4a1e..d78bd759ea6 100644
--- a/pkgs/applications/networking/instant-messengers/gajim/default.nix
+++ b/pkgs/applications/networking/instant-messengers/gajim/default.nix
@@ -2,7 +2,7 @@
 , ldns, pythonPackages
 
 # Test requirements
-, xvfb_run, dnsutils
+, xvfb_run
 
 , enableJingle ? true, farstream ? null, gst_plugins_bad ? null
 ,                      libnice ? null
@@ -63,9 +63,8 @@ stdenv.mkDerivation rec {
         }$GST_PLUGIN_PATH"'"
     }' scripts/gajim.in
 
-    sed -i -e 's/return helpers.is_in_path('"'"'drill.*/return True/' \
-      src/features_window.py
-    sed -i -e "s|'drill'|'${ldns}/bin/drill'|" src/common/resolver.py
+    # requires network access
+    echo "" > test/integration/test_resolver.py
 
     # We want to run tests in installCheckPhase rather than checkPhase to test
     # whether the *installed* version of Gajim works rather than just whether it
@@ -83,19 +82,20 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [
     autoreconfHook pythonPackages.wrapPython intltool pkgconfig
     # Test dependencies
-    xvfb_run dnsutils
+    xvfb_run
   ];
 
   autoreconfPhase = ''
     sed -e 's/which/type -P/;s,\./configure,:,' autogen.sh | bash
   '';
 
-  propagatedBuildInputs = [
-    pythonPackages.pygobject2 pythonPackages.pyGtkGlade
-    pythonPackages.pyasn1
-    pythonPackages.pyxdg
-    pythonPackages.nbxmpp
-    pythonPackages.pyopenssl pythonPackages.dbus-python
+  propagatedBuildInputs = with pythonPackages; [
+    libasyncns
+    pygobject2 pyGtkGlade
+    pyasn1
+    pyxdg
+    nbxmpp
+    pyopenssl dbus-python
   ] ++ optional enableE2E pythonPackages.pycrypto
     ++ optional enableRST pythonPackages.docutils
     ++ optional enableNotifications pythonPackages.notify