Skip to content

Commit

Permalink
py-selectors2: allow Python 2
Browse files Browse the repository at this point in the history
Disable test dependencies.

Needed for offlineimap.
  • Loading branch information
0-wiz-0 committed Aug 14, 2024
1 parent b73669d commit e32d307
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions devel/py-selectors2/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2022/05/01 09:13:41 wiz Exp $
# $NetBSD: Makefile,v 1.5 2024/08/14 12:57:04 wiz Exp $

DISTNAME= selectors2-2.0.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
Expand All @@ -11,12 +11,17 @@ HOMEPAGE= https://github.com/sethmlarson/selectors2
COMMENT= Back-ported, durable, and portable selectors
LICENSE= mit

TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=2.0.0:../../devel/py-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-psutil>=5.2.2:../../sysutils/py-psutil

USE_LANGUAGES= # none

PYTHON_VERSIONS_INCOMPATIBLE= 27
PYTHON_27_ACCEPTED= yes

.include "../../lang/python/pyversion.mk"

.if ${PYTHON_VERSION} > 300
TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=2.0.0:../../devel/py-mock
# only supports Python 3
TEST_DEPENDS+= ${PYPKGPREFIX}-psutil>=5.2.2:../../sysutils/py-psutil
.endif

.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"

0 comments on commit e32d307

Please sign in to comment.