2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aioquic,
|
|
|
|
buildPythonPackage,
|
|
|
|
cacert,
|
|
|
|
cryptography,
|
|
|
|
curio,
|
|
|
|
fetchPypi,
|
|
|
|
h2,
|
|
|
|
httpcore,
|
|
|
|
httpx,
|
|
|
|
idna,
|
|
|
|
hatchling,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
requests-toolbelt,
|
|
|
|
sniffio,
|
|
|
|
trio,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dnspython";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.6.1";
|
2023-08-10 07:59:29 +00:00
|
|
|
format = "pyproject";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-6PD5wjp7fLmd7WTmw6bz5wHXj1DFXgArg53qciXP98w=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
DOH = [
|
|
|
|
httpx
|
|
|
|
h2
|
|
|
|
requests
|
|
|
|
requests-toolbelt
|
2024-04-21 15:54:59 +00:00
|
|
|
httpcore
|
2023-03-04 12:14:45 +00:00
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
IDNA = [ idna ];
|
|
|
|
DNSSEC = [ cryptography ];
|
|
|
|
trio = [ trio ];
|
2023-03-04 12:14:45 +00:00
|
|
|
curio = [
|
|
|
|
curio
|
|
|
|
sniffio
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
DOQ = [ aioquic ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
checkInputs = [ cacert ] ++ passthru.optional-dependencies.DNSSEC;
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabledTests = [
|
|
|
|
# dns.exception.SyntaxError: protocol not found
|
|
|
|
"test_misc_good_WKS_text"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dns" ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "DNS toolkit for Python";
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://www.dnspython.org";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/rthalley/dnspython/blob/v${version}/doc/whatsnew.rst";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = with licenses; [ isc ];
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ gador ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|