Merge pull request #172857 from mweinelt/home-assistant
This commit is contained in:
commit
99926bcb97
4 changed files with 64 additions and 4 deletions
58
pkgs/development/python-modules/uasiren/default.nix
Normal file
58
pkgs/development/python-modules/uasiren/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue