Package Details: mnemosyne 2.9-1

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: GPL
Conflicts: mnemosyne-bzr
Submitter: wide-eyed
Maintainer: billypilgrim
Last Packager: billypilgrim
Votes: 86
Popularity: 0.000134
First Submitted: 2007-11-04 20:08 (UTC)
Last Updated: 2022-10-06 10:21 (UTC)

Latest Comments

1 2 3 4 5 6 .. 10 Next › Last »

colluphid commented on 2022-05-03 20:03 (UTC) (edited on 2022-05-03 20:03 (UTC) by colluphid)

I also ran into the the checksum issue. Using yay, the checksum verification can be skipped with:

yay -S mnemosyne --mflags '--skipchecksums'

j18318 commented on 2022-05-01 16:31 (UTC)

This patch file now has a sha256sum of 086691d23ab73354af338ba69c42d7facf36c2a6663271c95e242b35679a8ead - https://github.com/mnemosyne-proj/mnemosyne/commit/b0e85fbb54a23add1fe8a0d56123b2ddb056b325.patch

The package build refers to a different hash: c5a57b1486dda325d53c3692fdd63778d8224efa0774ac750434e04f2162f3a2

Not sure if the commit was ever c5a57..... maybe the author force-pushed a new commit?

Anyways, pacman is failing to install with the PKGBUILD as it is currently..

billypilgrim commented on 2021-09-25 07:43 (UTC)

@Lukas1818: I've followed your suggestion and updated the PKGBUILD accordingly. Let me know if you have any issues :-)

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