python313Packages.xknx: modernize

This commit is contained in:
Fabian Affolter
2025-10-10 20:50:12 +02:00
parent 5e8ba03c17
commit 8b704fa159
@@ -1,14 +1,12 @@
{
lib,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
cryptography,
ifaddr,
freezegun,
pytest-asyncio_0,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
@@ -17,8 +15,6 @@ buildPythonPackage rec {
version = "3.9.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "XKNX";
repo = "xknx";
@@ -31,12 +27,11 @@ buildPythonPackage rec {
dependencies = [
cryptography
ifaddr
]
++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
];
nativeCheckInputs = [
freezegun
pytest-asyncio_0
pytest-asyncio
pytestCheckHook
];
@@ -49,15 +44,6 @@ buildPythonPackage rec {
"test_start_secure_routing_explicit_keyring"
"test_start_secure_routing_knx_keys"
"test_start_secure_routing_manual"
# RuntimeError: Event loop is closed
"test_has_group_address_localtime"
"test_invalid_authentication"
"test_invalid_frames"
"test_no_authentication"
"test_process_read_localtime"
"test_sync_date"
"test_sync_datetime"
"test_sync_time_local"
];
meta = with lib; {
@@ -67,7 +53,7 @@ buildPythonPackage rec {
packets. It provides support for KNX/IP routing and tunneling devices.
'';
homepage = "https://github.com/XKNX/xknx";
changelog = "https://github.com/XKNX/xknx/releases/tag/${version}";
changelog = "https://github.com/XKNX/xknx/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
platforms = platforms.linux;