summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 21add22f7461e5f5fc882bbd5b4c07ac9584b5ea (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
# Maintainer: Michael Borders <dev@michaelborders.net>

pkgname=python-netmiko
_pkgname=netmiko
pkgver=3.0.0
_pkgver="v${pkgver}"
pkgrel=2
pkgdesc="Multi-vendor library to simplify Paramiko SSH connections to network devices"
arch=('any')
url="https://github.com/ktbyers/netmiko"
license=('MIT')
depends=('python' 'python-paramiko' 'python-scp' 'python-pyserial' 'python-textfsm')
makedepends=('python-setuptools')
checkdepends=('python-tox')
source=("${url}/archive/${_pkgver}.tar.gz")
sha256sums=('3238443467b01d4011620e7c25c6facd65f3dd507e82c81f44fff6993bc2d3f6')

check() {
  cd "$srcdir/$_pkgname-$pkgver"
  tox test -e py
}

package(){
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py install --root="$pkgdir/" --optimize=1
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}