nixpkgs/pkgs/development/python-modules/rns/default.nix
2022-07-09 21:41:38 +02:00

44 lines
806 B
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, netifaces
, pyserial
, pythonOlder
}:
buildPythonPackage rec {
pname = "rns";
version = "0.3.11";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "markqvist";
repo = "Reticulum";
rev = "refs/tags/${version}";
hash = "sha256-LANk104sO9we7n681a+yVmWOcd9SBQ/kiQAN38xaq80=";
};
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 ];
};
}