[arch-commits] Commit in python-pytest-flake8/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 20:20:19 UTC 2020
Date: Monday, November 9, 2020 @ 20:20:18
Author: foutrelis
Revision: 748197
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 748194, python-pytest-flake8/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-pytest-flake8/repos/community-staging-any/PKGBUILD (from rev 748194, python-pytest-flake8/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 20:20:18 UTC (rev 748197)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-flake8
+pkgver=1.0.6
+pkgrel=2
+pkgdesc='pytest plugin to check FLAKE8 requirements'
+arch=('any')
+license=('MIT')
+url='https://github.com/tholo/pytest-flake8'
+depends=('python-pytest' 'flake8')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tholo/pytest-flake8/archive/$pkgver.tar.gz")
+sha512sums=('0956690c51df94d6eab81494b4f6a30b242926c7ada071e46b40b6b23c4e4ccddea4fb91758306b186616b20ea9ecfb7e5da794c37352e85146d0bc400901020')
+
+prepare() {
+ sed -i 's/ignore = E128/ignore = E128 W605/' pytest-flake8-$pkgver/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
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/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:
More information about the arch-commits
mailing list