aports/community/py3-pyflakes/APKBUILD
2023-04-25 07:00:46 +00:00

39 lines
1.0 KiB
Plaintext

# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
# NOTE: ensure compatibility with py3-flake8! (#11378)
pkgname=py3-pyflakes
_pkgname=${pkgname#py3-}
pkgver=3.0.1
pkgrel=1
pkgdesc="passive checker of Python programs"
url="https://github.com/PyCQA/pyflakes"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-pyflakes" # Backwards compatibility
provides="py-pyflakes=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
mkdir -p "$pkgdir"/usr/bin
ln -s pyflakes "$pkgdir"/usr/bin/pyflakes-3
python3 setup.py --quiet install --skip-build --root="$pkgdir"
}
sha512sums="
10ffe2b92f3885d40578452423a93609f8546b2392997bdbc3f64ca0094516ce6b8449e5d3675bda5fdbc16190c89be23609559fc4cd4f1c97e6af032226d7b7 pyflakes-3.0.1.tar.gz
"