[arch-commits] Commit in python-pook/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Wed Dec 1 14:57:55 UTC 2021
Date: Wednesday, December 1, 2021 @ 14:57:54
Author: foutrelis
Revision: 1059605
archrelease: copy trunk to community-staging-any
Added:
python-pook/repos/community-staging-any/
python-pook/repos/community-staging-any/PKGBUILD
(from rev 1059604, python-pook/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-pook/repos/community-staging-any/PKGBUILD (from rev 1059604, python-pook/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 14:57:54 UTC (rev 1059605)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pook
+pkgver=1.0.2
+pkgrel=2
+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")
+sha512sums=('c471e85620625522591937e0828a098efd8ddcad9c55fa6a7532131f63891976d0cb68d23dd5c380b05520d6dea24080d2cb7203ece7f158b4b7c1ec0cfff2bd')
+
+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/
+
+ # It's only present when tests are enabled, so adding -f
+ rm -rf "$pkgdir"/usr/lib/python3.10/site-packages/tests
+}
More information about the arch-commits
mailing list