aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-factory-boy/APKBUILD
blob: cb810161b27b31c5a42abb939045b422435ce050 (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py-factory-boy
pkgver=2.11.1
pkgrel=0
pkgdesc="A verstile test fixtures replacement based on thoughtbot's factory_girl for Ruby"
url=https://github.com/rbarrois/factory_boy
arch=noarch
license=MIT
depends=
makedepends=py-setuptools
source="https://files.pythonhosted.org/packages/source/f/factory_boy/factory_boy-$pkgver.tar.gz"

_builddir=$srcdir/factory_boy-$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"
	./setup.py build
}

package() {
	cd "$_builddir"
	./setup.py install --root "$pkgdir"
}

sha512sums="6c1b6c759d2a68ff4142241f7f26cd1a79b68d31f7e27b4772a242d9cefe79a3bdad35c6bdf1f6446815cd16d6b62c775262a4b75d76217a9152cca7677b6157  factory_boy-2.11.1.tar.gz"