net-im/{transwhat,yowsup}: last-rite

Closes: https://bugs.gentoo.org/952588
Closes: https://bugs.gentoo.org/952589
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Conrad Kostecki
2025-06-29 21:48:04 +02:00
parent c18122373b
commit b60decdcef
9 changed files with 0 additions and 149 deletions

View File

@@ -1 +0,0 @@
DIST transwhat-0.2.2_p20190426.tar.gz 38373 BLAKE2B 3addf2ae66d042eaf4a5f6b54015b9592fea68b69f4c542c5ec0d97040c0eb473d15b893af35f6d6cf83671417ed718c9c91b6268242e667fa34397fc230d2d5 SHA512 7079d1015bf5dfcd97e729219306320055ef86ac3203bb727bebb1e96abb60a26787882a12f9a8f4cce2ef45652bebfbd824a98d37d97ed72ebe0269004c1a71

View File

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>conikost@gentoo.org</email>
<name>Conrad Kostecki</name>
</maintainer>
<longdescription>
transWhat is a WhatsApp XMPP Gateway based on Spectrum 2 and Yowsup 3.
It can be used for accessing WhatsApp through a XMPP Transport on clients side.
</longdescription>
<upstream>
<bugs-to>https://github.com/stv0g/transwhat/issues</bugs-to>
<remote-id type="github">stv0g/transwhat</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1,39 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
EGIT_COMMIT="d022243f6c7b23674d3c87a09819f00b10df1165"
DISTUTILS_USE_PEP517="setuptools"
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="A WhatsApp XMPP Gateway based on Spectrum 2 and Yowsup 3"
HOMEPAGE="https://github.com/stv0g/transwhat"
SRC_URI="https://github.com/stv0g/transwhat/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 x86"
RDEPEND="
dev-python/protobuf[${PYTHON_USEDEP}]
dev-python/pyspectrum2[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
net-im/yowsup[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
DOCS=( "INSTALL.rst" "README.rst" "USAGE.rst" )
src_prepare() {
default
# Spectrum2 must be lower case
sed \
-e 's/Spectrum2/spectrum2/g' \
-i transWhat/{buddy,group,registersession,session,transwhat,whatsappbackend}.py || die
}

View File

@@ -1 +0,0 @@
DIST yowsup-3.3.0.tar.gz 155950 BLAKE2B 7ade7f7e05aff14d5154d35d5c2a1841ee66893059bd995facb8297d7e6f1dde4468105dc3f03b5462efbf92cbd079c457440bb1580235bbbcfaddeab2244b56 SHA512 304409f02aa3720b0f70a83fe4dbe288fa1c5659642878d7bd1354359524a66c39b9f5baa9899224497f61f974d9b64ba67e07d866fda2589413070bb9ef1aad

View File

@@ -1,21 +0,0 @@
--- a/setup.py 2019-05-07 18:52:38.000000000 +0200
+++ b/setup.py 2019-12-18 18:30:40.509051347 +0100
@@ -33,7 +33,6 @@
#long_description=long_description,
packages= find_packages(),
include_package_data=True,
- data_files = [('yowsup/common', ['yowsup/common/mime.types'])],
platforms='any',
#test_suite='',
classifiers = [
--- a/yowsup/common/tools.py 2019-05-07 18:52:38.000000000 +0200
+++ b/yowsup/common/tools.py 2019-12-18 18:30:40.509051347 +0100
@@ -165,7 +165,7 @@
return preview
class MimeTools:
- MIME_FILE = os.path.join(os.path.dirname(__file__), 'mime.types')
+ MIME_FILE = os.path.join('/usr/share/yowsup/common', 'mime.types')
mimetypes.init() # Load default mime.types
try:
mimetypes.init([MIME_FILE]) # Append whatsapp mime.types

View File

@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>conikost@gentoo.org</email>
<name>Conrad Kostecki</name>
</maintainer>
<longdescription>
Yowsup is a Python library that enables you to build applications,
which use the WhatsApp service. Yowsup has been used to create two clients:
1) An unofficial WhatsApp client Nokia N9 through the Wazapp project
which was in use by more than 200K users.
2) Another fully featured unofficial client for Blackberry 10.
</longdescription>
<upstream>
<bugs-to>https://github.com/tgalal/yowsup/issues</bugs-to>
<remote-id type="github">tgalal/yowsup</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1,43 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517="setuptools"
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_REQ_USE="readline"
inherit distutils-r1
DESCRIPTION="A library that enables you to build applications which use the WhatsApp service"
HOMEPAGE="https://github.com/tgalal/yowsup"
SRC_URI="https://github.com/tgalal/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
# This package contains no-op tests, so they actually cannot be run
RESTRICT="test"
RDEPEND="
dev-python/appdirs[${PYTHON_USEDEP}]
dev-python/configargparse[${PYTHON_USEDEP}]
dev-python/consonance[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/protobuf[${PYTHON_USEDEP}]
dev-python/python-axolotl[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/${PN}-3.2.3_p20190905-fix-install-path.patch" )
src_prepare() {
default
# After talking to upstream, version restriction can be lifted
# and also 'argparse' needs to be removed.
sed -e 's/==0.1.5//' -e 's/==0.2.2//' -e 's/==1.10//' -e 's/>=3.6.0//' -e 's/argparse//' -i setup.py || die
}

View File

@@ -146,10 +146,8 @@ dev-python/spake2
dev-python/requests-ntlm
dev-python/python3-discogs-client
dev-python/python-axolotl
net-im/yowsup
dev-python/pyghmi
dev-python/omemo-dr
net-im/transwhat
dev-python/noiseprotocol
dev-python/magic-wormhole
dev-python/magic-wormhole-transit-relay

View File

@@ -326,13 +326,6 @@ dev-libs/libxml2-compat
# Unmask it after it is properly tested & fixed
=app-misc/screen-5*
# Conrad Kostecki <conikost@gentoo.org> (2025-03-28)
# Upstream is dead and broken. All 'whatsapp' deps
# will be last-rited on 2025-04-28.
# Bug #952588 #952589
net-im/transwhat
net-im/yowsup
# Michał Górny <mgorny@gentoo.org> (2025-03-17)
# Xfce 4.22 prereleases. Masked because they tend to be quite unstable.
>=dev-build/xfce4-dev-tools-4.21