2021-01-16 21:25:26 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-07-12 22:28:22 +00:00
|
|
|
, commentjson
|
2021-01-16 21:25:26 +00:00
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
2021-06-01 06:51:33 +00:00
|
|
|
, poetry-core
|
2021-01-16 21:25:26 +00:00
|
|
|
, pytest-aiohttp
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonAtLeast
|
|
|
|
, zeroconf
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiohomekit";
|
2021-09-30 19:28:34 +00:00
|
|
|
version = "0.6.3";
|
2021-01-16 21:25:26 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Jc2k";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-09-30 19:28:34 +00:00
|
|
|
sha256 = "sha256-XBinbhYUB9BuQxxmWfZUw276uNam4DgBpiCAjT7KDlg=";
|
2021-01-16 21:25:26 +00:00
|
|
|
};
|
|
|
|
|
2021-06-01 06:51:33 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2021-01-16 21:25:26 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-07-12 22:28:22 +00:00
|
|
|
commentjson
|
2021-01-16 21:25:26 +00:00
|
|
|
cryptography
|
|
|
|
zeroconf
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-06-01 06:51:33 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests require network access
|
|
|
|
"tests/test_ip_pairing.py"
|
2021-01-16 21:25:26 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|