diff --git a/pkgs/development/python-modules/ukrainealarm/default.nix b/pkgs/development/python-modules/ukrainealarm/default.nix new file mode 100644 index 00000000000..00854ded316 --- /dev/null +++ b/pkgs/development/python-modules/ukrainealarm/default.nix @@ -0,0 +1,58 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub + +# build time +, setuptools-scm + +# propagates +, aiohttp + +# tests +, pytestCheckHook +}: + +let + pname = "ukrainealarm"; + version = "0.0.1"; +in + +buildPythonPackage { + inherit pname version; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "PaulAnnekov"; + repo = pname; + rev = "v${version}"; + hash = "sha256-0gsxXQiSkJIM/I0VYsjdCCB3NjPr6QJbD/rBkGrwtW8="; + }; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "ukrainealarm" + "ukrainealarm.client" + ]; + + meta = with lib; { + changelog = "https://github.com/PaulAnnekov/ukrainealarm/releases/tag/v${version}"; + description = "Implements api.ukrainealarm.com API that returns info about Ukraine air raid alarms"; + homepage = "https://github.com/PaulAnnekov/ukrainealarm"; + 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 afed37e315d..bfaf4f6f76d 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.2"; + version = "2022.5.3"; components = { "abode" = ps: with ps; [ abodepy @@ -2823,6 +2823,9 @@ ]; "uk_transport" = ps: with ps; [ ]; + "ukraine_alarm" = ps: with ps; [ + ukrainealarm + ]; "unifi" = ps: with ps; [ aiounifi ]; @@ -3710,6 +3713,7 @@ "twinkly" "twitch" "uk_transport" + "ukraine_alarm" "unifi" "unifi_direct" "universal" diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 61f207fadb1..7e47140a27b 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.2"; + hassVersion = "2022.5.3"; 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-n8lM1Z5fkZRW0E9J7nPRYntoaUuug9XPoRAKl+5XC6Y="; + hash = "sha256-g15bMS6xOz6w7JLSVP/tqlKBGWkFsG093GF7fcoHvlg="; }; # leave this in, so users don't have to constantly update their downstream patch handling diff --git a/pkgs/servers/home-assistant/frontend.nix b/pkgs/servers/home-assistant/frontend.nix index 98fe3a04e2b..cbfd57d5f93 100644 --- a/pkgs/servers/home-assistant/frontend.nix +++ b/pkgs/servers/home-assistant/frontend.nix @@ -4,7 +4,7 @@ buildPythonPackage rec { # the frontend version corresponding to a specific home-assistant version can be found here # https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json pname = "home-assistant-frontend"; - version = "20220504.0"; + version = "20220504.1"; format = "wheel"; src = fetchPypi { @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "home_assistant_frontend"; dist = "py3"; python = "py3"; - sha256 = "sha256-CYhUId5SGfPX9beAZH0ZemwciVDxchbDcTvQcRhJwog="; + sha256 = "sha256-EU9I/0+EmcNr7eYq3Z5J5/KiWu+Qz0+wn7UZMJFBxp0="; }; # there is nothing to strip in this package diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ae681e3c946..f3c6b11d4a6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10579,6 +10579,8 @@ in { ukpostcodeparser = callPackage ../development/python-modules/ukpostcodeparser { }; + ukrainealarm = callPackage ../development/python-modules/ukrainealarm { }; + umalqurra = callPackage ../development/python-modules/umalqurra { }; umap-learn = callPackage ../development/python-modules/umap-learn { };