1{ stdenv, buildPythonPackage, fetchurl
2, libasyncns, pkgconfig }:
3
4buildPythonPackage rec {
5 pname = "libasyncns-python";
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 patches = [ ./libasyncns-fix-res-consts.patch ];
14
15 buildInputs = [ libasyncns ];
16 nativeBuildInputs = [ pkgconfig ];
17 doCheck = false; # requires network access
18
19 meta = with stdenv.lib; {
20 description = "libasyncns-python is a python binding for the asynchronous name service query library";
21 license = licenses.lgpl21;
22 maintainers = [ maintainers.mic92 ];
23 homepage = https://launchpad.net/libasyncns-python;
24 };
25}