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