blob: 15bb7188c5d1029771e7bb6ea88f84ee4c269ad9 (
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
27
28
29
30
31
|
# Maintainer: Razer <razer[AT]neuf[DOT]fr>
pkgname=python-adafruit-circuitpython-typing
_pypi_pkgname=adafruit_circuitpython_typing
pkgver=1.11.2
pkgrel=1
pkgdesc="Definitions not in the standard typing module that are needed for type annotation of CircuitPython code"
arch=('any')
url="https://github.com/adafruit/Adafruit_CircuitPython_Typing"
license=('MIT')
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools-scm'
)
depends=('python')
optdepends=()
source=("https://pypi.io/packages/source/a/${_pypi_pkgname}/${_pypi_pkgname}-${pkgver}.tar.gz")
sha256sums=('c7ac8532a9ad7e4a65d5588764b7483c0b6967d305c37faebcc0c5356d677e33')
build() {
cd "${srcdir}/${_pypi_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pypi_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm644 -t "$pkgdir/usr/share/license/$pkgname" LICENSE
}
|