mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
33 lines
989 B
Text
33 lines
989 B
Text
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-sh
|
|
_pyname=sh
|
|
pkgver=1.14.3
|
|
pkgrel=1
|
|
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 --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
f78b418a396b78b4d303846da222eedc7525dee8d200bf96d48054d91a82671d40e0f1f82eb406b16016752ff95c3b2360075974abc3a5a814b8cfe70528231a py3-sh-1.14.3.tar.gz
|
|
"
|