[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Mon May 25 10:21:44 UTC 2020


    Date: Monday, May 25, 2020 @ 10:21:44
  Author: felixonmars
Revision: 634115

addpkg: python-pytest-mypy 0.6.2-1

Added:
  python-pytest-mypy/
  python-pytest-mypy/repos/
  python-pytest-mypy/trunk/
  python-pytest-mypy/trunk/PKGBUILD

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

Added: python-pytest-mypy/trunk/PKGBUILD
===================================================================
--- python-pytest-mypy/trunk/PKGBUILD	                        (rev 0)
+++ python-pytest-mypy/trunk/PKGBUILD	2020-05-25 10:21:44 UTC (rev 634115)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-mypy
+pkgver=0.6.2
+pkgrel=1
+pkgdesc='Mypy static type checker plugin for Pytest'
+arch=('any')
+license=('MIT')
+url='https://github.com/dbader/pytest-mypy'
+depends=('mypy' 'python-filelock' 'python-pytest')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest-xdist')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/dbader/pytest-mypy/archive/v$pkgver.tar.gz")
+sha512sums=('e7921ce2ea31b9cafa4364faea6c58d2b3284d3809bcfb80d2a9130d66192ffbf1449d23368098f862ee92321c61cc7ec98e14fb7fe5e0b46f28dd812ee8f836')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd pytest-mypy-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pytest-mypy-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" pytest
+}
+
+package() {
+  cd pytest-mypy-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list