PKGBUILDs/extra/python-redbaron/PKGBUILD

39 lines
1.2 KiB
Bash
Raw Normal View History

2019-05-28 19:06:20 +00:00
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove makedepend on python-pypandoc
pkgname=python-redbaron
pkgver=0.9.2
2022-09-24 15:04:13 +00:00
pkgrel=7
2019-05-28 19:06:20 +00:00
pkgdesc="Abstraction on top of baron, a FST for python to make writing refactoring code a realistic task"
url="https://github.com/PyCQA/redbaron"
license=('LGPL')
arch=('any')
depends=('python-baron')
makedepends=('python-setuptools')
checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/redbaron/archive/$pkgver.tar.gz"
2022-09-24 15:04:13 +00:00
$pkgname-pytest-4.patch::https://github.com/PyCQA/redbaron/commit/812081b7bd8774ceb61016ac37da43107c26eea2.patch)
2019-05-28 19:06:20 +00:00
sha512sums=('acebde8fcf5fea419960c2647e8251deb6ea9426e886d642d58ee29924f668a8359867cec934aa10a0eeedf511b454a5f9e603458355869989e3b168165d6f6a'
2022-09-24 15:04:13 +00:00
'0c3170116217dd989890850e3f8f6c05c25494a1d843185b4f40d682de76bc6ced58a852d5c34db6e572c491e2fa4a0f764766c3db543bdf25af147f2813fcb8')
2019-05-28 19:06:20 +00:00
prepare() {
2022-09-24 15:04:13 +00:00
patch -d redbaron-$pkgver -p1 < $pkgname-pytest-4.patch
2019-05-28 19:06:20 +00:00
}
build() {
cd redbaron-$pkgver
python setup.py build
}
check() {
cd redbaron-$pkgver
pytest tests
}
package() {
cd redbaron-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}