Autogenerated commit at 2024-12-24 09:56:36.739708+00:00
This commit is contained in:
19
python-aiohttp-apispec-git/.SRCINFO
Normal file
19
python-aiohttp-apispec-git/.SRCINFO
Normal file
@ -0,0 +1,19 @@
|
||||
pkgbase = python-aiohttp-apispec-git
|
||||
pkgdesc = Build and document REST APIs with aiohttp and apispec (git version)
|
||||
pkgver = 3.0.0b2.r8.ge37d587
|
||||
pkgrel = 3
|
||||
url = https://github.com/maximdanilchenko/aiohttp-apispec
|
||||
arch = any
|
||||
license = MIT
|
||||
makedepends = git
|
||||
makedepends = python-setuptools
|
||||
depends = python-aiohttp
|
||||
depends = python-apispec
|
||||
depends = python-jinja
|
||||
depends = python-webargs
|
||||
provides = python-aiohttp-apispec=3.0.0b2
|
||||
conflicts = python-aiohttp-apispec
|
||||
source = python-aiohttp-apispec-git::git+https://github.com/maximdanilchenko/aiohttp-apispec.git
|
||||
sha512sums = SKIP
|
||||
|
||||
pkgname = python-aiohttp-apispec-git
|
34
python-aiohttp-apispec-git/PKGBUILD
Normal file
34
python-aiohttp-apispec-git/PKGBUILD
Normal file
@ -0,0 +1,34 @@
|
||||
# Maintainer: Evgenii Alekseev
|
||||
|
||||
_pkgname=aiohttp-apispec
|
||||
pkgname=python-$_pkgname-git
|
||||
pkgver=3.0.0b2.r8.ge37d587
|
||||
pkgrel=3
|
||||
pkgdesc='Build and document REST APIs with aiohttp and apispec (git version)'
|
||||
arch=('any')
|
||||
url='https://github.com/maximdanilchenko/aiohttp-apispec'
|
||||
license=('MIT')
|
||||
depends=('python-aiohttp' 'python-apispec' 'python-jinja' 'python-webargs')
|
||||
makedepends=('git' 'python-setuptools')
|
||||
conflicts=("python-$_pkgname")
|
||||
provides=("python-$_pkgname=${pkgver%.r*}")
|
||||
source=("$pkgname::git+$url.git")
|
||||
sha512sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
git describe --tags --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/^[A-Za-z]*//'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
|
||||
# we don't need to distribute examples
|
||||
rm -r "$pkgdir$(python -c 'import site; print(site.getsitepackages()[0])')/example"
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
Reference in New Issue
Block a user