Date: Friday, May 1, 2020 @ 12:38:26 Author: felixonmars Revision: 623805
addpkg: python-typeguard 2.7.1-1 Added: python-typeguard/ python-typeguard/repos/ python-typeguard/trunk/ python-typeguard/trunk/PKGBUILD ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Added: python-typeguard/trunk/PKGBUILD =================================================================== --- python-typeguard/trunk/PKGBUILD (rev 0) +++ python-typeguard/trunk/PKGBUILD 2020-05-01 12:38:26 UTC (rev 623805) @@ -0,0 +1,33 @@ +# Maintainer: Felix Yan <[email protected]> + +pkgname=python-typeguard +pkgver=2.7.1 +pkgrel=1 +pkgdesc="Run-time type checker for Python" +url="https://github.com/agronholm/typeguard" +license=('MIT') +arch=('any') +depends=('python') +makedepends=('python-setuptools-scm') +checkdepends=('python-pytest-runner' 'python-pytest-cov') +source=("$pkgname-$pkgver.tar.gz::https://github.com/agronholm/typeguard/archive/$pkgver.tar.gz") +sha512sums=('d446e86e93292c7a88fea5daa607d6d9ed26b60daf43c79feac7ed524073d3ca123e63f8fb27eeab828d5989f29f9800eec9c077c24d7ed1b1c4a183ceed0d94') + +export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + +build() { + cd typeguard-$pkgver + python setup.py build +} + +check() { + cd typeguard-$pkgver + python setup.py pytest +} + +package() { + cd typeguard-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}
