anki: use send2trash from nixpkgs

This commit is contained in:
Jan Malakhovski 2018-10-19 18:20:35 +00:00
parent 6b81005e66
commit 0779d71915

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,7 +109,7 @@ 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
''; '';