upgpkg: python-libthumbor 2.0.2-3
add missing dep; formatting
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
pkgbase = python-libthumbor
|
||||
pkgdesc = Python's extensions to thumbor
|
||||
pkgdesc = Python extensions to thumbor
|
||||
pkgver = 2.0.2
|
||||
pkgrel = 2
|
||||
pkgrel = 3
|
||||
url = https://github.com/thumbor/libthumbor
|
||||
arch = any
|
||||
license = MIT
|
||||
checkdepends = python-pytest
|
||||
checkdepends = python-preggy
|
||||
checkdepends = python-django
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-poetry
|
||||
makedepends = python-poetry-core
|
||||
depends = python
|
||||
source = https://github.com/thumbor/libthumbor/archive/2.0.2.tar.gz
|
||||
depends = python-six
|
||||
source = python-libthumbor-2.0.2.tar.gz::https://github.com/thumbor/libthumbor/archive/2.0.2.tar.gz
|
||||
b2sums = 7682aeff1b7ea0cb026d08c16e73ffed2f3b9d59aa2329ca7d3fcb910860c9f495de53cfb17b651402af5e7166043634c1df334b8a8cc2c912a352b9e36157a1
|
||||
|
||||
pkgname = python-libthumbor
|
||||
|
@@ -3,25 +3,30 @@
|
||||
pkgname=python-libthumbor
|
||||
_name=${pkgname#python-}
|
||||
pkgver=2.0.2
|
||||
pkgrel=2
|
||||
pkgdesc="Python's extensions to thumbor"
|
||||
pkgrel=3
|
||||
pkgdesc='Python extensions to thumbor'
|
||||
arch=(any)
|
||||
url="https://github.com/thumbor/libthumbor"
|
||||
url='https://github.com/thumbor/libthumbor'
|
||||
license=(MIT)
|
||||
depends=(python)
|
||||
depends=(python python-six)
|
||||
makedepends=(python-build python-installer python-poetry python-poetry-core)
|
||||
source=("https://github.com/thumbor/libthumbor/archive/$pkgver.tar.gz")
|
||||
checkdepends=(python-pytest python-preggy python-django)
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
|
||||
b2sums=('7682aeff1b7ea0cb026d08c16e73ffed2f3b9d59aa2329ca7d3fcb910860c9f495de53cfb17b651402af5e7166043634c1df334b8a8cc2c912a352b9e36157a1')
|
||||
|
||||
build() {
|
||||
cd "$_name-$pkgver"
|
||||
cd $_name-$pkgver
|
||||
python -m build --wheel --no-isolation --skip-dependency-check
|
||||
}
|
||||
|
||||
check() {
|
||||
pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_name-$pkgver"
|
||||
cd $_name-$pkgver
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
Reference in New Issue
Block a user