a8b1b57b85
GitOrigin-RevId: fc4148a47fa927319186061aa42633c8aa5777f1
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, commentjson
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, zeroconf
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiohomekit";
|
|
version = "0.6.10";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Jc2k";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "03p6waxz9pqh0faq0lifwgz0ivdlk9di2wa9gv81iljs6v0vr85v";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
commentjson
|
|
cryptography
|
|
zeroconf
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-aiohttp
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Tests require network access
|
|
"tests/test_ip_pairing.py"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|