1 # Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
3 pkgname=mitmproxy2swagger
6 pkgdesc='Automagically reverse-engineer REST APIs via capturing traffic'
7 url='https://github.com/alufers/mitmproxy2swagger'
10 depends=(python mitmproxy python-ruamel-yaml python-json-stream)
11 makedepends=(python-build python-installer python-wheel python-poetry-core)
12 source=(https://github.com/alufers/${pkgname}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
13 b2sums=('246d1dd765849b4ed522d8b21e476cc34b51c240903a51b594908ee812c9405aadb8ccb11ac75077fd59182583148fedeedc0ade7ffaed25964fdb724d9ac695')
16 cd ${pkgname}-${pkgver}
17 python -m build --wheel --no-isolation
21 cd ${pkgname}-${pkgver}
22 python -m installer --destdir="${pkgdir}" dist/*.whl