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