FreeBSD Bugzilla – Attachment 216413 Details for
Bug 247595
games/py-mnemosyne: Fails to run: ModuleNotFoundError: No module named 'googletrans'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
py-mnemosyne-add-missing-dependencies.patch
py-mnemosyne-add-missing-dependencies.patch (text/plain), 11.34 KB, created by
Kai Knoblich
on 2020-07-13 08:38:10 UTC
(
hide
)
Description:
py-mnemosyne-add-missing-dependencies.patch
Filename:
MIME Type:
Creator:
Kai Knoblich
Created:
2020-07-13 08:38:10 UTC
Size:
11.34 KB
patch
obsolete
>Index: audio/Makefile >=================================================================== >--- audio/Makefile (revision 542110) >+++ audio/Makefile (working copy) >@@ -658,6 +658,7 @@ > SUBDIR += py-fmoo-audiotools > SUBDIR += py-gmusicapi > SUBDIR += py-gmusicproxy >+ SUBDIR += py-gtts > SUBDIR += py-hsaudiotag > SUBDIR += py-karaoke > SUBDIR += py-mpd >Index: audio/py-gtts/Makefile >=================================================================== >--- audio/py-gtts/Makefile (nonexistent) >+++ audio/py-gtts/Makefile (working copy) >@@ -0,0 +1,43 @@ >+# $FreeBSD$ >+ >+PORTNAME= gtts >+DISTVERSIONPREFIX= v >+DISTVERSION= 2.1.1 >+CATEGORIES= audio python >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= kai@FreeBSD.org >+COMMENT= Library/CLI tool to interface with Google Translate text-to-speech API >+ >+LICENSE= MIT >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:www/py-beautifulsoup@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}gtts-token>=1.1.3:security/py-gtts-token@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} >+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.9:devel/py-pytest@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}testfixtures>0:devel/py-testfixtures@${PY_FLAVOR} >+ >+USES= python >+USE_GITHUB= yes >+GH_ACCOUNT= pndurette >+GH_PROJECT= gTTS >+USE_PYTHON= distutils autoplist >+ >+NO_ARCH= yes >+ >+.include <bsd.port.pre.mk> >+ >+.if ${PYTHON_REL} < 3600 >+BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}twine1>=1.11:devel/py-twine1@${PY_FLAVOR} >+.else >+BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}twine>=1.11:devel/py-twine@${PY_FLAVOR} >+.endif >+ >+do-test: >+ @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v >+ >+.include <bsd.port.post.mk> > >Property changes on: audio/py-gtts/Makefile >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: audio/py-gtts/distinfo >=================================================================== >--- audio/py-gtts/distinfo (nonexistent) >+++ audio/py-gtts/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1594610064 >+SHA256 (pndurette-gTTS-v2.1.1_GH0.tar.gz) = 7ba54c933aadf83811d397947a2702360188a03b3571b3caff0d618aa34c0d7c >+SIZE (pndurette-gTTS-v2.1.1_GH0.tar.gz) = 33476 > >Property changes on: audio/py-gtts/distinfo >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: audio/py-gtts/pkg-descr >=================================================================== >--- audio/py-gtts/pkg-descr (nonexistent) >+++ audio/py-gtts/pkg-descr (working copy) >@@ -0,0 +1,13 @@ >+gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with >+Google Translate's text-to-speech API. Write spoken mp3 data to a file, a >+file-like object (bytestring) for further audio manipulation, or stdout. >+ >+Or simply pre-generate Google Translate TTS request URLs to feed to an external >+program. >+ >+Customizable speech-specific sentence tokenizer that allows for unlimited >+lengths of text to be read, all while keeping proper intonation, abbreviations, >+decimals and more; Customizable text pre-processors which can, for example, >+provide pronunciation corrections; Automatic retrieval of supported languages. >+ >+WWW: https://github.com/pndurette/gTTS > >Property changes on: audio/py-gtts/pkg-descr >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: games/py-mnemosyne/Makefile >=================================================================== >--- games/py-mnemosyne/Makefile (revision 542110) >+++ games/py-mnemosyne/Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= mnemosyne > PORTVERSION= 2.7.1 >+PORTREVISION= 1 > PORTEPOCH= 1 > CATEGORIES= games python > MASTER_SITES= SF/mnemosyne-proj/${PORTNAME}/${PORTNAME}-${DISTVERSION} >@@ -19,9 +20,11 @@ > ${PY_PILLOW} \ > ${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \ > ${PYTHON_PKGNAMEPREFIX}webob>=1.4:www/py-webob@${PY_FLAVOR} \ >- ${PYTHON_PKGNAMEPREFIX}cheroot>=0:www/py-cheroot@${PY_FLAVOR} >+ ${PYTHON_PKGNAMEPREFIX}cheroot>=0:www/py-cheroot@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}googletrans>=0:textproc/py-googletrans@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}gtts>=0:audio/py-gtts@${PY_FLAVOR} > >-USES= pyqt:5 python:3.5+ >+USES= pyqt:5 python:3.7+ #due textproc/py-googletrans > USE_PYQT= gui_run network_run printsupport_run sip_run sql_run webengine_run > USE_PYTHON= distutils autoplist > >Index: security/Makefile >=================================================================== >--- security/Makefile (revision 542110) >+++ security/Makefile (working copy) >@@ -894,6 +894,7 @@ > SUBDIR += py-gpgme > SUBDIR += py-gpsoauth > SUBDIR += py-gssapi >+ SUBDIR += py-gtts-token > SUBDIR += py-halberd > SUBDIR += py-hkdf > SUBDIR += py-htpasswd >Index: security/py-gtts-token/Makefile >=================================================================== >--- security/py-gtts-token/Makefile (nonexistent) >+++ security/py-gtts-token/Makefile (working copy) >@@ -0,0 +1,28 @@ >+# $FreeBSD$ >+ >+PORTNAME= gtts-token >+DISTVERSIONPREFIX= v >+DISTVERSION= 1.1.3 >+CATEGORIES= security python >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= kai@FreeBSD.org >+COMMENT= Calculates a token to run the Google Translate text to speech >+ >+LICENSE= MIT >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} >+ >+USES= python >+USE_GITHUB= yes >+GH_ACCOUNT= Boudewijn26 >+GH_PROJECT= gTTS-token >+USE_PYTHON= distutils autoplist >+ >+NO_ARCH= yes >+ >+do-test: >+ @cd ${WRKSRC} && ${PYTHON_CMD} -m unittest discover -v -s gtts_token/tests >+ >+.include <bsd.port.mk> > >Property changes on: security/py-gtts-token/Makefile >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: security/py-gtts-token/distinfo >=================================================================== >--- security/py-gtts-token/distinfo (nonexistent) >+++ security/py-gtts-token/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1594276526 >+SHA256 (Boudewijn26-gTTS-token-v1.1.3_GH0.tar.gz) = c0593de172ca8abd8c0fc408269818da2933f35f37b3a3a894666f91ccdc87eb >+SIZE (Boudewijn26-gTTS-token-v1.1.3_GH0.tar.gz) = 4751 > >Property changes on: security/py-gtts-token/distinfo >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: security/py-gtts-token/pkg-descr >=================================================================== >--- security/py-gtts-token/pkg-descr (nonexistent) >+++ security/py-gtts-token/pkg-descr (working copy) >@@ -0,0 +1,4 @@ >+Google Translate requires a tk param when making a request to its translate >+API. This project provides an implementation for that algorithm in Python. >+ >+WWW: https://github.com/boudewijn26/gTTS-token > >Property changes on: security/py-gtts-token/pkg-descr >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: textproc/Makefile >=================================================================== >--- textproc/Makefile (revision 542110) >+++ textproc/Makefile (working copy) >@@ -1259,6 +1259,7 @@ > SUBDIR += py-genshi > SUBDIR += py-gensim > SUBDIR += py-gfm >+ SUBDIR += py-googletrans > SUBDIR += py-grako > SUBDIR += py-guess-language > SUBDIR += py-hexdump >Index: textproc/py-googletrans/Makefile >=================================================================== >--- textproc/py-googletrans/Makefile (nonexistent) >+++ textproc/py-googletrans/Makefile (working copy) >@@ -0,0 +1,22 @@ >+# $FreeBSD$ >+ >+PORTNAME= googletrans >+DISTVERSION= 3.0.0 >+CATEGORIES= textproc python >+MASTER_SITES= CHEESESHOP >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= kai@FreeBSD.org >+COMMENT= Free Google Translate API that translates totally free of charge >+ >+LICENSE= MIT >+# LICENSE_FILE isn't packaged in the sdist, yet >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx=0.13.3:www/py-httpx@${PY_FLAVOR} >+ >+USES= python:3.7+ # due www/py-httpx that requires 3.7+ >+USE_PYTHON= distutils autoplist >+ >+NO_ARCH= yes >+ >+.include <bsd.port.mk> > >Property changes on: textproc/py-googletrans/Makefile >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: textproc/py-googletrans/distinfo >=================================================================== >--- textproc/py-googletrans/distinfo (nonexistent) >+++ textproc/py-googletrans/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1594055380 >+SHA256 (googletrans-3.0.0.tar.gz) = 44caeea42d91ff6ead5c2d49db2b88de66c45c2fe874c8ec03eb9b4ceb3a533d >+SIZE (googletrans-3.0.0.tar.gz) = 17489 > >Property changes on: textproc/py-googletrans/distinfo >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: textproc/py-googletrans/pkg-descr >=================================================================== >--- textproc/py-googletrans/pkg-descr (nonexistent) >+++ textproc/py-googletrans/pkg-descr (working copy) >@@ -0,0 +1,13 @@ >+Googletrans is a free and unlimited Python library that implemented the >+Google Translate API. This uses the Google Translate Ajax API to make calls to >+such methods as detect and translate. >+ >+Features: >+ >+* Fast and reliable - it uses the same servers that translate.google.com uses >+* Auto language detection >+* Bulk translations >+* Customizable service URL >+* HTTP/2 support >+ >+WWW: https://github.com/ssut/py-googletrans > >Property changes on: textproc/py-googletrans/pkg-descr >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
kai
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 247595
:
216413
|
216499
Working