summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-netaddr/package.py
blob: e0f034515357677110688449732c75bb7b092b14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2013-2022 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'))