blob: b6cfe17d73010406a5bd324bbfcf07b3c4eda08c (
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
32
33
34
35
36
|
# Maintainer: Andrej Radović <r.andrej@gmail.com>
pkgname=python-inventree-part-import
_name=${pkgname#python-}
pkgver=1.7
pkgrel=3
pkgdesc="CLI to import parts from into your InvenTree instance"
url="https://github.com/30350n/inventree_part_import"
depends=(
'python-beautifulsoup4'
'python-click'
'python-cutie'
'python-digikey-api'
'python-fake-useragent'
'python-inventree'
'python-isocodes'
'python-platformdirs'
'python-requests'
'python-tablib'
'python-thefuzz'
'python-yaml'
)
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=('8a65b5b418783b171c314e6ac80242f7bc24ad60902e501c7ad141ab220b65df')
build() {
cd "$srcdir/${_name//-/_}-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/${_name//-/_}-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|