2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, rns
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lxmf
|
|
|
|
, urwid
|
|
|
|
, pythonOlder
|
2022-11-27 09:42:12 +00:00
|
|
|
, qrcode
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nomadnet";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.3.1";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "markqvist";
|
|
|
|
repo = "NomadNet";
|
2022-11-27 09:42:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-bpMv7dFX6hQoR8uG8IRy8JaDGLlU50hOPAI6jWmlMWI=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
rns
|
|
|
|
lxmf
|
|
|
|
urwid
|
2022-11-27 09:42:12 +00:00
|
|
|
qrcode
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"nomadnet"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Off-grid, resilient mesh communication";
|
|
|
|
homepage = "https://github.com/markqvist/NomadNet";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/markqvist/NomadNet/releases/tag/${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|