mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 12:22:26 +01:00
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.2.0
|
|
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="a8ee13b2bffe9b107cbc6b4d927a693b flake8-docstrings-0.2.0.tar.gz"
|
|
sha256sums="b8a8a00ed5f4bb4fe194c0a79e4ec621f93f46a54f41ad3d79611d5a6f69b565 flake8-docstrings-0.2.0.tar.gz"
|
|
sha512sums="488a2095d4ef7ee0f52703b581e4a8d48b61a56b7be6f93a6945484e1d671e95ac38f80932ed738ce6eac16201ee7a96de0fc0109492f828ffc5b065dd22f2b4 flake8-docstrings-0.2.0.tar.gz"
|