mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
33 lines
1,003 B
Text
33 lines
1,003 B
Text
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-sh
|
|
_pyname=sh
|
|
pkgver=1.14.2
|
|
pkgrel=0
|
|
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"
|
|
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 --prefix=/usr --root="$pkgdir" --skip-build
|
|
}
|
|
|
|
sha512sums="
|
|
b7917504ae85606e1986b681274077777ad3011639bfe933d4133c3ed16f930842e03b572caa396ca4d58f41fd5594bef776cc16c4b0fbd1242e57c6aad19e62 py3-sh-1.14.2.tar.gz
|
|
"
|