PORTNAME=	distlib
DISTVERSION=	0.3.9
PORTREVISION=	1
CATEGORIES=	devel python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Low-level components of distutils2 and higher-level APIs
WWW=		https://github.com/pypa/distlib

LICENSE=	PSFL
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

BUILD_DEPENDS=	${PY_SETUPTOOLS} \
		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}

USES=		python
USE_PYTHON=	pep517 autoplist pytest # few tests fail intermittently, see https://github.com/pypa/distlib/issues/205

NO_ARCH=	yes

TEST_ENV=	PYTHONHASHSEED=0 # needed for tests to succeed

.include <bsd.port.mk>
