nixpkgs/pkgs/development/python-modules/hap-python/default.nix
2021-07-30 23:38:47 +02:00

68 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, base36
, cryptography
, curve25519-donna
, ecdsa
, fetchFromGitHub
, h11
, pyqrcode
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, pythonOlder
, zeroconf
}:
buildPythonPackage rec {
pname = "hap-python";
version = "4.0.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "ikalchev";
repo = "HAP-python";
rev = "v${version}";
sha256 = "1k4gq23j4f7yppxf8rzrrayn6clj48cdzixjdsmv5awhzsf9n6w4";
};
propagatedBuildInputs = [
base36
cryptography
curve25519-donna
ecdsa
h11
pyqrcode
zeroconf
];
checkInputs = [
pytest-asyncio
pytest-timeout
pytestCheckHook
];
# Disable tests requiring network access
disabledTestPaths = [
"tests/test_accessory_driver.py"
"tests/test_hap_handler.py"
"tests/test_hap_protocol.py"
];
disabledTests = [
"test_persist_and_load"
"test_we_can_connect"
"test_idle_connection_cleanup"
"test_we_can_start_stop"
"test_push_event"
"test_bridge_run_stop"
];
meta = with lib; {
homepage = "https://github.com/ikalchev/HAP-python";
description = "HomeKit Accessory Protocol implementation in python";
license = licenses.asl20;
maintainers = with maintainers; [ oro ];
};
}