[arch-commits] Commit in python-flake8-typing-imports/repos (2 files)
Filipe Laíns
ffy00 at archlinux.org
Fri Nov 20 00:31:28 UTC 2020
Date: Friday, November 20, 2020 @ 00:31:28
Author: ffy00
Revision: 757860
archrelease: copy trunk to community-staging-any
Added:
python-flake8-typing-imports/repos/community-staging-any/
python-flake8-typing-imports/repos/community-staging-any/PKGBUILD
(from rev 757859, python-flake8-typing-imports/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-flake8-typing-imports/repos/community-staging-any/PKGBUILD (from rev 757859, python-flake8-typing-imports/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-20 00:31:28 UTC (rev 757860)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=flake8-typing-imports
+pkgname=python-$_pkgname
+pkgver=1.10.1
+pkgrel=1
+pkgdesc='flake8 plugin which checks that typing imports are properly guarded'
+arch=('any')
+url='https://github.com/asottile/flake8-typing-imports'
+license=('MIT')
+depends=('flake8')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'flake8' 'python-pyflakes' 'python-pycodestyle' 'python-mccabe')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('c369af01e7157c9dec8b47506a15ad565541c6ccabb48fb0c0c37d8bfd62739e92d3e4d20b971a7eca16b07f56ce62f43dbcb4b4860a73eebea7bdd2ca5c7b1c')
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ python setup.py pytest
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list