From 4f53975a2a51b289114274e76923a65fa04acaf8 Mon Sep 17 00:00:00 2001 From: darmac Date: Tue, 27 Apr 2021 20:16:39 +0800 Subject: [PATCH] Add new package: py-aiodns (#22138) --- .../builtin/packages/py-aiodns/package.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-aiodns/package.py diff --git a/var/spack/repos/builtin/packages/py-aiodns/package.py b/var/spack/repos/builtin/packages/py-aiodns/package.py new file mode 100644 index 0000000000..d6494e57e8 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-aiodns/package.py @@ -0,0 +1,22 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class PyAiodns(PythonPackage): + """Simple DNS resolver for asyncio.It provides a simple way for + doing asynchronous DNS resolutions using pycares.""" + + homepage = "https://pypi.org/project/aiodns/" + pypi = "aiodns/aiodns-2.0.0.tar.gz" + + version('2.0.0', sha256='815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d') + version('1.2.0', sha256='d67e14b32176bcf3ff79b5d47c466011ce4adeadfa264f7949da1377332a0449') + version('1.1.1', sha256='d8677adc679ce8d0ef706c14d9c3d2f27a0e0cc11d59730cdbaf218ad52dd9ea') + + depends_on('py-setuptools', type='build') + depends_on('py-typing', when='^python@:3.6.999', type=('build', 'run')) + depends_on('py-pycares@3.0.0:', type=('build', 'run'))