blob: 02403b23e85e95c1742e85defb78c2c9994dd032 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
replaceVars,
esptool,
# build-system
setuptools,
# dependencies
bleak,
cryptography,
netifaces,
pyserial,
# tests
versionCheckHook,
}:
buildPythonPackage rec {
pname = "rns";
version = "0.9.4";
pyproject = true;
src = fetchFromGitHub {
owner = "markqvist";
repo = "Reticulum";
tag = version;
hash = "sha256-Z6Af/PNQkbo+0xn0kEh2I8T03D/gQpuRNHBhLX3mkms=";
};
patches = [
(replaceVars ./unvendor-esptool.patch {
esptool = lib.getExe esptool;
})
];
build-system = [ setuptools ];
dependencies = [
bleak
cryptography
netifaces
pyserial
];
pythonImportsCheck = [ "RNS" ];
nativeCheckInputs = [
versionCheckHook
];
versionCheckProgram = "${placeholder "out"}/bin/rncp";
versionCheckProgramArg = "--version";
meta = {
description = "Cryptography-based networking stack for wide-area networks";
homepage = "https://reticulum.network";
changelog = "https://github.com/markqvist/Reticulum/blob/${src.tag}/Changelog.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
fab
qbit
];
};
}
|