aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-pytest-black/APKBUILD
blob: c088b37bdbe722c0e0f9a0acabf315dcd5087d62 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pytest-black
pkgver=0.3.9
pkgrel=1
pkgdesc="A pytest plugin to enable format checking with black"
url="https://github.com/shopkeep/pytest-black"
arch="noarch !mips !mips64 !s390x" # Blocked by black
license="MIT"
depends="python3 py3-pytest black py3-toml"
makedepends="py3-setuptools py3-setuptools_scm"
source="https://pypi.python.org/packages/source/p/pytest-black/pytest-black-$pkgver.tar.gz"
builddir="$srcdir/pytest-black-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# Hack entry point by installing it
	python3 setup.py install --root="$PWD/tmp_install"
	PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" pytest
}

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

sha512sums="66e73927f7e0720b6f42b2798f6e4fd3697fe69892ca1d6402040ba5f9520bcfadff3d441b3799b013e35d150974e0cd9b4b433663802cc0b04520cb6c72b741  pytest-black-0.3.9.tar.gz"