# Maintainer: Boris Momcilovic # Contributor: Jaroslav Lichtblau # Contributor: Elis Hughes # Contributor: Mark Blakeney at bullet-systems dot net pkgname=python-pssh pkgver=2.3.5 pkgrel=11 pkgdesc="Parallel versions of the openssh tools ssh, scp, rsync, nuke, slurp" arch=('any') url="https://github.com/lilydjwg/pssh" license=('BSD') depends=('openssh' 'python') makedepends=('python-build' 'python-installer' 'python-wheel' 'patch') changelog=$pkgname.changelog source=(https://github.com/lilydjwg/pssh/archive/refs/tags/v${pkgver}.tar.gz pssh-valueerror-the-fd-4-must-be-in-non-blocking-mode.patch) sha256sums=('97277f9d08b512c6a1b6dc5eac9677f34038096bae24484452d326137ba0d080' '40b01fd5c2aa59542a5d1bf65a41b861733f71305a9799c1d1ca6661f228a891') prepare() { cd "${srcdir}"/pssh-$pkgver # fix FS#46571 patch -Np0 -i ../pssh-valueerror-the-fd-4-must-be-in-non-blocking-mode.patch } build() { cd "${srcdir}"/pssh-$pkgver python -m build --wheel --no-isolation } package() { cd "${srcdir}"/pssh-$pkgver python -m installer --destdir="$pkgdir" dist/*.whl # fix putty pscp file conflict mv "${pkgdir}"/usr/bin/pscp "${pkgdir}"/usr/bin/psshscp # license install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/$pkgname/COPYING }