mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 10:12:59 +01:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-m2crypto
|
|
_pyname=M2Crypto
|
|
pkgver=0.39.0
|
|
pkgrel=0
|
|
pkgdesc="A crypto and SSL toolkit for Python3"
|
|
options="!check" # test_public_encrypt and test_server_simple_timeouts fail
|
|
url="https://pypi.org/project/M2Crypto/"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="python3-dev py3-setuptools openssl-dev swig"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
|
|
replaces="py-m2crypto" # Backwards compatibility
|
|
provides="py-m2crypto=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
5d8210c6204fd71f06d238c5b1fe08dd38d6b8e92db7b1e433a9e4e2fe9af46d6d55df7550716a7d05328fb3c9eed427f015b7d5a1fe33a073f0af15a82ab050 M2Crypto-0.39.0.tar.gz
|
|
"
|