void-packages/srcpkgs/python3-magic/template

25 lines
718 B
Bash

# Template file for 'python3-magic'
pkgname=python3-magic
version=0.4.25
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="libmagic"
depends="python3 libmagic"
checkdepends="python3-pytest"
short_desc="File type identification using libmagic (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/ahupp/python-magic"
changelog="https://raw.githubusercontent.com/ahupp/python-magic/master/CHANGELOG"
distfiles="https://github.com/ahupp/python-magic/archive/${version}.tar.gz"
checksum=0c1f483995067ffff268103f8bb6860d2f42aa3a5a9b906eaf34bcce1de36329
do_check() {
( cd test/; python3 -m pytest )
}
post_install() {
vlicense LICENSE
}