[arch-commits] Commit in python2-backports.unittest_mock/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 12:45:19 UTC 2020


    Date: Tuesday, July 7, 2020 @ 12:45:18
  Author: felixonmars
Revision: 658221

archrelease: copy trunk to community-staging-any

Added:
  python2-backports.unittest_mock/repos/community-staging-any/
  python2-backports.unittest_mock/repos/community-staging-any/PKGBUILD
    (from rev 658219, python2-backports.unittest_mock/trunk/PKGBUILD)

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

Copied: python2-backports.unittest_mock/repos/community-staging-any/PKGBUILD (from rev 658219, python2-backports.unittest_mock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 12:45:18 UTC (rev 658221)
@@ -0,0 +1,24 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python2-backports.unittest_mock
+pkgver=1.2.1
+pkgrel=3
+pkgdesc="Makes the “mock” module available as “unittest.mock”"
+arch=('any')
+url="https://github.com/jaraco/backports.unittest_mock"
+license=('PSF')
+depends=('python2-backports' 'python2-mock')
+makedepends=('python2-setuptools-scm')
+checkdepends=('python2-pytest-runner')
+source=("https://pypi.io/packages/source/b/backports.unittest_mock/backports.unittest_mock-$pkgver.tar.gz")
+sha256sums=('3a333a7a7641e4c7657c6086d117f88c61c96249b80dd7aa66eba0806a55a393')
+
+check() {
+  cd backports.unittest_mock-$pkgver
+  python2 setup.py pytest
+}
+
+package() {
+  cd backports.unittest_mock-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list