archrelease: copy trunk to community-any
[ArchLinux/community.git] / monkeytype / trunk / PKGBUILD
blob5aac96a572ad1782fd23720656ebf4168b921fb6
1 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 _pkgname=MonkeyType
4 pkgname=monkeytype
5 pkgver=20.5.0
6 pkgrel=3
7 pkgdesc='A system for Python that generates static type annotations by collecting runtime types'
8 arch=('any')
9 url='https://github.com/instagram/MonkeyType'
10 license=('BSD')
11 depends=('python-mypy_extensions' 'python-libcst')
12 makedepends=('python-setuptools')
13 checkdepends=('python-pytest-runner' 'python-pytest-cov' 'python-django')
14 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
15         py3.9.patch)
16 sha512sums=('1fd0eb9bd83e7f27de5b7e75d06a89d851220b165d8becd7bac75c196361315669142c5f8838e85696e5dceaeaae6b64b71e3e46010546c65fa4f9d9b62f55d2'
17             '81b37bf0ca06a65d10aa5efe7da200564b234247eb63c619a2ad3243ad243f9aebeaf244dfd69c4032341c47febd12e03c8ac5b4fe8dedf21492600c874ac4d3')
19 prepare() {
20   cd $_pkgname-$pkgver
22   patch -p1 -i ../py3.9.patch
25 build() {
26   cd $_pkgname-$pkgver
28   python setup.py build
31 check() {
32   cd $_pkgname-$pkgver
34   python setup.py pytest
37 package() {
38   cd $_pkgname-$pkgver
40   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
42   install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
45 # vim:set ts=2 sw=2 et: