1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 fetchpatch, 5 idasen, 6 lib, 7 pytest-asyncio, 8 pytestCheckHook, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "idasen-ha"; 14 version = "2.6.3"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "abmantis"; 19 repo = "idasen-ha"; 20 tag = version; 21 hash = "sha256-Z4MfJGL2uDqY1ddoV2fB+Ty/dKFhCUY8qBfP/i/naJs="; 22 }; 23 24 patches = [ 25 (fetchpatch { 26 name = "bleak-1.0.0-compat.patch"; 27 url = "https://github.com/abmantis/idasen-ha/commit/57e5ba4affb99b17ffc95a33a0aec60c7518be2b.patch"; 28 hash = "sha256-Jc6e9uYrifXZ91aNhoxqyquq1WMzHWrVKPBXYhosbRM="; 29 }) 30 ]; 31 32 build-system = [ setuptools ]; 33 34 dependencies = [ idasen ]; 35 36 pythonImportsCheck = [ "idasen_ha" ]; 37 38 nativeCheckInputs = [ 39 pytest-asyncio 40 pytestCheckHook 41 ]; 42 43 meta = { 44 changelog = "https://github.com/abmantis/idasen-ha/releases/tag/${version}"; 45 description = "Home Assistant helper lib for the IKEA Idasen Desk integration"; 46 homepage = "https://github.com/abmantis/idasen-ha"; 47 license = lib.licenses.mit; 48 maintainers = with lib.maintainers; [ dotlambda ]; 49 }; 50}