mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-24 17:22:15 +01:00
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py-isort
|
|
_pkgname=isort
|
|
pkgver=4.2.1
|
|
pkgrel=0
|
|
pkgdesc="A Python utility / library to sort Python imports"
|
|
url="https://github.com/timothycrosley/isort"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python"
|
|
depends_dev=""
|
|
makedepends="python-dev py-setuptools"
|
|
install=""
|
|
subpackages=""
|
|
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/$_pkgname-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
python setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
|
}
|
|
|
|
md5sums="a2671b0cd06178ca5665ddf53de2129f isort-4.2.1.tar.gz"
|
|
sha256sums="ec906f13f8b276c4c0594713d84e97aadbaa5148af9ea79a800b694d2f84f960 isort-4.2.1.tar.gz"
|
|
sha512sums="8ef4be6e91d4775d52e3ec492ff0c5f8e474043c057baacea40cdf8d7c6644544d2f24b348973574b3aa19f6db7d7f1108ac1c195984badc945ad882560bc277 isort-4.2.1.tar.gz"
|