From ca923e1601c208e2f3c1e65fbacbfcd8c25d7dfe Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 30 Jun 2019 14:37:35 -0400 Subject: [PATCH] py3-pytest-isort: import from testing --- sr.ht/py3-pytest-isort/APKBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sr.ht/py3-pytest-isort/APKBUILD diff --git a/sr.ht/py3-pytest-isort/APKBUILD b/sr.ht/py3-pytest-isort/APKBUILD new file mode 100644 index 0000000..6faaf10 --- /dev/null +++ b/sr.ht/py3-pytest-isort/APKBUILD @@ -0,0 +1,29 @@ +# Maintainer: Drew DeVault +pkgname=py3-pytest-isort +_pyname=pytest-isort +pkgver=0.3.1 +pkgrel=0 +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" -- 2.45.2