From 3408530e0efea6d70172d725d0dd18477aa00142 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 13 May 2022 13:31:45 +0200 Subject: [PATCH 1/2] python3Packages.uasiren: init at 0.0.1 --- .../python-modules/uasiren/default.nix | 58 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 60 insertions(+) create mode 100644 pkgs/development/python-modules/uasiren/default.nix 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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e25479f91e8..98b3d9f2235 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10592,6 +10592,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 { }; From fbadde30ebf9beafdb781c41d08abb150e40a8c5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 13 May 2022 13:32:09 +0200 Subject: [PATCH 2/2] home-assistant: 2022.5.3 -> 2022.5.4 https://github.com/home-assistant/core/releases/tag/2022.5.4 --- pkgs/servers/home-assistant/component-packages.nix | 4 ++-- pkgs/servers/home-assistant/default.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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