blob: d88c27b9b7a445053a3b6b4e92196a4e53511aa0 (
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
34
35
36
37
38
39
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
# Contributor: Mario Danic <mario.danic@gmail.com>
pkgname='python-paramiko-ng'
_pkgname='paramiko-ng'
pkgver=2.8.10
pkgrel=1
pkgdesc="Python module that implements the SSH2 protocol"
provides=('python-paramiko')
conflicts=('python-paramiko')
url="https://ploxiln.github.io/paramiko-ng/"
license=('LGPL')
arch=('any')
makedepends=('python-setuptools')
depends=('python-bcrypt' 'python-cryptography' 'python-pyasn1' 'python-pynacl')
checkdepends=('python-mock' 'python-pytest')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/ploxiln/paramiko-ng/archive/$pkgver.tar.gz")
sha256sums=('8cb52a40510c63d065752e9ec8b3aff2462eeac2d27a77ac27a314de15eb3c0a')
check() {
cd "$_pkgname-$pkgver"
LANG=en_US.UTF-8 pytest
}
build() {
cd "$_pkgname-$pkgver"
PARAMIKO_REPLACE=1 python setup.py build
}
package() {
cd "$_pkgname-$pkgver"
PARAMIKO_REPLACE=1 python setup.py install --skip-build --root="$pkgdir" --optimize=1
install -dm755 "$pkgdir"/usr/share/doc/python-$_pkgname/demos
install -m644 demos/* "$pkgdir"/usr/share/doc/python-$_pkgname/demos
chmod 755 "$pkgdir"/usr/share/doc/python-$_pkgname/demos/*.py
}
|