summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23783eb523c15fa61640ce6472388ef7e51d6af2 (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: tarneo <tarneo@tarneo.fr>
pkgname='python-autoslot'
pkgver=2022.12.1
pkgrel=1
pkgdesc='Automatic __slots__ for your Python classes'
arch=('any')
url='https://github.com/cjrh/autoslot'
license=('Apache')
groups=()
depends=('python-flit')
makedepends=(python-build python-installer python-wheel python-pytest)
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
noextract=()
sha256sums=('576593ab8acf471e22b370bfb70bf94e4f4efef53ff0b720ffc0cabcc464d7a0')

_name='autoslot'
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")

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

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