summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-11-15 07:38:04 +0100
committerMichał Górny <mgorny@gentoo.org>2025-11-15 07:56:01 +0100
commita271a4dcc700bd2fa592b997d250cd3c7c307885 (patch)
tree79f56154562774f5aa6a7d44b5051f052c07e306
parent5a0c650d65c9c20925d2cfeb2af77f6a1c3bce68 (diff)
downloadgentoo-a271a4dcc700bd2fa592b997d250cd3c7c307885.tar.gz
gentoo-a271a4dcc700bd2fa592b997d250cd3c7c307885.tar.bz2
gentoo-a271a4dcc700bd2fa592b997d250cd3c7c307885.zip
dev-python/fake-py: Bump to 0.11.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/fake-py/Manifest1
-rw-r--r--dev-python/fake-py/fake-py-0.11.9.ebuild61
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-python/fake-py/Manifest b/dev-python/fake-py/Manifest
index 368826cc7a9c..28a0ef2b5790 100644
--- a/dev-python/fake-py/Manifest
+++ b/dev-python/fake-py/Manifest
@@ -1 +1,2 @@
DIST fake.py-0.11.8.gh.tar.gz 117240 BLAKE2B b5900bd9e51ed0f774cd22202100fbe303de9fcc18a67c8f6a6d03817bdd7a03838443ab759146c0b6429a0fc724d311311d26f64b7bb9cfc0e287a3957dabec SHA512 92d4e0f01ed3e08846e12a5deace2da0cf3bd178359ec7a3b39dab3363a600b2552eb946d1baf94f47ab13b91946a61292d38ae69bafd6a3b269f02528a67675
+DIST fake.py-0.11.9.gh.tar.gz 117622 BLAKE2B 8aa64086da9853a0fb63283f6761a050fa92e605a908aadd384d3dfc73bf4b696193586f111b7206d039bfe947413054315bdf476799ac5f2f6a0a8690447726 SHA512 0961813a3356950f952121e3bc24a4747204498ab6de2e53b890056dedad56e118088d607f43891538f38072c3b437d7d6b573e1ba13760b97b0ce516ad668a1
diff --git a/dev-python/fake-py/fake-py-0.11.9.ebuild b/dev-python/fake-py/fake-py-0.11.9.ebuild
new file mode 100644
index 000000000000..12ff5656e8d5
--- /dev/null
+++ b/dev-python/fake-py/fake-py-0.11.9.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_PN=fake.py
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+
+inherit distutils-r1
+
+MY_P=${P/-/.}
+DESCRIPTION="Minimalistic, standalone alternative fake data generator with no dependencies"
+HOMEPAGE="
+ https://github.com/barseghyanartur/fake.py/
+ https://pypi.org/project/fake-py/
+"
+# upstream removed examples (and their tests) from sdist around 0.11.8
+SRC_URI="
+ https://github.com/barseghyanartur/fake.py/archive/${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+"
+
+EPYTEST_PLUGINS=( hypothesis )
+distutils_enable_tests pytest
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # avoid pytest-codeblock which is another nightmare NIH package
+ rm conftest.py || die
+}
+
+python_test() {
+ # This package is a mess with tests thrown all over the place,
+ # and they need to be run separately because of how messy this is.
+
+ local EPYTEST_DESELECT=(
+ # fails when started via 'python -m pytest' because of different
+ # argparse output
+ fake.py::TestCLI::test_no_command
+ )
+
+ epytest -o addopts= fake.py
+
+ local suite
+ for suite in customisation dataclasses hypothesis lazyfuzzy; do
+ pushd "examples/${suite}" >/dev/null || die
+ epytest -o addopts=
+ popd >/dev/null || die
+ done
+}