Merge pull request #172857 from mweinelt/home-assistant

This commit is contained in:
Martin Weinelt 2022-05-13 18:10:57 +02:00 committed by GitHub
commit 99926bcb97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 64 additions and 4 deletions

View File

@ -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 ];
};
}

View File

@ -2,7 +2,7 @@
# Do not edit! # Do not edit!
{ {
version = "2022.5.3"; version = "2022.5.4";
components = { components = {
"abode" = ps: with ps; [ "abode" = ps: with ps; [
abodepy abodepy
@ -2826,7 +2826,7 @@
"uk_transport" = ps: with ps; [ "uk_transport" = ps: with ps; [
]; ];
"ukraine_alarm" = ps: with ps; [ "ukraine_alarm" = ps: with ps; [
ukrainealarm uasiren
]; ];
"unifi" = ps: with ps; [ "unifi" = ps: with ps; [
aiounifi aiounifi

View File

@ -179,7 +179,7 @@ let
extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs); extraPackagesFile = writeText "home-assistant-packages" (lib.concatMapStringsSep "\n" (pkg: pkg.pname) extraBuildInputs);
# Don't forget to run parse-requirements.py after updating # Don't forget to run parse-requirements.py after updating
hassVersion = "2022.5.3"; hassVersion = "2022.5.4";
in python.pkgs.buildPythonApplication rec { in python.pkgs.buildPythonApplication rec {
pname = "homeassistant"; pname = "homeassistant";
@ -197,7 +197,7 @@ in python.pkgs.buildPythonApplication rec {
owner = "home-assistant"; owner = "home-assistant";
repo = "core"; repo = "core";
rev = version; rev = version;
hash = "sha256-g15bMS6xOz6w7JLSVP/tqlKBGWkFsG093GF7fcoHvlg="; hash = "sha256-5juHG1bVeFYrjpAAlt3GoCRmBvyCSOdnSw1WuaNWF8w=";
}; };
# leave this in, so users don't have to constantly update their downstream patch handling # leave this in, so users don't have to constantly update their downstream patch handling

View File

@ -10596,6 +10596,8 @@ in {
uarray = callPackage ../development/python-modules/uarray { }; uarray = callPackage ../development/python-modules/uarray { };
uasiren = callPackage ../development/python-modules/uasiren { };
uc-micro-py = callPackage ../development/python-modules/uc-micro-py { }; uc-micro-py = callPackage ../development/python-modules/uc-micro-py { };
udatetime = callPackage ../development/python-modules/udatetime { }; udatetime = callPackage ../development/python-modules/udatetime { };