forked from mirrors/nixpkgs
24 lines
353 B
Nix
24 lines
353 B
Nix
{ stdenv, pytest, spacy_models }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "spacy-transformers-annotation-test";
|
|
|
|
src = ./.;
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
doCheck = true;
|
|
|
|
checkInputs = [ pytest spacy_models.en_core_web_trf ];
|
|
|
|
checkPhase = ''
|
|
pytest annotate.py
|
|
'';
|
|
|
|
installPhase = ''
|
|
touch $out
|
|
'';
|
|
|
|
meta.timeout = 60;
|
|
}
|