biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / ha-mqtt-discoverable / default.nix
blob32024f892556bf1d06644195e176c31e0ab33df9
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   gitlike-commands,
6   paho-mqtt,
7   poetry-core,
8   pyaml,
9   pydantic,
10   pythonOlder,
11   thelogrus,
14 buildPythonPackage rec {
15   pname = "ha-mqtt-discoverable";
16   version = "0.14.0";
17   pyproject = true;
19   disabled = pythonOlder "3.10";
21   src = fetchFromGitHub {
22     owner = "unixorn";
23     repo = "ha-mqtt-discoverable";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-vL4EzeU+8nUPyLR22MJtLhknWF4DWMo49EKvkIqIWhA=";
26   };
28   pythonRelaxDeps = [ "pyaml" ];
30   build-system = [ poetry-core ];
33   dependencies = [
34     gitlike-commands
35     paho-mqtt
36     pyaml
37     pydantic
38     thelogrus
39   ];
41   # Test require a running Mosquitto instance
42   doCheck = false;
44   pythonImportsCheck = [ "ha_mqtt_discoverable" ];
46   meta = with lib; {
47     description = "Python module to create MQTT entities that are automatically discovered by Home Assistant";
48     homepage = "https://github.com/unixorn/ha-mqtt-discoverable";
49     changelog = "https://github.com/unixorn/ha-mqtt-discoverable/releases/tag/v${version}";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ fab ];
52   };