# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=py3-paramiko
_pkgname=paramiko
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=2.7.1
pkgrel=0
pkgdesc="Python implementation of the SSHv2 protocol"
url="https://www.paramiko.org/"
arch="noarch"
license="LGPL-2.1+"
depends="python3 py3-cryptography py3-bcrypt py3-pynacl"
checkdepends="py3-mock py3-pytest py3-invoke py3-pytest-relaxed py3-iniconfig py3-toml"
makedepends=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/paramiko-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest -k "not TestMatch and not TestHostname and not TestComplexMatching and not TestSSHConfig"
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="80068c8f72ab8c98d84188caa074deecead9fb459b1a71cedb3cfa627736730928a2b9c6eb2b5a8b60acb9bccb0f68aefbef9d0d55554001c835b5cf897751ab  paramiko-2.7.1.tar.gz"