Merge pull request #128511 from dotlambda/srpenergy-init

home-assistant: support srp_energy component

authored by

Fabian Affolter and committed by
GitHub
860b56be e87001bb

+44 -1
+40
pkgs/development/python-modules/srpenergy/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , pythonOlder 4 + , fetchFromGitHub 5 + , python-dateutil 6 + , requests 7 + , pytestCheckHook 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "srpenergy"; 12 + version = "1.3.2"; 13 + 14 + disabled = pythonOlder "3.6"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "lamoreauxlab"; 18 + repo = "srpenergy-api-client-python"; 19 + rev = version; 20 + sha256 = "03kldjk90mrnzf2hpd7xky0lpph853mjxc34kfa2m5mbpbpkxz9c"; 21 + }; 22 + 23 + propagatedBuildInputs = [ 24 + python-dateutil 25 + requests 26 + ]; 27 + 28 + checkInputs = [ 29 + pytestCheckHook 30 + ]; 31 + 32 + pythonImportsCheck = [ "srpenergy.client" ]; 33 + 34 + meta = with lib; { 35 + description = "Unofficial Python module for interacting with Srp Energy data"; 36 + homepage = "https://github.com/lamoreauxlab/srpenergy-api-client-python"; 37 + license = licenses.mit; 38 + maintainers = with maintainers; [ dotlambda ]; 39 + }; 40 + }
+1 -1
pkgs/servers/home-assistant/component-packages.nix
··· 799 "spotify" = ps: with ps; [ aiohttp-cors spotipy ]; 800 "sql" = ps: with ps; [ sqlalchemy ]; 801 "squeezebox" = ps: with ps; [ pysqueezebox ]; 802 - "srp_energy" = ps: with ps; [ ]; # missing inputs: srpenergy 803 "ssdp" = ps: with ps; [ aiohttp-cors async-upnp-client defusedxml ifaddr netdisco zeroconf ]; 804 "starline" = ps: with ps; [ ]; # missing inputs: starline 805 "starlingbank" = ps: with ps; [ ]; # missing inputs: starlingbank
··· 799 "spotify" = ps: with ps; [ aiohttp-cors spotipy ]; 800 "sql" = ps: with ps; [ sqlalchemy ]; 801 "squeezebox" = ps: with ps; [ pysqueezebox ]; 802 + "srp_energy" = ps: with ps; [ srpenergy ]; 803 "ssdp" = ps: with ps; [ aiohttp-cors async-upnp-client defusedxml ifaddr netdisco zeroconf ]; 804 "starline" = ps: with ps; [ ]; # missing inputs: starline 805 "starlingbank" = ps: with ps; [ ]; # missing inputs: starlingbank
+1
pkgs/servers/home-assistant/default.nix
··· 673 "spotify" 674 "sql" 675 "squeezebox" 676 "ssdp" 677 "startca" 678 "statistics"
··· 673 "spotify" 674 "sql" 675 "squeezebox" 676 + "srp_energy" 677 "ssdp" 678 "startca" 679 "statistics"
+2
pkgs/top-level/python-packages.nix
··· 8218 8219 srp = callPackage ../development/python-modules/srp { }; 8220 8221 srptools = callPackage ../development/python-modules/srptools { }; 8222 8223 srsly = callPackage ../development/python-modules/srsly { };
··· 8218 8219 srp = callPackage ../development/python-modules/srp { }; 8220 8221 + srpenergy = callPackage ../development/python-modules/srpenergy { }; 8222 + 8223 srptools = callPackage ../development/python-modules/srptools { }; 8224 8225 srsly = callPackage ../development/python-modules/srsly { };