-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108505 from fabaff/aiohomekit
python3Packages.aiohomekit: init at 0.2.60
- Loading branch information
Showing
3 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters