mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
a4a61777e8
> This version is only relevant for Python 3.3, > which does not include asyncio in its stdlib. We don't ship 3.3 anymore.
29 lines
686 B
Nix
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";
|
|
};
|
|
}
|