Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "ha-mqtt-discoverable-cli";
|
|
version = "0.21.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "unixorn";
|
|
repo = "ha-mqtt-discoverable-cli";
|
|
tag = "v${version}";
|
|
hash = "sha256-nJS8JbitiMj9G2rfYeJpY1TOsDLspIWg2PvaEBPOW3Q=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "ha-mqtt-discoverable" ];
|
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
gitlike-commands
|
|
ha-mqtt-discoverable
|
|
];
|
|
|
|
# Project has no real tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "ha_mqtt_discoverable_cli" ];
|
|
|
|
meta = {
|
|
description = "CLI for creating Home Assistant compatible MQTT entities that will be automatically discovered";
|
|
homepage = "https://github.com/unixorn/ha-mqtt-discoverable-cli";
|
|
changelog = "https://github.com/unixorn/ha-mqtt-discoverable-cli/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "hmd";
|
|
};
|
|
}
|