Merge pull request #48718 from oxij/pkgs/anki-send-to-trash

anki: use send2trash from nixpkgs
This commit is contained in:
Renaud 2018-10-20 00:18:22 +02:00 committed by GitHub
commit 42ead52bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -16,6 +16,7 @@
, pytest , pytest
, glibcLocales , glibcLocales
, nose , nose
, send2trash
# This little flag adds a huge number of dependencies, but we assume that # This little flag adds a huge number of dependencies, but we assume that
# everyone wants Anki to draw plots with statistics by default. # everyone wants Anki to draw plots with statistics by default.
, plotsSupport ? true , plotsSupport ? true
@ -40,7 +41,7 @@ in buildPythonApplication rec {
sha256 = "0yjyxgpk79rplz9z2r93kmlk09ari6xxfrz1cfm2yl9v8zfw1n6l"; sha256 = "0yjyxgpk79rplz9z2r93kmlk09ari6xxfrz1cfm2yl9v8zfw1n6l";
}; };
propagatedBuildInputs = [ pyqt4 sqlalchemy pyaudio beautifulsoup httplib2 ] propagatedBuildInputs = [ pyqt4 sqlalchemy pyaudio beautifulsoup httplib2 send2trash ]
++ lib.optional plotsSupport matplotlib; ++ lib.optional plotsSupport matplotlib;
checkInputs = [ pytest glibcLocales nose ]; checkInputs = [ pytest glibcLocales nose ];
@ -108,16 +109,14 @@ in buildPythonApplication rec {
cp -v anki.xml $out/share/mime/packages/ cp -v anki.xml $out/share/mime/packages/
cp -v anki.{png,xpm} $out/share/pixmaps/ cp -v anki.{png,xpm} $out/share/pixmaps/
cp -rv locale $out/share/ cp -rv locale $out/share/
cp -rv anki aqt thirdparty/send2trash $pp/ cp -rv anki aqt $pp/
wrapPythonPrograms wrapPythonPrograms
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://ankisrs.net/; homepage = "https://apps.ankiweb.net/";
description = "Spaced repetition flashcard program"; description = "Spaced repetition flashcard program";
license = licenses.gpl3;
longDescription = '' longDescription = ''
Anki is a program which makes remembering things easy. Because it is a lot Anki is a program which makes remembering things easy. Because it is a lot
more efficient than traditional study methods, you can either greatly more efficient than traditional study methods, you can either greatly
@ -130,8 +129,9 @@ in buildPythonApplication rec {
people's names and faces, brushing up on geography, mastering long poems, people's names and faces, brushing up on geography, mastering long poems,
or even practicing guitar chords! or even practicing guitar chords!
''; '';
license = licenses.agpl3Plus;
maintainers = with maintainers; [ the-kenny ]; broken = stdenv.hostPlatform.isAarch64;
platforms = platforms.mesaPlatforms; platforms = platforms.mesaPlatforms;
maintainers = with maintainers; [ the-kenny ];
}; };
} }