From d562677482c867a62b580007f11c116bac3049cb Mon Sep 17 00:00:00 2001 From: Andreas Billmeier Date: Wed, 26 Jun 2024 16:31:25 +0200 Subject: [PATCH] dev-python/freezegun: add 1.5.0 Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/3521 Signed-off-by: Andreas Billmeier --- README.md | 4 +- dev-python/freezegun/Manifest | 2 + dev-python/freezegun/freezegun-1.5.0.ebuild | 47 +++++++++++++++++++++ 3 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 dev-python/freezegun/freezegun-1.5.0.ebuild diff --git a/README.md b/README.md index f5394577a3..ab47100b16 100644 --- a/README.md +++ b/README.md @@ -606,12 +606,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E ## Licenses This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted. -There are 1946 Ebuilds in total, 1935 of them have in total 1958 (42 different) licenses assigned. +There are 1947 Ebuilds in total, 1936 of them have in total 1959 (42 different) licenses assigned. |License| Ebuilds using it| |-------|-----| |MIT|1121| -|Apache-2.0|434| +|Apache-2.0|435| |GPL-3|114| |BSD|111| |LGPL-3|25| diff --git a/dev-python/freezegun/Manifest b/dev-python/freezegun/Manifest index cb7e0d7d6a..548285249a 100644 --- a/dev-python/freezegun/Manifest +++ b/dev-python/freezegun/Manifest @@ -1,3 +1,5 @@ DIST freezegun-1.4.0.tar.gz 31748 BLAKE2B a7ea433ea8e5f0137fc5d88a5375e3fc0e2f307a04684ab5b844168ed214fd9dd1d1ed2a0e0c91ed20ee1fc32c8e3e75fb9dc73de64723efe881e843a38269a1 SHA512 bbdad19b7fc2da9a2851d6b4c14427ccda1f2e06617993cf7173ded65cced9b98d36e1da05a2718b70653a69986cd81d84317003271eda2075177ccf63495b7a +DIST freezegun-1.5.0.tar.gz 33167 BLAKE2B 3cf05a41c4d66ded61a67385faa07ad80348ad7620db6076f1371d1707b9f6229d85bf2f87ff3533a9529f9d6c30e5f5bcdaf0a499b1e73760070ee5706936b9 SHA512 65d3c95e4992d80c104d52e1164662308aea0884e4a0bb1343f028e514519548dd295dca7dd97d06aaa57a61c0c71fae0bd040f944936858e0f72b2a08860694 EBUILD freezegun-1.4.0.ebuild 636 BLAKE2B 1391700966d94a8f8bc65f236bef32aa86258fe06712c8878183a93a897bca4fb1503d7366e925a1746e3c39a4be88d9b171ff3025c76a8244b45a1960da9554 SHA512 75a57f33c0cfbdd6d324b031190001c70f8e836ca2b16bbfd3f5c30d8e2158eec5954dea924c3d2a7007273e209416b2bbfa22e445895b35d84019617aa56709 +EBUILD freezegun-1.5.0.ebuild 1143 BLAKE2B e1ed39f8592699e7d31f41bbe6e3b2f3c98e9f52a8976bbd536a6bed5c364761755b9f04dfa7c07df4d44a6ba0b30211a4cb36758a9d9085251b109a100f2de7 SHA512 d444ec6ccb9f841c9f291cf1eccf38f7e72b26e618fddd57515a23549bcc997892b2eb776097ae5d3ff3b6c9c318b25e8150f713680fd84b9cba05b2d4a39208 MISC metadata.xml 507 BLAKE2B e30cf172447077c12f3e7ea9cc7f3ebd24a0ebaf9c7c1a3eed8959e2ec38c01df641a14dbdc6cfc6c6189a88982274e03c6fb68829b61ce95e6b1663cc850bd1 SHA512 1da2e65ed01c4ff3540b31433d8c1e94c34f7e0597e9d1bfe373e720b1bd15256af25ea9d51bfaad3aab9cbe01177161cdf263c92fde8db880189ff3f89e89db diff --git a/dev-python/freezegun/freezegun-1.5.0.ebuild b/dev-python/freezegun/freezegun-1.5.0.ebuild new file mode 100644 index 0000000000..f2f247261d --- /dev/null +++ b/dev-python/freezegun/freezegun-1.5.0.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_{11..13} ) + +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="amd64 arm arm64 x86" + +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 +}