mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
added extra/python2-isort
This commit is contained in:
parent
a7ce28ceaf
commit
71dd21db48
1 changed files with 35 additions and 0 deletions
35
extra/python2-isort/PKGBUILD
Normal file
35
extra/python2-isort/PKGBUILD
Normal file
|
@ -0,0 +1,35 @@
|
|||
# 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}
|
||||
}
|
Loading…
Reference in a new issue