mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-12 11:21:50 +01:00
Extension for flake8 which uses pep257 to check docstrings https://bitbucket.org/icordasc/flake8-docstrings
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# 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"
|