blob: 2077ca64db23bc265de9f6c501f02d360957745e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYPI_VERIFY_REPO=https://github.com/binaryornot/binaryornot
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
inherit distutils-r1 pypi
DESCRIPTION="Ultra-lightweight pure Python package to guess whether a file is binary or text"
HOMEPAGE="
https://github.com/binaryornot/binaryornot/
https://pypi.org/project/binaryornot/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="
test? (
dev-python/hypothesis[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# missing data files
# https://github.com/binaryornot/binaryornot/issues/641
tests/test_check.py::TestIsBinary::test_ds_store
tests/test_check.py::TestProgrammingArtifacts::test_binary_empty_pyc
tests/test_check.py::TestProgrammingArtifacts::test_binary_pyc
tests/test_check.py::TestProgrammingArtifacts::test_binary_troublesome_pyc
)
|