2021-01-16 13:28:50 +00:00
|
|
|
{ lib
|
|
|
|
, attrs
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, voluptuous
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hatasmota";
|
2021-02-16 07:31:34 +00:00
|
|
|
version = "0.2.9";
|
2021-01-16 13:28:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emontnemery";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-02-16 07:31:34 +00:00
|
|
|
sha256 = "sha256-+4jlzemF5f4Qz4QHDaErsmVHq1Pjn/vsvoq/oCbW/hI=";
|
2021-01-16 13:28:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|