pkgsrc/net/py-netaddr/Makefile
adam 0fcaae443d py-netaddr: updated to 0.8.0
Release: 0.8.0

* Fixed weak reference support in classes with ``__slots__``
* Added ``__bytes__`` to ``IPAddress`` for intuitive usage
* Added ``format()`` function to EUI
* Added ``IPNetwork.netmask`` property setter
* Added support for IABs in the ``40:D8:55`` OUI
* Drastically optimized ``spanning_cidr()``
* Fixed ``"x.x.x.x/x" in IPNetwork`` tests
* Added support for passing iterables of ``IPRange`` to ``IPSet`` and ``cidr_merge()``

Specific bug fixes addressed in this release
- N log N complexity instead of linear
- Efficiently creating a large IPSet from a list of IPRanges?
- Weak reference support
2020-07-07 05:33:30 +00:00

30 lines
860 B
Makefile

# $NetBSD: Makefile,v 1.7 2020/07/07 05:33:30 adam Exp $
DISTNAME= netaddr-0.8.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_PYPI:=n/netaddr/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/drkjam/netaddr
COMMENT= Python library for manipluating network addresses
LICENSE= modified-bsd
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} < 37
DEPENDS+= ${PYPKGPREFIX}-importlib-resources-[0-9]*:../../devel/py-importlib-resources
.endif
USE_LANGUAGES= # none
REPLACE_PYTHON+= netaddr/eui/ieee.py
REPLACE_PYTHON+= netaddr/ip/iana.py
REPLACE_PYTHON+= netaddr/tools/netaddr
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} netaddr netaddr-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"