Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

63 lines
1.2 KiB
Nix

{
lib,
aioquic,
buildPythonPackage,
cryptography,
fetchPypi,
h2,
httpcore,
httpx,
idna,
hatchling,
pytestCheckHook,
trio,
}:
buildPythonPackage rec {
pname = "dnspython";
version = "2.7.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-zpxDLtoNyRz2GKXO3xpOFCZRGWu80sgOie1akH5c+vE=";
};
build-system = [ hatchling ];
optional-dependencies = {
doh = [
httpx
h2
httpcore
];
idna = [ idna ];
dnssec = [ cryptography ];
trio = [ trio ];
doq = [ aioquic ];
};
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# dns.exception.SyntaxError: protocol not found
"test_misc_good_WKS_text"
];
# disable network on all builds (including darwin)
# see https://github.com/NixOS/nixpkgs/issues/356803
preCheck = ''
export NO_INTERNET=1
'';
pythonImportsCheck = [ "dns" ];
meta = {
description = "DNS toolkit for Python";
homepage = "https://www.dnspython.org";
changelog = "https://github.com/rthalley/dnspython/blob/v${version}/doc/whatsnew.rst";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ gador ];
};
}