blob: d240d1ce3c1ed95445cfabafcc7164292b4c8397 (
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
26
27
28
29
30
31
32
33
|
# Maintainer: Avery Warddhana <them+arch _ nullablevo id au>
pkgname=python-overrides
_name=${pkgname#python-}
pkgver=7.3.1
pkgrel=2
pkgdesc="A decorator to automatically detect mismatch when overriding a method"
url='https://github.com/mkorpela/overrides'
arch=('any')
license=('Apache')
makedepends=('python-setuptools')
checkdepends=('python-pytest' 'mypy')
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
sha256sums=('8b97c6c1e1681b78cbc9424b138d880f0803c2254c5ebaabdde57bb6c62093f2')
build() {
cd "${_name}-${pkgver}"
python setup.py build
}
check() {
cd "${_name}-${pkgver}"
pytest tests
mypy overrides
sh ./check_mypy.sh
}
package() {
cd "${_name}-${pkgver}"
python setup.py install --root="$pkgdir" --optimize=1
}
# vim:set et sw=4 sts=4 tw=80:
|