aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-filetype/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-09-14 07:05:13 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-09-14 10:07:59 +0000
commita4fa98bb55e9ebcde21f05c8aa5c4174d8c88623 (patch)
treec8aa30bc7c8c4788d99c2b00c878fa193991a2a8 /testing/py3-filetype/APKBUILD
parent68484ddddb10000c7d34df3ff69cf3d56b28190a (diff)
downloadaports-a4fa98bb55e9ebcde21f05c8aa5c4174d8c88623.tar.gz
aports-a4fa98bb55e9ebcde21f05c8aa5c4174d8c88623.tar.bz2
aports-a4fa98bb55e9ebcde21f05c8aa5c4174d8c88623.tar.xz
testing/py3-filetype: new aport
https://github.com/h2non/filetype.py infer file type and MIME from any file/buffer
Diffstat (limited to 'testing/py3-filetype/APKBUILD')
-rw-r--r--testing/py3-filetype/APKBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/py3-filetype/APKBUILD b/testing/py3-filetype/APKBUILD
new file mode 100644
index 0000000000..05e44ed8be
--- /dev/null
+++ b/testing/py3-filetype/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Leo <thinkabit.ukim@gmail.com>
+pkgname=py3-filetype
+pkgver=1.0.7
+pkgrel=0
+pkgdesc="infer file type and MIME from any file/buffer"
+url="https://github.com/h2non/filetype.py"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="py3-setuptools"
+source="$pkgname-$pkgver.tar.gz::https://github.com/h2non/filetype.py/archive/v$pkgver.tar.gz"
+builddir="$srcdir/filetype.py-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 -m unittest discover
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+ rm -rf "$pkgdir"/usr/lib/python3*/site-packages/examples
+}
+
+sha512sums="f6d861a9108ffb796858bfdfb26d1bdf6aa9704794fa86340cc36a2920b4f11e12faf4271d19bca9a89be76d8fcff43e8859c8def2525ddbadd52a18c7f68cac py3-filetype-1.0.7.tar.gz"