nixpkgs/pkgs/development/python-modules/spacy/annotation-test/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
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.
2023-01-21 12:00:00 +00:00

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;
}