push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
{
lib,
stdenv,
buildPythonPackage,
fetchurl,
libasyncns,
pkg-config,
}:
buildPythonPackage rec {
pname = "libasyncns-python";
version = "0.7.1";
format = "setuptools";
src = fetchurl {
url = "https://launchpad.net/libasyncns-python/trunk/${version}/+download/libasyncns-python-${version}.tar.bz2";
sha256 = "1q4l71b2h9q756x4pjynp6kczr2d8c1jvbdp982hf7xzv7w5gxqg";
};
patches = [ ./libasyncns-fix-res-consts.patch ];
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace resquery.c \
--replace '<arpa/nameser.h>' '<arpa/nameser_compat.h>'
'';
buildInputs = [ libasyncns ];
nativeBuildInputs = [ pkg-config ];
doCheck = false; # requires network access
pythonImportsCheck = [ "libasyncns" ];
meta = with 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";
};
}

View File

@@ -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);