mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
35 lines
1 KiB
Bash
35 lines
1 KiB
Bash
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Yaron de Leeuw <me@jarondl.net>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - python2 variant since it's missing upstream and still a dep
|
|
|
|
pkgname=python2-isort
|
|
pkgver=4.3.4
|
|
pkgrel=2
|
|
pkgdesc="A Python utility / library to sort Python imports."
|
|
arch=('any')
|
|
url="https://github.com/timothycrosley/isort"
|
|
license=('MIT')
|
|
depends=('python2-setuptools' 'python2-futures')
|
|
checkdepends=('python2-pytest' 'python2-mock')
|
|
source=("$pkgbase-$pkgver.tar.gz::https://github.com/timothycrosley/isort/archive/$pkgver.tar.gz")
|
|
sha512sums=('cc9254c288e479a05cc20c29c9be6fa368a46e85f8eb0a22238ee3e57004a75999d35d2a736ad0a4ddc7d7c7efcc30fb97bfd16fcd0adb44d3b937dd935588b7')
|
|
|
|
build() {
|
|
cd "$srcdir"/isort-$pkgver
|
|
python2 setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir"/isort-$pkgver
|
|
python2 setup.py test
|
|
}
|
|
|
|
package() {
|
|
cd isort-$pkgver
|
|
python2 setup.py install --root="$pkgdir" --optimize=1
|
|
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
mv "$pkgdir"/usr/bin/isort{,2}
|
|
}
|