Package Details: mnemosyne 2.11-3

Git Clone URL: https://aur.archlinux.org/mnemosyne.git (read-only, click to copy)
Package Base: mnemosyne
Description: A flash-card tool with a sophisticated card review algorithm
Upstream URL: https://www.mnemosyne-proj.org
Keywords: Anki flashcard learn memorize
Licenses: LGPL-3.0-only AND LicenseRef-AGPL-3.0-Attribution
Submitter: wide-eyed
Maintainer: J5lx
Last Packager: J5lx
Votes: 85
Popularity: 0.000618
First Submitted: 2007-11-04 20:08 (UTC)
Last Updated: 2024-04-09 11:27 (UTC)

Dependencies (21)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 11 Next › Last »

LuckyTurtleDev commented on 2021-09-14 12:06 (UTC) (edited on 2021-09-14 12:37 (UTC) by LuckyTurtleDev)

@billypilgrim I do not think waiting until the next release make sense. At the current state the application can not be used by anyone who has not already installed python-googletrans. So this package is useless for many users at the moment.

Furthermore the pull-request was already merged to the upstream.

billypilgrim commented on 2021-09-13 13:58 (UTC)

Hi CI-Lukas1818. Thanks for doing this. I think I'll hold off on updating the PKGBUILD until the upstream maintainer releases a new version though (hopefully incorporating these patches) before updating.

CI-Lukas1818 commented on 2021-09-11 22:02 (UTC) (edited on 2021-09-11 22:04 (UTC) by CI-Lukas1818)

@billypilgrim if you make the following change to this package, it can be build again:

diff --git a/PKGBUILD b/PKGBUILD
index f2d0c04..bf63528 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,28 +8,36 @@ pkgver=2.8
 pkgrel=1
 pkgdesc="A flash-card tool with a sophisticated card review algorithm"
 arch=('any')
-url='http://www.mnemosyne-proj.org'
+url='https://www.mnemosyne-proj.org'
 license=('GPL')
 depends=('python-pyqt5' 'qt5-webengine' 'python-argon2_cffi'
          'python-pillow' 'python-matplotlib' 'python-cherrypy' 'python-webob'
-         'python-pyqtwebengine' 'python-googletrans' 'python-google_trans_new' 'python-gtts')
+         'python-pyqtwebengine')
 makedepends=('python-setuptools')
 optdepends=('texlive-core: support for mathematical formulae in cards'
             'ttf-ms-fonts: support for non-latin labels on statistic plots'
             'python-cheroot: support for starting a sync server'
             'python-opengl: mentioned in a non-fatal warning'
-       'mplayer: for playing audio and video externally')
+            'mplayer: for playing audio and video externally'
+            'python-google_trans_new: support for google translate (googletrans is also needed)'
+            'python-googletrans: support for google translate (python-google_trans_new is also needed)'
+            'python-gtts: support for text to speach')
 conflicts=('mnemosyne-bzr')
 install='mnemosyne.install'

-source=("http://downloads.sourceforge.net/mnemosyne-proj/Mnemosyne-${pkgver}.tar.gz")
-sha256sums=('63949ad4b44188501915a0465f32d3ca066698c58f86c46cf3196f9d601f6900')
+source=("https://downloads.sourceforge.net/mnemosyne-proj/Mnemosyne-${pkgver}.tar.gz"
+        "https://github.com/mnemosyne-proj/mnemosyne/commit/b0e85fbb54a23add1fe8a0d56123b2ddb056b325.patch")
+sha256sums=('63949ad4b44188501915a0465f32d3ca066698c58f86c46cf3196f9d601f6900'
+            'c5a57b1486dda325d53c3692fdd63778d8224efa0774ac750434e04f2162f3a2')

 prepare() {
   cd "Mnemosyne-${pkgver}/"

   # Fix windows line endings
-  sed -i "s/\r//g" mnemosyne/pyqt_ui/mnemosyne
+  sed -i "s/\r//g" mnemosyne/pyqt_ui/mnemosyne mnemosyne/libmnemosyne/__init__.py
+
+  # patch to make google transate and goole text to speak optional
+  patch --forward --strip=1 --input="$srcdir/b0e85fbb54a23add1fe8a0d56123b2ddb056b325.patch"
 }

 build() {
@@ -42,4 +50,3 @@ package() {
   cd "Mnemosyne-${pkgver}/"
   python setup.py install --root="${pkgdir}" --optimize=1
 }
-

LuckyTurtleDev commented on 2021-09-09 13:18 (UTC) (edited on 2021-09-09 13:18 (UTC) by LuckyTurtleDev)

@billypilgrim I have created a pull request, which make both packages optional.#201

Using the following patch should fix the python-httpx issue: https://github.com/mnemosyne-proj/mnemosyne/pull/201/commits/b0e85fbb54a23add1fe8a0d56123b2ddb056b325.patch

LuckyTurtleDev commented on 2021-09-08 17:11 (UTC)

@billypilgrim I had already create an issue for this: #200

They do not have any interest to implementate this. So if we would like to have this features, we must create our own path. May the mnemosyne maintainer will accept a merge request.

billypilgrim commented on 2021-09-08 13:03 (UTC)

Thanks for the clarification @Lukas1818.

Neither of the issues you raise involve any changes I could make to this package, however. It looks like the python-httpx issue has already been mentioned on the python-googletrans page, so hopefully a fix is in hand. You're right that this should be optional functionality though -- how about raising an issue with the mnemosyne folks upstream?

LuckyTurtleDev commented on 2021-09-08 12:53 (UTC) (edited on 2021-09-08 12:57 (UTC) by LuckyTurtleDev)

@billypilgrim I think n1ghtmare does mean the python-httpx package, which is a dependency of python-googletrans. The problem is that python-googletrans is not compatible with the current python-httpx package and need an outdated version of it.

It would be very nice if python-googletrans and python-gtts will be only optimal dependencies, but sadly mnemosyne does not allow this.

May user can apply this patch manual, if they do not need google translate: https://salsa.debian.org/debian/mnemosyne/-/blob/master/debian/patches/disable_google_translator.patch

billypilgrim commented on 2021-08-21 20:15 (UTC)

@n1ghtmare: Your comment is a bit vague. What exact error message are you getting? Which dependencies seem to be missing?

n1ghtmare commented on 2021-08-21 16:43 (UTC)

Does not build because of missing dependencies.

billypilgrim commented on 2021-07-12 06:23 (UTC)

Weird. It did build on my local machine before, but you're right that the checks aren't passing anymore. I've fixed that now.