Merge pull request #139599 from fabaff/elkm1-lib

authored by

Martin Weinelt and committed by
GitHub
bdbded8c b11db426

+60 -1
+56
pkgs/development/python-modules/elkm1-lib/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , poetry-core 6 + , pyserial-asyncio 7 + , pytest-asyncio 8 + , pytestCheckHook 9 + , pythonOlder 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "elkm1-lib"; 14 + version = "1.0.0"; 15 + format = "pyproject"; 16 + 17 + disabled = pythonOlder "3.6"; 18 + 19 + src = fetchFromGitHub { 20 + owner = "gwww"; 21 + repo = "elkm1"; 22 + rev = version; 23 + sha256 = "04xidix6l5d9rqfwp6cmj6wvais04nlvz5ynp0zwgyjp9sh2nhp6"; 24 + }; 25 + 26 + nativeBuildInputs = [ 27 + poetry-core 28 + ]; 29 + 30 + propagatedBuildInputs = [ 31 + pyserial-asyncio 32 + ]; 33 + 34 + checkInputs = [ 35 + pytest-asyncio 36 + pytestCheckHook 37 + ]; 38 + 39 + patches = [ 40 + # Switch to poetry-core, https://github.com/gwww/elkm1/pull/45 41 + (fetchpatch { 42 + name = "switch-to-poetry-core.patch"; 43 + url = "https://github.com/gwww/elkm1/commit/807a17268498298908bf82af4933b158b37c8f32.patch"; 44 + sha256 = "1539g8wsxppqj6dm6w81ps05frb8vrfaxahxn2cqs76zdhvly3p9"; 45 + }) 46 + ]; 47 + 48 + pythonImportsCheck = [ "elkm1_lib" ]; 49 + 50 + meta = with lib; { 51 + description = "Python module for interacting with ElkM1 alarm/automation panel"; 52 + homepage = "https://github.com/gwww/elkm1"; 53 + license = licenses.mit; 54 + maintainers = with maintainers; [ fab ]; 55 + }; 56 + }
+1 -1
pkgs/servers/home-assistant/component-packages.nix
··· 218 218 "eight_sleep" = ps: with ps; [ pyeight ]; 219 219 "elgato" = ps: with ps; [ elgato ]; 220 220 "eliqonline" = ps: with ps; [ ]; # missing inputs: eliqonline 221 - "elkm1" = ps: with ps; [ ]; # missing inputs: elkm1-lib 221 + "elkm1" = ps: with ps; [ elkm1-lib ]; 222 222 "elv" = ps: with ps; [ pypca ]; 223 223 "emby" = ps: with ps; [ pyemby ]; 224 224 "emoncms" = ps: with ps; [ ];
+1
pkgs/servers/home-assistant/default.nix
··· 338 338 "ee_brightbox" 339 339 "efergy" 340 340 "elgato" 341 + "elkm1" 341 342 "emonitor" 342 343 "emulated_hue" 343 344 "emulated_kasa"
+2
pkgs/top-level/python-packages.nix
··· 2328 2328 2329 2329 elgato = callPackage ../development/python-modules/elgato { }; 2330 2330 2331 + elkm1-lib = callPackage ../development/python-modules/elkm1-lib { }; 2332 + 2331 2333 elasticsearch = callPackage ../development/python-modules/elasticsearch { }; 2332 2334 2333 2335 elasticsearch-dsl = callPackage ../development/python-modules/elasticsearch-dsl { };