Date: Monday, April 10, 2023 @ 11:50:59
Author: felixonmars
Revision: 1444117
archrelease: copy trunk to community-staging-any
Added:
python-pytest-flake8/repos/community-staging-any/
python-pytest-flake8/repos/community-staging-any/PKGBUILD
(from rev 1444114, python-pytest-flake8/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-pytest-flake8/repos/community-staging-any/PKGBUILD (from rev
1444114, python-pytest-flake8/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-10 11:50:59 UTC (rev 1444117)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-flake8
+pkgver=1.1.1
+pkgrel=2
+pkgdesc='pytest plugin to check FLAKE8 requirements'
+arch=('any')
+license=('MIT')
+url='https://github.com/tholo/pytest-flake8'
+depends=('python-pytest' 'flake8')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tholo/pytest-flake8/archive/$pkgver.tar.gz")
+sha512sums=('7ad9b6da1fdb9f9ac8720820589d1a213b1c1bda8c2579d988d288031fb717916c81d100488200a4d64b880575041f34387c20685416ed789ced51063e814e13')
+
+prepare() {
+ cd pytest-flake8-$pkgver
+ sed -i 's/ignore = E128/ignore = E128 W605/' tox.ini
+}
+
+build() {
+ cd "$srcdir"/pytest-flake8-$pkgver
+ python setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd "$srcdir"/pytest-flake8-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH" py.test
+}
+
+package() {
+ cd pytest-flake8-$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: