Tue Feb 28 20:54:09 2017 UTC ()
Import isort 4.2.5 as devel/py-isort.

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.


(fhajny)
diff -r0 -r1.1 pkgsrc/devel/py-isort/ALTERNATIVES
diff -r0 -r1.1 pkgsrc/devel/py-isort/DESCR
diff -r0 -r1.1 pkgsrc/devel/py-isort/Makefile
diff -r0 -r1.1 pkgsrc/devel/py-isort/PLIST
diff -r0 -r1.1 pkgsrc/devel/py-isort/distinfo
diff -r0 -r1.1 pkgsrc/devel/py-isort/patches/patch-setup.py

File Added: pkgsrc/devel/py-isort/ALTERNATIVES
bin/isort @PREFIX@/bin/isort@PYVERSSUFFIX@

File Added: pkgsrc/devel/py-isort/DESCR
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.

File Added: pkgsrc/devel/py-isort/Makefile
# $NetBSD: Makefile,v 1.1 2017/02/28 20:54:09 fhajny Exp $

DISTNAME=	isort-4.2.5
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

USE_LANGUAGES=	# none

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

File Added: pkgsrc/devel/py-isort/PLIST
@comment $NetBSD: PLIST,v 1.1 2017/02/28 20:54:09 fhajny 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}/top_level.txt
${PYSITELIB}/isort/__init__.py
${PYSITELIB}/isort/__init__.pyc
${PYSITELIB}/isort/__init__.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

File Added: pkgsrc/devel/py-isort/distinfo
$NetBSD: distinfo,v 1.1 2017/02/28 20:54:09 fhajny Exp $

SHA1 (isort-4.2.5.tar.gz) = a38bb8af9f882c101a0b1b04a8d746f66672ce03
RMD160 (isort-4.2.5.tar.gz) = bd8e921d3694dc258d36eb226ba6d575dcb4e55e
SHA512 (isort-4.2.5.tar.gz) = ddc8e859bb421e4179315d74896958c8279394d42a75494db5dc22c58422994aa249b63c03645626a021ccf9142941bde51ad400256ab1c6be29da8110375f40
Size (isort-4.2.5.tar.gz) = 36361 bytes
SHA1 (patch-setup.py) = 2d658729d243ecf5c6e5af13f14f7fda009e322a

File Added: pkgsrc/devel/py-isort/patches/Attic/patch-setup.py
$NetBSD: patch-setup.py,v 1.1 2017/02/28 20:54:09 fhajny Exp $

Use PYVERSSUFFIX with scripts.

--- setup.py.orig	2016-03-30 11:08:25.000000000 +0000
+++ setup.py
@@ -49,7 +49,7 @@ setup(name='isort',
       license="MIT",
       entry_points={
         'console_scripts': [
-            'isort = isort.main:main',
+            'isort' + sys.version[0:3] + ' = isort.main:main',
         ],
         'distutils.commands': ['isort = isort.main:ISortCommand'],
         'pylama.linter': ['isort = isort.pylama_isort:Linter'],