at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pydantic, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 setuptools, 10 websocket-client, 11}: 12 13buildPythonPackage rec { 14 pname = "dirigera"; 15 version = "1.2.4"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "Leggin"; 22 repo = "dirigera"; 23 tag = "v${version}"; 24 hash = "sha256-xFiAhlNbl20MPFNkl8J4vx+KgvINYS3P5EAQxc620/k="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 pydantic 31 requests 32 websocket-client 33 ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "dirigera" ]; 38 39 meta = with lib; { 40 description = "Module for controlling the IKEA Dirigera Smart Home Hub"; 41 homepage = "https://github.com/Leggin/dirigera"; 42 changelog = "https://github.com/Leggin/dirigera/releases/tag/v${version}"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ fab ]; 45 mainProgram = "generate-token"; 46 broken = versionOlder pydantic.version "2"; 47 }; 48}