# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-paramiko pkgver=3.3.1 pkgrel=0 pkgdesc="SSH2 protocol library for Python3" url="https://www.paramiko.org/" arch="noarch" license="LGPL-2.0-or-later" depends=" py3-bcrypt py3-cryptography py3-pynacl " makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends="py3-pytest-xdist" subpackages="$pkgname-doc $pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/paramiko/paramiko/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir/paramiko-$pkgver" options="!check" # missing icecream replaces="py-paramiko" # Backwards compatibility provides="py-paramiko=$pkgver-r$pkgrel" # Backwards compatibility # secfixes: # 2.4.2-r0: # - CVE-2018-1000805 # 2.4.1-r0: # - CVE-2018-7750 build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest -n auto -W ignore::DeprecationWarning } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl mkdir -p "$pkgdir"/usr/share/doc/$pkgname/demos cp -a demos "$pkgdir"/usr/share/doc/$pkgname/ } doc() { default_doc provides="$pkgname-demos=$pkgver-r$pkgrel" replaces="$pkgname-demos" } sha512sums=" 94ee41ceb99b0c02e455aa6a7d0fea5f88edc6e9e80dfd4d07417875bcbcc15bbef842106c7a38bae93c0e1008d99d01d7b7a026b005358ae1846a2f931f775c py3-paramiko-3.3.1.tar.gz "