7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
esptool,
|
|
fetchFromGitHub,
|
|
netifaces,
|
|
pyserial,
|
|
pythonOlder,
|
|
replaceVars,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rns";
|
|
version = "0.7.9";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "markqvist";
|
|
repo = "Reticulum";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-O3dxfO8MrTKaYRCBNygZlXKuIA3rjEr8TCtR/vrUYmo=";
|
|
};
|
|
|
|
patches = [
|
|
(replaceVars ./unvendor-esptool.patch {
|
|
esptool = lib.getExe esptool;
|
|
})
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
cryptography
|
|
netifaces
|
|
pyserial
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "RNS" ];
|
|
|
|
meta = with lib; {
|
|
description = "Cryptography-based networking stack for wide-area networks";
|
|
homepage = "https://github.com/markqvist/Reticulum";
|
|
changelog = "https://github.com/markqvist/Reticulum/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|