1{
2 lib,
3 attrs,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7 setuptools,
8 voluptuous,
9}:
10
11buildPythonPackage rec {
12 pname = "hatasmota";
13 version = "0.9.2";
14 pyproject = true;
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "emontnemery";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-m40ZK1+cfWgrwWftFqExUZidCrbDMC1Sfshugqrp5QM=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [
28 attrs
29 voluptuous
30 ];
31
32 # Project has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "hatasmota" ];
36
37 meta = with lib; {
38 description = "Python module to help parse and construct Tasmota MQTT messages";
39 homepage = "https://github.com/emontnemery/hatasmota";
40 changelog = "https://github.com/emontnemery/hatasmota/releases/tag/${version}";
41 license = with licenses; [ mit ];
42 maintainers = with maintainers; [ fab ];
43 };
44}