diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-24 18:45:54 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-04-24 18:49:08 +0100 |
| commit | 9665278a20fdcd4f9f2b4d2630520347897bca93 (patch) | |
| tree | a9e151f76086e2b8199b1fea23ebc09ae99c3d38 /gnu | |
| parent | 6cdafce5958f022c9db18541b6ac1d49947a5184 (diff) | |
gnu: onionshare: Fix build.
* gnu/packages/tor.scm: Add gnupg module.
(onionshare-cli) [phases]{relax-requirements}: Add
"desktop/pyproject.toml" to the list; relax check for PySide6.
(onionshare) [native-inputs]: Inherit from onionshare-cli.
[inputs]: Remove python-pyside-2; add python-pyside-6 and python-gnupg.
Change-Id: I750dfb413b24e7407b31633af785573fcc413ad9
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/tor.scm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm index 6c029321d50..b92a591d35f 100644 --- a/gnu/packages/tor.scm +++ b/gnu/packages/tor.scm | |||
| @@ -43,6 +43,7 @@ | |||
| 43 | #:use-module (guix build-system pyproject) | 43 | #:use-module (guix build-system pyproject) |
| 44 | #:use-module (gnu packages) | 44 | #:use-module (gnu packages) |
| 45 | #:use-module (gnu packages base) | 45 | #:use-module (gnu packages base) |
| 46 | #:use-module (gnu packages gnupg) | ||
| 46 | #:use-module (gnu packages libevent) | 47 | #:use-module (gnu packages libevent) |
| 47 | #:use-module (gnu packages libffi) | 48 | #:use-module (gnu packages libffi) |
| 48 | #:use-module (gnu packages linux) | 49 | #:use-module (gnu packages linux) |
| @@ -309,10 +310,12 @@ networks.") | |||
| 309 | (lambda _ | 310 | (lambda _ |
| 310 | ;; All tests passed, and the CLI is working in runtime, relax | 311 | ;; All tests passed, and the CLI is working in runtime, relax |
| 311 | ;; Poetry way too strict requirements. | 312 | ;; Poetry way too strict requirements. |
| 312 | (substitute* "cli/pyproject.toml" | 313 | (substitute* (list "cli/pyproject.toml" |
| 314 | "desktop/pyproject.toml") | ||
| 313 | (("2.3.2") "^3.0.0") ; flask = "2.3.2" | 315 | (("2.3.2") "^3.0.0") ; flask = "2.3.2" |
| 314 | (("5.3.4") "5.5.1") ; flask-socketio = "5.3.4" | 316 | (("5.3.4") "5.5.1") ; flask-socketio = "5.3.4" |
| 315 | (("23.9.1") "24.11.1") ; gevent = "^23.9.1" | 317 | (("23.9.1") "24.11.1") ; gevent = "^23.9.1" |
| 318 | (("PySide6 = .*") "") ; XXX: it's not found in sanity check | ||
| 316 | (("7.4.2") "8.0.0") ; qrcode = "^7.4.2" | 319 | (("7.4.2") "8.0.0") ; qrcode = "^7.4.2" |
| 317 | (("70.0.0") "67.6.1") ; setuptools = ">=70.0.0" | 320 | (("70.0.0") "67.6.1") ; setuptools = ">=70.0.0" |
| 318 | (("1.8.1") "^1.8.1") ; stem = "1.8.1" | 321 | (("1.8.1") "^1.8.1") ; stem = "1.8.1" |
| @@ -387,7 +390,8 @@ OnionShare.") | |||
| 387 | (apply invoke "xvfb-run" "pytest" "-vv" | 390 | (apply invoke "xvfb-run" "pytest" "-vv" |
| 388 | (find-files "tests" "^test_gui.*\\.py$"))))))))) | 391 | (find-files "tests" "^test_gui.*\\.py$"))))))))) |
| 389 | (native-inputs | 392 | (native-inputs |
| 390 | (list python-pytest xvfb-run)) | 393 | (modify-inputs (package-native-inputs onionshare-cli) |
| 394 | (prepend xvfb-run))) | ||
| 391 | (inputs | 395 | (inputs |
| 392 | ;; The desktop client uses onionshare-cli like a python module. But | 396 | ;; The desktop client uses onionshare-cli like a python module. But |
| 393 | ;; propagating onionshare-cli's inputs is not great, since a user would | 397 | ;; propagating onionshare-cli's inputs is not great, since a user would |
| @@ -395,9 +399,10 @@ OnionShare.") | |||
| 395 | ;; standalone utility. So add onionshare-cli's inputs here. | 399 | ;; standalone utility. So add onionshare-cli's inputs here. |
| 396 | (modify-inputs (package-inputs onionshare-cli) | 400 | (modify-inputs (package-inputs onionshare-cli) |
| 397 | (prepend onionshare-cli ;TODO: package obfs4proxy | 401 | (prepend onionshare-cli ;TODO: package obfs4proxy |
| 398 | python-shiboken-2 | 402 | python-gnupg |
| 399 | python-pyside-2 | 403 | python-pyside-6 |
| 400 | python-qrcode | 404 | python-qrcode |
| 405 | python-shiboken-2 | ||
| 401 | xdg-utils))) | 406 | xdg-utils))) |
| 402 | (description "OnionShare lets you securely and anonymously share files, | 407 | (description "OnionShare lets you securely and anonymously share files, |
| 403 | host websites, and chat with friends using the Tor network."))) | 408 | host websites, and chat with friends using the Tor network."))) |
