diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-netaddr/package.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-netaddr/package.py b/var/spack/repos/builtin/packages/py-netaddr/package.py new file mode 100644 index 0000000000..1231a1e089 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-netaddr/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 PyNetaddr(PythonPackage): + """A system-independent network address manipulation library for Python""" + + homepage = "https://netaddr.readthedocs.io/en/latest/" + pypi = "netaddr/netaddr-0.8.0.tar.gz" + + maintainers = ['haampie'] + + version('0.8.0', sha256='d6cc57c7a07b1d9d2e917aa8b36ae8ce61c35ba3fcd1b83ca31c5a0ee2b5a243') + + depends_on('python@2.7:2.8,3.5:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + + depends_on('py-importlib-resources', when='^python@:3.6', type=('build', 'run')) |