aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-ecdsa/APKBUILD
blob: bcbb49e0374a77543595e8d38c6189c0627e5327 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-ecdsa
_pkgname=ecdsa
pkgver=0.16.1
pkgrel=1
pkgdesc="Python3 cryptographic signature library"
url="https://github.com/warner/python-ecdsa"
arch="noarch"
license="MIT"
depends="python3 py3-six"
makedepends="py3-setuptools"
checkdepends="py3-hypothesis py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-ecdsa" # Backwards compatibility
provides="py-ecdsa=$pkgver-r$pkgrel" # Backwards compatibility

case "$CARCH" in
# tests make broken endianness assumptions on mips
mips*)	options="!check" ;;
esac

# secfixes:
#   0.13.3-r0:
#     - CVE-2019-14859
#     - CVE-2019-14853

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

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

sha512sums="935416ff25a71b1e6fe442b11e8d2c1463b1652d539274e094112a4847c2c749ff58eb9f5ed108ed5613b7363d3f2b1c07ba3d01af8cfed4e1b4bec407d3f5a6  ecdsa-0.16.1.tar.gz"