1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycares,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "aiodns";
11 version = "3.5.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "saghul";
16 repo = "aiodns";
17 tag = "v${version}";
18 hash = "sha256-qabXwvJzZ4bq0R2Wkb0terZgjnRRt0/ymLcJkxChR6s=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ pycares ];
24
25 # Could not contact DNS servers
26 doCheck = false;
27
28 pythonImportsCheck = [ "aiodns" ];
29
30 meta = {
31 description = "Simple DNS resolver for asyncio";
32 homepage = "https://github.com/saghul/aiodns";
33 changelog = "https://github.com/saghul/aiodns/releases/tag/${src.tag}";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}