lol

Merge pull request #128561 from dotlambda/python-songpal-init

home-assistant: support songpal component

authored by

Fabian Affolter and committed by
GitHub
fc70bcf4 a6a026ab

+72 -1
+68
pkgs/development/python-modules/python-songpal/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , pythonOlder 4 + , fetchFromGitHub 5 + , fetchpatch 6 + , poetry-core 7 + , aiohttp 8 + , async-upnp-client 9 + , attrs 10 + , click 11 + , importlib-metadata 12 + , pytestCheckHook 13 + }: 14 + 15 + buildPythonPackage rec { 16 + pname = "python-songpal"; 17 + version = "0.13"; 18 + 19 + format = "pyproject"; 20 + 21 + disabled = pythonOlder "3.6"; 22 + 23 + src = fetchFromGitHub { 24 + owner = "rytilahti"; 25 + repo = "python-songpal"; 26 + rev = version; 27 + sha256 = "124w6vfn992845k09bjv352havk8pg590b135m37h1x1m7fmbpwa"; 28 + }; 29 + 30 + patches = [ 31 + # https://github.com/rytilahti/python-songpal/pull/90 32 + (fetchpatch { 33 + name = "switch-to-poetry-core.patch"; 34 + url = "https://github.com/rytilahti/python-songpal/commit/56b634790d94b2f9788d5af3d5cedff47f1e42c2.patch"; 35 + sha256 = "0yc0mrb91ywk77nd4mxvyc0p2kjz2w1p395755a32ls30zw2bs27"; 36 + }) 37 + ]; 38 + 39 + postPatch = '' 40 + # https://github.com/rytilahti/python-songpal/issues/91 41 + substituteInPlace pyproject.toml \ 42 + --replace 'click = "^7"' 'click = "*"' 43 + ''; 44 + 45 + nativeBuildInputs = [ 46 + poetry-core 47 + ]; 48 + 49 + propagatedBuildInputs = [ 50 + aiohttp 51 + async-upnp-client 52 + attrs 53 + click 54 + importlib-metadata 55 + ]; 56 + 57 + # no tests implemented 58 + doCheck = false; 59 + 60 + pythonImportsCheck = [ "songpal" ]; 61 + 62 + meta = with lib; { 63 + description = "Python library for interfacing with Sony's Songpal devices"; 64 + homepage = "https://github.com/rytilahti/python-songpal"; 65 + license = licenses.gpl3Only; 66 + maintainers = with maintainers; [ dotlambda ]; 67 + }; 68 + }
+1 -1
pkgs/servers/home-assistant/component-packages.nix
··· 787 787 "somfy" = ps: with ps; [ aiohttp-cors pymfy ]; 788 788 "somfy_mylink" = ps: with ps; [ ]; # missing inputs: somfy-mylink-synergy 789 789 "sonarr" = ps: with ps; [ ]; # missing inputs: sonarr 790 - "songpal" = ps: with ps; [ ]; # missing inputs: python-songpal 790 + "songpal" = ps: with ps; [ python-songpal ]; 791 791 "sonos" = ps: with ps; [ aiohttp-cors plexapi plexauth plexwebsocket pysonos ]; 792 792 "sony_projector" = ps: with ps; [ ]; # missing inputs: pysdcp 793 793 "soundtouch" = ps: with ps; [ aiohttp-cors ifaddr libsoundtouch zeroconf ];
+1
pkgs/servers/home-assistant/default.nix
··· 665 665 "solaredge" 666 666 "soma" 667 667 "somfy" 668 + "songpal" 668 669 "sonos" 669 670 "soundtouch" 670 671 "spaceapi"
+2
pkgs/top-level/python-packages.nix
··· 5365 5365 5366 5366 python-openzwave-mqtt = callPackage ../development/python-modules/python-openzwave-mqtt { }; 5367 5367 5368 + python-songpal = callPackage ../development/python-modules/python-songpal { }; 5369 + 5368 5370 python-tado = callPackage ../development/python-modules/python-tado { }; 5369 5371 5370 5372 pkutils = callPackage ../development/python-modules/pkutils { };