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