depot/third_party/nixpkgs/pkgs/development/python-modules/rns/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

49 lines
940 B
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, netifaces
, pyserial
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "rns";
version = "0.7.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "markqvist";
repo = "Reticulum";
rev = "refs/tags/${version}";
hash = "sha256-iwW52jPSCwelfByerKHxKgH4NbWwCJLPyHXyBeJPwaM=";
};
nativeBuildInputs = [
setuptools
];
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";
changelog = "https://github.com/markqvist/Reticulum/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}