blob: 2268535355764353703a266293a8d5db2bfd03dd (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
stdenv,
cargo,
fetchPypi,
buildPythonPackage,
isPy3k,
rustPlatform,
rustc,
setuptools-rust,
libiconv,
}:
buildPythonPackage rec {
pname = "spacy-alignments";
version = "0.9.0";
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
hash = "sha256-jcNYghWR9Xbu97/hAYe8ewa5oMQ4ofNGFwY4cY7/EmM=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
name = "${pname}-${version}";
hash = "sha256-0U1ELUMh4YV6M+zrrZGuzvY8SdgyN66F7bJ6sMhOdXs=";
};
nativeBuildInputs = [
setuptools-rust
rustPlatform.cargoSetupHook
cargo
rustc
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
# Fails because spacy_alignments module cannot be loaded correctly.
doCheck = false;
pythonImportsCheck = [ "spacy_alignments" ];
meta = with lib; {
description = "Align tokenizations for spaCy and transformers";
homepage = "https://github.com/explosion/spacy-alignments";
license = licenses.mit;
maintainers = [ ];
};
}
|