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