Date: Tuesday, January 31, 2023 @ 19:48:11
  Author: felixonmars
Revision: 1391486

upgpkg: python-pytest-mock 3.10.0-2

Modified:
  python-pytest-mock/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 19:46:49 UTC (rev 1391485)
+++ PKGBUILD    2023-01-31 19:48:11 UTC (rev 1391486)
@@ -2,25 +2,25 @@
 
 pkgname=python-pytest-mock
 pkgver=3.10.0
-pkgrel=1
+_commit=6c03dfd4240de4a178bab67c0a32fba28d8bcf91
+pkgrel=2
 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=('python-pytest')
-makedepends=('python-setuptools-scm')
+makedepends=('git' 'python-setuptools-scm')
 checkdepends=('python-pytest-asyncio')
-source=("https://github.com/pytest-dev/pytest-mock/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('50dbee13203bec24510a40d3e6dc1be29d1d12a342714f7b9fcd3d2be57b4f495eebb9b6330304e55a59a3515aa039143ab83c40b183a886a4068ae8e7456648')
+source=("git+https://github.com/pytest-dev/pytest-mock.git#commit=$_commit";)
+sha512sums=('SKIP')
 
 build() {
-  cd pytest-mock-$pkgver
-  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+  cd pytest-mock
   python setup.py build
 }
 
 check() {
-  cd pytest-mock-$pkgver
+  cd pytest-mock
   python setup.py egg_info
   export PYTHONPATH="src:${PYTHONPATH}"
   # disable all tests that require the plugin to be installed
@@ -36,6 +36,6 @@
 }
 
 package() {
-  cd pytest-mock-$pkgver
+  cd pytest-mock
   python setup.py install --root="$pkgdir" --optimize=1
 }

Reply via email to