pkgsrc/devel/py-xopen/Makefile
adam aabc57820b py-xopen: updated to 0.9.0
v0.9.0
When the file name extension of a file to be opened for reading is not available, the content is inspected (if possible) and used to determine which compression format applies.
This release drops Python 2.7 and 3.4 support. Python 3.5 or later is now required.
2020-04-03 16:20:49 +00:00

30 lines
833 B
Makefile

# $NetBSD: Makefile,v 1.17 2020/04/03 16:20:49 adam Exp $
DISTNAME= xopen-0.9.0
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
PYTHON_VERSIONS_INCOMPATIBLE= 27
do-test:
cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"