2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
2021-04-30 08:40:14 +01:00
|
|
|
, python, pycares, typing ? null
|
2021-03-24 16:45:56 +00:00
|
|
|
}:
|
2017-07-19 10:32:53 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiodns";
|
2019-03-19 15:10:27 +00:00
|
|
|
version = "2.0.0";
|
2021-04-30 08:40:14 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
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
|
|
|
};
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
propagatedBuildInputs = [ pycares ]
|
2021-04-30 08:40:14 +01:00
|
|
|
++ lib.optional (pythonOlder "3.7") typing;
|
2017-07-19 10:32:53 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} tests.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# 'Could not contact DNS servers'
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/saghul/aiodns";
|
2017-07-19 10:32:53 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
description = "Simple DNS resolver for asyncio";
|
|
|
|
};
|
|
|
|
}
|