aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-nose/APKBUILD
blob: 2a5d2fbaae11ba2d58c45e1b2c74066ef003f7d3 (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: Eivind Uggedal <eivind@uggedal.com>
pkgname=py-nose
_pkgname=nose
pkgver=1.3.3
pkgrel=0
pkgdesc="A Python unittest module"
url="http://readthedocs.org/docs/nose/"
arch="noarch"
license="LGPL2+"
depends="python py-setuptools"
depends_dev=""
makedepends="python-dev"
install=""
subpackages=""
source="http://pypi.python.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="42776061bf5206670cb819176dc78654  nose-1.3.3.tar.gz"
sha256sums="b40c2ff268beb85356ada25f626ca0dabc89705f31051649772cf00fc9510326  nose-1.3.3.tar.gz"
sha512sums="aaab54fd9de8b7fda8bead58a0d6a1be43428c595a4375bc183569e50d4619f8a62027895a40dee69a5e1da2eaf43ac0864d2e57a2c754d275f66c0501290cab  nose-1.3.3.tar.gz"