blob: 4aa857cce627187ab57dc55eb14ce29b4d376919 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# 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 --prefix=/usr --root="$pkgdir" --skip-build
}
sha512sums="
f78b418a396b78b4d303846da222eedc7525dee8d200bf96d48054d91a82671d40e0f1f82eb406b16016752ff95c3b2360075974abc3a5a814b8cfe70528231a py3-sh-1.14.3.tar.gz
"
|