[arch-commits] Commit in python-typeguard/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri May 1 12:38:43 UTC 2020


    Date: Friday, May 1, 2020 @ 12:38:43
  Author: felixonmars
Revision: 623807

archrelease: copy trunk to community-any

Added:
  python-typeguard/repos/community-any/
  python-typeguard/repos/community-any/PKGBUILD
    (from rev 623805, python-typeguard/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-typeguard/repos/community-any/PKGBUILD (from rev 623805, python-typeguard/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-05-01 12:38:43 UTC (rev 623807)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+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/
+}



More information about the arch-commits mailing list