# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{11..14} ) inherit distutils-r1 git-r3 optfeature DESCRIPTION="An asset packaging library for Django" HOMEPAGE="https://github.com/jazzband/django-pipeline" EGIT_REPO_URI="https://github.com/jazzband/${PN}.git" LICENSE="MIT" SLOT="0" RDEPEND="dev-python/django[${PYTHON_USEDEP}]" BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}] test? ( $(python_gen_impl_dep sqlite) dev-python/jinja2[${PYTHON_USEDEP}] dev-python/jsmin[${PYTHON_USEDEP}] dev-python/ply[${PYTHON_USEDEP}] dev-util/css-html-js-minify[${PYTHON_USEDEP}] )" distutils_enable_tests pytest export DJANGO_SETTINGS_MODULE='tests.settings' python_prepare_all() { # do not install docs and tests sed -i '/exclude/s|tests.tests|tests.*", "docs|' pyproject.toml \ || die "sed failed for pyproject.toml" distutils-r1_python_prepare_all } pkg_postinst() { optfeature "integration with Closure Compiler compressor" dev-lang/closure-compiler-bin optfeature "integration with JSMin compressor" dev-python/jsmin optfeature "integration with css-html-js-minify" dev-util/css-html-js-minify }