2019-07-01 09:15:00 +02:00
|
|
|
# $NetBSD: Makefile,v 1.17 2019/07/01 07:15:00 adam Exp $
|
2017-02-28 21:54:09 +01:00
|
|
|
|
2019-07-01 09:15:00 +02:00
|
|
|
DISTNAME= isort-4.3.21
|
2017-02-28 21:54:09 +01:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
|
|
CATEGORIES= devel python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=i/isort/}
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2019-03-13 09:56:47 +01:00
|
|
|
HOMEPAGE= https://github.com/timothycrosley/isort
|
2017-02-28 21:54:09 +01:00
|
|
|
COMMENT= Python utility / library to sort imports
|
|
|
|
LICENSE= mit
|
|
|
|
|
2019-03-25 09:54:24 +01:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-lama-[0-9]*:../../devel/py-lama
|
|
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
|
|
|
|
|
2018-02-02 12:51:07 +01:00
|
|
|
.include "../../lang/python/pyversion.mk"
|
2019-02-25 10:00:35 +01:00
|
|
|
.if ${_PYTHON_VERSION} == 27
|
2019-03-03 13:12:13 +01:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-backports.functools_lru_cache-[0-9]*:../../devel/py-backports.functools_lru_cache
|
2018-02-02 12:51:07 +01:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-futures-[0-9]*:../../devel/py-futures
|
|
|
|
.endif
|
|
|
|
|
2017-02-28 21:54:09 +01:00
|
|
|
USE_LANGUAGES= # none
|
|
|
|
|
2019-02-25 10:00:35 +01:00
|
|
|
post-install:
|
|
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
|
|
${MV} isort isort-${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
|
2019-03-25 09:54:24 +01:00
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC} && pytest-${PYVERSSUFFIX} test_isort.py
|
|
|
|
|
2017-02-28 21:54:09 +01:00
|
|
|
.include "../../lang/python/egg.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|