Merge pull request #108505 from fabaff/aiohomekit

python3Packages.aiohomekit: init at 0.2.60

authored by

Martin Weinelt and committed by
GitHub
62903dfc 9fcf3e5c

+59 -1
+56
pkgs/development/python-modules/aiohomekit/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , cryptography 4 + , fetchFromGitHub 5 + , poetry 6 + , pytest-aiohttp 7 + , pytestCheckHook 8 + , pythonAtLeast 9 + , zeroconf 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "aiohomekit"; 14 + version = "0.2.60"; 15 + format = "pyproject"; 16 + disabled = pythonAtLeast "3.9"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "Jc2k"; 20 + repo = pname; 21 + rev = version; 22 + sha256 = "03llk5i22hq163x568kz0qar5h0sda8f8cxbmgya6z2dcxv0a83p"; 23 + }; 24 + 25 + nativeBuildInputs = [ poetry ]; 26 + 27 + propagatedBuildInputs = [ 28 + cryptography 29 + zeroconf 30 + ]; 31 + 32 + checkInputs = [ 33 + pytest-aiohttp 34 + pytestCheckHook 35 + ]; 36 + 37 + # Some test requires network access 38 + disabledTests = [ 39 + "test_remove_pairing" 40 + "test_pair" 41 + "test_add_and_remove_pairings" 42 + ]; 43 + 44 + pythonImportsCheck = [ "aiohomekit" ]; 45 + 46 + meta = with lib; { 47 + description = "Python module that implements the HomeKit protocol"; 48 + longDescription = '' 49 + This Python library implements the HomeKit protocol for controlling 50 + Homekit accessories. 51 + ''; 52 + homepage = "https://github.com/Jc2k/aiohomekit"; 53 + license = with licenses; [ asl20 ]; 54 + maintainers = with maintainers; [ fab ]; 55 + }; 56 + }
+1 -1
pkgs/servers/home-assistant/component-packages.nix
··· 351 351 "home_connect" = ps: with ps; [ aiohttp-cors ]; # missing inputs: homeconnect 352 352 "homeassistant" = ps: with ps; [ ]; 353 353 "homekit" = ps: with ps; [ HAP-python pyqrcode aiohttp-cors base36 ha-ffmpeg zeroconf ]; # missing inputs: PyTurboJPEG fnvhash 354 - "homekit_controller" = ps: with ps; [ aiohttp-cors zeroconf ]; # missing inputs: aiohomekit 354 + "homekit_controller" = ps: with ps; [ aiohomekit aiohttp-cors zeroconf ]; 355 355 "homematic" = ps: with ps; [ pyhomematic ]; 356 356 "homematicip_cloud" = ps: with ps; [ ]; # missing inputs: homematicip 357 357 "homeworks" = ps: with ps; [ ]; # missing inputs: pyhomeworks
+2
pkgs/top-level/python-packages.nix
··· 218 218 219 219 aioharmony = callPackage ../development/python-modules/aioharmony { }; 220 220 221 + aiohomekit = callPackage ../development/python-modules/aiohomekit { }; 222 + 221 223 aiohttp = callPackage ../development/python-modules/aiohttp { }; 222 224 223 225 aiohttp-cors = callPackage ../development/python-modules/aiohttp-cors { };