diff --git a/pkgs/development/python-modules/uasiren/default.nix b/pkgs/development/python-modules/uasiren/default.nix new file mode 100644 index 00000000000..49ab9906c51 --- /dev/null +++ b/pkgs/development/python-modules/uasiren/default.nix @@ -0,0 +1,58 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub + +# build time +, setuptools-scm + +# propagates +, aiohttp + +# tests +, pytestCheckHook +}: + +let + pname = "uasiren"; + version = "0.0.1"; +in + +buildPythonPackage { + inherit pname version; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "PaulAnnekov"; + repo = pname; + rev = "v${version}"; + hash = "sha256-NHrnG5Vhz+JZgcTJyfIgGz0Ye+3dFVv2zLCCqw2++oM="; + }; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "uasiren" + "uasiren.client" + ]; + + meta = with lib; { + changelog = "https://github.com/PaulAnnekov/uasiren/releases/tag/v${version}"; + description = "Implements siren.pp.ua API - public wrapper for api.ukrainealarm.com API that returns info about Ukraine air-raid alarms"; + homepage = "https://github.com/PaulAnnekov/uasiren"; + license = licenses.mit; + maintainers = with maintainers; [ hexa ]; + }; +} + diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index a86cc5509f2..df5e7ed3b98 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2,7 +2,7 @@ # Do not edit! { - version = "2022.5.3"; + version = "2022.5.4"; components = { "abode" = ps: with ps; [ abodepy @@ -2826,7 +2826,7 @@ "uk_transport" = ps: with ps; [ ]; "ukraine_alarm" = ps: with ps; [ - ukrainealarm + uasiren ]; "unifi" = ps: with ps; [ aiounifi diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 7e47140a27b..abaf16079d8 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -179,7 +179,7 @@ let extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs); # Don't forget to run parse-requirements.py after updating - hassVersion = "2022.5.3"; + hassVersion = "2022.5.4"; in python.pkgs.buildPythonApplication rec { pname = "homeassistant"; @@ -197,7 +197,7 @@ in python.pkgs.buildPythonApplication rec { owner = "home-assistant"; repo = "core"; rev = version; - hash = "sha256-g15bMS6xOz6w7JLSVP/tqlKBGWkFsG093GF7fcoHvlg="; + hash = "sha256-5juHG1bVeFYrjpAAlt3GoCRmBvyCSOdnSw1WuaNWF8w="; }; # leave this in, so users don't have to constantly update their downstream patch handling diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2a95daf3a55..7fad7ce562e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10596,6 +10596,8 @@ in { uarray = callPackage ../development/python-modules/uarray { }; + uasiren = callPackage ../development/python-modules/uasiren { }; + uc-micro-py = callPackage ../development/python-modules/uc-micro-py { }; udatetime = callPackage ../development/python-modules/udatetime { };