2024-06-05 15:53:02 +00:00
|
|
|
{
|
2024-06-20 14:57:18 +00:00
|
|
|
lib,
|
2024-06-05 15:53:02 +00:00
|
|
|
stdenv,
|
|
|
|
pytest,
|
|
|
|
spacy-models,
|
|
|
|
}:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "spacy-annotation-test";
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
src = lib.fileset.toSource {
|
|
|
|
root = ./.;
|
|
|
|
fileset = lib.fileset.unions [
|
|
|
|
./annotate.py
|
|
|
|
];
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
doCheck = true;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest
|
|
|
|
spacy-models.en_core_web_sm
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest annotate.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
touch $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta.timeout = 60;
|
|
|
|
}
|