Add py-netaddr (#25214)

This commit is contained in:
Harmen Stoppels 2021-08-03 17:29:04 +02:00 committed by GitHub
parent d734bfda18
commit 1f191ef37c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'))