Package Details: onionshare 2.2-2

Git Clone URL: https://aur.archlinux.org/onionshare.git (read-only, click to copy)
Package Base: onionshare
Description: Lets you securely and anonymously share a file of any size with someone
Upstream URL: https://github.com/micahflee/onionshare
Keywords: file-sharing python security tor
Licenses: GPL3
Submitter: thelinuxguy
Maintainer: pancakes
Last Packager: pancakes
Votes: 37
Popularity: 1.52
First Submitted: 2014-08-24 11:43
Last Updated: 2019-10-22 22:47

Dependencies (12)

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

pancakes commented on 2020-01-04 09:29

Edit: Now that python-stem v1.8 is in the Arch repos, this comment is no longer useful.

Anyone having errors similar to @repo in the comment below this one can build version 1.8 of python-stem manually using the PKGBUILD inlined in this comment to get around it. You may need to add the signer's pubkey: gpg --keyserver hkp://pool.sks-keyservers.net --search-keys 888404C187F30690

Otherwise, please wait until python-stem v1.8 is in the arch repos (hopefully soon) and onionshare will be working fine again :)

Reference: https://bugs.archlinux.org/task/64647

# modified from https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/python-stem&id=11328de988f5b7be941f912b67b61370a5394103
pkgname=python-stem
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Spider.007 <archlinux AT spider007 DOT net>

_pypiname=${pkgname#*-}
pkgver=1.8.0
pkgrel=1
pkgdesc='Python controller library for Tor'
url='https://stem.torproject.org/'
arch=('any')
license=('LGPL3')
depends=('python' 'python-cryptography' 'python-pynacl' 'procps-ng')
checkdepends=('tor' 'python-mock')
optdepends=('tor: tor-server to talk to')
replaces=('stem')
provides=('stem')
source=(https://files.pythonhosted.org/packages/source/${_pypiname::1}/${_pypiname}/${_pypiname}-${pkgver}.tar.gz{,.asc})
sha256sums=('a0b48ea6224e95f22aa34c0bc3415f0eb4667ddeae3dfb5e32a6920c185568c2'
            'SKIP')
validpgpkeys=('68278CC5DD2D1E85C4E45AD90445B7AB9ABBEEC6') # Damian Johnson (www.atagar.com) <atagar1@gmail.com>

prepare() {
  cd ${_pypiname}-${pkgver}
  # remove flaky integration tests
  sed -i test/settings.cfg \
    -e '/|test.integ.client.connection.TestConnection/d' \
    -e '/|test.integ.process.TestProcess/d' \
    -e '/|test.integ.installation.TestInstallation/d'
  rm test/integ/{client/connection,{installation,process}}.py
}

build() {
  cd ${_pypiname}-${pkgver}
  python setup.py build
}

check() {
  cd ${_pypiname}-${pkgver}
  ./run_tests.py --all
}

package() {
  cd ${_pypiname}-${pkgver}
  python setup.py install --optimize=1 --root="${pkgdir}" --skip-build
}

# vim: ts=2 sw=2 et:

repo commented on 2019-12-10 20:51

Since upgrade to python 3.8.0 on Arch Linux

OnionShare 2.2 | https://onionshare.org/ OnionShare could not connect to Tor in the background: dictionary keys changed during iteration

vexinf commented on 2019-11-10 20:59

anyone any ideas why Im getting this error

/usr/bin/python: symbol lookup error: /usr/lib/python3.7/site-packages/PyQt5/Qt/plugins/platforms/../../lib/libQt5DBus.so.5: undefined symbol: _ZdlPvm, version Qt_5

I tried uninstall python-pyqt5 and reinstalled but still getting error

lothar_m commented on 2019-10-18 11:23

Building 2.2 seems to require python-flask-httpauth. Please add as dependency. Also had to comment out the following line in the package section of the PKGBUILD:

install -Dm644 install/onionshare.desktop "${pkgdir}/usr/share/applications/onionshare.desktop"

ZeroDot1 commented on 2019-10-14 02:23

Onionshare 2.2 FINAL is available please update the package. https://github.com/micahflee/onionshare/releases/tag/v2.2

danieltetraquark commented on 2019-07-08 20:06

# Maintainer: Ye Shu <shuye02@outlook.com>

pkgname=onionshare
pkgver=2.1
pkgrel=1
pkgdesc="Lets you securely and anonymously share a file of any size with someone"
url="https://github.com/micahflee/onionshare"
arch=('any')
license=('GPL3')
makedepends=('python-setuptools')
checkdepends=('python-pytest')
depends=('stem' 'python-flask' 'tor' 'python-pycryptodome' 'python-pysocks' 'python-requests' 'python-pyqt5')
optdepends=(
    'python-nautilus: to enable Nautilus  right-click extension'
    'obfs4proxy: for tor bridge support'
)

source=(
    "${pkgname}-${pkgver}.tar.gz::https://github.com/micahflee/onionshare/archive/v$pkgver.tar.gz"
)
sha512sums=('d42a5cb5d114e5024ebd50bc8e0318a2b38fd9094245485a1cb24961c9e37abefe3d777731e0b89eb629bcbecd9c4993c195047fa98c116ccd634292d3ec26e8')

check() {
    cd "$srcdir/onionshare-$pkgver"
    pytest tests/
}

package() {
    cd "$srcdir/onionshare-$pkgver" || return $?
    python setup.py install --root="$pkgdir/" --optimize=1
    install -Dm644 install/onionshare.desktop "${pkgdir}/usr/share/applications/onionshare.desktop"
    install -Dm644 install/onionshare80.xpm "${pkgdir}/usr/share/pixmaps/onionshare80.xpm"
}


ZeroDot1 commented on 2019-05-07 19:20

Please update to the latest version. https://github.com/micahflee/onionshare/releases/tag/v2.1

Tio commented on 2019-02-25 11:19

For my error the fix is here https://github.com/micahflee/onionshare/issues/922

yechs commented on 2019-02-25 00:29

In fact, when building from a clean chroot, multiple tests failed without python-requests E ModuleNotFoundError: No module named 'requests'

As for python-pyqt5, since the upstream imports TorGuiShareTest in many of its tests modules, so the tests would fail without python-pyqt5. I guess the author is intended to install the GUI along with the application.

FYI, the upstream has included both packages in its dependencies list: https://github.com/micahflee/onionshare/blob/develop/install/requirements.txt

sekret commented on 2019-02-24 01:34

I actually think having python-pyqt5 as an optional dependency was a good option. It would have been enough to add those I proposed to make dependencies.

And please consider that python-requests is NOT a dependency! I checked in a chroot, both binaries run just fine without it!