Files
nixpkgs/pkgs/development/python-modules/spacy/annotation-test/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
452 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
pytest,
spacy-models,
}:
stdenv.mkDerivation {
name = "spacy-annotation-test";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./annotate.py
];
};
dontConfigure = true;
dontBuild = true;
nativeCheckInputs = [
pytest
spacy-models.en_core_web_sm
];
checkPhase = ''
pytest annotate.py
'';
installPhase = ''
touch $out
'';
meta.timeout = 60;
}