Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 30 lines 683 B view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder 2, python, pycares, typing ? null 3}: 4 5buildPythonPackage rec { 6 pname = "aiodns"; 7 version = "2.0.0"; 8 disabled = pythonOlder "3.5"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d"; 13 }; 14 15 propagatedBuildInputs = [ pycares ] 16 ++ lib.optional (pythonOlder "3.7") typing; 17 18 checkPhase = '' 19 ${python.interpreter} tests.py 20 ''; 21 22 # 'Could not contact DNS servers' 23 doCheck = false; 24 25 meta = with lib; { 26 homepage = "https://github.com/saghul/aiodns"; 27 license = licenses.mit; 28 description = "Simple DNS resolver for asyncio"; 29 }; 30}