aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-paramiko/APKBUILD
blob: fb0a7d8006bed13dac7e30a5003e21e3b230816e (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-paramiko
_pkgname=paramiko
pkgver=2.7.2
pkgrel=0
pkgdesc="An SSH2 protocol library for Python3"
url="https://www.paramiko.org/"
arch="noarch"
license="LGPL-2.0-or-later"
options="!check" # missing pytest-relaxed module
depends="python3 py3-asn1 py3-cryptography py3-bcrypt py3-pynacl"
makedepends="py3-setuptools"
checkdepends="py3-mock py3-pytest"
subpackages="$pkgname-doc $pkgname-demos"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

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() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

demos() {
	depends="$pkgname=$pkgver-r$pkgrel"
	pkgdesc="$pkgdesc (demos)"

	mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/demos
	mv "$builddir"/demos "$subpkgdir"/usr/share/doc/"$pkgname"/
}

doc() {
	depends=""
	pkgdesc="$pkgdesc (documentation)"

	mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/docs
	mv "$builddir"/docs "$subpkgdir"/usr/share/doc/"$pkgname"/
}

sha512sums="230522734379b9861da5e9fc4baf5b7386ea35990430ba320c6d55d04beebeaefdd7d000a2be23d1178d7fd96ba400702ffe0ab03e8856c604456108876545bd  paramiko-2.7.2.tar.gz"