diff --git a/dev-python/faker/Manifest b/dev-python/faker/Manifest index b9e0bd2fc0..c3f1157993 100644 --- a/dev-python/faker/Manifest +++ b/dev-python/faker/Manifest @@ -1 +1,2 @@ DIST faker-4.0.3.tar.gz 996987 BLAKE2B cc8fa1ae039d1a753efde2a43404681fe53124fb2a92724a81384cd10dd8008833c6c4468012f3cfaef83ca6e6a50813ef00036b180df2f1752a79064507c770 SHA512 08d7a4fc3a65f4f31467e0aa91525ce92042ef7e471992a63c3fef2efa14ab894bda1f0fa1e6b651f78ceadee7c3683079001db904147739628457a44adef615 +DIST faker-4.1.0.tar.gz 1005246 BLAKE2B 07a4d93875ed67f6e8e34fec7d4015eddc47cdb80e4e5b60f33e5ab93105f14b95f1ff9073debd530e04d71c4c5d22e1db805753151842a6b896095376eb1304 SHA512 da8e6df52c53788af323d92a0feaafcc215bd00ae5a95bb2d829852bbf04f89f9216c7e226b3b89966c053dd891db33acf2e2ee2ac5a981745976325c0cf2d2e diff --git a/dev-python/faker/faker-4.1.0.ebuild b/dev-python/faker/faker-4.1.0.ebuild new file mode 100644 index 0000000000..2fb03ec39d --- /dev/null +++ b/dev-python/faker/faker-4.1.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Python package that generates fake data" +HOMEPAGE=" + https://github.com/joke2k/faker + https://pypi.org/project/Faker +" +SRC_URI="https://github.com/joke2k/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" +RDEPEND=" + >=dev-python/python-dateutil-2.4[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/text-unidecode-1.3[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + >=dev-python/sphinx-2.4[${PYTHON_USEDEP}] + =dev-python/pytest-5.4.0[${PYTHON_USEDEP}] + =dev-python/ukpostcodeparser-1.1.1[${PYTHON_USEDEP}] + >=dev-python/validators-0.13.0[${PYTHON_USEDEP}] + ) +" +#BDEPEND=" +# doc? ( dev-python/faker ) +#" + +src_prepare() { + export READTHEDOCS=True || die + default +} + +python_test() { + distutils_install_for_testing + pytest -vv || die "Testsuite failed under ${EPYTHON}" +} + +#TODO: make docs working +#FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/portage/dev-python/faker-4.1.0/work/docs/providers.rst' +#distutils_enable_sphinx docs --no-autodoc diff --git a/dev-python/faker/metadata.xml b/dev-python/faker/metadata.xml index 81bcab6d02..df805486f0 100644 --- a/dev-python/faker/metadata.xml +++ b/dev-python/faker/metadata.xml @@ -12,6 +12,23 @@ or anonymize data taken from a production service, Faker is for you. + + + Daniele Faraglia + + + joke2k@gmail.com + + + + https://faker.readthedocs.io/en/stable + + + https://github.com/joke2k/faker/issues + + + https://raw.githubusercontent.com/joke2k/faker/master/CHANGELOG.rst + joke2k/faker Faker