52 lines
1.3 KiB
Bash
52 lines
1.3 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
|
|
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
|
# Contributor: Angel Velasquez <angvp@archlinux.org>
|
|
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Letu Ren <fantasquex@gmail.com>
|
|
|
|
_pyname=astroid
|
|
pkgname=python-$_pyname
|
|
pkgver=3.3.3
|
|
pkgrel=1
|
|
pkgdesc='A common base representation of python source code'
|
|
arch=(any)
|
|
url="https://github.com/pylint-dev/$_pyname"
|
|
license=(LGPL-2.1-or-later)
|
|
depends=(python)
|
|
makedepends=(python-{build,installer,wheel}
|
|
python-setuptools)
|
|
checkdepends=(python-attrs
|
|
python-dateutil
|
|
python-pyqt6
|
|
python-regex
|
|
python-six
|
|
python-urllib3
|
|
python-pip
|
|
python-pytest)
|
|
replaces=(python-logilab-astng)
|
|
conflicts=(python-logilab-astng)
|
|
_archive="$_pyname-$pkgver"
|
|
source=("$url/archive/v$pkgver/$_archive.tar.gz")
|
|
sha256sums=('dff3de3d799fe3969c883380c51525e327bb73a67d1eb54eeb5a720f53885443')
|
|
|
|
prepare() {
|
|
cd "$_archive"
|
|
sed -i -e '/^requires =/s/~=[0-9.]\+//g' pyproject.toml
|
|
}
|
|
|
|
build() {
|
|
cd "$_archive"
|
|
python -m build -wn
|
|
}
|
|
|
|
check() {
|
|
cd "$_archive"
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
cd "$_archive"
|
|
python -m installer -d "$pkgdir" dist/*.whl
|
|
}
|