db-move: moved seahorse from [testing] to [extra] (x86_64)
[arch-packages.git] / python-tomli-w / trunk / PKGBUILD
blobb6fff62c8714eb53c797830da430ea397138261e
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
3 pkgname=python-tomli-w
4 pkgver=1.0.0
5 pkgrel=6
6 pkgdesc="A lil' TOML writer"
7 url=https://github.com/hukkin/tomli-w
8 license=(MIT)
9 arch=(any)
10 depends=(python)
11 makedepends=(
12   git
13   python-build
14   python-flit-core
15   python-installer
17 checkdepends=(
18   python-pytest
19   python-tomli
21 _tag=19099125f32e7c491603e393263754262b356956
22 source=(git+https://github.com/hukkin/tomli-w.git#tag=${_tag})
23 b2sums=(SKIP)
25 pkgver() {
26   cd tomli-w
27   git describe --tags
30 build() {
31   cd tomli-w
32   python -m build --wheel --no-isolation
35 check() {
36   cd tomli-w
37   python -m pytest
40 package() {
41   python -m installer --destdir="${pkgdir}" tomli-w/dist/*.whl
42   install -Dm 644 tomli-w/LICENSE -t "${pkgdir}"/usr/share/licenses/python-tomli-w/
45 # vim: ts=2 sw=2 et: