aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-isort/APKBUILD
blob: fec3f8ece94f86076e92ff8c2f321cb6cf65bc49 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-isort
_pkgname=isort
pkgver=4.3.21.2
_tag=${pkgver%.*}-2
pkgrel=1
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="$pkgname-$_tag.tar.gz::https://github.com/timothycrosley/isort/archive/$_tag.tar.gz"
builddir="$srcdir"/$_pkgname-$_tag

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="fc2aa00c87196864864d2516b8be7acdedcf40d71d1931510e4b878dbd2b6da0b579661b50221f03f4aa5560c8bf23d5e1e10a2694d2b741ca09a92e40a4c687  py3-isort-4.3.21-2.tar.gz"