17 buildPythonPackage rec {
19 inherit (sudachi-rs) src version;
21 cargoDeps = rustPlatform.fetchCargoTarball {
23 name = "${pname}-${version}";
24 hash = "sha256-vYn1dWu87ruEGT/9QVIvxY21LzesVyq1VPaLcTrDKvY=";
29 rustPlatform.cargoSetupHook
34 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
40 # avoid infinite recursion due to sudachidict
49 pythonImportsCheck = [ "sudachipy" ];
52 inherit (sudachi-rs) updateScript;
54 pytest = sudachipy.overridePythonAttrs (_: {
56 # avoid catchConflicts of sudachipy
57 # we don't need to install this package since it is just a test
63 meta = sudachi-rs.meta // {
64 homepage = "https://github.com/WorksApplications/sudachi.rs/tree/develop/python";
65 mainProgram = "sudachipy";