summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05c950a9876cef0ad5b2a94986dd0215c3fb3c2b (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
pkgname=python-mypy-protobuf
pkgver=3.5.0
pkgrel=2

pkgdesc='Generate mypy stub files from protobuf specs'
url='https://github.com/nipunn1313/mypy-protobuf'
arch=('any')
license=('Apache')

depends=('mypy' 'protobuf' 'python' 'python-protobuf')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')

source=("https://files.pythonhosted.org/packages/source/m/mypy-protobuf/mypy-protobuf-$pkgver.tar.gz")

sha256sums=('21f270da0a9792a9dac76b0df463c027e561664ab6973c59be4e4d064dfe67dc')

build() {
  cd mypy-protobuf-$pkgver
  python -m build --wheel --no-isolation
}

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