diff --git a/dev-python/factory_boy/Manifest b/dev-python/factory_boy/Manifest index 09900557e5..4d792cb42e 100644 --- a/dev-python/factory_boy/Manifest +++ b/dev-python/factory_boy/Manifest @@ -1 +1,2 @@ DIST factory_boy-3.2.0.tar.gz 141428 BLAKE2B e8f25b84f31c27af5450af3dadae2ca7af41a8e0a0c71e6a88227404ac1082418059fae43cab57878e6373e3ee981d188098f01ff1001abed34e51e7826b5be5 SHA512 1e9736491229aa1648cfe9956c157738f5b9ecfd43e39a2f1d299e3c018763518f04b9bde7b19c1c7dbef48e5a93db818f1010068be541b02453313f71bc37c0 +DIST factory_boy-3.2.1.tar.gz 141947 BLAKE2B f7668e945c653276fdf8c28aca728e4dd0aa24e980868a22e116cdb6395170f37f60d9b021c915586681b93d84a50f254b6d4a0b8f75e15991fac91aa4b17e0c SHA512 45f88970fa2adf15160d489335d7843ebf78178ae619e6b1ad2cc2e3af8e6c14763cf1afe21bc4e66d1d7196458d8045862db4d5878d5cfc1f2aa658ccba1812 diff --git a/dev-python/factory_boy/factory_boy-3.2.1.ebuild b/dev-python/factory_boy/factory_boy-3.2.1.ebuild new file mode 100644 index 0000000000..a4a2b93900 --- /dev/null +++ b/dev-python/factory_boy/factory_boy-3.2.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9} ) + +inherit distutils-r1 + +DESCRIPTION="A fixtures replacement tool" +HOMEPAGE="https://github.com/FactoryBoy/factory_boy" +SRC_URI="https://github.com/FactoryBoy/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=dev-python/Faker-0.7.0[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + $(python_gen_impl_dep sqlite) + dev-python/django[${PYTHON_USEDEP}] + dev-python/mongoengine[${PYTHON_USEDEP}] + dev-python/pillow[jpeg,${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + ) + doc? ( + dev-python/factory_boy[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + # Fix symbolic link QA + rm ChangeLog || die "remove failed" + cp docs/changelog.rst ChangeLog || die "copy failed" + + # Disable online tests + sed -i \ + -e 's|tearDownClass|_&|' \ + -e 's|test_creation|_&|' \ + tests/test_mongoengine.py || die + + distutils-r1_python_prepare_all +} + +distutils_enable_tests --install unittest +distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/sphinxcontrib-spelling