1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
2 # Contributor: Padraic Fanning <fanninpm AT miamioh DOT edu>
5 pkgname=python-${_name//_/-}
8 pkgdesc='A PEP 518 backend using setuptools_scm to generate a version file, then flit to build'
10 url="https://gitlab.com/WillDaSilva/$_name"
14 python-setuptools-scm)
15 makedepends=(python-{build,installer,wheel})
16 _archive="$_name-$pkgver"
17 source=("$_archive.tar.gz::$url/-/archive/$pkgver/$_archive.tar.gz")
18 sha256sums=('05a267d77f6f8ca50a053786fe3c1a74f7222f2955292f2e6c03d2d064a141dc')
22 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
28 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
29 python -m installer -d "$pkgdir" dist/*.whl
30 install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE