summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5cb0702b24073beb25f108e173f7f7528cf60cc4 (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
# Maintainer: devome <evinedeng@hotmail.com>

_pkgname=voluptuous-openapi
_pipname="${_pkgname//-/_}"
pkgname="python-${_pkgname}"
pkgver=0.0.5
pkgrel=1
pkgdesc="Convert voluptuous schemas to OpenAPI Schema object"
arch=('any')
url="https://github.com/home-assistant-libs/voluptuous-openapi"
license=("Apache-2.0")
depends=("python-voluptuous")
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pipname}-${pkgver}.tar.gz")
sha256sums=('1619cd298da0024fa01338ac5a9ce3b3b7059205ce3c69230c24803b11308fb0')

build() {
    cd "${_pipname}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${_pipname}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}