~dricottone/huttese-apk

ref: ba4d735606a11966e87646d95c91dffc6ec371c1 huttese-apk/sr.ht/py3-aiosmtpd/APKBUILD -rw-r--r-- 904 bytes
ba4d7356 — Drew DeVault todo.sr.ht: add API service 3 years ago
                                                                                
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
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-aiosmtpd
_pyname=aiosmtpd
pkgver=1.3.0
pkgrel=0
pkgdesc="A reimplementation of the Python stdlib smtpd.py based on asyncio"
url="https://github.com/aio-libs/aiosmtpd"
arch="noarch"
license="Apache-2.0"
depends="py3-atpublic"
makedepends="python3-dev py3-setuptools"
checkdepends="py3-pytest py3-pytest-mock"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
replaces="py-aiosmtpd"
builddir="$srcdir"/$_pyname-$pkgver

build() {
	python3 setup.py build
}

check() {
	pytest-3
}

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

sha512sums="977f6e6ef2e44f50ba6b667e645b3fa3cd9ec0b08c107c59c843042184323962a6c24b60a550e38b9a7248d81c0fc03269b217caf445a4703f66e2730072c99d  aiosmtpd-1.3.0.tar.gz"