blob: 890e549cb9ea0c50841be126644f2e315817c5f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Giovanni Harting <539@idlegandalf.com>
pkgname=python-libthumbor
_name=${pkgname#python-}
pkgver=2.0.2
pkgrel=4
pkgdesc='Python extensions to thumbor'
arch=(any)
url='https://github.com/thumbor/libthumbor'
license=(MIT)
depends=(python python-six)
makedepends=(python-build python-installer python-poetry python-poetry-core)
checkdepends=(python-pytest python-preggy python-django)
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
b2sums=('7682aeff1b7ea0cb026d08c16e73ffed2f3b9d59aa2329ca7d3fcb910860c9f495de53cfb17b651402af5e7166043634c1df334b8a8cc2c912a352b9e36157a1')
build() {
cd $_name-$pkgver
python -m build --wheel --no-isolation --skip-dependency-check
}
check() {
cd $_name-$pkgver
pytest
}
package() {
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et:
|