[arch-commits] Commit in python-tomlkit/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat May 25 17:25:21 UTC 2019
Date: Saturday, May 25, 2019 @ 17:25:21
Author: felixonmars
Revision: 470706
archrelease: copy trunk to community-x86_64
Added:
python-tomlkit/repos/community-x86_64/
python-tomlkit/repos/community-x86_64/PKGBUILD
(from rev 470705, python-tomlkit/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-tomlkit/repos/community-x86_64/PKGBUILD (from rev 470705, python-tomlkit/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2019-05-25 17:25:21 UTC (rev 470706)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tomlkit
+pkgver=0.5.3
+pkgrel=1
+pkgdesc="Style-preserving TOML library for Python"
+url="https://github.com/sdispater/tomlkit"
+license=('MIT')
+arch=('x86_64')
+depends=('python')
+checkdepends=('python-pytest')
+source=("https://pypi.io/packages/source/t/tomlkit/tomlkit-$pkgver.tar.gz")
+sha512sums=('90939b380fb8c58a1825c45740d599f116adf5075b1efb327ceb72353b1d1b3d6d6b960ed7673d46af586fc3ed56a866a6a8eb8dfc2a78ea128b5b7f214b0b55')
+
+build() {
+ cd tomlkit-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd tomlkit-$pkgver
+ # TODO: package a pyproject to setup converter and use git source
+ # python -m pytest
+}
+
+package() {
+ cd tomlkit-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list