28 buildPythonPackage rec {
33 disabled = pythonOlder "3.9";
35 src = fetchFromGitHub {
38 rev = "refs/tags/${version}";
39 hash = "sha256-q8YyAFBhY60ZK8tHSJnTU6gbDP3ifT1MAAbpYf3EIJA=";
43 substituteInPlace pyproject.toml \
44 --replace-fail '"setuptools-git-versioning<2"' "" \
45 --replace-fail 'dynamic = ["version"]' 'version = "${version}"'
48 build-system = [ setuptools ];
64 ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]
65 ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
77 # assert quirked.quirk_metadata.quirk_location.endswith("zigpy/tests/test_quirks_v2.py]-line:104") is False
80 ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64) [
81 "test_periodic_scan_priority"
85 # Tests require network access
86 "tests/ota/test_ota_providers.py"
89 pythonImportsCheck = [
98 description = "Library implementing a ZigBee stack";
99 homepage = "https://github.com/zigpy/zigpy";
100 changelog = "https://github.com/zigpy/zigpy/releases/tag/${version}";
101 license = licenses.gpl3Plus;
102 maintainers = with maintainers; [ mvnetbiz ];
103 platforms = platforms.linux;