aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-isort/APKBUILD
blob: e9d64d61fcd3810b7d5047bd8d958ff5ea8a7724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-isort
_pkgname=isort
pkgver=4.2.2
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="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.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="b6874ebe5c39fd3afdf8a0834c0fa9a2  isort-4.2.2.tar.gz"
sha256sums="f2e68083a82111ff3015c0c4fe98eb6dba858c4d39445083acc9c811e9b41d77  isort-4.2.2.tar.gz"
sha512sums="e82363e126d7dc3d223ffbde19bdc406cfd95eb9b689612d4f0549c928ed5ec97822646621ae9c7c260e94bb938aa5a602d3d2a835c64dbcc2907c1e49023eb7  isort-4.2.2.tar.gz"