Skip to content

Commit

Permalink
py-isort4: add version 4.3.21
Browse files Browse the repository at this point in the history
Last version that supports Python 2.7.
  • Loading branch information
adam committed Jul 30, 2021
1 parent 8969267 commit a6e5c52
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions devel/py-isort4/ALTERNATIVES
@@ -0,0 +1 @@
bin/isort @PREFIX@/bin/isort-@PYVERSSUFFIX@
4 changes: 4 additions & 0 deletions 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.
34 changes: 34 additions & 0 deletions 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"
41 changes: 41 additions & 0 deletions 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
6 changes: 6 additions & 0 deletions 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

0 comments on commit a6e5c52

Please sign in to comment.