[arch-commits] Commit in python-tomli/repos (staging-any staging-any/PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 15:48:17 UTC 2021
Date: Tuesday, November 30, 2021 @ 15:48:17
Author: felixonmars
Revision: 429606
archrelease: copy trunk to staging-any
Added:
python-tomli/repos/staging-any/
python-tomli/repos/staging-any/PKGBUILD
(from rev 429605, python-tomli/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-tomli/repos/staging-any/PKGBUILD (from rev 429605, python-tomli/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2021-11-30 15:48:17 UTC (rev 429606)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tomli
+pkgver=1.2.2
+pkgrel=3
+pkgdesc="A lil' TOML parser"
+url="https://github.com/hukkin/tomli"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-pyproject2setuppy')
+checkdepends=('python-pytest' 'python-dateutil')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/hukkin/tomli/archive/$pkgver.tar.gz")
+sha512sums=('460ad8ae9a342d82ef12911c0d0e246c1434a5d40d898e91f6c05bf37b7bf9921da05e004c36907d623a797a7a215c1c3faf3f9a2b940f3867b142847a188605')
+
+build() {
+ cd tomli-$pkgver
+ python -m pyproject2setuppy.main build
+}
+
+check() {
+ cd tomli-$pkgver
+ python -m pytest
+}
+
+package() {
+ cd tomli-$pkgver
+ python -m pyproject2setuppy.main install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list