community/py3-autocommand: new aport
Changes
1 files changed · +41 −0
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| community/py3-autocommand/APKBUILD | added | +41 | −0 | View file |
community/py3-autocommand/APKBUILD
View filediff --git a/community/py3-autocommand/APKBUILD b/community/py3-autocommand/APKBUILD
new file mode 100644
index 0000000..4ac143f
--- /dev/null
+++ b/community/py3-autocommand/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Duncan Bellamy <[email protected]>
+# Maintainer: Duncan Bellamy <[email protected]>
+pkgname=py3-autocommand
+_pkgreal=${pkgname#"py3-"}
+pkgver=2.2.1
+pkgrel=0
+pkgdesc="turns a python function into a CLI program"
+url="https://github.com/Lucretiel/autocommand"
+arch="noarch"
+license="LGPL-3.0-only"
+depends="python3"
+makedepends="
+ py3-build
+ py3-installer
+ py3-setuptools
+ py3-wheel
+ "
+checkdepends="py3-pytest"
+source="https://files.pythonhosted.org/packages/source/a/autocommand/autocommand-$pkgver.tar.gz
+ python.patch::https://github.com/Lucretiel/autocommand/commit/031c9750c74e3313b954b09e3027aaa6595649bb.patch
+ "
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ GIT_DIR=. python3 -m build --no-isolation --wheel
+}
+
+check() {
+ python3 -m installer -d testenv dist/$_pkgreal-$pkgver-py3-none-any.whl
+ local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
+ PYTHONPATH="$PWD/testenv/$sitedir" python3 -m pytest --ignore testenv
+}
+
+package() {
+ python3 -m installer -d "$pkgdir" dist/$_pkgreal-$pkgver-py3-none-any.whl
+}
+
+sha512sums="
+42687c2ec6e82283570c9adba6cec048088336092c77a07db64851a9fcaf43f1715a8ebfeaba3136a50f7e0dbf4bb03373debe8ecf3cdf8adf73079a241ef6c1 autocommand-2.2.1.tar.gz
+3535f6f62cb2803a218d92b0d5c77895633afaae0b17e2d82cb15b5d7fdad84afa95f91a2c3a739fb61620abdd25851064f84e1351793e4ea1e4e67f03c58ff0 python.patch
+"