summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bdfcd533d0d0f4c5a30bb840fe2ebe62a2e00fc9 (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
# Maintainer: Cyril Waechter <cyril[at]biminsight[dot]ch>
pkgname=(python-specklepy)
pkgver=2.17.17
pkgrel=2
pkgdesc="The Python SDK for Speckle 2.0"
arch=('x86_64' 'i686')
url="https://github.com/specklesystems/speckle-py"
license=('Apache')
depends=('python' 'python-pydantic' 'python-gql' 'python-aiohttp' 'python-appdirs' 'python-requests' 'python-websockets')
optdepends=()
makedepends=(python-build python-installer python-wheel)
provides=('python-specklepy')
conflicts=()
replaces=()
backup=()
_name=${pkgname#python-}
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
md5sums=('8b932e2f7b1b57dcc43c6718bcef6e40')

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

package() {
  # Install license file
  cd "${srcdir}/$_name-$pkgver"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  # Install python modules
  cd "${srcdir}/$_name-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
}