depot/third_party/nixpkgs/pkgs/development/python-modules/rns/default.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
cryptography,
esptool,
fetchFromGitHub,
netifaces,
pyserial,
pythonOlder,
replaceVars,
setuptools,
}:
buildPythonPackage rec {
pname = "rns";
version = "0.8.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "markqvist";
repo = "Reticulum";
rev = "refs/tags/${version}";
hash = "sha256-3Eif3AVpjNH803XXkPGQ5ZgSpVwV1W4DDm9rYBj6AEo=";
};
patches = [
(replaceVars ./unvendor-esptool.patch {
esptool = lib.getExe esptool;
})
];
build-system = [ setuptools ];
dependencies = [
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";
changelog = "https://github.com/markqvist/Reticulum/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [
fab
qbit
];
};
}