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