blob: 943f135ba8c18c2ccd888075e7b3261edd6abfbe (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Michael Riegert <michael at eowyn net>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Sibren Vasse <arch@sibrenvasse.nl>
# Contributor: Daniel M. Capella <polyzen@archlinux.info>
# Contributor: Morten Linderud <morten@linderud.pw>
pkgname=python-pychromecast
_name=${pkgname#python-}
pkgver=14.0.7
pkgrel=3
pkgdesc="Library for Python 3 to communicate with the Google Chromecast"
arch=('any')
url="https://github.com/home-assistant-libs/pychromecast"
license=('MIT')
depends=(
'python-casttube'
'python-protobuf'
'python-zeroconf'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz"
'setuptools.patch')
sha256sums=('639c6da3ca1f9df1ccfb6b582ae8cd98b68a257dbadf392b5d4074cf09908688'
'79f888c45f746e38ce7d42b35dc471a7207e221d7f616e39973bf70003b27833')
prepare() {
cd "$_name-$pkgver"
# Update setuptools requirement from <78.0 to <81.0
# https://github.com/home-assistant-libs/pychromecast/pull/1056 (merged)
# https://github.com/home-assistant-libs/pychromecast/pull/1060 (merged)
patch -Np1 -i ../setuptools.patch
}
build() {
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|