[arch-commits] Commit in python2-pytest-mock/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Jan 9 14:21:35 UTC 2021


    Date: Saturday, January 9, 2021 @ 14:21:35
  Author: felixonmars
Revision: 816221

archrelease: copy trunk to community-any

Added:
  python2-pytest-mock/repos/community-any/
  python2-pytest-mock/repos/community-any/PKGBUILD
    (from rev 816220, python2-pytest-mock/trunk/PKGBUILD)

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

Copied: python2-pytest-mock/repos/community-any/PKGBUILD (from rev 816220, python2-pytest-mock/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-01-09 14:21:35 UTC (rev 816221)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python2-pytest-mock
+pkgver=2.0.0
+pkgrel=4
+pkgdesc="Thin-wrapper around the mock package for easier use with py.test"
+arch=('any')
+license=('LGPL3')
+url="https://github.com/pytest-dev/pytest-mock/"
+depends=('python2-mock' 'python2-pytest')
+makedepends=('python2-setuptools-scm')
+source=("https://github.com/pytest-dev/pytest-mock/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('0bd15bf07e28fcea72f0269f09fe340bc1f01dd4e5f20215894c59e244ebad6ba15c8ef67c1547be0a750cff3e50536e0c1ca2d783a895eecbc492ece6c6fc55')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd pytest-mock-$pkgver
+  python2 setup.py build
+}
+
+check() {
+  cd pytest-mock-$pkgver
+  python2 setup.py egg_info
+  PYTHONPATH="$PWD:$PWD/src" pytest2
+}
+
+package() {
+  cd pytest-mock-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list