diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-02-13 15:08:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 15:08:16 +0100 |
commit | 04f72ca64c927224e4496c7041c0b8115c811e27 (patch) | |
tree | e1171528c4c63cead4506f63805fe14aea45e88a | |
parent | 2e648bdacf5db569bc93a44eb7e5ae18adbbb1ec (diff) | |
parent | 8ed1d3f8d8264aab302f5f0e6fe8cd00f801bffd (diff) | |
download | nixpkgs-04f72ca64c927224e4496c7041c0b8115c811e27.tar nixpkgs-04f72ca64c927224e4496c7041c0b8115c811e27.tar.gz nixpkgs-04f72ca64c927224e4496c7041c0b8115c811e27.tar.bz2 nixpkgs-04f72ca64c927224e4496c7041c0b8115c811e27.tar.lz nixpkgs-04f72ca64c927224e4496c7041c0b8115c811e27.tar.xz nixpkgs-04f72ca64c927224e4496c7041c0b8115c811e27.tar.zst nixpkgs-04f72ca64c927224e4496c7041c0b8115c811e27.zip |
Merge pull request #22740 from Mic92/libasyncns
gajim: use libasyncns as resolver
-rw-r--r-- | pkgs/applications/networking/instant-messengers/gajim/default.nix | 22 | ||||
-rw-r--r-- | pkgs/development/python-modules/libasyncns.nix | 23 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 4 |
3 files changed, 38 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 diff --git a/pkgs/development/python-modules/libasyncns.nix b/pkgs/development/python-modules/libasyncns.nix new file mode 100644 index 00000000000..de0d6ea610d --- /dev/null +++ b/pkgs/development/python-modules/libasyncns.nix @@ -0,0 +1,23 @@ +{ stdenv, buildPythonPackage, fetchurl +, libasyncns, pkgconfig }: + +buildPythonPackage rec { + name = "libasyncns-python-${version}"; + version = "0.7.1"; + + src = fetchurl { + url = "https://launchpad.net/libasyncns-python/trunk/${version}/+download/libasyncns-python-${version}.tar.bz2"; + sha256 = "1q4l71b2h9q756x4pjynp6kczr2d8c1jvbdp982hf7xzv7w5gxqg"; + }; + + buildInputs = [ libasyncns ]; + nativeBuildInputs = [ pkgconfig ]; + doCheck = false; # requires network access + + meta = with stdenv.lib; { + description = "libasyncns-python is a python binding for the asynchronous name service query library"; + license = licenses.lgpl21; + maintainers = [ maintainers.mic92 ]; + homepage = https://launchpad.net/libasyncns-python; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e7592ce69a2..6ee8ad5ebd5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -28117,6 +28117,10 @@ EOF buildInputs = with self; [ pytest pkgs.glibcLocales ]; }; + libasyncns = callPackage ../development/python-modules/libasyncns.nix { + inherit (pkgs) libasyncns pkgconfig; + }; + pybrowserid = buildPythonPackage rec { name = "PyBrowserID-${version}"; version = "0.9.2"; |