nixpkgs/pkgs/development/python-modules/aiodns/default.nix
Robert Schütz a4a61777e8 python.pkgs.asyncio: remove
> This version is only relevant for Python 3.3,
> which does not include asyncio in its stdlib.
We don't ship 3.3 anymore.
2019-03-19 10:11:23 +01:00

29 lines
686 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, isPy27, isPyPy, python, pycares, typing, trollius }:
buildPythonPackage rec {
pname = "aiodns";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "d67e14b32176bcf3ff79b5d47c466011ce4adeadfa264f7949da1377332a0449";
};
propagatedBuildInputs = with stdenv.lib; [ pycares 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";
};
}