at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 mecab, 7 setuptools-scm, 8 requests, 9 tqdm, 10 wasabi, 11 plac, 12 cython, 13 platformdirs, 14}: 15 16buildPythonPackage rec { 17 pname = "unidic"; 18 version = "1.1.0"; 19 format = "setuptools"; 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "polm"; 24 repo = "unidic-py"; 25 tag = "v${version}"; 26 hash = "sha256-srhQDXGgoIMhYuCbyQB3kF4LrODnoOqLbjBQMvhPieY="; 27 }; 28 29 patches = [ ./fix-download-directory.patch ]; 30 31 postPatch = '' 32 substituteInPlace setup.cfg \ 33 --replace "wasabi>=0.6.0,<1.0.0" "wasabi" 34 ''; 35 36 # no tests 37 doCheck = false; 38 39 propagatedBuildInputs = [ 40 requests 41 tqdm 42 wasabi 43 plac 44 platformdirs 45 ]; 46 47 nativeBuildInputs = [ 48 cython 49 mecab 50 setuptools-scm 51 ]; 52 53 pythonImportsCheck = [ "unidic" ]; 54 55 meta = with lib; { 56 description = "Contemporary Written Japanese dictionary"; 57 homepage = "https://github.com/polm/unidic-py"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ laurent-f1z1 ]; 60 }; 61}