diff options
Diffstat (limited to 'pkgs/development/python-modules/zigpy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/zigpy/default.nix | 93 |
1 files changed, 45 insertions, 48 deletions
diff --git a/pkgs/development/python-modules/zigpy/default.nix b/pkgs/development/python-modules/zigpy/default.nix index 0a32dea6649a1..5e70e78e4dc2c 100644 --- a/pkgs/development/python-modules/zigpy/default.nix +++ b/pkgs/development/python-modules/zigpy/default.nix @@ -1,30 +1,32 @@ -{ lib -, aiohttp -, aioresponses -, aiosqlite -, async-timeout -, attrs -, buildPythonPackage -, crccheck -, cryptography -, fetchFromGitHub -, freezegun -, importlib-resources -, jsonschema -, pycryptodome -, pyserial-asyncio -, pytest-asyncio -, pytest-timeout -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions -, voluptuous +{ + lib, + stdenv, + aiohttp, + aioresponses, + aiosqlite, + async-timeout, + attrs, + buildPythonPackage, + crccheck, + cryptography, + fetchFromGitHub, + freezegun, + importlib-resources, + jsonschema, + pycryptodome, + pyserial-asyncio, + pytest-asyncio, + pytest-timeout, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, + voluptuous, }: buildPythonPackage rec { pname = "zigpy"; - version = "0.63.5"; + version = "0.64.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -33,7 +35,7 @@ buildPythonPackage rec { owner = "zigpy"; repo = "zigpy"; rev = "refs/tags/${version}"; - hash = "sha256-iZxHXxheyoA5vo0Pxojs7QE8rSyTpsYpJ6/OzDSZJ20="; + hash = "sha256-4p/CUAZQLiADWzjXMOeYUX0OJgZczHrI2/sVRuXiFSI="; }; postPatch = '' @@ -42,26 +44,23 @@ buildPythonPackage rec { --replace-fail 'dynamic = ["version"]' 'version = "${version}"' ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - attrs - aiohttp - aiosqlite - crccheck - cryptography - jsonschema - pyserial-asyncio - typing-extensions - pycryptodome - voluptuous - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ] ++ lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + dependencies = + [ + attrs + aiohttp + aiosqlite + crccheck + cryptography + jsonschema + pyserial-asyncio + typing-extensions + pycryptodome + voluptuous + ] + ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ] + ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; nativeCheckInputs = [ aioresponses @@ -72,11 +71,9 @@ buildPythonPackage rec { ]; 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" - ]; + # assert quirked.quirk_metadata.quirk_location.endswith("zigpy/tests/test_quirks_v2.py]-line:104") is False + "test_quirks_v2" + ] ++ lib.optionals (stdenv.isLinux && stdenv.isx86_64) [ "test_periodic_scan_priority" ]; disabledTestPaths = [ # Tests require network access |