blob: c14daa226b8c8096ae8f02df7272b43fc779d7f3 (
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
|
# Maintainer: Agil Mammadov <mammadovagil@tutamail.com>
_name=docstring_parser
pkgname="python-${_name/_/-}"
pkgdesc="Parse Python docstrings"
pkgver=0.18.0
pkgrel=1
depends=('python')
arch=(any)
url="https://github.com/rr-/docstring_parser"
license=(MIT)
depends=('python-pytest')
makedepends=('python-build' 'python-installer' 'python-hatchling')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('292510982205c12b1248696f44959db3cdd1740237a968ea1e2e7a900eeb2015')
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
}
|