[arch-commits] Commit in python-responses/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Jun 11 05:24:49 UTC 2017


    Date: Sunday, June 11, 2017 @ 05:24:48
  Author: felixonmars
Revision: 236114

archrelease: copy trunk to community-any

Added:
  python-responses/repos/community-any/
  python-responses/repos/community-any/PKGBUILD
    (from rev 236113, python-responses/trunk/PKGBUILD)

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

Copied: python-responses/repos/community-any/PKGBUILD (from rev 236113, python-responses/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-06-11 05:24:48 UTC (rev 236114)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-responses
+pkgname=('python-responses' 'python2-responses')
+pkgver=0.5.1
+pkgrel=1
+pkgdesc='A utility library for mocking out the `requests` Python library.'
+arch=('any')
+license=('Apache')
+url='https://github.com/getsentry/responses'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests'
+             'python-cookies' 'python2-cookies' 'python-six' 'python2-six' 'python2-mock')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-cov'
+              'python2-pytest-cov' 'flake8' 'python2-flake8')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz")
+sha512sums=('bd3dcd0cb97d46519371fbda11b42f2dae6c12e2492e6872f29cab31d5cc3942388d0d1d1d400ddd07bf810951edb75ee20f144b24750a3103a0d0d9ba2f78eb')
+
+prepare() {
+  cp -a responses-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/responses-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/responses-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/responses-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/responses-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-responses() {
+  depends=('python-requests' 'python-cookies' 'python-six')
+
+  cd responses-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-responses() {
+  depends=('python2-requests' 'python2-cookies' 'python2-six' 'python2-mock')
+
+  cd responses-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list