# Maintainer: atom2013 <atom.long@hotmail.com>

pkgbase=python-gitea
pkgname=('python-gitea')
pkgver=1.0.0
pkgrel=1
pkgdesc="Python Gitea API"
arch=('any')
url="https://git.befatorinc.de/Befator-Inc-Firmen-Netzwerk/python-gitea"
license=('spdx:MIT')
depends=('python')
depends=(
  "python-certifi"
  "python-six"
  "python-urllib3"
)
makedepends=(
  "python-setuptools"
  "python-build"
  "python-installer"
)
checkdepends=('python-pytest')
source=("https://git.befatorinc.de/Befator-Inc-Firmen-Netzwerk/python-gitea/archive/main.tar.gz")
sha256sums=('450a5ee2b0d464c55fe44b62c7919bbfcd2a16cdc54166ddbd5acd8c330d48a8')

build() {
  cd "${srcdir}"/${pkgname}

  python -m build --wheel --skip-dependency-check --no-isolation
}

package() {
  cd ${pkgname}

  python -m installer --destdir="${pkgdir}" dist/*.whl
}
