diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-02-26 21:25:40 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-02-26 21:28:07 +0100 |
commit | 5670d96bbc871ebfd20cb2fa3cfa4d72e0c84717 (patch) | |
tree | 66cfc53e70008da5a47fbc56a69af45924606853 /pkgs/development/python-modules/libasyncns | |
parent | b2a4eb839a530f84a0b522840a6a4cac51adcba1 (diff) | |
download | nixpkgs-5670d96bbc871ebfd20cb2fa3cfa4d72e0c84717.tar nixpkgs-5670d96bbc871ebfd20cb2fa3cfa4d72e0c84717.tar.gz nixpkgs-5670d96bbc871ebfd20cb2fa3cfa4d72e0c84717.tar.bz2 nixpkgs-5670d96bbc871ebfd20cb2fa3cfa4d72e0c84717.tar.lz nixpkgs-5670d96bbc871ebfd20cb2fa3cfa4d72e0c84717.tar.xz nixpkgs-5670d96bbc871ebfd20cb2fa3cfa4d72e0c84717.tar.zst nixpkgs-5670d96bbc871ebfd20cb2fa3cfa4d72e0c84717.zip |
pythonPackages.libasyncns: fix build with glibc-2.25
Diffstat (limited to 'pkgs/development/python-modules/libasyncns')
-rw-r--r-- | pkgs/development/python-modules/libasyncns/default.nix | 25 | ||||
-rw-r--r-- | pkgs/development/python-modules/libasyncns/libasyncns-fix-res-consts.patch | 14 |
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/libasyncns/default.nix b/pkgs/development/python-modules/libasyncns/default.nix new file mode 100644 index 00000000000..63bcad285c4 --- /dev/null +++ b/pkgs/development/python-modules/libasyncns/default.nix @@ -0,0 +1,25 @@ +{ 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"; + }; + + patches = [ ./libasyncns-fix-res-consts.patch ]; + + 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/development/python-modules/libasyncns/libasyncns-fix-res-consts.patch b/pkgs/development/python-modules/libasyncns/libasyncns-fix-res-consts.patch new file mode 100644 index 00000000000..62877300a27 --- /dev/null +++ b/pkgs/development/python-modules/libasyncns/libasyncns-fix-res-consts.patch @@ -0,0 +1,14 @@ +diff --git a/libasyncns.c b/libasyncns.c +index 99a73de..85709b0 100644 +--- a/libasyncns.c ++++ b/libasyncns.c +@@ -134,9 +134,8 @@ PyMODINIT_FUNC initlibasyncns(void) + ADDNSCONST(ns_t_mailb); + ADDNSCONST(ns_t_maila); + ADDNSCONST(ns_t_any); +- ADDNSCONST(ns_t_zxfr); + ADDNSCONST(ns_t_max); + + ADDNSCONST(ns_c_invalid); + ADDNSCONST(ns_c_in); + ADDNSCONST(ns_c_2); |