11 oldest-supported-numpy,
17 dic-dirname = "open_jtalk_dic_utf_8-1.11";
19 url = "https://github.com/r9y9/open_jtalk/releases/download/v1.11.1/${dic-dirname}.tar.gz";
20 hash = "sha256-+6cHKujNEzmJbpN9Uan6kZKsPdwxRRzT3ZazDnCNi3s=";
24 pname = "pyopenjtalk";
25 version = "0-unstable-2023-09-08";
28 src = fetchFromGitHub {
31 rev = "b35fc89fe42948a28e33aed886ea145a51113f88";
32 hash = "sha256-DbZkCMdirI6wSRUQSJrkojyjGmViqGeQPO0kSKiw2gE=";
33 fetchSubmodules = true;
37 # this patch fixes the darwin build
38 # open_jtalk uses mecab, which uses the register keyword and std::binary_function, which are not allowed in c++17
39 # this patch removes them
40 ./mecab-remove-deprecated.patch
44 substituteInPlace pyproject.toml \
45 --replace-fail 'setuptools<v60.0' 'setuptools'
53 oldest-supported-numpy
56 dontUseCmakeConfigure = true;
59 setuptools # imports pkg_resources at runtime
66 ln -s ${dic-src} $out/${python.sitePackages}/pyopenjtalk/${dic-dirname}
70 description = "VOICEVOX's fork of the pyopenjtalk text-to-speech library";
71 homepage = "https://github.com/VOICEVOX/pyopenjtalk";
72 license = lib.licenses.mit;
73 maintainers = with lib.maintainers; [ tomasajt ];