summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c2011e409161578b9117b0aa0d7c66a8f2b3168 (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
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>

_name=groovy
pkgname=python-$_name
pkgver=0.1.2
pkgrel=2
pkgdesc='A small Python library created to help developers protect their applications from Server Side Request Forgery (SSRF) attacks.'
arch=('any')
url='https://github.com/gradio-app/groovy'
license=('Apache-2.0')
depends=('python')
makedepends=('python-hatchling' 'python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('25c1dc09b3f9d7e292458aa762c6beb96ea037071bf5e917fc81fb78d2231083')

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

package() {
  cd "${srcdir}"/$_name-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
}