2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cryptography,
|
2024-09-19 14:19:46 +00:00
|
|
|
esptool,
|
2024-05-15 15:35:15 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
netifaces,
|
|
|
|
pyserial,
|
|
|
|
pythonOlder,
|
2024-09-19 14:19:46 +00:00
|
|
|
replaceVars,
|
2024-05-15 15:35:15 +00:00
|
|
|
setuptools,
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rns";
|
2024-10-29 11:11:06 +00:00
|
|
|
version = "0.8.5";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "markqvist";
|
|
|
|
repo = "Reticulum";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-10-29 11:11:06 +00:00
|
|
|
hash = "sha256-3Eif3AVpjNH803XXkPGQ5ZgSpVwV1W4DDm9rYBj6AEo=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
patches = [
|
|
|
|
(replaceVars ./unvendor-esptool.patch {
|
|
|
|
esptool = lib.getExe esptool;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-04-27 09:35:20 +00:00
|
|
|
cryptography
|
|
|
|
netifaces
|
|
|
|
pyserial
|
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "RNS" ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cryptography-based networking stack for wide-area networks";
|
|
|
|
homepage = "https://github.com/markqvist/Reticulum";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/markqvist/Reticulum/releases/tag/${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.mit;
|
2024-10-11 05:15:48 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
fab
|
|
|
|
qbit
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
}
|