2019-03-19 15:10:27 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
2019-03-19 08:51:26 +00:00
|
|
|
, isPy27, isPyPy, python, pycares, typing, trollius }:
|
2017-07-19 10:32:53 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiodns";
|
2019-03-19 15:10:27 +00:00
|
|
|
version = "2.0.0";
|
2017-07-19 10:32:53 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-03-19 15:10:27 +00:00
|
|
|
sha256 = "815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d";
|
2017-07-19 10:32:53 +01:00
|
|
|
};
|
|
|
|
|
2019-03-19 15:10:27 +00:00
|
|
|
propagatedBuildInputs = with stdenv.lib; [ pycares ]
|
|
|
|
++ optional (pythonOlder "3.7") typing
|
2018-06-25 09:50:44 +01:00
|
|
|
++ 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";
|
|
|
|
};
|
|
|
|
}
|