blob: 1bfc4a9028a88f16f404086d6beb1f3e27658499 (
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
33
34
35
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-rsa
_pkgname=rsa
pkgver=4.9
pkgrel=1
pkgdesc="Pure-Python3 RSA implementation"
url="https://stuvel.eu/rsa"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-asn1"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-mock py3-mypy"
source="https://files.pythonhosted.org/packages/source/r/rsa/rsa-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # no tests in pypi tarball
replaces="py-rsa" # Backwards compatibility
provides="py-rsa=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
85f359cc448a42f267f425fcf761597eeeab942523de49284b01d6ea2bcca8bddf0fac26926b487ae91c15889a7c4897a33ee00de859f28fe9cca19ef98c3f19 rsa-4.9.tar.gz
"
|