1ae14203fc
GitOrigin-RevId: 68398d2dd50efc2d878bf0f83bbc8bc323b6b0e0
34 lines
704 B
Nix
34 lines
704 B
Nix
{ lib
|
|
, attrs
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, voluptuous
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hatasmota";
|
|
version = "0.2.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "emontnemery";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1xsqrpd0dprjfaa2yrdy1g9n4xyrw6ifnzkrh3sq5fx0yfmxbzqm";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|