pkgsrc/textproc/py-lxml/Makefile
2021-04-21 11:40:12 +00:00

27 lines
920 B
Makefile

# $NetBSD: Makefile,v 1.75 2021/04/21 11:42:48 adam Exp $
DISTNAME= lxml-4.6.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=l/lxml/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://lxml.de/
COMMENT= Python binding for libxml2 and libxslt
LICENSE= modified-bsd
TEST_DEPENDS+= ${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree
TEST_DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7:../../textproc/py-cssselect
PYSETUPTESTARGS= --run-tests
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/egg.mk"
BUILDLINK_API_DEPENDS.libxml2+= libxml2>=2.9.2
.include "../../textproc/libxml2/buildlink3.mk"
BUILDLINK_API_DEPENDS.libxslt+= libxslt>=1.1.27
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
# fix for UnicodeEncodeError: 'ascii' codec can't encode characters
TEST_ENV+= LC_ALL=en_US.UTF-8