16 buildPythonPackage rec {
18 inherit (sudachi-rs) src version;
20 cargoDeps = rustPlatform.fetchCargoTarball {
22 name = "${pname}-${version}";
23 hash = "sha256-ARwvThfATDdzBTjPFr9yjbE/0eYvp/TCZOEGbUupJmU=";
28 rustPlatform.cargoSetupHook
33 buildInputs = lib.optionals stdenv.isDarwin [
41 # avoid infinite recursion due to sudachidict
50 pythonImportsCheck = [
55 inherit (sudachi-rs) updateScript;
57 pytest = sudachipy.overridePythonAttrs (
60 # avoid catchConflicts of sudachipy
61 # we don't need to install this package since it is just a test
68 meta = sudachi-rs.meta // {
69 homepage = "https://github.com/WorksApplications/sudachi.rs/tree/develop/python";
70 mainProgram = "sudachipy";