# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=py3-sh _pyname=sh pkgver=1.14.3 pkgrel=2 pkgdesc="Python subprocess replacement" url="https://amoffat.github.io/sh/" license="MIT" arch="noarch !x86 !armv7" # test_custom_timeout_signal fails on x86 and armv7 options="!check" # tests fail on the builders depends="python3" makedepends="py3-setuptools" checkdepends="py3-pytest lsof coreutils" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/s/sh/sh-$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" build() { python3 setup.py build } check() { PYTHONPATH="$PWD"/build/lib pytest test.py \ --deselect test.py::MiscTests::test_no_fd_leak # skip unreliable test } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" f78b418a396b78b4d303846da222eedc7525dee8d200bf96d48054d91a82671d40e0f1f82eb406b16016752ff95c3b2360075974abc3a5a814b8cfe70528231a py3-sh-1.14.3.tar.gz "