Files
2026-10-14 01:35:58 +00:00

56 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# rns optionally depends on lxmf but we can't have two versions of rns in a closure
propagateRns ? false,
qrcode,
rns,
setuptools,
versionCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "lxmf";
version = "1.2.1";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit (finalAttrs) version;
pname = "lxmf";
hash = "sha256-rLFVEGZAbel8aqyqOM9RITG2AWfbWrV4elJdHSWGswQ=";
};
build-system = [ setuptools ];
buildInputs = lib.optionals (!propagateRns) [
rns
];
dependencies = [
qrcode
]
++ lib.optionals propagateRns [
rns
];
pythonImportsCheck = [ "LXMF" ];
nativeCheckInputs = lib.optionals propagateRns [
versionCheckHook
];
meta = {
description = "Lightweight Extensible Message Format for Reticulum";
homepage = "https://github.com/markqvist/lxmf";
changelog = "https://github.com/markqvist/LXMF/releases/tag/${finalAttrs.version}";
license = lib.licenses.reticulum;
maintainers = with lib.maintainers; [
drupol
fab
];
mainProgram = "lxmd";
};
})