summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: baab5ab5871d66e14c406b12fa2c7b44575697c7 (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
# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
# Contributor: Drew DeVault <sir@cmpwn.com>

_pkgname=sshpubkeys
pkgname=python-sshpubkeys
pkgver=3.3.0
pkgrel=2
pkgdesc='OpenSSH public key parser for Python'
arch=(any)
url='https://github.com/ojarva/python-sshpubkeys'
license=(BSD)
depends=(python-ecdsa python-cryptography)
makedepends=(python-setuptools)
source=("https://files.pythonhosted.org/packages/source/s/sshpubkeys/$_pkgname-$pkgver.tar.gz")
sha256sums=('89e10a0caf38407426a05e3f5b5243d6e2f9575d6af45e9321291d20bcfca8f7')

build() {
    cd $_pkgname-$pkgver
    python setup.py build
}

check() {
    cd $_pkgname-$pkgver
    # Upstream MANIFEST.in uses `graft tests`, so pyc files in tests will be listed in SOURCES.txt
    PYTHONDONTWRITEBYTECODE=1 python -m unittest tests
}

package() {
    cd $_pkgname-$pkgver
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
    install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
}