1{ stdenv, buildPythonPackage, fetchurl
2, libasyncns, pkgconfig }:
3
4buildPythonPackage rec {
5 pname = "libasyncns-python";
6 name = "${pname}-${version}";
7 version = "0.7.1";
8
9 src = fetchurl {
10 url = "https://launchpad.net/libasyncns-python/trunk/${version}/+download/libasyncns-python-${version}.tar.bz2";
11 sha256 = "1q4l71b2h9q756x4pjynp6kczr2d8c1jvbdp982hf7xzv7w5gxqg";
12 };
13
14 patches = [ ./libasyncns-fix-res-consts.patch ];
15
16 buildInputs = [ libasyncns ];
17 nativeBuildInputs = [ pkgconfig ];
18 doCheck = false; # requires network access
19
20 meta = with stdenv.lib; {
21 description = "libasyncns-python is a python binding for the asynchronous name service query library";
22 license = licenses.lgpl21;
23 maintainers = [ maintainers.mic92 ];
24 homepage = https://launchpad.net/libasyncns-python;
25 };
26}