Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 67 lines 1.5 kB view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytest-asyncio, 7 pytestCheckHook, 8 pythonOlder, 9 setuptools, 10 time-machine, 11 zigpy, 12}: 13 14buildPythonPackage rec { 15 pname = "zha-quirks"; 16 version = "0.0.142"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.12"; 20 21 src = fetchFromGitHub { 22 owner = "zigpy"; 23 repo = "zha-device-handlers"; 24 tag = version; 25 hash = "sha256-D1FIkyVSa4j6p4PHkjCAU08zpZjjXPGWoL5lKlWUHuU="; 26 }; 27 28 postPatch = '' 29 substituteInPlace pyproject.toml \ 30 --replace-fail ', "setuptools-git-versioning<2"' "" \ 31 --replace-fail 'dynamic = ["version"]' 'version = "${version}"' 32 ''; 33 34 build-system = [ setuptools ]; 35 36 dependencies = [ 37 aiohttp 38 zigpy 39 ]; 40 41 nativeCheckInputs = [ 42 pytest-asyncio 43 pytestCheckHook 44 time-machine 45 ]; 46 47 disabledTests = [ 48 # RuntimeError: no running event loop 49 "test_mfg_cluster_events" 50 "test_co2_sensor" 51 "test_smart_air_sensor" 52 # AssertionError: expected call not found 53 "test_moes" 54 "test_tuya_mcu_set_time" 55 ]; 56 57 pythonImportsCheck = [ "zhaquirks" ]; 58 59 meta = with lib; { 60 description = "ZHA Device Handlers are custom quirks implementations for Zigpy"; 61 homepage = "https://github.com/dmulcahey/zha-device-handlers"; 62 changelog = "https://github.com/zigpy/zha-device-handlers/releases/tag/${src.tag}"; 63 license = licenses.asl20; 64 maintainers = with maintainers; [ fab ]; 65 platforms = platforms.linux; 66 }; 67}