summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb1f603658c6f29af9dfe539b5402551f7b39103 (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

_name=docstring_parser
pkgname="python-${_name/_/-}"
pkgdesc="Parse Python docstrings"
pkgver=0.16
pkgrel=2
depends=('python')
arch=(any)
url="https://github.com/rr-/docstring_parser"
license=(MIT)
depends=('python-pytest')
makedepends=('python-build' 'python-installer' 'python-poetry')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('538beabd0af1e2db0146b6bd3caa526c35a34d61af9fd2887f3a8a27a739aa6e')

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

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