Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 83 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, async-timeout, buildPythonPackage, base36, chacha20poly1305-reuseable, cryptography, fetchFromGitHub, h11, orjson, pyqrcode, pytest-asyncio, pytest-timeout, pytestCheckHook, pythonOlder, setuptools, zeroconf,}:
buildPythonPackage rec { pname = "hap-python"; version = "4.9.2"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "ikalchev"; repo = "HAP-python"; tag = version; hash = "sha256-mBjVUfNHuGSeLRisqu9ALpTDwpxHir+6X0scq+HrzxA="; };
build-system = [ setuptools ];
dependencies = [ async-timeout chacha20poly1305-reuseable cryptography h11 orjson zeroconf ];
optional-dependencies.QRCode = [ base36 pyqrcode ];
nativeCheckInputs = [ pytest-asyncio pytest-timeout pytestCheckHook ] ++ 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; { 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 ]; };}