diff options
author | George Rawlinson | 2020-07-07 15:08:57 +1200 |
---|---|---|
committer | George Rawlinson | 2020-07-07 15:08:57 +1200 |
commit | 58ca6467400bb2f3fa0bb21002d5bff0af4e128b (patch) | |
tree | 7cd69d0c8cc724eaae33b3f91332214866cff617 | |
download | aur-58ca6467400bb2f3fa0bb21002d5bff0af4e128b.tar.gz |
addpkg: python-flake8-annotations 2.2.0-1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..217e998899be --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-flake8-annotations + pkgdesc = A flake8 extension that checks type annotations + pkgver = 2.2.0 + pkgrel = 1 + url = https://github.com/python-discord/flake8-annotations + arch = any + license = MIT + makedepends = python-setuptools + makedepends = python-dephell + depends = python + depends = flake8 + depends = python-typed-ast + source = python-flake8-annotations-2.2.0.tar.gz::https://github.com/python-discord/flake8-annotations/archive/v2.2.0.tar.gz + b2sums = eb4b6e5436a58dda63c1885a60b5f6018ff0e5eddb1b6bb9151797d68787197b0693695f45c589785016442fe7d18f98a6015ee56eb3b99227f89bf0a6d40d64 + +pkgname = python-flake8-annotations + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b42469a3ad23 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: George Rawlinson <george@rawlinson.net.nz> + +pkgname=python-flake8-annotations +_pkgname="${pkgname#python-}" +_name="${_pkgname/-/_}" +pkgver=2.2.0 +pkgrel=1 +pkgdesc="A flake8 extension that checks type annotations" +arch=('any') +url="https://github.com/python-discord/flake8-annotations" +license=('MIT') +depends=('python' 'flake8' 'python-typed-ast') +makedepends=('python-setuptools' 'python-dephell') +checkdepends=() # TODO +optdepends=() +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +b2sums=('eb4b6e5436a58dda63c1885a60b5f6018ff0e5eddb1b6bb9151797d68787197b0693695f45c589785016442fe7d18f98a6015ee56eb3b99227f89bf0a6d40d64') + +prepare() { + cd "$_pkgname-$pkgver" + dephell deps convert --from pyproject.toml --to setup.py +} + +build() { + cd "$_pkgname-$pkgver" + python setup.py build +} + +package() { + cd "$_pkgname-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} |