archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-typing_inspect / repos / community-any / PKGBUILD
blobd3cab7a7e05991252085a54ae6e2383e2832c05e
1 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 _pkgname=typing_inspect
4 pkgname=python-$_pkgname
5 pkgver=0.8.0
6 pkgrel=3
7 pkgdesc='Runtime inspection utilities for Python typing module'
8 arch=('any')
9 url='https://github.com/ilevkivskyi/typing_inspect'
10 license=('MIT')
11 depends=('python-mypy_extensions' 'python-typing_extensions')
12 makedepends=('python-setuptools')
13 checkdepends=('python-pytest-runner')
14 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
15         $pkgname-support-py39-generic-types.patch::https://github.com/thatch/typing_inspect/commit/67b455cf5a7e.patch)
16 sha512sums=('c053ae91d332d814c0cb7ca88f88dc2bda29b455b5571d4208943968f7d56a1872f29d002cb9ea9ca6a3b4560255ec14d9f6753e0b623a2f981ad5539d6d3a69'
17             '74800c6934fcac7198fda7a68237369452d83a7d8cb194015d114a966572faceef5d2aa511a0a37f2d95c3065e615d9de691f604d7d500570a96c7a18190c46d')
19 build() {
20   cd $_pkgname-$pkgver
22   python setup.py build
25 check() {
26   cd $_pkgname-$pkgver
28   python setup.py pytest
31 package() {
32   cd $_pkgname-$pkgver
34   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
36   install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
39 # vim:set ts=2 sw=2 et: