nixpkgs/pkgs/development/python-modules/spacy/annotation-test/default.nix
Daniël de Kok fb7acacd42 python3Packages.spacy: add passthru test
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.
2020-08-18 11:10:47 -07:00

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