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