summaryrefslogtreecommitdiff
path: root/user/py3-toml/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/py3-toml/APKBUILD')
-rw-r--r--user/py3-toml/APKBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/user/py3-toml/APKBUILD b/user/py3-toml/APKBUILD
new file mode 100644
index 000000000..2705dcde0
--- /dev/null
+++ b/user/py3-toml/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Zach van Rijn <me@zv.io>
+pkgname=py3-toml
+_pyname=toml
+pkgver=0.10.2
+pkgrel=0
+pkgdesc="Python 3 library for TOML"
+url="https://pypi.org/project/toml/"
+arch="noarch"
+license="MIT"
+depends="python3"
+checkdepends="py3-pytest"
+makedepends="py3-iniconfig"
+source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir="$srcdir/"$_pyname-$pkgver
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py test
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+sha512sums="ede2c8fed610a3827dba828f6e7ab7a8dbd5745e8ef7c0cd955219afdc83b9caea714deee09e853627f05ad1c525dc60426a6e9e16f58758aa028cb4d3db4b39 toml-0.10.2.tar.gz"