[arch-commits] Commit in (3 files)

Maxime Gauduin alucryd at gemini.archlinux.org
Wed Nov 24 12:58:53 UTC 2021


    Date: Wednesday, November 24, 2021 @ 12:58:53
  Author: alucryd
Revision: 429057

add python-tomli-w for new python-flit

Added:
  python-tomli-w/
  python-tomli-w/trunk/
  python-tomli-w/trunk/PKGBUILD

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Added: python-tomli-w/trunk/PKGBUILD
===================================================================
--- python-tomli-w/trunk/PKGBUILD	                        (rev 0)
+++ python-tomli-w/trunk/PKGBUILD	2021-11-24 12:58:53 UTC (rev 429057)
@@ -0,0 +1,45 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-tomli-w
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="A lil' TOML writer"
+url=https://github.com/hukkin/tomli-w
+license=(MIT)
+arch=(any)
+depends=(python)
+makedepends=(
+  git
+  python-flit
+  python-pip
+  python-poetry
+)
+checkdepends=(
+  python-pytest
+  python-tomli
+)
+_tag=22874ff44581f34810e6f19fb6f682ca39fe0fce
+source=(git+https://github.com/hukkin/tomli-w.git#tag=${_tag})
+b2sums=(SKIP)
+
+pkgver() {
+  cd tomli-w
+  git describe --tags
+}
+
+build() {
+  cd tomli-w
+  python -m flit build --format wheel
+}
+
+check() {
+  cd tomli-w
+  python -m pytest
+}
+
+package() {
+  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps tomli-w/dist/*.whl
+  install -Dm 644 tomli-w/LICENSE -t "${pkgdir}"/usr/share/licenses/python-tomli-w/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list