commit:     26c9dec1438e56aa633b0ca019625371662ba845
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 22 06:40:16 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 22 06:58:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26c9dec1

dev-python/fake-py: Bump to 0.11.12

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/fake-py/Manifest               |  1 +
 dev-python/fake-py/fake-py-0.11.12.ebuild | 61 +++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/dev-python/fake-py/Manifest b/dev-python/fake-py/Manifest
index 0a06efbb207f..d80779b7c7ce 100644
--- a/dev-python/fake-py/Manifest
+++ b/dev-python/fake-py/Manifest
@@ -1 +1,2 @@
 DIST fake.py-0.11.10.gh.tar.gz 118399 BLAKE2B 
7bd1d12152c0be9f4e4e7887e3b3ffb372207d464a773acc8bd28035899ff72f6aa82c625fbfd97d4f27c92014db04795efe958d23a431ff7b6ad9ea923023ea
 SHA512 
def8f9dfe89f038c6ff11fc6d40e18c20c5ffa36e3c6a5a3c6f90c08ffd8018b343e455a9763594d3aeb92152c9ac608ed941a75137cb1fc1d1157b2adbbf061
+DIST fake.py-0.11.12.gh.tar.gz 118743 BLAKE2B 
fdc764a1d5b87fa84f2a5908f20c3ac1935654aa7afb1e9955ebb60dd8dc087dffa1b2b1349c7725a4e41be75c9d8ee54675b9b44de4839516298999099c35d5
 SHA512 
667feb1d24e1bd27291e52ff80a345ceb097f417df475c101abb513411457db13dad22aed1ccf745e6d8823d2475037ab52a75e49ad5ffe06aaa00a214a43ac8

diff --git a/dev-python/fake-py/fake-py-0.11.12.ebuild 
b/dev-python/fake-py/fake-py-0.11.12.ebuild
new file mode 100644
index 000000000000..12ff5656e8d5
--- /dev/null
+++ b/dev-python/fake-py/fake-py-0.11.12.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
+}

Reply via email to