summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2026-08-05 09:43:13 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-08-08 23:02:35 +0100
commitaa82a171d4cab2bb2144f0479ad7dc7ec6e921d4 (patch)
tree69bf2707c0beb6b32970bdc49e0a76593cffa97b
parent599f7f71093c19e36faf9b25a3f1c6ddd2f599fd (diff)
gnu: onionshare-cli: Update to 2.6.5.
* gnu/packages/tor.scm (onionshare-cli): Update to 2.6.5. [source]: Delete some uneeded source files and directories. [propagated-inputs]: Add python-pkgonfig. [arguments]{phases}: Rewrite phase relax-requirements. Relates-to: guix/guix!10412 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/tor.scm54
1 files changed, 42 insertions, 12 deletions
diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm
index ca36ea04905..5e6d9e14969 100644
--- a/gnu/packages/tor.scm
+++ b/gnu/packages/tor.scm
@@ -291,16 +291,30 @@ key, and private key are written to a new directory.")
291(define-public onionshare-cli 291(define-public onionshare-cli
292 (package 292 (package
293 (name "onionshare-cli") 293 (name "onionshare-cli")
294 (version "2.6.3") 294 (version "2.6.5")
295 (source 295 (source
296 (origin 296 (origin
297 (method git-fetch) 297 (method git-fetch)
298 (uri (git-reference 298 (uri (git-reference
299 (url "https://github.com/onionshare/onionshare") 299 (url "https://github.com/onionshare/onionshare")
300 (commit (string-append "v" version)))) 300 (commit (string-append "v" version))))
301 (file-name (git-file-name name version)) 301 (file-name (git-file-name name version))
302 (sha256 302 (sha256
303 (base32 "16yr25llnbgl2iwk458ca0rhrxsmpfx72q4gdg4a52i6g546p3hd")))) 303 (base32 "1pb4glbz8kz30kv36pm3m4qiyansvavjzm8jv66h7xrn8l2i61a4"))
304 (modules '((guix build utils)))
305 (snippet
306 #~(begin
307 (for-each delete-file-recursively
308 (list "docs"
309 "flatpak"
310 "snap"
311 "security"
312 "desktop/screenshots"))
313 (for-each delete-file
314 (append
315 (find-files "." "poetry\\.lock")
316 (find-files "desktop/scripts" ".*macos.*")
317 (list "desktop/scripts/build-windows.py")))))))
304 (build-system pyproject-build-system) 318 (build-system pyproject-build-system)
305 (native-inputs 319 (native-inputs
306 (list python-cython 320 (list python-cython
@@ -318,6 +332,7 @@ key, and private key are written to a new directory.")
318 python-gevent 332 python-gevent
319 python-gevent-websocket 333 python-gevent-websocket
320 python-packaging 334 python-packaging
335 python-pkgconfig
321 python-psutil 336 python-psutil
322 python-pynacl 337 python-pynacl
323 python-pysocks 338 python-pysocks
@@ -340,14 +355,28 @@ key, and private key are written to a new directory.")
340 ;; Poetry way too strict requirements. 355 ;; Poetry way too strict requirements.
341 (substitute* (list "cli/pyproject.toml" 356 (substitute* (list "cli/pyproject.toml"
342 "desktop/pyproject.toml") 357 "desktop/pyproject.toml")
343 (("2.3.2") "^3.0.0") ; flask = "2.3.2" 358 (("^wheel = .*")
344 (("5.3.4") "5.6.1") ; flask-socketio = "5.3.4" 359 "\n")
345 (("23.9.1") "24.11.1") ; gevent = "^23.9.1" 360 (("^pynacl = .*")
346 (("PySide6 = .*") "") ; XXX: it's not found in sanity check 361 (format #f "pynacl = \"^~a\"~%"
347 (("7.4.2") "8.0.0") ; qrcode = "^7.4.2" 362 #$(package-version
348 (("1.8.1") "^1.8.1") ; stem = "1.8.1" 363 (this-package-input "python-pynacl"))))
349 (("3.0.6") "^3.0.6") ; werkzeug = "3.0.6" 364 (("^stem = .*")
350 (("wheel =.*") "")))) ; wheel = "^0.41.2" 365 (format #f "stem = \"^~a\"~%"
366 #$(package-version
367 (this-package-input "python-stem"))))
368 (("^qrcode = .*")
369 (format #f "qrcode = \"^~a\"~%"
370 #$(package-version
371 (this-package-input "python-qrcode"))))
372 (("^gevent = .*")
373 (format #f "gevent = \"^~a\"~%"
374 #$(package-version
375 (this-package-input "python-gevent"))))
376 (("^cffi = .*")
377 (format #f "cffi = \"^~a\"~%"
378 #$(package-version
379 (this-package-input "python-cffi")))))))
351 (add-after 'unpack 'bake-tor 380 (add-after 'unpack 'bake-tor
352 (lambda* (#:key inputs #:allow-other-keys) 381 (lambda* (#:key inputs #:allow-other-keys)
353 (substitute* (list "cli/onionshare_cli/common.py" 382 (substitute* (list "cli/onionshare_cli/common.py"
@@ -371,6 +400,7 @@ host websites, and chat with friends using the Tor network.
371This package contains @code{onionshare-cli}, a command-line interface to 400This package contains @code{onionshare-cli}, a command-line interface to
372OnionShare.") 401OnionShare.")
373 ;; Bundled, minified jquery and socket.io are expat licensed. 402 ;; Bundled, minified jquery and socket.io are expat licensed.
403 ;; TODO Unbundle them.
374 (license (list license:gpl3+ license:expat)))) 404 (license (list license:gpl3+ license:expat))))
375 405
376(define-public onionshare 406(define-public onionshare