diff --git a/testing/py3-m2crypto/APKBUILD b/testing/py3-m2crypto/APKBUILD index 13607d12ac5..eacccf1ec68 100644 --- a/testing/py3-m2crypto/APKBUILD +++ b/testing/py3-m2crypto/APKBUILD @@ -1,19 +1,19 @@ # Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-m2crypto -_pyname=M2Crypto -pkgver=0.41.0 -pkgrel=2 +_pyname=m2crypto +pkgver=0.48.0 +pkgrel=0 pkgdesc="A crypto and SSL toolkit for Python3" -url="https://pypi.org/project/M2Crypto/" +url="https://sr.ht/~mcepl/m2crypto/" arch="all" license="MIT" depends="python3" -makedepends="python3-dev py3-setuptools openssl-dev swig py3-gpep517" +makedepends="openssl-dev python3-dev py3-gpep517 py3-setuptools swig" +checkdepends="py3-pytest" subpackages="$pkgname-pyc" -source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~mcepl/m2crypto/archive/$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" -options="!check" # test_public_encrypt and test_server_simple_timeouts fail replaces="py-m2crypto" # Backwards compatibility provides="py-m2crypto=$pkgver-r$pkgrel" # Backwards compatibility @@ -26,8 +26,8 @@ build() { check() { python3 -m venv --clear --without-pip --system-site-packages .testenv - gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl - .testenv/bin/python3 -m unittest discover + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest } package() { @@ -36,5 +36,5 @@ package() { } sha512sums=" -50ca5e32ae999b9ecdc7f3bbd35221b4a7523ef29e54eb4bc266457723117718955f99b9e7ac42a4cb982f0e22a94e5c852d6886d7dfb157d040ad86c17660fb M2Crypto-0.41.0.tar.gz +4d11fa41c57e66574afeae11dbbbe9fe09f09455a8bf260c11370951917449dcb8e6b6a394efce6c848c6f39f38ccd55cde5ecf963540f1ebd7944b9ba15e73d py3-m2crypto-0.48.0.tar.gz "