homeassistant 2024.10.1 + script to generate ebuild dependencies :)

This commit is contained in:
Xavier FORESTIER
2024-10-08 09:33:20 +02:00
parent 1d9361f9a4
commit abab66036b
24 changed files with 1376 additions and 143 deletions

View File

@@ -1,5 +1,7 @@
DIST pydantic-1.10.12.gh.tar.gz 766366 BLAKE2B b00885b86ef331f3f8531d1514f4e3e1ef10d009b35453c6d5a6295ecfe2d2b842f66c7ea2a79ca1d235d54fa38b42432e14804163f944c4455f05c06869815a SHA512 413d433decfa3bb7173d6f4e6e06f746cfbf95f6d27c6a17098216ba81d64d7f8bb956cda195d0676559f96278f3800c77be53ecf46496ac009f130120642cc2
DIST pydantic-1.10.15.gh.tar.gz 767909 BLAKE2B 26bc325d91fc8df4ced6f7ac3e083ced00fd5b4255dadf23c95b15ec554c36cdbdf13a457538eb5916837f432c4895d40d1a3af7bb9ac0cc199c14b70951e231 SHA512 58dfb35a832f679c50fc01db3ebabe936d49251c52530c4363a72ecba41dd30bafae8665ae380adf5abe104082b3802fa87ac0351d5c2dde2f44a433b43f8b5c
DIST pydantic-1.10.17.gh.tar.gz 770525 BLAKE2B a169f03073beaec43791881ddb431b17cd26ac9082e7582f74a831ca97eb2f4c813c25d52e55455ab40c9f83c345cf5a0e7143d9a75582ad2054881e3603c1f2 SHA512 306eb6c62eb830ae5c917b72533dd5c783ad26c4cfe999ed7e24bf36db8ad487519b6ce50ee6b8377886eb9a2b14f072993d038b9d1113117147498dd4e0c376
EBUILD pydantic-1.10.12.ebuild 2373 BLAKE2B df1b5e2296bf4b78aefa20ad4c9b2d3c2ddf80724e86ad6604cd0a52b4f17514314132b3edf1d0a1f968f2cc9ab12cb0e762b9f461bc04ca86403a6265e18693 SHA512 57d428c7dc05b2510a085ea2213ffa400be154659411dbb406d0b3f1f81c298a17b27e93ef0d9ee49940732d3af44eb4a1f6c875bdfb980329371b1f6b9c2c17
EBUILD pydantic-1.10.15.ebuild 2373 BLAKE2B df1b5e2296bf4b78aefa20ad4c9b2d3c2ddf80724e86ad6604cd0a52b4f17514314132b3edf1d0a1f968f2cc9ab12cb0e762b9f461bc04ca86403a6265e18693 SHA512 57d428c7dc05b2510a085ea2213ffa400be154659411dbb406d0b3f1f81c298a17b27e93ef0d9ee49940732d3af44eb4a1f6c875bdfb980329371b1f6b9c2c17
EBUILD pydantic-1.10.17.ebuild 2373 BLAKE2B df1b5e2296bf4b78aefa20ad4c9b2d3c2ddf80724e86ad6604cd0a52b4f17514314132b3edf1d0a1f968f2cc9ab12cb0e762b9f461bc04ca86403a6265e18693 SHA512 57d428c7dc05b2510a085ea2213ffa400be154659411dbb406d0b3f1f81c298a17b27e93ef0d9ee49940732d3af44eb4a1f6c875bdfb980329371b1f6b9c2c17
MISC metadata.xml 561 BLAKE2B 9cb2851ece8c8bd005a45008efe6d14d990f82832700f641418c15921f368de9bf2b20f9713362f5308a871a10c60a54ddce4e095a4a60209c89bde964c71ef7 SHA512 2f26f32c0d937153966ffbc3b9bb67252043dabfd9ca96b2ba854b111300a0c8bc89a664e439cda3bcc39597c3a29d28b3aa84172ece0f1d818b49cda746ee33

View File

@@ -0,0 +1,91 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1
MY_P=${P/_beta/b}
DESCRIPTION="Data parsing and validation using Python type hints"
HOMEPAGE="
https://github.com/pydantic/pydantic/
https://pypi.org/project/pydantic/
"
SRC_URI="
https://github.com/pydantic/pydantic/archive/v${PV/_beta/b}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="native-extensions"
RDEPEND="
>=dev-python/typing-extensions-4.1.0[${PYTHON_USEDEP}]
"
BDEPEND="
native-extensions? (
<dev-python/cython-3[${PYTHON_USEDEP}]
)
test? (
>=dev-python/email-validator-1.2.1[${PYTHON_USEDEP}]
dev-python/hypothesis[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
dev-python/python-dotenv[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_prepare() {
sed -i -e '/CFLAGS/d' setup.py || die
distutils-r1_src_prepare
}
python_compile() {
if [[ ${EPYTHON} == pypy3 ]] || ! use native-extensions; then
# do not build extensions on PyPy to workaround
# https://github.com/cython/cython/issues/4763
local -x SKIP_CYTHON=1
fi
distutils-r1_python_compile
}
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
local -x PYTEST_PLUGINS=pytest_mock
local EPYTEST_DESELECT=(
# flaky test, known upstream
tests/test_hypothesis_plugin.py::test_can_construct_models_with_all_fields
# mypy linting causes regressions with new mypy versions
tests/mypy
)
case ${EPYTHON} in
pypy3)
EPYTEST_DESELECT+=(
tests/test_private_attributes.py::test_private_attribute
tests/test_private_attributes.py::test_private_attribute_annotation
tests/test_private_attributes.py::test_private_attribute_factory
tests/test_private_attributes.py::test_private_attribute_multiple_inheritance
tests/test_private_attributes.py::test_underscore_attrs_are_private
)
;;
python3.12)
EPYTEST_DESELECT+=(
tests/test_abc.py::test_model_subclassing_abstract_base_classes_without_implementation_raises_exception
tests/test_generics.py::test_partial_specification_name
tests/test_generics.py::test_parse_generic_json
tests/test_types.py::test_secretfield
)
;;
esac
rm -rf pydantic || die
epytest
}