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

Felix Yan felixonmars at archlinux.org
Fri Nov 9 22:34:52 UTC 2018


    Date: Friday, November 9, 2018 @ 22:34:52
  Author: felixonmars
Revision: 405011

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 405010, 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 405010, python2-backports.unittest_mock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-11-09 22:34:52 UTC (rev 405011)
@@ -0,0 +1,24 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python2-backports.unittest_mock
+pkgver=1.2.1
+pkgrel=2
+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