# Contributor: Dhruvin Gandhi # Maintainer: Patrycja Rosa pkgname=py3-binaryornot _commit=360d7aeefeccf6b5359ac4dab8d7b6411d33ec08 pkgver=0.4.4 pkgrel=3 pkgdesc="Python package to check if a file is binary or text" url="https://github.com/audreyr/binaryornot" arch="noarch" license="BSD-3-Clause" depends="python3 py3-chardet" makedepends="py3-setuptools" checkdepends="py3-pytest py3-hypothesis" subpackages="$pkgname-pyc" source="https://github.com/audreyfeldroy/binaryornot/archive/$_commit.tar.gz" builddir="$srcdir/binaryornot-$_commit" build() { python3 setup.py build } check() { # encodings directory contains non-utf8 test data, and no tests pytest --ignore-glob="tests/isBinaryFile/encodings" } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 6496b24882926c9d149d1fa61b7d45ddb7ba713c6b4c512e85f3a993c05ac6ba41106a4b62fbd9bb6250072b2a772dde5baf139add2c132ce86af548c7b095e6 360d7aeefeccf6b5359ac4dab8d7b6411d33ec08.tar.gz "