2017-07-19 10:32:53 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2018-06-25 09:50:44 +01:00
|
|
|
, isPy33, isPy27, isPyPy, python, pycares, asyncio, trollius }:
|
2017-07-19 10:32:53 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiodns";
|
2017-08-24 18:34:20 +01:00
|
|
|
version = "1.1.1";
|
2017-07-19 10:32:53 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-08-24 18:34:20 +01:00
|
|
|
sha256 = "d8677adc679ce8d0ef706c14d9c3d2f27a0e0cc11d59730cdbaf218ad52dd9ea";
|
2017-07-19 10:32:53 +01:00
|
|
|
};
|
|
|
|
|
2018-06-25 09:50:44 +01:00
|
|
|
propagatedBuildInputs = with stdenv.lib; [ pycares ]
|
|
|
|
++ optional isPy33 asyncio
|
|
|
|
++ optional (isPy27 || isPyPy) trollius;
|
2017-07-19 10:32:53 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} tests.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# 'Could not contact DNS servers'
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-11-10 21:13:27 +00:00
|
|
|
homepage = https://github.com/saghul/aiodns;
|
2017-07-19 10:32:53 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
description = "Simple DNS resolver for asyncio";
|
|
|
|
};
|
|
|
|
}
|