
Diff: https://github.com/unixorn/ha-mqtt-discoverable-cli/compare/refs/tags/v0.19.2.1...refs/tags/v0.20.1 Changelog: https://github.com/unixorn/ha-mqtt-discoverable-cli/releases/tag/v0.20.1
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.20.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "unixorn";
|
|
repo = "ha-mqtt-discoverable-cli";
|
|
tag = "v${version}";
|
|
hash = "sha256-4iQHpz09CbPuU+236HQdRNRDB3bcj9VZ0s/4BdxyB/8=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|