summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-07-02 14:24:11 +0200
committerMichał Górny <mgorny@gentoo.org>2020-07-02 14:42:56 +0200
commitb569d5638403b8e045b416760b38263cbfc4ccba (patch)
treed9f0e5ca57d474dacecaf74cbc9f4fd1628fa4be /dev-python
parentdev-python/mongomock: Keyword ~x86 (diff)
downloadgentoo-b569d5638403b8e045b416760b38263cbfc4ccba.tar.gz
gentoo-b569d5638403b8e045b416760b38263cbfc4ccba.tar.bz2
gentoo-b569d5638403b8e045b416760b38263cbfc4ccba.zip
dev-python/mongoengine: Bump to 0.20.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/mongoengine/Manifest1
-rw-r--r--dev-python/mongoengine/mongoengine-0.20.0.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/mongoengine/Manifest b/dev-python/mongoengine/Manifest
index 7690049b285d..0faede28dada 100644
--- a/dev-python/mongoengine/Manifest
+++ b/dev-python/mongoengine/Manifest
@@ -1 +1,2 @@
DIST mongoengine-0.10.6.tar.gz 469469 BLAKE2B 3930126d64e1b43d579412069da33a96e6c525d459905d05f677a406a262a15e16d8f6460637c253ace4addbe07655d194fede19fe050f4628aa17dbb6115038 SHA512 a8d16739892c64ed408afab49c6d33a4b438af83e003844caa101cd51366038ba75121d12b4385a546cf4d946a506bc11f173355f6855e740cef9fddfd6437e7
+DIST mongoengine-0.20.0.tar.gz 311698 BLAKE2B 11bae8d342a77bcc241884beb92d67a6d4f7112d0af3a467196eb94233b003aa27d019ab346140ce7430b4019879c8c86e01f3067677254559243b6d1f0ddc80 SHA512 ef973af9893f6e53811e1a47a131989f5a057af04ab9d512059f968af89fcd23f05d910c7de03330b5f4771db8e11ea2e48060f95ed790f8d238df6c6f7b9306
diff --git a/dev-python/mongoengine/mongoengine-0.20.0.ebuild b/dev-python/mongoengine/mongoengine-0.20.0.ebuild
new file mode 100644
index 000000000000..30844f5c2a35
--- /dev/null
+++ b/dev-python/mongoengine/mongoengine-0.20.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..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
+ # incompatible pillow?
+ sed -e 's:test_image_field_resize:_&:' \
+ -e 's:test_image_field_thumbnail:_&:' \
+ -i tests/fields/test_file_field.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
+}