Merge pull request #129648 from obfusk/jiten-1.1.0

jiten: 1.0.0 -> 1.1.0

authored by Sandro and committed by GitHub b575fad8 5b942d9a

+25 -11
+25 -11
pkgs/applications/misc/jiten/default.nix
··· 1 { lib 2 , fetchFromGitHub 3 - , python3Packages 4 , makeWrapper 5 , pcre 6 , sqlite 7 , nodejs 8 }: 9 10 - python3Packages.buildPythonApplication rec { 11 pname = "jiten"; 12 - version = "1.0.0"; 13 14 src = fetchFromGitHub { 15 owner = "obfusk"; 16 repo = "jiten"; 17 rev = "v${version}"; 18 - sha256 = "1lg1n7f4383jdlkbma0q65yl6l159wgh886admcq7l7ap26zpqd2"; 19 }; 20 21 nativeBuildInputs = [ makeWrapper ]; 22 buildInputs = [ pcre sqlite ]; 23 - propagatedBuildInputs = with python3Packages; [ click flask ]; 24 checkInputs = [ nodejs ]; 25 26 preBuild = '' ··· 29 ''; 30 31 postPatch = '' 32 - substituteInPlace Makefile --replace /bin/bash "$(command -v bash)" 33 - substituteInPlace jiten/res/jmdict/Makefile --replace /bin/bash "$(command -v bash)" 34 ''; 35 36 - checkPhase = "make test"; 37 38 postInstall = '' 39 # requires pywebview ··· 59 • readings (romaji optional), meanings (english), jmdict entries, radicals & more 60 • search using SKIP codes 61 • search by radical 62 - • browse by frequency/level/jlpt 63 64 Example sentences (from Tatoeba) 65 • with english, dutch, german, french and/or spanish translation ··· 83 license = with licenses; [ 84 agpl3Plus # code 85 cc-by-sa-30 # jmdict/kanjidic 86 - unfreeRedistributable # pitch data from wadoku is non-commercial :( 87 ]; 88 maintainers = [ maintainers.obfusk ]; 89 - platforms = platforms.unix; 90 }; 91 }
··· 1 { lib 2 , fetchFromGitHub 3 + , python3 4 + , bash 5 , makeWrapper 6 + , kanjidraw 7 , pcre 8 , sqlite 9 , nodejs 10 }: 11 12 + python3.pkgs.buildPythonApplication rec { 13 pname = "jiten"; 14 + version = "1.1.0"; 15 16 src = fetchFromGitHub { 17 owner = "obfusk"; 18 repo = "jiten"; 19 rev = "v${version}"; 20 + sha256 = "13bdx136sirbhxdhvpq5kf0r6q1xvm5zyzp454z51gy0v6rn0qrp"; 21 + }; 22 + 23 + nonFreeData = fetchFromGitHub { 24 + owner = "obfusk"; 25 + repo = "jiten-nonfree-data"; 26 + rev = "v${version}"; 27 + sha256 = "16sz8i0sw7ggy6kijcx4qyl2zr6xj789x4iav0yyllx12dfgp5b1"; 28 }; 29 30 nativeBuildInputs = [ makeWrapper ]; 31 buildInputs = [ pcre sqlite ]; 32 + propagatedBuildInputs = with python3.pkgs; [ click flask kanjidraw ]; 33 checkInputs = [ nodejs ]; 34 35 preBuild = '' ··· 38 ''; 39 40 postPatch = '' 41 + rmdir nonfree-data 42 + ln -s ${nonFreeData} nonfree-data 43 + substituteInPlace Makefile --replace /bin/bash ${bash}/bin/bash 44 + substituteInPlace jiten/res/jmdict/Makefile \ 45 + --replace /bin/bash ${bash}/bin/bash 46 ''; 47 48 + checkPhase = '' 49 + make test 50 + ''; 51 52 postInstall = '' 53 # requires pywebview ··· 73 • readings (romaji optional), meanings (english), jmdict entries, radicals & more 74 • search using SKIP codes 75 • search by radical 76 + • handwritten kanji recognition 77 + • browse by frequency/level/jlpt/SKIP 78 79 Example sentences (from Tatoeba) 80 • with english, dutch, german, french and/or spanish translation ··· 98 license = with licenses; [ 99 agpl3Plus # code 100 cc-by-sa-30 # jmdict/kanjidic 101 + unfreeRedistributable # pitch data & audio are non-commercial 102 ]; 103 maintainers = [ maintainers.obfusk ]; 104 }; 105 }