diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-19 11:57:35 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-19 11:57:35 +0100 |
commit | 6031cee8b35a5f0d7a1fee157d2cefcc05649608 (patch) | |
tree | 5c0c42caeec5e4a3c894667d689aad19aaf7ba1f /dev-python/peewee/peewee-3.16.1.ebuild | |
parent | 59f8187afe529efeffdc2f967c451b159da44d5c (diff) |
gentoo auto-resync : 19:04:2023 - 11:57:35
Diffstat (limited to 'dev-python/peewee/peewee-3.16.1.ebuild')
-rw-r--r-- | dev-python/peewee/peewee-3.16.1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/peewee/peewee-3.16.1.ebuild b/dev-python/peewee/peewee-3.16.1.ebuild new file mode 100644 index 000000000000..5ad5f5f37042 --- /dev/null +++ b/dev-python/peewee/peewee-3.16.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..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/${PN}/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 +} |