bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
36 lines
471 B
Nix
36 lines
471 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
pytest,
|
|
spacy-models,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "spacy-annotation-test";
|
|
|
|
src = lib.fileset.toSource {
|
|
root = ./.;
|
|
fileset = lib.fileset.unions [
|
|
./annotate.py
|
|
];
|
|
};
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [
|
|
pytest
|
|
spacy-models.en_core_web_sm
|
|
];
|
|
|
|
checkPhase = ''
|
|
pytest annotate.py
|
|
'';
|
|
|
|
installPhase = ''
|
|
touch $out
|
|
'';
|
|
|
|
meta.timeout = 60;
|
|
}
|