mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
abdf5dc772
It is is now provided automatically, when `pythonRelaxDeps` or `pythonRemoveDeps` is defined through `mk-python-derivation`.
40 lines
1.0 KiB
Nix
40 lines
1.0 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 ];
|
|
|
|
|
|
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";
|
|
};
|
|
}
|