1{ lib
2, buildPythonPackage
3, cryptography
4, fetchFromGitHub
5, netifaces
6, pyserial
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "rns";
12 version = "0.5.4";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "markqvist";
19 repo = "Reticulum";
20 rev = "refs/tags/${version}";
21 hash = "sha256-OFU61RX6XtC/7x3SWbRCsODTrs3k3FCTCvEapkkeWQU=";
22 };
23
24 propagatedBuildInputs = [
25 cryptography
26 netifaces
27 pyserial
28 ];
29
30 # Module has no tests
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "RNS"
35 ];
36
37 meta = with lib; {
38 description = "Cryptography-based networking stack for wide-area networks";
39 homepage = "https://github.com/markqvist/Reticulum";
40 changelog = "https://github.com/markqvist/Reticulum/releases/tag/${version}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fab ];
43 };
44}