mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
32 lines
994 B
Text
32 lines
994 B
Text
# Contributor: Dhruvin Gandhi <contact@dhruvin.dev>
|
|
# Maintainer: Dhruvin Gandhi <contact@dhruvin.dev>
|
|
pkgname=py3-binaryornot
|
|
_commit=360d7aeefeccf6b5359ac4dab8d7b6411d33ec08
|
|
pkgver=0.4.4
|
|
pkgrel=0
|
|
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"
|
|
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 --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
6496b24882926c9d149d1fa61b7d45ddb7ba713c6b4c512e85f3a993c05ac6ba41106a4b62fbd9bb6250072b2a772dde5baf139add2c132ce86af548c7b095e6 360d7aeefeccf6b5359ac4dab8d7b6411d33ec08.tar.gz
|
|
"
|