Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / ha-mqtt-discoverable / default.nix
blob5d5eb8ba91067399a6fd431c35d190f1505beac6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , gitlike-commands
5 , paho-mqtt
6 , poetry-core
7 , pyaml
8 , pydantic
9 , pythonOlder
10 , thelogrus
13 buildPythonPackage rec {
14   pname = "ha-mqtt-discoverable";
15   version = "0.10.0";
16   pyproject = true;
18   disabled = pythonOlder "3.10";
20   src = fetchFromGitHub {
21     owner = "unixorn";
22     repo = "ha-mqtt-discoverable";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-0a39KTLZw3Y2D0TXlKCmvVeNoXAN/uLXQGDlA9iM9J0=";
25   };
27   nativeBuildInputs = [
28     poetry-core
29   ];
31   propagatedBuildInputs = [
32     gitlike-commands
33     paho-mqtt
34     pyaml
35     pydantic
36     thelogrus
37   ];
39   # Test require a running Mosquitto instance
40   doCheck = false;
42   pythonImportsCheck = [
43     "ha_mqtt_discoverable"
44   ];
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   };