blob: ae08714f78d9e2b0d77f403e46da22e1f68b2211 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Maintainer: Laura Demkowicz-Duffy <dev at demkowiczduffy.co.uk>
# Contributor: GI Jack <GI_Jack@hackermail.com>
pkgname=python-cherrypy-cors
_pkgname=cherrypy-cors
pkgver=1.7.0
pkgrel=2
pkgdesc="CORS support for CherryPy"
arch=('any')
url="https://pypi.org/project/cherrypy-cors/"
license=('MIT')
depends=('python' 'python-cherrypy' 'python-httpagentparser')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('83384cd664a7ab8b9ab7d4926fe9713acfe0bce3665ee28189a0fa04b9f212d6')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|