aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-ludibrio/APKBUILD
blob: cd38c11b83d54a6bb4409a08f67ac193d9c822e8 (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
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-ludibrio
_pkgname=ludibrio
pkgver=3.1.0
pkgrel=0
pkgdesc="A Platform for test doubles in Python"
url="https://github.com/nsigustavo/ludibrio"
arch="noarch"
license="GPL"
depends="python"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="d83f752b7cad8baa9c6b6aa92605cab3  ludibrio-3.1.0.tar.gz"
sha256sums="271a2a866b00a059d9330dc1213d182731121c83088a42f6b3e7f24777b522db  ludibrio-3.1.0.tar.gz"
sha512sums="7a29f30761ef376960131a04f5b6321a548a29bde0f95087bc6c7138ef50f93d1fb2ac34e8aef7bfa3d4bf852cf07e0edda5f25d3e1d53e8c9359ba4f4e65580  ludibrio-3.1.0.tar.gz"