Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 53 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, gitlike-commands 5, paho-mqtt 6, poetry-core 7, pyaml 8, pydantic 9, pythonOlder 10, thelogrus 11}: 12 13buildPythonPackage rec { 14 pname = "ha-mqtt-discoverable"; 15 version = "0.10.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.10"; 19 20 src = fetchFromGitHub { 21 owner = "unixorn"; 22 repo = "ha-mqtt-discoverable"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-0a39KTLZw3Y2D0TXlKCmvVeNoXAN/uLXQGDlA9iM9J0="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 gitlike-commands 33 paho-mqtt 34 pyaml 35 pydantic 36 thelogrus 37 ]; 38 39 # Test require a running Mosquitto instance 40 doCheck = false; 41 42 pythonImportsCheck = [ 43 "ha_mqtt_discoverable" 44 ]; 45 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 }; 53}