Package Details: python2-isort 4.3.21-2

Git Clone URL: https://aur.archlinux.org/python2-isort.git (read-only, click to copy)
Package Base: python2-isort
Description: A Python utility / library to sort Python imports.
Upstream URL: https://github.com/timothycrosley/isort
Licenses: MIT
Submitter: FrederickZh
Maintainer: FrederickZh
Last Packager: FrederickZh
Votes: 1
Popularity: 0.27
First Submitted: 2021-04-09 12:03
Last Updated: 2021-04-15 08:59

Latest Comments

FrederickZh commented on 2021-04-15 08:59

@marcinn Applied. Thank you

marcinn commented on 2021-04-15 00:31

Hi. isort 4.3.21 is not compatible with python2. Raises syntax error in settings.py at line 71. There is a patched tag available - 4.3.21-2, and it should be used. Here is a diff of PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 95596cb..24651cb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,22 +3,23 @@

 pkgname=python2-isort
 pkgver=4.3.21
-pkgrel=1
+pkgverfix=-2
+pkgrel=2
 pkgdesc="A Python utility / library to sort Python imports."
 arch=('any')
 url="https://github.com/timothycrosley/isort"
 license=('MIT')
 depends=('python2-futures' 'python2-setuptools')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/timothycrosley/isort/archive/$pkgver.tar.gz")
-sha512sums=('a393956a997687996b025c2a37c655efebdd988c52f6d6914db79613a5e0febbf92b0c6007c6db07af079db78e4c235cad0578089b565cb474cdfbbac9031e6d')
+source=("$pkgname-$pkgver$pkgverfix.tar.gz::https://github.com/timothycrosley/isort/archive/$pkgver$pkgverfix.tar.gz")
+sha512sums=('fc2aa00c87196864864d2516b8be7acdedcf40d71d1931510e4b878dbd2b6da0b579661b50221f03f4aa5560c8bf23d5e1e10a2694d2b741ca09a92e40a4c687')

 build() {
-  cd isort-$pkgver
+  cd isort-$pkgver$pkgverfix
   python2 setup.py build
 }

 package() {
-  cd isort-$pkgver
+  cd isort-$pkgver$pkgverfix
   python2 setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE