diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/hatasmota/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/hatasmota/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/hatasmota/default.nix b/nixpkgs/pkgs/development/python-modules/hatasmota/default.nix new file mode 100644 index 000000000000..d375effd1609 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/hatasmota/default.nix @@ -0,0 +1,34 @@ +{ lib +, attrs +, buildPythonPackage +, fetchFromGitHub +, voluptuous +}: + +buildPythonPackage rec { + pname = "hatasmota"; + version = "0.2.6"; + + src = fetchFromGitHub { + owner = "emontnemery"; + repo = pname; + rev = version; + sha256 = "sha256-kRTgHFRnhjLM2DhKNy9HDKIsRk+w0AKP+o0hy8w+3ys="; + }; + + 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 ]; + }; +} |