summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8affdbd7c71add176b65729bb388a70442eb7996 (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
# Maintainer: haxibami <contact at haxibami dot net>

pkgname=python-parameter-decorators
_pkgname="${pkgname#python-}"
pkgver=0.0.2
pkgrel=1
pkgdesc='Handy decorators for converting parameters'
arch=('any')
url='https://github.com/matan1008/parameter-decorators'
license=('GPL3')
depends=('python')
makedepends=('python-build' 'python-wheel' 'python-installer' 'python-setuptools')
checkdepends=('python-pytest')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('aecfbad32075b6eb58fb1b1e78c3548c592a7261430209e7380d4d93210707d0')

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

check() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python -m pytest
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}