Files
nixpkgs/pkgs/development/python-modules/hatasmota/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
919 B
Nix

{
lib,
aiohttp,
attrs,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
voluptuous,
}:
buildPythonPackage rec {
pname = "hatasmota";
version = "0.10.1";
pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub {
owner = "emontnemery";
repo = "hatasmota";
tag = version;
hash = "sha256-Be6W7+DMpMXezEQDkEN9+ei7cJXP1bGIURuXlMNyR0Y=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
attrs
voluptuous
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "hatasmota" ];
meta = {
description = "Python module to help parse and construct Tasmota MQTT messages";
homepage = "https://github.com/emontnemery/hatasmota";
changelog = "https://github.com/emontnemery/hatasmota/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}