567e8dfd8e
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>
50 lines
916 B
Nix
50 lines
916 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lxmf,
|
|
pythonOlder,
|
|
qrcode,
|
|
rns,
|
|
setuptools,
|
|
urwid,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nomadnet";
|
|
version = "0.9.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "markqvist";
|
|
repo = "NomadNet";
|
|
tag = version;
|
|
hash = "sha256-Rqs0x5KF3Nb/VMNBr6IriDWX7th4OrBj3x5tQhUIU3U=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
rns
|
|
lxmf
|
|
urwid
|
|
qrcode
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "nomadnet" ];
|
|
|
|
meta = {
|
|
description = "Off-grid, resilient mesh communication";
|
|
homepage = "https://github.com/markqvist/NomadNet";
|
|
changelog = "https://github.com/markqvist/NomadNet/releases/tag/${version}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "nomadnet";
|
|
};
|
|
}
|