~dricottone/huttese-apk

ref: 48d4a42e9a31c22c03b912161784b859ba8ca9ab huttese-apk/sr.ht/py3-pytest-isort/APKBUILD -rw-r--r-- 820 bytes
48d4a42e — Drew DeVault Remove unused grafana package 4 years ago
                                                                                
ca923e16 Drew DeVault
f6fbe64c Drew DeVault
ca923e16 Drew DeVault
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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-pytest-isort
_pyname=pytest-isort
pkgver=0.3.1
pkgrel=1
pkgdesc="pytest plugin to check import ordering using isort"
url="https://pypi.org/project/pytest-isort/"
arch="noarch"
license="3-Clause-BSD"
depends="py3-pytest py3-isort"
makedepends="py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	export PYTHONPATH="$(pwd)"
	pytest-3
}

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

sha512sums="2fd39108a6acacf18ce68bb537d2adeb4ff7cd8ea4c9611e5312edea5a0bc4841111ffb544318aa7b3bebe38e9f4744f07a45b2ebcbf872f79003b249ee115ca  pytest-isort-0.3.1.tar.gz"