depot/third_party/nixpkgs/pkgs/development/python-modules/aiohomekit/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

63 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, commentjson
, cryptography
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, zeroconf
}:
buildPythonPackage rec {
pname = "aiohomekit";
version = "0.7.15";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Jc2k";
repo = pname;
rev = version;
sha256 = "sha256-na94H1ll9aZz/mQ4/y3b2vhSaOgo4OjtIsAfW6zGYyI=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
commentjson
cryptography
zeroconf
];
doCheck = lib.versionAtLeast pytest-aiohttp.version "1.0.0";
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 ];
};
}