summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2be7d5cf45e648defb7054b997dd262b328463d8 (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
34
35
36
37
38
39
# Maintainer: atomicfs <https://aur.archlinux.org/account/atomicfs>

pkgname=python-gotenberg-client
_pkgname=gotenberg-client
pkgver=0.6.0
pkgrel=1
pkgdesc="A Python client for interfacing with the Gotenberg API"
arch=('any')
url="https://github.com/stumpylog/gotenberg-client"
license=('MPL-2.0')
depends=(
  'python'
)
makedepends=(
  'git'
  'python-build'
  'python-hatchling'
  'python-installer'
  'python-wheel'
)
checkdepends=(
  'python-pytest'
  'python-pytest-httpx'
)
source=("${pkgname}::git+${url}#tag=${pkgver}")
sha256sums=('61e60c4b418ce23745ed50f2718f02223fa4e5b3650c2ff6fbdc5ec450b62f45')

#check() {}
# Testing requires complex setup

build() {
  cd "${srcdir}/${pkgname}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${srcdir}/${pkgname}"
  python -m installer --destdir="${pkgdir}" dist/*.whl
}