kanjidraw: init at 0.2.3
This commit is contained in:
parent
a498577a2c
commit
f985121df6
47
pkgs/applications/misc/kanjidraw/default.nix
Normal file
47
pkgs/applications/misc/kanjidraw/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
, bash
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "kanjidraw";
|
||||
version = "0.2.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "obfusk";
|
||||
repo = "kanjidraw";
|
||||
rev = "v${version}";
|
||||
sha256 = "03ag8vkbf85qww857ii8hcnn8bh5qa7rsmhka0v9vfxk272ifbyq";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [ tkinter ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace /bin/bash ${bash}/bin/bash
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
make test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Handwritten kanji recognition";
|
||||
longDescription = ''
|
||||
kanjidraw is a simple Python library + GUI for matching (the strokes of a)
|
||||
handwritten kanji against its database.
|
||||
|
||||
You can use the GUI to draw and subsequently select a kanji from the list of
|
||||
probable matches, which will then be copied to the clipboard.
|
||||
|
||||
The database is based on KanjiVG and the algorithms are based on the
|
||||
Kanji draw Android app.
|
||||
'';
|
||||
homepage = "https://github.com/obfusk/kanjidraw";
|
||||
license = with licenses; [
|
||||
agpl3Plus # code
|
||||
cc-by-sa-30 # data.json
|
||||
];
|
||||
maintainers = [ maintainers.obfusk ];
|
||||
};
|
||||
}
|
@ -2891,6 +2891,8 @@ in
|
||||
|
||||
jiten = callPackage ../applications/misc/jiten { };
|
||||
|
||||
kanjidraw = callPackage ../applications/misc/kanjidraw { };
|
||||
|
||||
jotta-cli = callPackage ../applications/misc/jotta-cli { };
|
||||
|
||||
joycond = callPackage ../os-specific/linux/joycond { };
|
||||
|
Loading…
Reference in New Issue
Block a user