summaryrefslogtreecommitdiffstats
path: root/testing/py-flake8-docstrings/APKBUILD
blob: 6e697c8664f3f412fce09675f45526da6a7eaf21 (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-flake8-docstrings
_pkgname=flake8-docstrings
pkgver=0.1.2
pkgrel=0
pkgdesc="Extension for flake8 which uses pep257 to check docstrings"
url="https://bitbucket.org/icordasc/flake8-docstrings"
arch="noarch"
license="MIT"
depends="python py-flake8"
depends_dev=""
makedepends="python-dev py-setuptools"
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="1d0087430b63e3c59b6bc64354596ad3  flake8-docstrings-0.1.2.tar.gz"
sha256sums="03ed201557fd1729e0fa502aed8004a07acf0771cf738920bd052c771e68fb4d  flake8-docstrings-0.1.2.tar.gz"
sha512sums="ef77e5717563b121f29ba14535e8a4f35c11bfb018e45733fe687a07150c5b2e9fc7b00dcf6a52b12f6681b8ee29caae2f28e3e5b3c263f08be133842169c11e  flake8-docstrings-0.1.2.tar.gz"