ed0c4a69f0
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
72 lines
1.4 KiB
Nix
72 lines
1.4 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aiosqlite
|
|
, buildPythonPackage
|
|
, crccheck
|
|
, cryptography
|
|
, freezegun
|
|
, fetchFromGitHub
|
|
, pycryptodome
|
|
, pyserial-asyncio
|
|
, pytest-asyncio
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, voluptuous
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zigpy";
|
|
version = "0.53.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zigpy";
|
|
repo = "zigpy";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-/IUJzMzbNKXQZkhwmoKoafMVw+6rD3Sw/coBLOi4FIk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
aiosqlite
|
|
crccheck
|
|
cryptography
|
|
pyserial-asyncio
|
|
pycryptodome
|
|
voluptuous
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
pytest-asyncio
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# # Our two manual scans succeeded and the periodic one was attempted
|
|
# assert len(mock_scan.mock_calls) == 3
|
|
# AssertionError: assert 4 == 3
|
|
"test_periodic_scan_priority"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"zigpy.application"
|
|
"zigpy.config"
|
|
"zigpy.exceptions"
|
|
"zigpy.types"
|
|
"zigpy.zcl"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library implementing a ZigBee stack";
|
|
homepage = "https://github.com/zigpy/zigpy";
|
|
changelog = "https://github.com/zigpy/zigpy/releases/tag/${version}";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|