summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-03-05 10:55:06 +0100
committerMichał Górny <mgorny@gentoo.org>2021-03-05 11:13:54 +0100
commitf50ccc89ab3fc02dcd249baaf52831c5013e61b4 (patch)
treed5e8738eb5894ef74cd89122cab53903d1881add /dev-python/mongoengine
parentdev-python/requests-kerberos: Add missing cryptography dep (diff)
downloadgentoo-f50ccc89ab3fc02dcd249baaf52831c5013e61b4.tar.gz
gentoo-f50ccc89ab3fc02dcd249baaf52831c5013e61b4.tar.bz2
gentoo-f50ccc89ab3fc02dcd249baaf52831c5013e61b4.zip
dev-python/mongoengine: Bump to 0.23.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/mongoengine')
-rw-r--r--dev-python/mongoengine/Manifest1
-rw-r--r--dev-python/mongoengine/mongoengine-0.23.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/mongoengine/Manifest b/dev-python/mongoengine/Manifest
index ff388eab35c..59bd0b834f3 100644
--- a/dev-python/mongoengine/Manifest
+++ b/dev-python/mongoengine/Manifest
@@ -1 +1,2 @@
DIST mongoengine-0.22.1.tar.gz 321227 BLAKE2B 933850eb85623a33b1f8e124b6c8375a9e0448c39f5cf44a3aa5b281746933043873d6ac32997121b15c611b9c1a50a1194fa8f364bae3009339d50f5ca98bb8 SHA512 a5188e854aede8feddc01c2d7cbaedd0af4faf5ac03d28f8df9d6dd2f7ae58d9de81eb9d4f3bb02daafb85b7fdf8d54ba38994af07bb338af2b27940cc3413ed
+DIST mongoengine-0.23.0.tar.gz 322731 BLAKE2B 5aa01b59193fa118d9b9c2110d6ec401090bff768b5b2e5d9c5fea4bcb5ae6714c62d4ff664c3ab24c600d912f90287a8ac77313bc8c50e13c6d191baef69e49 SHA512 9dbc45ebf3d367a829947f404a3979236be7ef0fc39611046e2815b6ab83bdb2ada3db8b6d1f4bec6301677f5b727cc2570bb732050e2ff865da49a5ba63d0aa
diff --git a/dev-python/mongoengine/mongoengine-0.23.0.ebuild b/dev-python/mongoengine/mongoengine-0.23.0.ebuild
new file mode 100644
index 00000000000..13ab5c94bc5
--- /dev/null
+++ b/dev-python/mongoengine/mongoengine-0.23.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+inherit distutils-r1
+
+DESCRIPTION="A Python Object-Document-Mapper for working with MongoDB"
+HOMEPAGE="https://github.com/MongoEngine/mongoengine/"
+SRC_URI="https://github.com/MongoEngine/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+# TODO: make it run a local database server
+#RESTRICT="test"
+
+RDEPEND="dev-python/blinker[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/pymongo[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? ( dev-python/mongomock[${PYTHON_USEDEP}] )"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # TODO: investigate
+ sed -e 's:test_covered_index:_&:' \
+ -i tests/document/test_indexes.py || die
+ # no $eval
+ sed -e 's:test_exec_js_field_sub:_&:' \
+ -e 's:test_exec_js_query:_&:' \
+ -e 's:test_item_frequencies_normalize:_&:' \
+ -e 's:test_item_frequencies_with_0_values:_&:' \
+ -e 's:test_item_frequencies_with_False_values:_&:' \
+ -e 's:test_item_frequencies_with_null_embedded:_&:' \
+ -i tests/queryset/test_queryset.py || die
+ # TODO: investigate (wrong order? bad comparison?)
+ sed -e 's:test_distinct_ListField_EmbeddedDocumentField:_&:' \
+ -i tests/queryset/test_queryset.py || die
+
+ distutils-r1_src_prepare
+}