aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-zope-component/APKBUILD
blob: 611779cca9dc5c1995496351a2ba96d3c5fa2e38 (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
36
37
38
39
40
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-zope-component
_pkgname=zope.component
pkgver=4.6.1
pkgrel=0
pkgdesc="Zope Component Architecture"
# Tests install outside python modules via bdist_wheel which fails
options="!check"
url="https://pypi.python.org/pypi/zope.component"
arch="noarch"
license="ZPL-2.1"
depends="
	py3-setuptools
	py3-zope-deferredimport
	py3-zope-deprecation
	py3-zope-event
	py3-zope-hookable
	py3-zope-interface
	"
checkdepends="python3-dev libffi-dev" # Required because pypi downloads dependencies for testing
source="$_pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.component/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-zope-component" # Backwards compatibility
provides="py-zope-component=$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="3aa77b11e49a0a08a6b38fce5c26761bfa3b417f12fb27583efa22bc8c1e055993ada50c28271c0deace93fe6f8078f0596158884de6576e8b8ec947524b583b  zope.component-4.6.1.tar.gz"