[arch-commits] Commit in python-typeguard/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 04:13:20 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:13:20
Author: felixonmars
Revision: 748568
archrelease: copy trunk to community-staging-any
Added:
python-typeguard/repos/community-staging-any/
python-typeguard/repos/community-staging-any/PKGBUILD
(from rev 748566, python-typeguard/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-typeguard/repos/community-staging-any/PKGBUILD (from rev 748566, python-typeguard/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 04:13:20 UTC (rev 748568)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-typeguard
+pkgver=2.10.0
+pkgrel=2
+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-cov' 'python-typing_extensions')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/agronholm/typeguard/archive/$pkgver.tar.gz")
+sha512sums=('1fb1b27369f279a467a0d524618c79f1369afa10579256826ab589158069f59676d496284079a15f1217272f76934ea162e5baaaac5474ff5dbd1de7764535f0')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+ cd typeguard-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd typeguard-$pkgver
+ python -m pytest
+}
+
+package() {
+ cd typeguard-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list