13 buildPythonPackage rec {
14 pname = "spacy-alignments";
20 inherit pname version;
21 hash = "sha256-jcNYghWR9Xbu97/hAYe8ewa5oMQ4ofNGFwY4cY7/EmM=";
24 cargoDeps = rustPlatform.fetchCargoTarball {
26 name = "${pname}-${version}";
27 hash = "sha256-I5uI+qFyb4/ArpUZi4yS/E/bmwoW7+CalMq02Gnm9S8=";
32 rustPlatform.cargoSetupHook
37 buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
39 # Fails because spacy_alignments module cannot be loaded correctly.
42 pythonImportsCheck = [ "spacy_alignments" ];
45 description = "Align tokenizations for spaCy and transformers";
46 homepage = "https://github.com/explosion/spacy-alignments";
47 license = licenses.mit;
48 maintainers = with maintainers; [ ];