# Maintainer: Caleb Maclennan <caleb@alerque.com>

_pkgname=moreorless
pkgname=python-moreorless
pkgver=0.5.0
pkgrel=1
pkgdesc='Python diff wrapper'
arch=(any)
url="https://github.com/thatch/$_pkgname"
license=(MIT)
depends=(python)
makedepends=(python-{build,installer,wheel}
             python-setuptools-scm)
_archive="$_pkgname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_archive.tar.gz")
sha256sums=('560a04f85006fccd74feaa4b6213a446392ff7b5ec0194a5464b6c30f182fa33')
b2sums=('25bcd94c9614acb24b7d14402f2264db06514699196f97073ebe6f83672e2d0a9685bf5c3c6b8a43f6ecd8ff4ec7878ad5c1764ed565dbe073ecdd43cdca142c')

build(){
    cd "$_archive"
    python -m build -wn
}

package() {
    cd "$_archive"
    python -m installer -d "$pkgdir" dist/*.whl
}
