diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-08-14 16:33:33 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-08-14 16:55:15 +0200 |
commit | 616d3cbcd8cabb71c7814d275bf46f113edcd056 (patch) | |
tree | 2f33566718837875c06a02c2ab1e90df51fd4fdd /dev-python/peewee | |
parent | app-misc/fastfetch: dev branch embedded yyjson (diff) | |
download | gentoo-616d3cbcd8cabb71c7814d275bf46f113edcd056.tar.gz gentoo-616d3cbcd8cabb71c7814d275bf46f113edcd056.tar.bz2 gentoo-616d3cbcd8cabb71c7814d275bf46f113edcd056.zip |
dev-python/peewee: Bump to 3.16.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/peewee')
-rw-r--r-- | dev-python/peewee/Manifest | 1 | ||||
-rw-r--r-- | dev-python/peewee/peewee-3.16.3.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/peewee/Manifest b/dev-python/peewee/Manifest index ab7e14ce8e98..c71a992f9a73 100644 --- a/dev-python/peewee/Manifest +++ b/dev-python/peewee/Manifest @@ -1 +1,2 @@ DIST peewee-3.16.2.gh.tar.gz 912162 BLAKE2B d865a63fb0eeff064b6655029741291ebd002ffa428fe98f87b319874713064eed9500fb45e3710b7e1223ea2537408d51dc4a6f40b525467f074f225c05bf20 SHA512 7e507d9f2ace45c5ec482d657e7722812fae10eea9a23b12caf2611d3739bc6dc70800f21d606d5e854e3209dd6d2ff73b93f004515f6549c3bbc423bce650d8 +DIST peewee-3.16.3.gh.tar.gz 913271 BLAKE2B c243eaa0baa1289030f294141a0fa469682272b87aa9cf89cc2ff628c0f35e6824ee6215c11c12dbc992f210afbd2c9e5efebbc9efa402d92cc2de77dd574e5f SHA512 e940c0fc78c736477b2550379912587f2129bf6c11252a04188a70d260410539ef90879dcf4145466c3276130b33c85b53db80afb5503b7b76693155d5f8abbe diff --git a/dev-python/peewee/peewee-3.16.3.ebuild b/dev-python/peewee/peewee-3.16.3.ebuild new file mode 100644 index 000000000000..dbc4bc1f61bb --- /dev/null +++ b/dev-python/peewee/peewee-3.16.3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 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_{10..11} ) +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 ~riscv ~x86" +IUSE="examples +native-extensions test" +RESTRICT="!test? ( test )" + +DEPEND=" + native-extensions? ( dev-db/sqlite:3= ) +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +distutils_enable_sphinx docs + +src_compile() { + if ! use native-extensions; then + local -x NO_SQLITE=1 + fi + + distutils-r1_src_compile +} + +python_test() { + "${EPYTHON}" runtests.py -v 2 || die "tests failed under ${EPYTHON}" +} + +python_install_all() { + use examples && DOCS=( examples/ ) + distutils-r1_python_install_all +} |