[arch-commits] Commit in python-pytest-localserver/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Nov 10 05:07:14 UTC 2020
Date: Tuesday, November 10, 2020 @ 05:07:14
Author: foutrelis
Revision: 749304
archrelease: copy trunk to community-staging-any
Added:
python-pytest-localserver/repos/community-staging-any/
python-pytest-localserver/repos/community-staging-any/PKGBUILD
(from rev 749303, python-pytest-localserver/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-pytest-localserver/repos/community-staging-any/PKGBUILD (from rev 749303, python-pytest-localserver/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 05:07:14 UTC (rev 749304)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-localserver
+pkgver=0.5.0
+pkgrel=5
+_name=${pkgname#python-}
+pkgdesc='py.test plugin to test server connections locally'
+arch=('any')
+license=('MIT')
+url='https://bitbucket.org/pytest-dev/pytest-localserver'
+depends=('python-pytest' 'python-werkzeug')
+makedepends=('python-setuptools')
+checkdepends=('python-requests')
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('aedf1e1c9563396457070df13df228ad0ebdd19173fa2ac5a598288d3e1a1ac8b8a0c0288cba0d8478e43d2e1de4848f2393bf640705916957f12ab31171c6cc')
+
+build() {
+ cd "$srcdir"/pytest-localserver-$pkgver
+ python setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd "$srcdir"/pytest-localserver-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" py.test
+}
+
+package() {
+ cd pytest-localserver-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list