[arch-commits] Commit in python-flexmock/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Nov 10 05:04:19 UTC 2020


    Date: Tuesday, November 10, 2020 @ 05:04:19
  Author: felixonmars
Revision: 749273

archrelease: copy trunk to community-staging-any

Added:
  python-flexmock/repos/community-staging-any/
  python-flexmock/repos/community-staging-any/PKGBUILD
    (from rev 749271, python-flexmock/trunk/PKGBUILD)

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

Copied: python-flexmock/repos/community-staging-any/PKGBUILD (from rev 749271, python-flexmock/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 05:04:19 UTC (rev 749273)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-flexmock
+pkgver=0.10.4
+pkgrel=5
+pkgdesc="Mock/Stub/Spy library for Python"
+arch=('any')
+license=('BSD')
+url="https://has207.github.com/flexmock"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/bkabrda/flexmock/archive/$pkgver.tar.gz")
+sha512sums=('96d3af9625b1dbd987b291c7ed26a77476f54fe4548d16ad70adeefc0093f51a3b47d8b3fb4339611dfadd8b2d55a1bc734e70bc093683192f1f351badf08553')
+
+export LC_CTYPE=en_US.UTF-8
+
+build() {
+  cd "$srcdir"/flexmock-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/flexmock-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd flexmock-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list