33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
24 lines
345 B
Nix
24 lines
345 B
Nix
{ stdenv, pytest, spacy_models }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "spacy-annotation-test";
|
|
|
|
src = ./.;
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [ pytest spacy_models.en_core_web_sm ];
|
|
|
|
checkPhase = ''
|
|
pytest annotate.py
|
|
'';
|
|
|
|
installPhase = ''
|
|
touch $out
|
|
'';
|
|
|
|
meta.timeout = 60;
|
|
}
|