commit: 4014f05efda2b4c410642e96d4404f5e813a646c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 16 04:02:53 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Mar 16 04:02:53 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4014f05e
dev-python/peewee: Bump to 4.0.2
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/peewee/Manifest | 1 +
dev-python/peewee/peewee-4.0.2.ebuild | 83 +++++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
diff --git a/dev-python/peewee/Manifest b/dev-python/peewee/Manifest
index dce88d0e913d..446dac1b2800 100644
--- a/dev-python/peewee/Manifest
+++ b/dev-python/peewee/Manifest
@@ -1,3 +1,4 @@
DIST peewee-3.19.0.gh.tar.gz 931867 BLAKE2B
94456fee11b8e1dc52e30b7d21fe42fecfaacf02e604b3199dc01b42d0fc29ca6027236cc08e584f180cf0b620891e886c00e1afce21548e23c99461c7f41fd0
SHA512
2924cbb8009f7523bf78aab2f7cc17ce5abfb5f45fbc25ce074e597934e2bd269e1806672b95c570fb199169fefc8e23551254934d964deb69596b8f3c27e6d3
DIST peewee-4.0.0.gh.tar.gz 902288 BLAKE2B
84da3be85bd3514c817fc4ace518729af47e470eb6ef1d025ab972e2b34e88ea6ce276236f3ec921cce101b5dcbcf7c400aa8cd5504fe2d859ede671ce460f0b
SHA512
73921d0363447f99739370b73392f52234ffb5e487faa08fe9f2322c8387456c4d5fa03613c79432b3310a5a95a8b02f5a26786d74ca5470c2089fd798edd87b
DIST peewee-4.0.1.gh.tar.gz 919747 BLAKE2B
4218f58e536ba84c89cee8fed5234a38687af41b871794e2f355420699382e9f27d8dba72219808eef06e15380af261335662673d79b2617a3186c4e61e94807
SHA512
d86b33f7e2570076dda9e23868ba2558567d673e32a9e405210786390283a5fc40cc904ee11e1a2cb93980b2ececa3a3fe94143480f270acac896ec72c541ff8
+DIST peewee-4.0.2.gh.tar.gz 926522 BLAKE2B
806cf98c98dbdcc1aa4e6288546bd573214d16bc1fe4fa3fdc7fe191c0f672f0e9887e3c17645e5f1deed1a22e443dac91949be6dab2a315f1e8a3561829a5cc
SHA512
7c524108af91565301e38bc17806d8158a7d26db23142e407fdcc2f75dea7abce6585820164c99f9472559aa776c8477dbb8620e55f0dcd25facae767b94acb1
diff --git a/dev-python/peewee/peewee-4.0.2.ebuild
b/dev-python/peewee/peewee-4.0.2.ebuild
new file mode 100644
index 000000000000..7c462b135889
--- /dev/null
+++ b/dev-python/peewee/peewee-4.0.2.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..14} )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+DESCRIPTION="Small Python ORM"
+HOMEPAGE="
+ https://github.com/coleifer/peewee/
+ https://pypi.org/project/peewee/
+"
+SRC_URI="
+ https://github.com/coleifer/peewee/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+IUSE="examples +native-extensions test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ native-extensions? ( dev-db/sqlite:3= )
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ native-extensions? (
+ dev-python/cython[${PYTHON_USEDEP}]
+ )
+ test? (
+ dev-db/postgresql
+ dev-python/psycopg:0[${PYTHON_USEDEP}]
+ sys-libs/timezone-data
+ )
+"
+
+distutils_enable_sphinx docs \
+ dev-python/sphinx-rtd-theme
+
+src_prepare() {
+ default
+
+ # disable test failing on postgres 16
+ sed -e 's/test_timeout/_&/' -i tests/sqliteq.py || die
+}
+
+src_compile() {
+ if ! use native-extensions; then
+ local -x NO_SQLITE=1
+ fi
+
+ distutils-r1_src_compile
+}
+
+src_test() {
+ initdb -D "${T}"/pgsql || die
+ pg_ctl -w -D "${T}"/pgsql start -o "-h '' -k '${T}'" || die
+ createdb -h "${T}" peewee_test || die
+ psql -h "${T}" peewee_test -c 'create extension hstore;' || die
+
+ local -x PEEWEE_PSQL_HOST="${T}"
+ distutils-r1_src_test
+
+ pg_ctl -w -D "${T}"/pgsql stop || die
+}
+
+python_test() {
+ "${EPYTHON}" runtests.py -v 2 || die "tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use examples && DOCS=( examples/ )
+ distutils-r1_python_install_all
+}