diff options
-rw-r--r-- | testing/py3-humanfriendly/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/py3-humanfriendly/APKBUILD b/testing/py3-humanfriendly/APKBUILD new file mode 100644 index 00000000000..6d2a9f249fb --- /dev/null +++ b/testing/py3-humanfriendly/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Duncan Bellamy <dunk@denkimushi.com> +# Maintainer: Duncan Bellamy <dunk@denkimushi.com> +pkgname=py3-humanfriendly +pkgver=9.2 +pkgrel=0 +pkgdesc="Human friendly output for text interfaces using Python" +url="https://humanfriendly.readthedocs.io/en/latest/" +arch="noarch" +license="MIT" +depends="python3" +makedepends="py3-setuptools" +checkdepends="bash py3-capturer py3-docutils py3-mock py3-pytest" +source="https://files.pythonhosted.org/packages/source/h/humanfriendly/humanfriendly-$pkgver.tar.gz" +builddir="$srcdir/humanfriendly-$pkgver" + +build() { + python3 setup.py build +} + +check() { + #check for input fails + pytest --deselect humanfriendly/tests.py::HumanFriendlyTestCase::test_prompt_for_confirmation \ + humanfriendly/tests.py +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" + find "$pkgdir" -name "*tests*" -delete +} + +sha512sums=" +2abb8d7d4dfb84d625e82f3475bea5045c32f548a45999dca97d39e5bc0cd704a9ab45e0b6b87c0d419b447680a3e71e2d9c8cb14ba19117c7ac9b2f56297f00 humanfriendly-9.2.tar.gz +" |