From aeaf177696cc2c2f1f64aae08eb906ee3e08e3a2 Mon Sep 17 00:00:00 2001 From: Louis Bettens Date: Wed, 29 Sep 2021 16:27:01 +0200 Subject: [PATCH] onionshare: 2.3.3 -> 2.4 (#139606) * onionshare: 2.3.3 -> 2.4 * onionshare: use upstream stem fork * onionshare: nixpkgs-fmt --- .../networking/onionshare/default.nix | 93 +++++++++++-------- 1 file changed, 53 insertions(+), 40 deletions(-) diff --git a/pkgs/applications/networking/onionshare/default.nix b/pkgs/applications/networking/onionshare/default.nix index f80fb3a73953..074fb770b533 100644 --- a/pkgs/applications/networking/onionshare/default.nix +++ b/pkgs/applications/networking/onionshare/default.nix @@ -1,52 +1,52 @@ -{ - lib, - buildPythonApplication, - substituteAll, - fetchFromGitHub, - isPy3k, - colorama, - flask, - flask-httpauth, - flask-socketio, - stem, - psutil, - pyqt5, - pycrypto, - pyside2, - pytestCheckHook, - qrcode, - qt5, - requests, - unidecode, - tor, - obfs4, +{ lib +, buildPythonApplication +, substituteAll +, fetchFromGitHub +, isPy3k +, colorama +, flask +, flask-httpauth +, flask-socketio +, stem +, psutil +, pyqt5 +, pycrypto +, pynacl +, pyside2 +, pytestCheckHook +, qrcode +, qt5 +, requests +, unidecode +, tor +, obfs4 }: let - version = "2.3.3"; + version = "2.4"; src = fetchFromGitHub { - owner = "micahflee"; + owner = "onionshare"; repo = "onionshare"; rev = "v${version}"; - sha256 = "sha256-wU2020RNXlwJ2y9uzcLxIX4EECev1Z9YvNyiBalLj/Y="; + sha256 = "sha256-Lclm7mIkaAkQpWcNILTRJtLA43dpiyHtWAeHS2r3+ZQ="; }; meta = with lib; { description = "Securely and anonymously send and receive files"; longDescription = '' - OnionShare is an open source tool for securely and anonymously sending - and receiving files using Tor onion services. It works by starting a web - server directly on your computer and making it accessible as an - unguessable Tor web address that others can load in Tor Browser to - download files from you, or upload files to you. It doesn't require - setting up a separate server, using a third party file-sharing service, - or even logging into an account. + OnionShare is an open source tool for securely and anonymously sending + and receiving files using Tor onion services. It works by starting a web + server directly on your computer and making it accessible as an + unguessable Tor web address that others can load in Tor Browser to + download files from you, or upload files to you. It doesn't require + setting up a separate server, using a third party file-sharing service, + or even logging into an account. - Unlike services like email, Google Drive, DropBox, WeTransfer, or nearly - any other way people typically send files to each other, when you use - OnionShare you don't give any companies access to the files that you're - sharing. So long as you share the unguessable web address in a secure way - (like pasting it in an encrypted messaging app), no one but you and the - person you're sharing with can access the files. + Unlike services like email, Google Drive, DropBox, WeTransfer, or nearly + any other way people typically send files to each other, when you use + OnionShare you don't give any companies access to the files that you're + sharing. So long as you share the unguessable web address in a secure way + (like pasting it in an encrypted messaging app), no one but you and the + person you're sharing with can access the files. ''; homepage = "https://onionshare.org/"; @@ -54,8 +54,19 @@ let license = licenses.gpl3Plus; maintainers = with maintainers; [ lourkeur ]; }; + stem' = stem.overrideAttrs (_: rec { + version = "1.8.1"; -in rec { + src = fetchFromGitHub { + owner = "onionshare"; + repo = "stem"; + rev = version; + sha256 = "Dzpvx7CgAr5OtGmfubWAYDLqq5LkGqcwjr3bxpfL/3A="; + }; + }); + +in +rec { onionshare = buildPythonApplication { pname = "onionshare-cli"; inherit version meta; @@ -74,9 +85,10 @@ in rec { flask flask-httpauth flask-socketio - stem + stem' psutil pycrypto + pynacl requests unidecode ]; @@ -98,6 +110,7 @@ in rec { disabledTests = [ "test_firefox_like_behavior" "test_if_unmodified_since" + "test_get_tor_paths_linux" # expects /usr instead of /nix/store ]; };