fix avahi
This commit is contained in:
@@ -1,15 +1,25 @@
|
||||
{ fetchFromGitHub, home-assistant, ... }:
|
||||
home-assistant.python.pkgs.buildPythonPackage rec {
|
||||
{
|
||||
lib,
|
||||
namespace,
|
||||
pkgs,
|
||||
home-assistant,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib.trivial) importJSON;
|
||||
inherit (lib.${namespace}) selectVariant mkAllSources;
|
||||
|
||||
versionSpec = importJSON ./version.json;
|
||||
selected = selectVariant versionSpec null null;
|
||||
sources = mkAllSources pkgs selected;
|
||||
src-meta = selected.sources.wyzeapy;
|
||||
in
|
||||
home-assistant.python.pkgs.buildPythonPackage {
|
||||
pname = "wyzeapy";
|
||||
version = "0.5.31";
|
||||
version = if src-meta ? tag then src-meta.tag else src-meta.rev;
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SecKatie";
|
||||
repo = "wyzeapy";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-KDCd1G5Tj0YWM2WA3DJK9rTf1rMzz4qBSUl8FOUbvdM=";
|
||||
};
|
||||
src = sources.wyzeapy;
|
||||
|
||||
build-system = with home-assistant.python.pkgs; [
|
||||
poetry-core
|
||||
|
||||
Reference in New Issue
Block a user