[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Sat Jan 9 14:21:18 UTC 2021
Date: Saturday, January 9, 2021 @ 14:21:17
Author: felixonmars
Revision: 816220
split python2 package
Added:
python2-pytest-mock/
python2-pytest-mock/repos/
python2-pytest-mock/trunk/
python2-pytest-mock/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Added: python2-pytest-mock/trunk/PKGBUILD
===================================================================
--- python2-pytest-mock/trunk/PKGBUILD (rev 0)
+++ python2-pytest-mock/trunk/PKGBUILD 2021-01-09 14:21:17 UTC (rev 816220)
@@ -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