commit:     d08417952a3aaac5b694190fd4367d5342239a22
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 14 03:40:04 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jan 14 03:53:26 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0841795

dev-python/freezegun: Bump to 0.3.13

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/freezegun/Manifest                |  1 +
 dev-python/freezegun/freezegun-0.3.13.ebuild | 46 ++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/dev-python/freezegun/Manifest b/dev-python/freezegun/Manifest
index 6810f911570..e25a95658bf 100644
--- a/dev-python/freezegun/Manifest
+++ b/dev-python/freezegun/Manifest
@@ -1,3 +1,4 @@
 DIST freezegun-0.3.10.tar.gz 20398 BLAKE2B 
971f4f3de565878b8a1e4671160f41cc7c558f5c848f5c79dfc48e3f3e3cb71ff9c71090705167d4252edbfee040ef52a7eafd33073011c07337311a7e0ec366
 SHA512 
64364459dc72484e2124a20a0a84d2b88617efd0578fba687adb51635d578a1e36a00cb119998082610c608e7b6c3589bff5424e38845bad026e85449c8065a5
 DIST freezegun-0.3.11.tar.gz 23382 BLAKE2B 
759cc0355c8600fc46124dfb73b46a771de5cae4e66f5826c175295da96190920d7ff45b6457a061276c0c698bd448e294f29f3b89a0ed8fe76db58e1180b080
 SHA512 
e8b392176641d52f6ed795c9af5fbc0a62892aeedf32b42375b56ab44a9ad7a5ecd3bb81363ed0ae65204aff2ef894cd7f2e17f42be72f31d3409b2bffa59ab8
 DIST freezegun-0.3.12.tar.gz 24346 BLAKE2B 
09d7c662a82d7b7fa6ae56c09bff0d73e2b63fba2b492620cd8e68ee06a15129a7e901418d1881e65b440babcfe0d014ad3574ab8dd2c7eab8486b3d868273ac
 SHA512 
f7d98ea84735b24380fa53e1e62622fe91be5a35cb75221ca4cb02418add9b0a4add9b2f691242be75acbc45d4745fef82ffe3c89890dcdffa4405940e527af4
+DIST freezegun-0.3.13.tar.gz 25419 BLAKE2B 
8334f921609463bcb18779b61b234bb80406924578ccd43ca1f4a10c65eddf87f399fa7fb285453808988c6f74331345a373cbdcb29f3bd412f3a9e472fce43c
 SHA512 
682f689c475ee574e7a466bfa102b96545cd8b7f095c4b5bdfda496ef667c712248db414d66c9f17fdb1a492c0deeb87a07d8b2a4128d7fdd771f89d5ea8277f

diff --git a/dev-python/freezegun/freezegun-0.3.13.ebuild 
b/dev-python/freezegun/freezegun-0.3.13.ebuild
new file mode 100644
index 00000000000..c069ad36b75
--- /dev/null
+++ b/dev-python/freezegun/freezegun-0.3.13.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Let your Python tests travel through time"
+HOMEPAGE="https://github.com/spulec/freezegun";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+
+RDEPEND="
+       >dev-python/python-dateutil-2.0[${PYTHON_USEDEP}]
+       dev-python/six[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? (
+               $(python_gen_impl_dep sqlite)
+               dev-python/mock[${PYTHON_USEDEP}]
+               dev-python/nose[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+       sed -r \
+               -e 's:(python-dateutil)>=2.0:\1:' \
+               -e "s:'(python-dateutil)>=[0-9.]+,.+':'\1':" \
+               -i setup.py
+
+       distutils-r1_python_prepare_all
+}
+
+python_prepare() {
+       # optional and only works with python3
+       if ! python_is_python3; then
+               rm freezegun/_async*.py || die
+       fi
+}

Reply via email to