summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6d1098bf352b035982f18063a93d8fe5fb46128 (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
# Maintainer: Andrej Radović <r.andrej@gmail.com>
pkgname=python-mouser
_name=${pkgname#python-}
pkgver=0.1.3
pkgrel=2
pkgdesc="Mouser Python API"
url="https://github.com/sparkmicro/mouser-api/"
depends=(
    'python'
    'python-click'
    'python-requests'
)
makedepends=(python-build python-installer python-wheel python-poetry)
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('42e43b17e797bfc2b7a8323585ad8e772a8ba69d58439021635945cc0869cd5f')

build() {
	cd "$srcdir/$_name-$pkgver"
    python -m build --wheel --no-isolation
}

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