forked from mirrors/nixpkgs
fb7acacd42
I have been using the main example of the spaCy web page for testing updates of spacy (and its transitive dependencies). Let's convert this into a proper test to take out manual testing.
24 lines
339 B
Nix
24 lines
339 B
Nix
{ stdenv, pytest, spacy_models }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "spacy-annotation-test";
|
|
|
|
src = ./.;
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
doCheck = true;
|
|
|
|
checkInputs = [ pytest spacy_models.en_core_web_sm ];
|
|
|
|
checkPhase = ''
|
|
pytest annotate.py
|
|
'';
|
|
|
|
installPhase = ''
|
|
touch $out
|
|
'';
|
|
|
|
meta.timeout = 60;
|
|
}
|