pkgsrc/devel/py-xopen/Makefile
adam 21b6294b26 py-xopen: updated to 0.8.4
v0.8.4:
Allow threads=0 to mean that no external pigz/gzip should be run.
Instead, regular gzip.open() is used.
2019-10-26 22:48:55 +00:00

28 lines
799 B
Makefile

# $NetBSD: Makefile,v 1.16 2019/10/26 22:48:55 adam Exp $
DISTNAME= xopen-0.8.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=x/xopen/}
MAINTAINER= bacon@NetBSD.org
HOMEPAGE= https://github.com/marcelm/xopen
COMMENT= Open compressed files transparently
LICENSE= mit
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
DEPENDS+= pigz-[0-9]*:../../archivers/pigz
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
DEPENDS+= ${PYPKGPREFIX}-bz2file-[0-9]*:../../archivers/py-bz2file
.endif
USE_LANGUAGES= # none
do-test:
cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"