summaryrefslogtreecommitdiff
path: root/community/py3-zope-deferredimport/APKBUILD
blob: 02f2214a847f5aa1d00b58d7c8c9c62b87ea606f (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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-zope-deferredimport
_pkgname=zope.deferredimport
pkgver=4.4
pkgrel=1
pkgdesc="Defer imports until used by code"
options="!check" # Requires py3-zope-testrunner, is in testing
url="https://github.com/zopefoundation/$_pkgname"
arch="noarch"
license="ZPL-2.1"
depends="py3-setuptools py3-zope-proxy"
checkdepends="py3-zope-testrunner"
source="$_pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-zope-deferredimport" # Backwards compatibility
provides="py-zope-deferredimport=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="
db0719f7b01d72a87c3dc0c37335bfa228871eb9f8423c6ef0584f179462120cf186f13a39ec4b144bae405e32a51423e88682f7bec07166158dd5d6553ba540  zope.deferredimport-4.4.tar.gz
"