gnu: onionshare-cli: Update to 2.4.
* gnu/packages/tor.scm (onionshare-cli): Update to 2.4. [inputs]: Add python-pynacl. [arguments]: Patch references to /usr/share/tor in 'bake-tor phase; remove trailing #T; run tests conditionally.
This commit is contained in:
parent
872116ebc6
commit
66fc69794c
1 changed files with 16 additions and 12 deletions
|
|
@ -227,7 +227,7 @@ networks.")
|
||||||
(define-public onionshare-cli
|
(define-public onionshare-cli
|
||||||
(package
|
(package
|
||||||
(name "onionshare-cli")
|
(name "onionshare-cli")
|
||||||
(version "2.3.2")
|
(version "2.4")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
|
@ -236,7 +236,7 @@ networks.")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1qk0zvbaws9md1lmi0al1jc8v86l65nf7n3w1s36iwsfzazc6clv"))))
|
(base32 "157ryxm4p1q7b3nj32v9fziw1li6s6s203b7ll80js14cbp6dj9d"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pytest" ,python-pytest)))
|
`(("python-pytest" ,python-pytest)))
|
||||||
|
|
@ -248,6 +248,7 @@ networks.")
|
||||||
("python-flask" ,python-flask)
|
("python-flask" ,python-flask)
|
||||||
("python-flask-httpauth" ,python-flask-httpauth)
|
("python-flask-httpauth" ,python-flask-httpauth)
|
||||||
("python-flask-socketio" ,python-flask-socketio)
|
("python-flask-socketio" ,python-flask-socketio)
|
||||||
|
("python-pynacl" ,python-pynacl)
|
||||||
("python-psutil" ,python-psutil)
|
("python-psutil" ,python-psutil)
|
||||||
("python-pycryptodome" ,python-pycryptodome)
|
("python-pycryptodome" ,python-pycryptodome)
|
||||||
("python-pysocks" ,python-pysocks)
|
("python-pysocks" ,python-pysocks)
|
||||||
|
|
@ -265,18 +266,21 @@ networks.")
|
||||||
"desktop/src/onionshare/gui_common.py")
|
"desktop/src/onionshare/gui_common.py")
|
||||||
(("shutil\\.which\\(\\\"tor\\\"\\)")
|
(("shutil\\.which\\(\\\"tor\\\"\\)")
|
||||||
(string-append "\"" (which "tor") "\"")))
|
(string-append "\"" (which "tor") "\"")))
|
||||||
#t))
|
(substitute* "cli/tests/test_cli_common.py"
|
||||||
|
(("/usr/share/tor")
|
||||||
|
(string-append (assoc-ref inputs "tor") "/share/tor")))))
|
||||||
(add-before 'build 'change-directory
|
(add-before 'build 'change-directory
|
||||||
(lambda _ (chdir "cli") #t))
|
(lambda _ (chdir "cli")))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
;; Greendns is not needed for testing, and if eventlet tries to
|
;; Greendns is not needed for testing, and if eventlet tries to
|
||||||
;; load it, an OSError is thrown when getprotobyname is called.
|
;; load it, an OSError is thrown when getprotobyname is called.
|
||||||
;; Thankfully there is an environment variable to disable the
|
;; Thankfully there is an environment variable to disable the
|
||||||
;; greendns import, so use it:
|
;; greendns import, so use it:
|
||||||
(setenv "EVENTLET_NO_GREENDNS" "yes")
|
(setenv "EVENTLET_NO_GREENDNS" "yes")
|
||||||
(invoke "pytest" "-v" "./tests"))))))
|
(invoke "pytest" "-v" "./tests")))))))
|
||||||
(home-page "https://onionshare.org/")
|
(home-page "https://onionshare.org/")
|
||||||
(synopsis "Securely and anonymously share files")
|
(synopsis "Securely and anonymously share files")
|
||||||
(description "OnionShare lets you securely and anonymously share files,
|
(description "OnionShare lets you securely and anonymously share files,
|
||||||
|
|
|
||||||
Reference in a new issue