From 919497db3b8f6fd39f53cd774fe7164c32b40371 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 31 Jan 2026 01:02:33 +0100 Subject: [PATCH] fetchtastic: init at 0.10.2 Utility for downloading and managing the latest Meshtastic firmware releases https://github.com/jeremiah-k/fetchtastic --- pkgs/by-name/fe/fetchtastic/package.nix | 49 +++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/fe/fetchtastic/package.nix diff --git a/pkgs/by-name/fe/fetchtastic/package.nix b/pkgs/by-name/fe/fetchtastic/package.nix new file mode 100644 index 000000000000..b9bbc9d83576 --- /dev/null +++ b/pkgs/by-name/fe/fetchtastic/package.nix @@ -0,0 +1,49 @@ +{ + lib, + fetchFromGitHub, + python3, +}: + +python3.pkgs.buildPythonApplication (finalAttrs: { + pname = "fetchtastic"; + version = "0.10.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "jeremiah-k"; + repo = "fetchtastic"; + tag = finalAttrs.version; + hash = "sha256-E8f0je4w4sTmf/EX9I8dZ4Ge4bsEvr8E6S5i02n5k+E="; + }; + + pythonRelaxDeps = [ "platformdirs" ]; + + build-system = with python3.pkgs; [ setuptools ]; + + dependencies = with python3.pkgs; [ + packaging + pick + platformdirs + pyyaml + requests + rich + urllib3 + ]; + + nativeCheckInputs = with python3.pkgs; [ + pytest-cov-stub + pytest-mock + pytestCheckHook + ]; + + pythonImportsCheck = [ "fetchtastic" ]; + + meta = { + description = "Utility for downloading and managing the latest Meshtastic firmware releases"; + homepage = "https://github.com/jeremiah-k/fetchtastic"; + changelog = "https://github.com/jeremiah-k/fetchtastic/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "fetchtastic"; + }; +})