diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /dev-util/cookiecutter/cookiecutter-2.0.2-r1.ebuild | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-util/cookiecutter/cookiecutter-2.0.2-r1.ebuild')
-rw-r--r-- | dev-util/cookiecutter/cookiecutter-2.0.2-r1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-util/cookiecutter/cookiecutter-2.0.2-r1.ebuild b/dev-util/cookiecutter/cookiecutter-2.0.2-r1.ebuild new file mode 100644 index 000000000000..099096bf9ad7 --- /dev/null +++ b/dev-util/cookiecutter/cookiecutter-2.0.2-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="Command-line utility to create projects from cookiecutters (project templates)" +HOMEPAGE="https://github.com/cookiecutter/cookiecutter" +SRC_URI="https://github.com/cookiecutter/cookiecutter/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +RDEPEND=" + >=dev-python/binaryornot-0.4.4[${PYTHON_USEDEP}] + >=dev-python/click-7.0[${PYTHON_USEDEP}] + <dev-python/click-9.0.0[${PYTHON_USEDEP}] + >=dev-python/jinja-2.7[${PYTHON_USEDEP}] + <dev-python/jinja-4.0.0[${PYTHON_USEDEP}] + >=dev-python/jinja2-time-0.2.0[${PYTHON_USEDEP}] + >=dev-python/python-slugify-4.0.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.23.0[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/freezegun[${PYTHON_USEDEP}] + dev-vcs/git + ) +" + +DOCS=( README.md HISTORY.md CONTRIBUTING.md ) + +PATCHES=( + "${FILESDIR}/test_cli-1.7.2.patch" + # https://github.com/cookiecutter/cookiecutter/issues/1655 + "${FILESDIR}/${P}-fix-path-in-test.patch" + # https://github.com/cookiecutter/cookiecutter/pull/1643 + "${FILESDIR}/${P}-relax-click-dependency.patch" +) + +distutils_enable_tests pytest +# TODO: Package sphinx-click +# distutils_enable_sphinx docs \ +# dev-python/sphinx_rtd_theme \ +# dev-python/recommonmark + +python_test() { + epytest -o addopts= +} |