diff options
author | wisut hantanong <wizzup@gmail.com> | 2017-07-19 16:32:53 +0700 |
---|---|---|
committer | wisut hantanong <wizzup@gmail.com> | 2017-07-19 16:32:53 +0700 |
commit | 5eea07391ea407b502dcd3b59c7c0f319c29b713 (patch) | |
tree | 6b143ac5e46ee96ed89929ffdb678bffa9c03250 /pkgs/development/python-modules/aiodns | |
parent | af02f13e2572a2bdde5a6e94e78f4f3dcc6a05a3 (diff) |
python.pkgs.aiodns : move to separate expression
Diffstat (limited to 'pkgs/development/python-modules/aiodns')
-rw-r--r-- | pkgs/development/python-modules/aiodns/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiodns/default.nix b/pkgs/development/python-modules/aiodns/default.nix new file mode 100644 index 0000000000000..4265a7488f66c --- /dev/null +++ b/pkgs/development/python-modules/aiodns/default.nix @@ -0,0 +1,30 @@ +{ stdenv, buildPythonPackage, fetchPypi +, isPy33, isPy26, isPy27, isPyPy, python, pycares, asyncio, trollius }: + +buildPythonPackage rec { + pname = "aiodns"; + version = "1.0.1"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "595b78b8d54115d937cf60d778c02dad76b6f789fd527dab308f99e5601e7f3d"; + }; + + propagatedBuildInputs = with stdenv.lib; [ pycares ] + ++ optional isPy33 asyncio + ++ optional (isPy26 || isPy27 || isPyPy) trollius; + + checkPhase = '' + ${python.interpreter} tests.py + ''; + + # 'Could not contact DNS servers' + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://github.com/saghul/aiodns; + license = licenses.mit; + description = "Simple DNS resolver for asyncio"; + }; +} |