Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9fcf3e5c253e
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 62903dfc8681
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Jan 16, 2021

  1. Copy the full SHA
    08bda74 View commit details
  2. Copy the full SHA
    9ee8c0f View commit details

Commits on Jan 17, 2021

  1. Merge pull request #108505 from fabaff/aiohomekit

    python3Packages.aiohomekit: init at 0.2.60
    mweinelt authored Jan 17, 2021
    Copy the full SHA
    62903df View commit details
Showing with 59 additions and 1 deletion.
  1. +56 −0 pkgs/development/python-modules/aiohomekit/default.nix
  2. +1 −1 pkgs/servers/home-assistant/component-packages.nix
  3. +2 −0 pkgs/top-level/python-packages.nix
56 changes: 56 additions & 0 deletions pkgs/development/python-modules/aiohomekit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, poetry
, pytest-aiohttp
, pytestCheckHook
, pythonAtLeast
, zeroconf
}:

buildPythonPackage rec {
pname = "aiohomekit";
version = "0.2.60";
format = "pyproject";
disabled = pythonAtLeast "3.9";

src = fetchFromGitHub {
owner = "Jc2k";
repo = pname;
rev = version;
sha256 = "03llk5i22hq163x568kz0qar5h0sda8f8cxbmgya6z2dcxv0a83p";
};

nativeBuildInputs = [ poetry ];

propagatedBuildInputs = [
cryptography
zeroconf
];

checkInputs = [
pytest-aiohttp
pytestCheckHook
];

# Some test requires network access
disabledTests = [
"test_remove_pairing"
"test_pair"
"test_add_and_remove_pairings"
];

pythonImportsCheck = [ "aiohomekit" ];

meta = with lib; {
description = "Python module that implements the HomeKit protocol";
longDescription = ''
This Python library implements the HomeKit protocol for controlling
Homekit accessories.
'';
homepage = "https://github.com/Jc2k/aiohomekit";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
@@ -351,7 +351,7 @@
"home_connect" = ps: with ps; [ aiohttp-cors ]; # missing inputs: homeconnect
"homeassistant" = ps: with ps; [ ];
"homekit" = ps: with ps; [ HAP-python pyqrcode aiohttp-cors base36 ha-ffmpeg zeroconf ]; # missing inputs: PyTurboJPEG fnvhash
"homekit_controller" = ps: with ps; [ aiohttp-cors zeroconf ]; # missing inputs: aiohomekit
"homekit_controller" = ps: with ps; [ aiohomekit aiohttp-cors zeroconf ];
"homematic" = ps: with ps; [ pyhomematic ];
"homematicip_cloud" = ps: with ps; [ ]; # missing inputs: homematicip
"homeworks" = ps: with ps; [ ]; # missing inputs: pyhomeworks
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -218,6 +218,8 @@ in {

aioharmony = callPackage ../development/python-modules/aioharmony { };

aiohomekit = callPackage ../development/python-modules/aiohomekit { };

aiohttp = callPackage ../development/python-modules/aiohttp { };

aiohttp-cors = callPackage ../development/python-modules/aiohttp-cors { };