1{ lib
2, attrs
3, buildPythonPackage
4, fetchFromGitHub
5, voluptuous
6}:
7
8buildPythonPackage rec {
9 pname = "hatasmota";
10 version = "0.2.21";
11
12 src = fetchFromGitHub {
13 owner = "emontnemery";
14 repo = pname;
15 rev = version;
16 sha256 = "sha256-mtn/r6pvHeGMLkvUP4w6CT+2+viLna4Vvn9RFMEmqts=";
17 };
18
19 propagatedBuildInputs = [
20 attrs
21 voluptuous
22 ];
23
24 # Project has no tests
25 doCheck = false;
26
27 pythonImportsCheck = [ "hatasmota" ];
28
29 meta = with lib; {
30 description = "Python module to help parse and construct Tasmota MQTT messages";
31 homepage = "https://github.com/emontnemery/hatasmota";
32 license = with licenses; [ mit ];
33 maintainers = with maintainers; [ fab ];
34 };
35}