fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "ha-mqtt-discoverable-cli";
|
|
version = "0.4.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "unixorn";
|
|
repo = "ha-mqtt-discoverable-cli";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-rGRsB5kAtzI5KP4tMiQqLJQZs7z5k657V8Di0OzB6F8=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "ha-mqtt-discoverable" ];
|
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
|
|
|
nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ];
|
|
|
|
dependencies = with python3.pkgs; [ ha-mqtt-discoverable ];
|
|
|
|
# Project has no real tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "ha_mqtt_discoverable_cli" ];
|
|
|
|
meta = with lib; {
|
|
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/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "hmd";
|
|
};
|
|
}
|