# automatically generated by g-sorcery
# please do not edit this file

EAPI=8

REALNAME="${PN}"
LITERALNAME="${PN}"
REALVERSION="${PV}"
DIGEST_SOURCES="yes"
PYTHON_COMPAT=( python{3_11,3_12,3_13,3_14} )
DISTUTILS_USE_PEP517=standalone

inherit python-r1 gs-pypi

DESCRIPTION="An Open Source Machine Learning Library for Training Binarized Neural Networks"

HOMEPAGE="https://larq.dev/"
LICENSE="Apache-2.0"
SRC_URI="https://files.pythonhosted.org/packages/source/${REALNAME::1}/${REALNAME}/${REALNAME}-${REALVERSION}.tar.gz"
SOURCEFILE="${REALNAME}-${REALVERSION}.tar.gz"
RESTRICT="test"

SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="lint tensorflow tensorflow_gpu test"
DEPENDENCIES="<dev-python/numpy-2.0[${PYTHON_USEDEP}]
	dev-python/terminaltables[${PYTHON_USEDEP}]
	>=dev-python/packaging-19.2[${PYTHON_USEDEP}]
	lint? ( ~dev-python/black-23.7.0[${PYTHON_USEDEP}] )
	lint? ( ~dev-python/flake8-6.0[${PYTHON_USEDEP}] )
	lint? ( ~dev-python/isort-5.11[${PYTHON_USEDEP}] )
	lint? ( dev-python/pytype[${PYTHON_USEDEP}] )
	tensorflow? ( dev-python/tensorflow[${PYTHON_USEDEP}] )
	tensorflow_gpu? ( dev-python/tensorflow-gpu[${PYTHON_USEDEP}] )
	test? ( ~dev-python/pytest-7.4[${PYTHON_USEDEP}] )
	test? ( <dev-python/pytest-cov-4.2[${PYTHON_USEDEP}] )
	test? ( ~dev-python/pytest-xdist-3.2[${PYTHON_USEDEP}] )
	test? ( ~dev-python/pytest-mock-3.11[${PYTHON_USEDEP}] )
	test? ( ~dev-python/snapshottest-0.6[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"