a7848c7476
GitOrigin-RevId: 34ad3ffe08adfca17fcb4e4a47bb5f3b113687be
35 lines
705 B
Nix
35 lines
705 B
Nix
{ lib
|
|
, attrs
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, voluptuous
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hatasmota";
|
|
version = "0.2.21";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "emontnemery";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-mtn/r6pvHeGMLkvUP4w6CT+2+viLna4Vvn9RFMEmqts=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
voluptuous
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "hatasmota" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to help parse and construct Tasmota MQTT messages";
|
|
homepage = "https://github.com/emontnemery/hatasmota";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|