3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
43 lines
805 B
Nix
43 lines
805 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, netifaces
|
|
, pyserial
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rns";
|
|
version = "0.3.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "markqvist";
|
|
repo = "Reticulum";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-fihcDMQzFuQGOrADxjUcEcPqiolpQgPwyFNW0ZVXwhU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|