diff --git a/devel/Makefile b/devel/Makefile index 8f0128bb5cc6..b06df1e2a1f7 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3478 2021/07/29 21:18:37 fcambus Exp $ +# $NetBSD: Makefile,v 1.3479 2021/07/30 17:37:36 adam Exp $ # COMMENT= Development utilities @@ -2363,6 +2363,7 @@ SUBDIR+= py-ipython_genutils SUBDIR+= py-iso-639 SUBDIR+= py-iso3166 SUBDIR+= py-isort +SUBDIR+= py-isort4 SUBDIR+= py-itanium_demangler SUBDIR+= py-jaraco.classes SUBDIR+= py-jaraco.functools diff --git a/devel/py-isort4/ALTERNATIVES b/devel/py-isort4/ALTERNATIVES new file mode 100644 index 000000000000..abaf8726f880 --- /dev/null +++ b/devel/py-isort4/ALTERNATIVES @@ -0,0 +1 @@ +bin/isort @PREFIX@/bin/isort-@PYVERSSUFFIX@ diff --git a/devel/py-isort4/DESCR b/devel/py-isort4/DESCR new file mode 100644 index 000000000000..4f1453523422 --- /dev/null +++ b/devel/py-isort4/DESCR @@ -0,0 +1,4 @@ +isort is a Python utility / library to sort imports alphabetically, +and automatically separated into sections. It provides a command +line utility, Python library and plugins for various editors to +quickly sort all your imports. diff --git a/devel/py-isort4/Makefile b/devel/py-isort4/Makefile new file mode 100644 index 000000000000..23fb8df3fd7d --- /dev/null +++ b/devel/py-isort4/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1 2021/07/30 17:37:36 adam Exp $ + +DISTNAME= isort-4.3.21 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= devel python +MASTER_SITES= ${MASTER_SITE_PYPI:=i/isort/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/timothycrosley/isort +COMMENT= Python utility / library to sort imports +LICENSE= mit + +DEPENDS+= ${PYPKGPREFIX}-lama-[0-9]*:../../devel/py-lama + +PYTHON_VERSIONED_DEPENDENCIES= test:test + +.include "../../lang/python/pyversion.mk" +.if ${_PYTHON_VERSION} == 27 +DEPENDS+= ${PYPKGPREFIX}-backports.functools_lru_cache-[0-9]*:../../devel/py-backports.functools_lru_cache +DEPENDS+= ${PYPKGPREFIX}-futures-[0-9]*:../../devel/py-futures +.endif + +USE_LANGUAGES= # none + +post-install: + cd ${DESTDIR}${PREFIX}/bin && \ + ${MV} isort isort-${PYVERSSUFFIX} || ${TRUE} + +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} test_isort.py + +.include "../../lang/python/egg.mk" +.include "../../lang/python/versioned_dependencies.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/py-isort4/PLIST b/devel/py-isort4/PLIST new file mode 100644 index 000000000000..ec766a1aca5f --- /dev/null +++ b/devel/py-isort4/PLIST @@ -0,0 +1,41 @@ +@comment $NetBSD: PLIST,v 1.1 2021/07/30 17:37:37 adam Exp $ +bin/isort-${PYVERSSUFFIX} +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/entry_points.txt +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/isort/__init__.py +${PYSITELIB}/isort/__init__.pyc +${PYSITELIB}/isort/__init__.pyo +${PYSITELIB}/isort/__main__.py +${PYSITELIB}/isort/__main__.pyc +${PYSITELIB}/isort/__main__.pyo +${PYSITELIB}/isort/finders.py +${PYSITELIB}/isort/finders.pyc +${PYSITELIB}/isort/finders.pyo +${PYSITELIB}/isort/hooks.py +${PYSITELIB}/isort/hooks.pyc +${PYSITELIB}/isort/hooks.pyo +${PYSITELIB}/isort/isort.py +${PYSITELIB}/isort/isort.pyc +${PYSITELIB}/isort/isort.pyo +${PYSITELIB}/isort/main.py +${PYSITELIB}/isort/main.pyc +${PYSITELIB}/isort/main.pyo +${PYSITELIB}/isort/natural.py +${PYSITELIB}/isort/natural.pyc +${PYSITELIB}/isort/natural.pyo +${PYSITELIB}/isort/pie_slice.py +${PYSITELIB}/isort/pie_slice.pyc +${PYSITELIB}/isort/pie_slice.pyo +${PYSITELIB}/isort/pylama_isort.py +${PYSITELIB}/isort/pylama_isort.pyc +${PYSITELIB}/isort/pylama_isort.pyo +${PYSITELIB}/isort/settings.py +${PYSITELIB}/isort/settings.pyc +${PYSITELIB}/isort/settings.pyo +${PYSITELIB}/isort/utils.py +${PYSITELIB}/isort/utils.pyc +${PYSITELIB}/isort/utils.pyo diff --git a/devel/py-isort4/distinfo b/devel/py-isort4/distinfo new file mode 100644 index 000000000000..393d6562ff6f --- /dev/null +++ b/devel/py-isort4/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2021/07/30 17:37:37 adam Exp $ + +SHA1 (isort-4.3.21.tar.gz) = 039126857536033900c81923af241a963d891654 +RMD160 (isort-4.3.21.tar.gz) = f3905a2005ed7df9127161d1561f786addcde7fc +SHA512 (isort-4.3.21.tar.gz) = 2a35107baf7c78c03bab3ea2fadd0c6cbc8db219acd388600b01ace27c91e6c651355e1ecfeb03b1ef2893a1d066b3d2f182a0008e3c341193ac156b8aea0dc2 +Size (isort-4.3.21.tar.gz) = 69546 bytes