# 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="This Django app adds a new field type, ConstrainedFileField, that has the capability of checking the document size and type."

HOMEPAGE="https://github.com/mbourqui/django-constrainedfilefield/"
LICENSE="BSD"
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="coverage filetype image"
DEPENDENCIES=">=dev-python/django-1.11[${PYTHON_USEDEP}]
	coverage? ( >=dev-python/pillow-4.0.0[${PYTHON_USEDEP}] )
	coverage? ( >=dev-python/python-magic-0.4.2[${PYTHON_USEDEP}] )
	filetype? ( >=dev-python/python-magic-0.4.2[${PYTHON_USEDEP}] )
	image? ( >=dev-python/pillow-4.0.0[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"