diff options
Diffstat (limited to 'dev-python/peewee')
-rw-r--r-- | dev-python/peewee/Manifest | 4 | ||||
-rw-r--r-- | dev-python/peewee/metadata.xml | 6 | ||||
-rw-r--r-- | dev-python/peewee/peewee-3.16.1.ebuild | 55 |
3 files changed, 64 insertions, 1 deletions
diff --git a/dev-python/peewee/Manifest b/dev-python/peewee/Manifest index 9d26904bde47..9f7754879cb2 100644 --- a/dev-python/peewee/Manifest +++ b/dev-python/peewee/Manifest @@ -1,3 +1,5 @@ DIST peewee-3.16.0.gh.tar.gz 1085430 BLAKE2B 3acfbbc9d8cce7e4bd1c0027905f4ca44431f376a243adffbfadd4d3f15b4e729c4736076e8ec72c40261ca269c66d811afb6c25b9d075d5913a13869da4f4dd SHA512 f77a040831bd3189135196ede9748c92af9db21127839dfacd7712586273bdd22c688ca22bfa373805fa1b64f770b7cea850cba53e73f324f25ced1305830409 +DIST peewee-3.16.1.gh.tar.gz 911668 BLAKE2B 6336d2edbf85b54dd98b3a67fc9507c626eee1d85293b12cf60d3a733d243d70a7df0583cd6024cb0550f8f31229702404692b0bf588e3c46e104ad64a095f37 SHA512 e89f1a2f25c2675403a560d3fa8eade833f9ef8b2fecfef00769a9633e99cb40feff7c4e1d2e9b001d4e6f50a8dae4594ffe22adfbe64a93035c47f673d5557c EBUILD peewee-3.16.0-r1.ebuild 842 BLAKE2B a41b4404d296d80db3493196fca07b26649be969c3a4433d0cd6317d74e5d549bf88b8b7bd64a5a9f21a8c68eb133f5848e3005f0034f3731d59f1d023810735 SHA512 271075fa89d8f5f8f0f2a644917fc70329773bb3f8d6e8fec7401689ecc831b65e9d825debe1d6cf1085ef4f2f46de99066b9b60e727637feeed4da4e997a0fb -MISC metadata.xml 365 BLAKE2B 144b870f5470e3de971f47316313980f95a3453c684fb7c326da025bef8a4e29dc0731808eefdecbb059a49ad77dd4166b3595554ac42d0578bda75c17fc06bf SHA512 9445bc6cf059e5c95c1e9ce5eebad887a43133ea0fad3fb7b70f60395e79bf30a42d893aa65d4c328e7c304b24a86fbdf3939b9ecccad318db01e95c3b4521f3 +EBUILD peewee-3.16.1.ebuild 996 BLAKE2B 45fa48858be3a4f0678bf17e6fa4c081d59cea01d3c47c8627fe670a83026aafd11ff7b518dbc986a872697cbef75f33febe815b2c78561a5152dcb4d7ceb000 SHA512 2b5bbda87c65adb10542810be4a2becb72e1acb8d8037ad6468b34c93f3ed38c43ea59203d1fee38857ffaff6038b31fb497db4e48994b7c2722f71a3bb213df +MISC metadata.xml 493 BLAKE2B 60dbc97d8a2acf239b6ae84ae48153ec7985399ef588de5fd3d5e06db137353ba8440eeb811fe90edb66aef70550c514c23f53cf8ee2c5e8146504dae71cef19 SHA512 28227e81ad41534f8dc80dc478cb72e116aa3d5259bb91dd20121fcadd803a04715a986e21d4302a0c8129a4fcafbd71645636b0e5b3384a661f3ee93d41fde2 diff --git a/dev-python/peewee/metadata.xml b/dev-python/peewee/metadata.xml index 69c882d79303..f2395542a773 100644 --- a/dev-python/peewee/metadata.xml +++ b/dev-python/peewee/metadata.xml @@ -9,4 +9,10 @@ <remote-id type="github">coleifer/peewee</remote-id> <remote-id type="pypi">peewee</remote-id> </upstream> + <use> + <flag name="native-extensions"> + Compiles native C extension for more complete SQLite3 + support. + </flag> + </use> </pkgmetadata> 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 +} |