3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/aiodns/default.nix

30 lines
737 B
Nix
Raw Normal View History

2019-03-19 15:10:27 +00:00
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder
, isPy27, isPyPy, python, pycares, typing, trollius }:
buildPythonPackage rec {
pname = "aiodns";
2019-03-19 15:10:27 +00:00
version = "2.0.0";
src = fetchPypi {
inherit pname version;
2019-03-19 15:10:27 +00:00
sha256 = "815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d";
};
2019-03-19 15:10:27 +00:00
propagatedBuildInputs = with stdenv.lib; [ pycares ]
++ optional (pythonOlder "3.7") typing
++ optional (isPy27 || isPyPy) trollius;
checkPhase = ''
${python.interpreter} tests.py
'';
# 'Could not contact DNS servers'
doCheck = false;
meta = with stdenv.lib; {
homepage = "https://github.com/saghul/aiodns";
license = licenses.mit;
description = "Simple DNS resolver for asyncio";
};
}