From 5e8225a2ecfcd42cc63c0e8a748980784cf4ebe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 9 Sep 2025 13:10:59 -0700 Subject: [PATCH] python3Packages.hap-python: 4.9.2 -> 5.0.0 Diff: https://github.com/ikalchev/HAP-python/compare/4.9.2...5.0.0 Changelog: https://github.com/ikalchev/HAP-python/blob/5.0.0/CHANGELOG.md --- .../python-modules/hap-python/default.nix | 35 +++++-------------- 1 file changed, 9 insertions(+), 26 deletions(-) diff --git a/pkgs/development/python-modules/hap-python/default.nix b/pkgs/development/python-modules/hap-python/default.nix index 00e7776fb290..0b2b5e24aa5c 100644 --- a/pkgs/development/python-modules/hap-python/default.nix +++ b/pkgs/development/python-modules/hap-python/default.nix @@ -19,27 +19,27 @@ buildPythonPackage rec { pname = "hap-python"; - version = "4.9.2"; + version = "5.0.0"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "ikalchev"; repo = "HAP-python"; tag = version; - hash = "sha256-mBjVUfNHuGSeLRisqu9ALpTDwpxHir+6X0scq+HrzxA="; + hash = "sha256-+EhxoO5X/ANGh008WE0sJeBsu8SRnuds3hXGxNWpKnk="; }; build-system = [ setuptools ]; dependencies = [ - async-timeout chacha20poly1305-reuseable cryptography h11 orjson zeroconf + ] + ++ lib.optionals (pythonOlder "3.11") [ + async-timeout ]; optional-dependencies.QRCode = [ @@ -54,30 +54,13 @@ buildPythonPackage rec { ] ++ optional-dependencies.QRCode; - disabledTestPaths = [ - # Disable tests requiring network access - "tests/test_accessory_driver.py" - "tests/test_hap_handler.py" - "tests/test_hap_protocol.py" - ]; - - disabledTests = [ - "test_persist_and_load" - "test_we_can_connect" - "test_idle_connection_cleanup" - "test_we_can_start_stop" - "test_push_event" - "test_bridge_run_stop" - "test_migration_to_include_client_properties" - ]; - pythonImportsCheck = [ "pyhap" ]; - meta = with lib; { + meta = { description = "HomeKit Accessory Protocol implementation"; homepage = "https://github.com/ikalchev/HAP-python"; - changelog = "https://github.com/ikalchev/HAP-python/blob/${version}/CHANGELOG.md"; - license = licenses.asl20; - maintainers = with maintainers; [ oro ]; + changelog = "https://github.com/ikalchev/HAP-python/blob/${src.tag}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ oro ]; }; }