1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 11:32:03 +00:00
nixpkgs/pkgs/development/python-modules/aiodns/default.nix

29 lines
703 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, isPy33, isPy27, isPyPy, python, pycares, typing, asyncio, 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";
};
}