Skip to content

Commit

Permalink
dev-python/freezegun: add 1.5.0
Browse files Browse the repository at this point in the history
Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/3521
Signed-off-by: Andreas Billmeier <b@edevau.net>
  • Loading branch information
onkelbeh committed Jun 26, 2024
1 parent 6ff204b commit d562677
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
2 changes: 2 additions & 0 deletions dev-python/freezegun/Manifest
Original file line number Diff line number Diff line change
@@ -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
47 changes: 47 additions & 0 deletions dev-python/freezegun/freezegun-1.5.0.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit d562677

Please sign in to comment.