[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Mon Jul 27 09:51:38 UTC 2020


    Date: Monday, July 27, 2020 @ 09:51:37
  Author: felixonmars
Revision: 665433

addpkg: python-pook 1.0.1-1 (for python-mocket)

Added:
  python-pook/
  python-pook/repos/
  python-pook/trunk/
  python-pook/trunk/PKGBUILD

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

Added: python-pook/trunk/PKGBUILD
===================================================================
--- python-pook/trunk/PKGBUILD	                        (rev 0)
+++ python-pook/trunk/PKGBUILD	2020-07-27 09:51:37 UTC (rev 665433)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pook
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Versatile and expressive HTTP traffic mocking and testing made simple in Python"
+url="https://github.com/h2non/pook"
+license=('MIT')
+arch=('any')
+depends=('python-furl' 'python-jsonschema' 'python-xmltodict')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-pytest' 'python-requests')
+source=("https://github.com/h2non/pook/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+        $pkgname-pytest-5.patch::https://github.com/h2non/pook/commit/2071da27701c82ce02b015e01e2aa6fd203e7bb5.patch)
+sha512sums=('c1b3e6e84a04ad829afc6e1e45a9f7177cd8d4496680c4aaa4536613bd3d9c46eb09d7c531682257a50d52515d56482b4e479a33b3a2c60839efc2b2cfadfb0e'
+            '2a292eacc6018543f7e9a58c86b9960c64f08e8fab961253696029d07778595b9cee175373592cb57620d526f8e74ca18336ca159077ab8bee55d2929dc987d3')
+
+prepare() {
+  cd pook-$pkgver
+  patch -p1 -i ../$pkgname-pytest-5.patch
+}
+
+build() {
+  cd pook-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pook-$pkgver
+  pytest
+}
+
+package() {
+  cd pook-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}


More information about the arch-commits mailing list