blob: 361e9f161bf2448d6aefb845f1bda1ed7ac82df5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# $NetBSD: Makefile,v 1.22 2022/01/05 15:41:04 wiz Exp $
DISTNAME= isort-5.10.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=i/isort/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/PyCQA/isort
COMMENT= Python utility/library to sort imports
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-colorama>=0.4.3:../../comms/py-colorama
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
USE_PKG_RESOURCES= yes
post-install:
.for bin in isort isort-identify-imports
cd ${DESTDIR}${PREFIX}/bin && \
${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
.endfor
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests/unit/test_isort.py
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
|