aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-filetype/APKBUILD
blob: 0cc20c7ccacba1e92c0c7d1e7962e3ace5d8c1ab (plain) (tree)
1
2
3
4
5
                                             
             

                    
        






















                                                                                                                                                                        
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-filetype
pkgver=1.0.7
pkgrel=2
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"