blob: 6204b0dd25e3a0ffa5ead82291051d7b2bf02ee4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{
lib,
aioquic,
buildPythonPackage,
cryptography,
fetchPypi,
h2,
httpcore,
httpx,
idna,
hatchling,
pytestCheckHook,
trio,
}:
buildPythonPackage rec {
pname = "dnspython";
version = "2.8.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-GB08aZZFLLEYnEBGxhWZuEpahuCZVi/9530mmE/ybQ8=";
};
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 ];
};
}
|