aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-isort/APKBUILD
blob: 0f03b3c23a9fe8a6073703a0275cc2237f3af79a (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-isort
_pkgname=isort
pkgver=4.3.19
pkgrel=0
pkgdesc="Python library to sort Python imports"
url="https://github.com/timothycrosley/isort"
arch="noarch"
license="MIT"
# 3 out of 111 tests are failing. Needs upstream fix.
options="!check"
depends="py3-setuptools"
makedepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces=py-isort # Backwards compatibility
provides=py-isort=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	pytest-3 test_isort.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="3782f44bc7b5141105ff0e56d32e6ef80a231879d12b44c4e317209600fc0e597adf97600c17d890597e5cc31590be9d7ff2b45d0666ad518516ccb81343bb9c  isort-4.3.19.tar.gz"