summaryrefslogtreecommitdiff
path: root/dev-python/freezegun
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-13 00:01:18 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-13 00:01:18 +0100
commita25cc082a26782e5d39ded4559c91ff11bc3c299 (patch)
tree6cd0802dd248058d540f1f5f472c5df98216f154 /dev-python/freezegun
parentd72a987a342949e200b5e9decbd71f246da53788 (diff)
gentoo auto-resync : 13:05:2024 - 00:01:18
Diffstat (limited to 'dev-python/freezegun')
-rw-r--r--dev-python/freezegun/Manifest2
-rw-r--r--dev-python/freezegun/freezegun-1.5.1.ebuild47
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/freezegun/Manifest b/dev-python/freezegun/Manifest
index c48e713dc2d5..8c5fe5da2e1e 100644
--- a/dev-python/freezegun/Manifest
+++ b/dev-python/freezegun/Manifest
@@ -1,3 +1,5 @@
DIST freezegun-1.5.0.tar.gz 33167 BLAKE2B 3cf05a41c4d66ded61a67385faa07ad80348ad7620db6076f1371d1707b9f6229d85bf2f87ff3533a9529f9d6c30e5f5bcdaf0a499b1e73760070ee5706936b9 SHA512 65d3c95e4992d80c104d52e1164662308aea0884e4a0bb1343f028e514519548dd295dca7dd97d06aaa57a61c0c71fae0bd040f944936858e0f72b2a08860694
+DIST freezegun-1.5.1.tar.gz 33697 BLAKE2B bb08703a7e6f6f4a2145c4dc7b10245af3ced5d1a0a9355df74acd03bfe1687ee22e54ffbbd791204a497b50d4a2c578eb531379dd9e55d274ede72785bb39fa SHA512 384122e31c1db90d4c30cc60ad6d693209c933538e4d507a45c6ff116dcfe2f5f2602116c31aae4576da876ea327d502b01f651414d41b6cb11cc6e98d2aacbc
EBUILD freezegun-1.5.0.ebuild 1261 BLAKE2B eb06dee43e6347a24f4dc2b942ed01d1aa11abb7e5a71e6120eedeecfd79147143695bf31a5e1c1a83794df452c4fb63d5c0e8d3f764f0f6fbcad5a25b3a770a SHA512 ac3ca4788ff0560f289d6eceb86a5671770806371ea0dad8086de3654b09fc3c7148ef4fdc81b06993d5d4cb3d5217fe99a9316017cf83be186fcfd46b5988bb
+EBUILD freezegun-1.5.1.ebuild 1269 BLAKE2B e5517d723332e971aa5c779d737a61111b451e4ef7a5f87d001dc7036b2531646f801d583b2bc3db90076a43c4bf5a22148c8b5d5ed73b327b6839212fff5ee4 SHA512 05c4b85c8f233d7354fd2798f8929ae6ee468440335fe869e46b2ee16e40ca95164feaa821d9453e859221503df8d84f73f29538ca6f83815aa847ea25db8f88
MISC metadata.xml 393 BLAKE2B b2cf7947fff6a03fba00b03503693e0ecb16b4934602ba66225f1d339db131975cea5f503b4b18fac54b38853905d21a1e56b5250674bc6d8cc0fe3e7d37403c SHA512 6bc2d99fc1d7c5c0a259424423f45fdd6bf23ae09c1f42bb5ab777fcefe4b1915cea96b1c767b7e048770b1c5ab9f2b0947fca4438838a4ee20f072f974c0a80
diff --git a/dev-python/freezegun/freezegun-1.5.1.ebuild b/dev-python/freezegun/freezegun-1.5.1.ebuild
new file mode 100644
index 000000000000..63b9ab74ac9a
--- /dev/null
+++ b/dev-python/freezegun/freezegun-1.5.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Let your Python tests travel through time"
+HOMEPAGE="
+ https://github.com/spulec/freezegun/
+ https://pypi.org/project/freezegun/
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+
+RDEPEND="
+ >dev-python/python-dateutil-2.7[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ $(python_gen_impl_dep sqlite)
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=()
+ case ${EPYTHON} in
+ python3.13)
+ EPYTEST_DESELECT+=(
+ # https://github.com/spulec/freezegun/issues/547
+ tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_frozen_time
+ tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_frozen_time_with_func
+ tests/test_datetimes.py::TestUnitTestMethodDecorator::test_method_decorator_works_on_unittest_kwarg_hello
+ )
+ ;;
+ esac
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}