# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-ecdsa _pkgname=ecdsa pkgver=0.18.0 pkgrel=2 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" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz $pkgname-fix-tests.patch::https://github.com/tlsfuzzer/python-ecdsa/commit/644412d7a27503fb682e7201c57343f3c43b6640.patch " builddir="$srcdir/$_pkgname-$pkgver" replaces="py-ecdsa" # Backwards compatibility provides="py-ecdsa=$pkgver-r$pkgrel" # Backwards compatibility # 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 --skip-build --root="$pkgdir" } sha512sums=" f26dbeccd8e6ec832405d419b7244ca97b43a2811513493913a4f2f2fd1d2f453068fe0ba7b90b972f42a0d7b9834212fbd4d4559475cffeb1d80075fa954d78 ecdsa-0.18.0.tar.gz c907f0ee0b1eb836a1881b20aba5e2234313fa402aa04c7cf39b316ca0bc360717914a267fd6d11db878f254d4547a645c4388d2dc0678024bbecca6308c344f py3-ecdsa-fix-tests.patch "